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