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