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