- simpler and more straightforward event handling for timer, idle, input
[wmaker-crm.git] / WINGs / ChangeLog
blob498b1ac5d18f200e0efe8e8bb9e611681ccbb5cb
1 Changes since wmaker 0.64.0:
2 ............................
4 - made programmatic scroller changes send notifications
5 - replaced WMSetBoxExpandsToParent with WMSetViewExpands...
6 - added WMGetLabelFont()
7 - added WMAddPersistentTimerHandler()
8 - Moved all internal handlers (timer, idle and input) to handlers.c
9 - simplified wevent.c and wutil.c.
10 - fixed handling of input with poll (was broken)
11 - fixed mem leak that occured when input handling was done with poll
12 - simpler and more straightforward event handling for timer, idle, input
13   and X events (also fixed some problems the old handling logic had)
15 changes since wmaker 0.63.1:
16 ............................
17 - added WMRunModalLoop() and WMBreakModalLoop()
18 - added WMSetBoxExpandsToParent()
19 - added WMRemoveBoxSubview()
20 - moved WINGs headers in a WINGs subdirectory when installed.
21   use #include <WINGs/header_file_name> in your application from now on.
22   Also updated get-{wings|wutil}-flags.
23 - Fixed a mem leak in WMList.
24 - Fixed a bug that caused sigsegv for a WMList with more than 32767 items.
25 - Added an example of how to create a server type program with WMConnection.
26 - added WMOpenScreen()
29 changes since wmaker 0.62.1:
30 ............................
31 - added WRuler widget
32 - added WText widget (rtf multiline text widget) 
33         Nwanua Elumeze <nwanua@colorado.edu>
34 - added a new AUTO option for the UseMultiByte option
35 - added WMRaiseWidget()/WMLowerWidget()
36 - added missing EscapeTextMovement to textfield delegate/notification
37 - added WMGetLabelText()
38 - added WMReparentWidget()
39 - added WMCreateTabViewItem()
40 - added W_CreateUnmanagedTopView()
41 - added wtokenjoin(), wtokensplit(), wtokenfree(), wtrimspace()
42 - added WMWidgetIsMapped()
43 - added WMSetApplicationIconWindow()
44 - restructured the directory tree. Added Documentation, Examples and Tests
45   subdirectories
46 - removed WMArrayBag and reorganized WMTreeBag to be WMBag.
47 - added WMArray class.
48 - added WMSetWindowUserPosition()
49 - added WMGetListSelectedItems()
50 - added WMSetListAllowMultipleSelection(), WMListAllowsMultipleSelection().
51 - added WMSetListAllowEmptySelection(), WMListAllowsEmptySelection().
52 - WMListSelectionDidChangeNotification passes NULL as the notification 
53   client data (previously passed the selected item row).
54 - added WMUnselectListItem(), WMSelectAllListItems(), WMUnselectAllListItems()
55 - better behavior of wheel mices in WMList. Simple mouse wheel events
56   will scroll by 1/3 of the WMList height. Using Shift as a modifier will
57   scroll line by line, while using Control as a modifier will scroll page
58   by page.
59 - better behavior of WMScroller regarding mouse wheel events. 'Shift' modifier
60   will scroll line by line, while 'Control' modifier will scroll page by page.
61 - fixed some buffer overflow allowing bugs.
62 - added WSDecrementWheel and WSIncrementWheel for handling mouse wheel in
63   scrollers and scrolled widgets. This should be treated like the WSxxxPage
64   counterparts, except it should scroll by page_size/3 instead of one full page
65 - added WMSetBrowserAllowMultipleSelection(), WMSetBrowserAllowEmptySelection()
66   WMBrowserAllowsMultipleSelection() and WMBrowserAllowsEmptySelection()
67 - WMBrowser now allows multiple selections.
68 - Added WMGetBrowserPaths() to retrieve the paths for browsers that allow
69   multiple selections.
70 - WMDestroyWidget() now calls WMUnmapWidget() first
71 - added WMScrollerDidScrollNotification to scroller
72 - added WMGetScrollViewVisibleRect()
73 - fixed a mem leak in the browser code.
74 - renamed wstrappend() to wstrconcat(). wstrconcat(str1, str2) concatenates
75   str1 with str2 and returns that in a newly malloc'ed string.
76   Be sure to rename wstrappend with wstrconcat in your code too, else
77   hazardous things can happen!
78 - implemented a new wstrappend() function. wstrappend(dst, src) will append 
79   src to dst modifing dst and returning a pointer to it. No new string is 
80   generated, except if dst is NULL, in which case its the same as calling
81   wstrdup(src).
82   dst can ONLY be NULL or a dynamically allocated string (obtained from a
83   call to malloc, realloc, wmalloc, wrealloc, ...). dst CANNOT be a static
84   or a constant string!
85 - added wmessage() for printing a variable formatted string to stderr, with
86   the program name prepended to it. Similar to wwarning(), except that it
87   doesn't add "warning:" in the output message.
88 - added WMBox widget
89 - added WMAddTabViewItemWithView()
90 - added W_SetViewCursor()
91 - made Extra widgets library
92 - added table widget in Extras library
93 - added WMGetConnectionUnsentData() (WMGetConnectionQueuedData() too as an
94   alias).
95 - added WMSetConnectionCloseOnExec() to specify if the socket associated
96   with a connection survives an exec* call or not. When a new connection is
97   created using the WMCreate... or WMAcceptConnection() calls, it has the
98   close on exec flag set automatically to 'True' by the library. Unless
99   you want to let the socket of some connection to survive across an exec*
100   call, you need not to call this function.
101 - removed all the wsyserror() and wwarning() calls from host.c and
102   connection.c and replaced where appropriate with assertions. If a function
103   returns some invalid result, you can still get the system error message if
104   you need, by calling wsyserrorwithcode() and passing WCErrorCode, if
105   WCErrorCode > 0. If WCErrorCode==0, that is not a system error, and
106   wsyserrorwithcode() should not be called in this case.
107 - added WMNextHashEnumeratorKey() to retrieve all keys in some hash enumerator
108   one by one.
109 - fixed a bug with mouse wheels scrolling in scrollers even with the widget
110   fully visible.
111 - Fixed a memory leak (the destroy function for a view was never called and
112   as a result the shaded windows didn't go away when closed. The non-shaded
113   windows were unmapped on close but not destroyed either so they only
114   apparently went away, but continued to use memory).
118 changes since wmaker 0.62.0:
119 ............................
120 - added WMSetWidgetDefaultFont(), WMSetWidgetDefaultBoldFont()
124 changes since wmaker 0.62.0:
125 ............................
126 - added WM{S,G}etDataFormat()
127 - added drag and drop
128 - changed selection code
129 - added clientdata to WMFindInBag
130 - removed SetWindowInitialSize()
131 - added SetWindowAspectRatio()
132 - added initial timeout when establishing a connection.
133 - added WMSetConnectionDefaultTimeout() and WMSetConnectionOpenTimeout();
134 - added WMGetConnectionTimeoutState()
136 changes since wmaker 0.61.1:
137 ............................
139 - WARNING: semantic of bags has changed!
140         An index assigned to an item will always keep that index unless
141         you insert an item before it.
143         For example:
144                 bag = WMCreateBag();
145                 WMSetInBag(bag, 10, "bla");
146         That code will put "bla" in index 10, instead of 0, as it used to be.
147 - fixed WMInsertInBag(). It ignored index, and always put the new item at end.
148 - added WMSaveUserDefaults().
149 - rewrote WMPopUpButton to use WMMenuItem
150 - added WMGetPopUpButtonMenuItem(WMPopUpButton *bPtr, int index)
151 - WMSortListItemsWithComparer(WMList *lPtr, (int)(f)(const void*, const void*))
152 - WMSortBrowserColumnWithComparer()
153 - fixed bug with sorting list items.
154 - fixed bug in handling keyboard input associated with selection and
155   notification sending.
156 - filepanel puts dirs on top of list (Wolff <wolff@cybercable.fr>)
157 - added WMReplaceInBag (Wolff <wolff@cybercable.fr>)
158 - added vertical views and multiple views in WMSplitView (Wolff <wolff@cybercable.fr>)
159 - changed values of parameter values of WMSplitViewConstrainProc()
160 - configurable default fontsize patch (Igor P. Roboul <igor@mordor.myip.org>)
161 - fixed a bug that crashed the programm when a popup button was scrolled.
162 - fixed a bug that caused incorrect drawing position of the popup indicator.
163 - fixed a bug that prevented selecting no item (-1) in a popup button.
164 - an assertion will be raised if the program tries to select a popup button
165   item that is beyond the total number of items present in the popup button.
166 - changed names of functions for SplitView to be consistent. Some contained
167   SubView while other Subview. Now all have Subview.
168 - fixed a bug in how input events were posted. Establishing 2 or more input 
169   handlers for the same file descriptor, handling different (read/write/except)
170   events, caused wrong handlers to be called.
171 - Reimplemented the input and idle handlers with WMBag to avoid a functional
172   problem with them: inability to remove handlers next to the called one, from
173   the called handler itself. Trying to do this with the old version caused the
174   program to crash.
175 - changed wrealloc behaviour to be like this: new = wrealloc(old, new_size);
176     1. if old is NULL, return wmalloc(new_size).
177     2. if new_size is 0, call wfree(old), and return NULL.
178     3. if both old is a valid pointer and new_size>0, call realloc.
179 - added wstrerror(int errnum) to return the string associated with errnum.
180 - new wsyserrorwithcode(int error, const char* fmt, ...), similar to 
181   wsyserror(), but printing the message for the specified error code.
182 - added 3 new classes: WMData, WMHost and WMConnection
183 - fixed a big memory leak in the color panel code (from Pascal Hofstee).
184 - added scrolling to tabview
186 changes since wmaker 0.61.0:
187 ............................
189 - added WMGetTextFieldFont()
190 - escape key in panels (craig nellist <crn@ozemail.com.au>)
191 - applied patch with fixes and enhancements to textfield 
192         (Franck Wolff <wolff@cybercable.fr>)
193 - changed WMList to use WMBag internally, instead of a linked list
194 - replaced WMAddSortedListItem() with WMSortListItems()
195 - replaced WMAddSortedBrowserItem() with WMSortBrowserColumn()
197 changes since wmaker 0.60.0:
198 ............................
200 - added WMScreenWidth() and WMScreenHeight() functions.
201 - fixed some problems when compiling with non gcc compilers.
202 - added WMSetTextFieldFont()
203 - added WMSetButtonImageDefault() (craig nellist <crn@ozemail.com.au>)
204 - added WMBag (array/list)
205 - added libWUtil, a library that is a subset of libWINGs. It contains utils
206   that can be used in writing non-GUI programs. They include: hashes,
207   notifications, input/idle/timer handlers, user defaults database handling,
208   memory handling, application resource handling, etc.
209   All the non-GUI stuff from libWINGs is present.
210   Still linWINGs contain all this stuff so if you use libWINGs, you don't
211   need to link against libWUtil too.
212   One notable aspect of libWUtil is that it has a modified version of the
213   event handling function. It is named WHandleEvents() and will handle all
214   input/idle/timer events the app has.
215   If your app has a permanent input handler (as for example a socket a server
216   is listening on), then the main loop of the app can be:
217         while(1) {
218             WHandleEvents();
219         }
220   but if there is no permanent input handler, you need to add some delay to
221   avoid a too high cpu load by your program:
222         while(1) {
223             WHandleEvents();
224             wusleep(5000);
225         }
226   A permanent input handler is one that is established when the program starts
227   and is present until the program exits.
228   One that is deleted and later reinstalled, is not considered permanent.
229   This difference is because if there is some input handler, the function will
230   block until some event appears, while if there is no input handler the
231   function will return almost immediately (after handling the timer/idle
232   stuff).
234   Except the stuff declared in WUtil.h, the following functions declared in
235   WINGs.h are also present in libWUtil (you will need to #include <WINGs.h>
236   if you use one of these):
237         WMInitializeApplication(char *applicationName, int *argc, char **argv);
238         WMSetResourcePath(char *path);
239         WMGetApplicationName();
240         WMPathForResourceOfType(char *resource, char *ext);
241         WMAddTimerHandler(int milliseconds, WMCallback *callback, void *cdata);
242         WMDeleteTimerWithClientData(void *cdata);
243         WMDeleteTimerHandler(WMHandlerID handlerID);
244         WMAddIdleHandler(WMCallback *callback, void *cdata);
245         WMDeleteIdleHandler(WMHandlerID handlerID);
246         WMAddInputHandler(int fd, int condition, WMInputProc *proc,
247                           void *clientData);
248         WMDeleteInputHandler(WMHandlerID handlerID);
249 - added progress indicator widget
250 - Changed WMSetWindowUPosition() and WMSetWindowUSize() to
251   WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively,
252   for better naming conventions.
255 changes since wmaker 0.53.0:
256 ............................
258 - added balloon help
259 - fixed a bug with setting initial path in browsers.
260 - added WMSetButtonImageDimsWhenDisabled()
261 - changed simple callback/notifications to delegate-like stuff. Affected
262   widgets are:
263         WMBrowser
264         - WMSetBrowserFillProc() was replaced with WMSetBrowserDelegate
265         - WMBrowserDidScrollNotification was replaced with a delegate callback
267         WMTextField (not completed yet)
268         The notifications will still work, but using the delegate is preferable
270   How to convert old code to delegate callbacks:
271         1 - create a variable (static or dynamic) of the type of the 
272             delegate for the widget type.
273         2 - Replace the notification observers with the equivalent 
274             delegate callbacks. 
275         3 - Put pointers to the callbacks in the delegate variable.
277         Take a look in wfilepanel.c to see how it is used there.
279 - changed W_ViewProcedureTable to delegates
280         This will only affect user created widgets. If you have a custom
281         widget, you will need to update the callbacks and the declaration
282         of the W_ViewProcedureTable variable to be a W_ViewDelegate,
283         which is declared in WINGsP.h  To setup the delegate, assign
284         the delegate variable to view->delegate.
286 - WMTextField
287         Removed all the didChange notifications that were sent when the text
288         was changed programmatically. Only changes made by user interaction
289         will be notified now. If you need the old behaviour, send notifications
290         manually when you change the text.
292 - added WMTabView
293 - added WMGetColorPanelColor(WMColorPanel *panel)
294 - made WMGetUDStringForKey() to only return a reference to the string, not a
295   wstrdup()'ed copy. DO NOT FREE IT ANYMORE!
296 - added MultiByteText option to userdefaults file to control use of multibyte
297   string drawing functions
298 - renamed WMCreateFont() to WMCreateFontSet()
299 - renamed WMCreateFontInDefaultEncoding() to WMCreateNormalFont()
300 - added WMCreateFont() with different semantics
303 changes since wmaker 0.52.0:
304 ............................
306 - added int WMGetBrowserMaxVisibleColumns(WMBrowser *bPtr);
309 changes since wmaker 0.51.2:
310 ............................
312 - added WMColorWellDidChangeNotification
313 - added wfindfileinarray()
314 - fixed bug in window title setting 
315         (MANOME Tomonori <manome@itlb.te.noda.sut.ac.jp>)
317 changes since wmaker 0.51.1:
318 ............................
320 - wusergnusteppath() will return a statically allocated string now.
321  DO NOT FREE IT ANYMORE!!
325 changes since wmaker 0.51.0:
326 ............................
328 - applied c++ compat header patch from Martynas Kunigelis <mkunigelis@alna.lt>
329 - added WMSetTextFieldBeveled()
330 - removed W_GC() : use WMColorGC() instead
331 - added WMCreatePixmap()
332 - changed WMSetTextFieldEnabled() to WMSetTextFieldEditable()
334 changes since wmaker 0.50.1:
335 ............................
337 - fixed various bugs
338 - added patch from Franck Wolff <frawolff@club-internet.fr>, with
339   many fixes and enhancements
340 - added notification queues, asynchronous notifications etc.
341 - added WMSetBrowserDoubleAction()
342 - fixed list double click action
344 changes since wmaker 0.50.2:
345 ............................
347 - added wsetabort() - look WUtil.h
348 - fixed bug in WMList resize
349 - added notification sending when changing textfield programatically
350 - removed WMHideWindow()
351 - fixed bug in WMCloseWindow()
352 - added textfield selection patch
353 - added color panel code
354 - added auto name completion for the file panel
355 - added function to select text range, and to set cursor position in text
356   fields programatically
358 changes since wmaker 0.20.3:
359 ............................
361 - added WMSetSliderImage(), WMSetSliderKnobThickness()
362 - added WMGetListItemHeight()
363 - added WMListDidScrollNotification
364 - added WSetColorWellBordered()
365 - added hacky color dragging in colorwell
366 - added poll() support in WMNextEvent. WARNING: the stuff needed for
367   WMAddInputHandler() is not yet implemented for the poll stuff
368 - added WMSetFilePanelAccessoryView(), WMGetFilePanelAccessoryView()
369 - added WMSetPopUpButtonEnabled()
370 - added WMGetLabelImage()
371 - autoscroll for popup button menus
372 - added WMDrawPixmap()
373 - WARNING: changed parameter list for WMListDrawProc
375 changes since wmaker 0.20.2:
376 ............................
378 - WMSetBrowserMaxVisibleColumns() - untested
382 changes since wmaker 0.20.0:
383 ............................
385 - added generic object field for WMListItem. This is for hanging generic
386   clientdata
389 changes since wmaker 0.20.0:
390 ............................
392 - changed WMGetFilePanelFile() with WMGetFilePanelFileName()
393 - made SavePanel
395 changes since wmaker 0.19.3:
396 ............................
398 - added WMCreatePanelForWindow()
399 - added extra parent parameter for filepanel, alertpanel and inputpanel
400 - WMCloseWindow()
401 - WMChangePanelOwner()
402 - added WMAddInputHandler()
403 - change range related function arguments (WMTextField) to use WMRange
405 changes since wmaker 0.19.1:
406 ............................
408 - added wstrappend()
409 - fixed bug when changing selected radio button by hand
411 changes since wmaker 0.18.1:
412 ............................
414 - removed textHeight arg from W_PaintImageAndText
415 - added WMCreateWindowWithStyle()
416 - added WMSetWindowBaseSize() and ResizeIncrements()
417 - added WMSetWindowLeve()
418 - added WMSetWindowDocumentEdited()
419 - added WMSetScrollViewLineScroll(), WMSetScrollViewPageScroll()
420 - added WMSetWindowMiniwindowTitle()
421 - added WMSetWindowMiniwindowImage()
423 changes since wmaker 0.18.0:
424 ............................
426 - added functions to get RGB components and "#rrggbb" string from WMColor.
427 - added function to create color from a name
428 - fixed bug that caused blocking until some new event arrives, even
429   when there already were events in the queue
430   (like having to move the pointer over window to force the window to be
431   painted)
433 changes since wmaker 0.17.5:
434 ............................
436 I don't remember everything, but here it goes:
438 - fixed some bugs in text field
439 - added a incomplete implementation of split view (not yet usable)
440 - added a slider
441 - changed the filepanel stuff. Each application can have only 1 file panel.
442 The same panel will be reused every time you call for it, unless you free it.
443 - changed semantics of WMCreateFont() so that it returns NULL if the requested
444   font can't be loaded
445 - removed WMAddDestroyCallback() 
446 - fixed bug in WMRemovePopUpButtonItem()
447 - added function for user specified item height in WMList
448 - added WMSetPopUpButtonText(). It will set the default text in the button
449   when no options are selected
450 - fixed bug in remove/add item in already mapped popupbuttons. Note: it is
451   not good practice to change the contents of a popup button when it's
452   already visible and the user has probably interacted with it.
453 - fixed behaviour of "radio buttons"
454 - WMInitializeApplication() must be the first function to be called in the
455   program
456 - removed applicationName, argc and argv arguments from the WMCreateScree...
457   functions
458 - WMReleaseColor(scr,color) changed to WMReleaseColor(color)
459 - WMPaintColorRectangle() changed to WMPaintColorSwatch()
460 - added various functions in font and color handling
461 - added WMSetButtonFont()
462 - changed WMCreateCommandButton() so that the buttons it creates will change
463         their label when pushed
464 - added WMGetSystemPixmap(WMScreen *scr, int image)
465 - added partial I18N support
466 - added libPropList requirement and some related utility functions
467 - added a interface to prooplist, so that it works as a user defaults db
468 - added WMWidthOfString() (removed WMFontWidthOfString())
469 - added WMDrawString()
470 - added WMSetTextFieldSecure(WMTextField *tPtr, Bool flag)
471 - WMGetListItem() will dup the returned string
472 - removed need for ProgName being defined
473 - rewrote hashtable stuff and made it available for outside use
474 - added notification functions, with view resize notification
475 - added WMSetWindowMinSize() and MaxSize()
476 - text editing notification
477 - added WMSetListPosition() etc.
478 - added WMInsertBrowserItem()
479 - the above 2 functions return WMListItem*, instead of Bool
480 - rewrote browser
481 - WMGetListItem() will return WMListItem*
482 - removed WMGetListItems() and WMSetListItems()
483 - fixed focus stuff for multi-window apps
484 - changed all WMList function names that contained index to row