*** empty log message ***
[wmaker-crm.git] / WINGs / ChangeLog
blobc9fe2db006b010683fee40b1535f6f0874894b8a
1 changes since wmaker 0.61.1:
2 ............................
4 - fixed WMInsertInBag(). It ignored index, and always put the new item at end.
5 - added WMSaveUserDefaults().
6 - rewrote WMPopUpButton to use WMMenuItem
7 - added WMGetPopUpButtonMenuItem(WMPopUpButton *bPtr, int index)
8 - WMSortListItemsWithComparer(WMList *lPtr, (int)(f)(const void*, const void*))
9 - WMSortBrowserColumnWithComparer()
10 - fixed bug with sorting list items.
11 - fixed bug in handling keyboard input associated with selection and
12   notification sending.
13 - filepanel puts dirs on top of list (Wolff <wolff@cybercable.fr>)
14 - added WMReplaceInBag (Wolff <wolff@cybercable.fr>)
15 - added vertical views and multiple views in WMSplitView (Wolff <wolff@cybercable.fr>)
16 - changed values of parameter values of WMSplitViewConstrainProc()
17 - configurable default fontsize patch (Igor P. Roboul <igor@mordor.myip.org>)
18 - fixed a bug that crashed the programm when a popup button was scrolled.
19 - fixed a bug that caused incorrect drawing position of the popup indicator.
20 - fixed a bug that prevented selecting no item (-1) in a popup button.
21 - an assertion will be raised if the program tries to select a popup button
22   item that is beyond the total number of items present in the popup button.
23 - changed names of functions for SplitView to be consistent. Some contained
24   SubView while other Subview. Now all have Subview.
25 - fixed a bug in how input events were posted. Establishing 2 or more input 
26   handlers for the same file descriptor, handling different (read/write/except)
27   events, caused wrong handlers to be called.
28 - Reimplemented the input and idle handlers with WMBag to avoid a functional
29   problem with them: inability to remove handlers next to the called one, from
30   the called handler itself. Trying to do this with the old version caused the
31   program to crash.
32 - changed wrealloc behaviour to be like this: new = wrealloc(old, new_size);
33     1. if old is NULL, return wmalloc(new_size).
34     2. if new_size is 0, call wfree(old), and return NULL.
35     3. if both old is a valid pointer and new_size>0, call realloc.
36 - added wstrerror(int errnum) to return the string associated with errnum.
37 - new wsyserrorwithcode(int error, const char* fmt, ...), similar to 
38   wsyserror(), but printing the message for the specified error code.
39 - added 3 new classes: WMData, WMHost and WMConnection
40 - fixed a big memory leak in the color panel code (from Pascal Hofstee).
41 - added scrolling to tabview
43 changes since wmaker 0.61.0:
44 ............................
46 - added WMGetTextFieldFont()
47 - escape key in panels (craig nellist <crn@ozemail.com.au>)
48 - applied patch with fixes and enhancements to textfield 
49         (Franck Wolff <wolff@cybercable.fr>)
50 - changed WMList to use WMBag internally, instead of a linked list
51 - replaced WMAddSortedListItem() with WMSortListItems()
52 - replaced WMAddSortedBrowserItem() with WMSortBrowserColumn()
54 changes since wmaker 0.60.0:
55 ............................
57 - added WMScreenWidth() and WMScreenHeight() functions.
58 - fixed some problems when compiling with non gcc compilers.
59 - added WMSetTextFieldFont()
60 - added WMSetButtonImageDefault() (craig nellist <crn@ozemail.com.au>)
61 - added WMBag (array/list)
62 - added libWUtil, a library that is a subset of libWINGs. It contains utils
63   that can be used in writing non-GUI programs. They include: hashes,
64   notifications, input/idle/timer handlers, user defaults database handling,
65   memory handling, application resource handling, etc.
66   All the non-GUI stuff from libWINGs is present.
67   Still linWINGs contain all this stuff so if you use libWINGs, you don't
68   need to link against libWUtil too.
69   One notable aspect of libWUtil is that it has a modified version of the
70   event handling function. It is named WHandleEvents() and will handle all
71   input/idle/timer events the app has.
72   If your app has a permanent input handler (as for example a socket a server
73   is listening on), then the main loop of the app can be:
74         while(1) {
75             WHandleEvents();
76         }
77   but if there is no permanent input handler, you need to add some delay to
78   avoid a too high cpu load by your program:
79         while(1) {
80             WHandleEvents();
81             wusleep(5000);
82         }
83   A permanent input handler is one that is established when the program starts
84   and is present until the program exits.
85   One that is deleted and later reinstalled, is not considered permanent.
86   This difference is because if there is some input handler, the function will
87   block until some event appears, while if there is no input handler the
88   function will return almost immediately (after handling the timer/idle
89   stuff).
91   Except the stuff declared in WUtil.h, the following functions declared in
92   WINGs.h are also present in libWUtil (you will need to #include <WINGs.h>
93   if you use one of these):
94         WMInitializeApplication(char *applicationName, int *argc, char **argv);
95         WMSetResourcePath(char *path);
96         WMGetApplicationName();
97         WMPathForResourceOfType(char *resource, char *ext);
98         WMAddTimerHandler(int milliseconds, WMCallback *callback, void *cdata);
99         WMDeleteTimerWithClientData(void *cdata);
100         WMDeleteTimerHandler(WMHandlerID handlerID);
101         WMAddIdleHandler(WMCallback *callback, void *cdata);
102         WMDeleteIdleHandler(WMHandlerID handlerID);
103         WMAddInputHandler(int fd, int condition, WMInputProc *proc,
104                           void *clientData);
105         WMDeleteInputHandler(WMHandlerID handlerID);
106 - added progress indicator widget
107 - Changed WMSetWindowUPosition() and WMSetWindowUSize() to
108   WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively,
109   for better naming conventions.
112 changes since wmaker 0.53.0:
113 ............................
115 - added balloon help
116 - fixed a bug with setting initial path in browsers.
117 - added WMSetButtonImageDimsWhenDisabled()
118 - changed simple callback/notifications to delegate-like stuff. Affected
119   widgets are:
120         WMBrowser
121         - WMSetBrowserFillProc() was replaced with WMSetBrowserDelegate
122         - WMBrowserDidScrollNotification was replaced with a delegate callback
124         WMTextField (not completed yet)
125         The notifications will still work, but using the delegate is preferable
127   How to convert old code to delegate callbacks:
128         1 - create a variable (static or dynamic) of the type of the 
129             delegate for the widget type.
130         2 - Replace the notification observers with the equivalent 
131             delegate callbacks. 
132         3 - Put pointers to the callbacks in the delegate variable.
134         Take a look in wfilepanel.c to see how it is used there.
136 - changed W_ViewProcedureTable to delegates
137         This will only affect user created widgets. If you have a custom
138         widget, you will need to update the callbacks and the declaration
139         of the W_ViewProcedureTable variable to be a W_ViewDelegate,
140         which is declared in WINGsP.h  To setup the delegate, assign
141         the delegate variable to view->delegate.
143 - WMTextField
144         Removed all the didChange notifications that were sent when the text
145         was changed programmatically. Only changes made by user interaction
146         will be notified now. If you need the old behaviour, send notifications
147         manually when you change the text.
149 - added WMTabView
150 - added WMGetColorPanelColor(WMColorPanel *panel)
151 - made WMGetUDStringForKey() to only return a reference to the string, not a
152   wstrdup()'ed copy. DO NOT FREE IT ANYMORE!
153 - added MultiByteText option to userdefaults file to control use of multibyte
154   string drawing functions
155 - renamed WMCreateFont() to WMCreateFontSet()
156 - renamed WMCreateFontInDefaultEncoding() to WMCreateNormalFont()
157 - added WMCreateFont() with different semantics
160 changes since wmaker 0.52.0:
161 ............................
163 - added int WMGetBrowserMaxVisibleColumns(WMBrowser *bPtr);
166 changes since wmaker 0.51.2:
167 ............................
169 - added WMColorWellDidChangeNotification
170 - added wfindfileinarray()
171 - fixed bug in window title setting 
172         (MANOME Tomonori <manome@itlb.te.noda.sut.ac.jp>)
174 changes since wmaker 0.51.1:
175 ............................
177 - wusergnusteppath() will return a statically allocated string now.
178  DO NOT FREE IT ANYMORE!!
182 changes since wmaker 0.51.0:
183 ............................
185 - applied c++ compat header patch from Martynas Kunigelis <mkunigelis@alna.lt>
186 - added WMSetTextFieldBeveled()
187 - removed W_GC() : use WMColorGC() instead
188 - added WMCreatePixmap()
189 - changed WMSetTextFieldEnabled() to WMSetTextFieldEditable()
191 changes since wmaker 0.50.1:
192 ............................
194 - fixed various bugs
195 - added patch from Franck Wolff <frawolff@club-internet.fr>, with
196   many fixes and enhancements
197 - added notification queues, asynchronous notifications etc.
198 - added WMSetBrowserDoubleAction()
199 - fixed list double click action
201 changes since wmaker 0.50.2:
202 ............................
204 - added wsetabort() - look WUtil.h
205 - fixed bug in WMList resize
206 - added notification sending when changing textfield programatically
207 - removed WMHideWindow()
208 - fixed bug in WMCloseWindow()
209 - added textfield selection patch
210 - added color panel code
211 - added auto name completion for the file panel
212 - added function to select text range, and to set cursor position in text
213   fields programatically
215 changes since wmaker 0.20.3:
216 ............................
218 - added WMSetSliderImage(), WMSetSliderKnobThickness()
219 - added WMGetListItemHeight()
220 - added WMListDidScrollNotification
221 - added WSetColorWellBordered()
222 - added hacky color dragging in colorwell
223 - added poll() support in WMNextEvent. WARNING: the stuff needed for
224   WMAddInputHandler() is not yet implemented for the poll stuff
225 - added WMSetFilePanelAccessoryView(), WMGetFilePanelAccessoryView()
226 - added WMSetPopUpButtonEnabled()
227 - added WMGetLabelImage()
228 - autoscroll for popup button menus
229 - added WMDrawPixmap()
230 - WARNING: changed parameter list for WMListDrawProc
232 changes since wmaker 0.20.2:
233 ............................
235 - WMSetBrowserMaxVisibleColumns() - untested
239 changes since wmaker 0.20.0:
240 ............................
242 - added generic object field for WMListItem. This is for hanging generic
243   clientdata
246 changes since wmaker 0.20.0:
247 ............................
249 - changed WMGetFilePanelFile() with WMGetFilePanelFileName()
250 - made SavePanel
252 changes since wmaker 0.19.3:
253 ............................
255 - added WMCreatePanelForWindow()
256 - added extra parent parameter for filepanel, alertpanel and inputpanel
257 - WMCloseWindow()
258 - WMChangePanelOwner()
259 - added WMAddInputHandler()
260 - change range related function arguments (WMTextField) to use WMRange
262 changes since wmaker 0.19.1:
263 ............................
265 - added wstrappend()
266 - fixed bug when changing selected radio button by hand
268 changes since wmaker 0.18.1:
269 ............................
271 - removed textHeight arg from W_PaintImageAndText
272 - added WMCreateWindowWithStyle()
273 - added WMSetWindowBaseSize() and ResizeIncrements()
274 - added WMSetWindowLeve()
275 - added WMSetWindowDocumentEdited()
276 - added WMSetScrollViewLineScroll(), WMSetScrollViewPageScroll()
277 - added WMSetWindowMiniwindowTitle()
278 - added WMSetWindowMiniwindowImage()
280 changes since wmaker 0.18.0:
281 ............................
283 - added functions to get RGB components and "#rrggbb" string from WMColor.
284 - added function to create color from a name
285 - fixed bug that caused blocking until some new event arrives, even
286   when there already were events in the queue
287   (like having to move the pointer over window to force the window to be
288   painted)
290 changes since wmaker 0.17.5:
291 ............................
293 I don't remember everything, but here it goes:
295 - fixed some bugs in text field
296 - added a incomplete implementation of split view (not yet usable)
297 - added a slider
298 - changed the filepanel stuff. Each application can have only 1 file panel.
299 The same panel will be reused every time you call for it, unless you free it.
300 - changed semantics of WMCreateFont() so that it returns NULL if the requested
301   font can't be loaded
302 - removed WMAddDestroyCallback() 
303 - fixed bug in WMRemovePopUpButtonItem()
304 - added function for user specified item height in WMList
305 - added WMSetPopUpButtonText(). It will set the default text in the button
306   when no options are selected
307 - fixed bug in remove/add item in already mapped popupbuttons. Note: it is
308   not good practice to change the contents of a popup button when it's
309   already visible and the user has probably interacted with it.
310 - fixed behaviour of "radio buttons"
311 - WMInitializeApplication() must be the first function to be called in the
312   program
313 - removed applicationName, argc and argv arguments from the WMCreateScree...
314   functions
315 - WMReleaseColor(scr,color) changed to WMReleaseColor(color)
316 - WMPaintColorRectangle() changed to WMPaintColorSwatch()
317 - added various functions in font and color handling
318 - added WMSetButtonFont()
319 - changed WMCreateCommandButton() so that the buttons it creates will change
320         their label when pushed
321 - added WMGetSystemPixmap(WMScreen *scr, int image)
322 - added partial I18N support
323 - added libPropList requirement and some related utility functions
324 - added a interface to prooplist, so that it works as a user defaults db
325 - added WMWidthOfString() (removed WMFontWidthOfString())
326 - added WMDrawString()
327 - added WMSetTextFieldSecure(WMTextField *tPtr, Bool flag)
328 - WMGetListItem() will dup the returned string
329 - removed need for ProgName being defined
330 - rewrote hashtable stuff and made it available for outside use
331 - added notification functions, with view resize notification
332 - added WMSetWindowMinSize() and MaxSize()
333 - text editing notification
334 - added WMSetListPosition() etc.
335 - added WMInsertBrowserItem()
336 - the above 2 functions return WMListItem*, instead of Bool
337 - rewrote browser
338 - WMGetListItem() will return WMListItem*
339 - removed WMGetListItems() and WMSetListItems()
340 - fixed focus stuff for multi-window apps
341 - changed all WMList function names that contained index to row