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