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