Code to allow multiple selection in WMBrowser
[wmaker-crm.git] / WINGs / ChangeLog
blobdaaccfb460038fa1d7f2d567582a9c6088aec10a
1 changes since wmaker 0.62.1:
2 ............................
3 - added WRuler widget
4 - added WText widget (rtf multiline text widget) 
5         Nwanua Elumeze <nwanua@colorado.edu>
6 - added a new AUTO option for the UseMultiByte option
7 - added WMRaiseWidget()/WMLowerWidget()
8 - added missing EscapeTextMovement to textfield delegate/notification
9 - added WMGetLabelText()
10 - added WMReparentWidget()
11 - added WMCreateTabViewItem()
12 - added W_CreateUnmanagedTopView()
13 - added wtokenjoin(), wtokensplit(), wtokenfree(), wtrimspace()
14 - added WMWidgetIsMapped()
15 - added WMSetApplicationIconWindow()
16 - restructured the directory tree. Added Documentation, Examples and Tests
17   subdirectories
18 - removed WMArrayBag and reorganized WMTreeBag to be WMBag.
19 - added WMArray class.
20 - added WMSetWindowUserPosition().
21 - added WMGetListSelectedItems()
22 - added WMSetListAllowMultipleSelection(), WMListAllowsMultipleSelection().
23 - added WMSetListAllowEmptySelection(), WMListAllowsEmptySelection().
24 - WMListSelectionDidChangeNotification passes NULL as the notification 
25   client data (previously passed the selected item row).
26 - added WMUnselectListItem(), WMSelectAllListItems(), WMUnselectAllListItems()
27 - better behavior of wheel mices in WMList. Simple mouse wheel events
28   will scroll by 1/3 of the WMList height. Using Shift as a modifier will
29   scroll line by line, while using Control as a modifier will scroll page
30   by page.
31 - better behavior of WMScroller regarding mouse wheel events. 'Shift' modifier
32   will scroll line by line, while 'Control' modifier will scroll page by page.
33 - fixed some buffer overflow allowing bugs.
34 - added WSDecrementWheel and WSIncrementWheel for handling mouse wheel in
35   scrollers and scrolled widgets. This should be treated like the WSxxxPage
36   counterparts, except it should scroll by page_size/3 instead of one full page
37 - added WMSetBrowserAllowMultipleSelection(), WMSetBrowserAllowEmptySelection()
38   WMBrowserAllowsMultipleSelection() and WMBrowserAllowsEmptySelection()
39 - WMBrowser now allows multiple selections.
40 - Added WMGetBrowserPaths() to retrieve the paths for browsers that allow
41   multiple selections.
44 changes since wmaker 0.62.0:
45 ............................
46 - added WMSetWidgetDefaultFont(), WMSetWidgetDefaultBoldFont()
50 changes since wmaker 0.62.0:
51 ............................
52 - added WM{S,G}etDataFormat()
53 - added drag and drop
54 - changed selection code
55 - added clientdata to WMFindInBag
56 - removed SetWindowInitialSize()
57 - added SetWindowAspectRatio()
58 - added initial timeout when establishing a connection.
59 - added WMSetConnectionDefaultTimeout() and WMSetConnectionOpenTimeout();
60 - added WMGetConnectionTimeoutState()
62 changes since wmaker 0.61.1:
63 ............................
65 - WARNING: semantic of bags has changed!
66         An index assigned to an item will always keep that index unless
67         you insert an item before it.
69         For example:
70                 bag = WMCreateBag();
71                 WMSetInBag(bag, 10, "bla");
72         That code will put "bla" in index 10, instead of 0, as it used to be.
73 - fixed WMInsertInBag(). It ignored index, and always put the new item at end.
74 - added WMSaveUserDefaults().
75 - rewrote WMPopUpButton to use WMMenuItem
76 - added WMGetPopUpButtonMenuItem(WMPopUpButton *bPtr, int index)
77 - WMSortListItemsWithComparer(WMList *lPtr, (int)(f)(const void*, const void*))
78 - WMSortBrowserColumnWithComparer()
79 - fixed bug with sorting list items.
80 - fixed bug in handling keyboard input associated with selection and
81   notification sending.
82 - filepanel puts dirs on top of list (Wolff <wolff@cybercable.fr>)
83 - added WMReplaceInBag (Wolff <wolff@cybercable.fr>)
84 - added vertical views and multiple views in WMSplitView (Wolff <wolff@cybercable.fr>)
85 - changed values of parameter values of WMSplitViewConstrainProc()
86 - configurable default fontsize patch (Igor P. Roboul <igor@mordor.myip.org>)
87 - fixed a bug that crashed the programm when a popup button was scrolled.
88 - fixed a bug that caused incorrect drawing position of the popup indicator.
89 - fixed a bug that prevented selecting no item (-1) in a popup button.
90 - an assertion will be raised if the program tries to select a popup button
91   item that is beyond the total number of items present in the popup button.
92 - changed names of functions for SplitView to be consistent. Some contained
93   SubView while other Subview. Now all have Subview.
94 - fixed a bug in how input events were posted. Establishing 2 or more input 
95   handlers for the same file descriptor, handling different (read/write/except)
96   events, caused wrong handlers to be called.
97 - Reimplemented the input and idle handlers with WMBag to avoid a functional
98   problem with them: inability to remove handlers next to the called one, from
99   the called handler itself. Trying to do this with the old version caused the
100   program to crash.
101 - changed wrealloc behaviour to be like this: new = wrealloc(old, new_size);
102     1. if old is NULL, return wmalloc(new_size).
103     2. if new_size is 0, call wfree(old), and return NULL.
104     3. if both old is a valid pointer and new_size>0, call realloc.
105 - added wstrerror(int errnum) to return the string associated with errnum.
106 - new wsyserrorwithcode(int error, const char* fmt, ...), similar to 
107   wsyserror(), but printing the message for the specified error code.
108 - added 3 new classes: WMData, WMHost and WMConnection
109 - fixed a big memory leak in the color panel code (from Pascal Hofstee).
110 - added scrolling to tabview
112 changes since wmaker 0.61.0:
113 ............................
115 - added WMGetTextFieldFont()
116 - escape key in panels (craig nellist <crn@ozemail.com.au>)
117 - applied patch with fixes and enhancements to textfield 
118         (Franck Wolff <wolff@cybercable.fr>)
119 - changed WMList to use WMBag internally, instead of a linked list
120 - replaced WMAddSortedListItem() with WMSortListItems()
121 - replaced WMAddSortedBrowserItem() with WMSortBrowserColumn()
123 changes since wmaker 0.60.0:
124 ............................
126 - added WMScreenWidth() and WMScreenHeight() functions.
127 - fixed some problems when compiling with non gcc compilers.
128 - added WMSetTextFieldFont()
129 - added WMSetButtonImageDefault() (craig nellist <crn@ozemail.com.au>)
130 - added WMBag (array/list)
131 - added libWUtil, a library that is a subset of libWINGs. It contains utils
132   that can be used in writing non-GUI programs. They include: hashes,
133   notifications, input/idle/timer handlers, user defaults database handling,
134   memory handling, application resource handling, etc.
135   All the non-GUI stuff from libWINGs is present.
136   Still linWINGs contain all this stuff so if you use libWINGs, you don't
137   need to link against libWUtil too.
138   One notable aspect of libWUtil is that it has a modified version of the
139   event handling function. It is named WHandleEvents() and will handle all
140   input/idle/timer events the app has.
141   If your app has a permanent input handler (as for example a socket a server
142   is listening on), then the main loop of the app can be:
143         while(1) {
144             WHandleEvents();
145         }
146   but if there is no permanent input handler, you need to add some delay to
147   avoid a too high cpu load by your program:
148         while(1) {
149             WHandleEvents();
150             wusleep(5000);
151         }
152   A permanent input handler is one that is established when the program starts
153   and is present until the program exits.
154   One that is deleted and later reinstalled, is not considered permanent.
155   This difference is because if there is some input handler, the function will
156   block until some event appears, while if there is no input handler the
157   function will return almost immediately (after handling the timer/idle
158   stuff).
160   Except the stuff declared in WUtil.h, the following functions declared in
161   WINGs.h are also present in libWUtil (you will need to #include <WINGs.h>
162   if you use one of these):
163         WMInitializeApplication(char *applicationName, int *argc, char **argv);
164         WMSetResourcePath(char *path);
165         WMGetApplicationName();
166         WMPathForResourceOfType(char *resource, char *ext);
167         WMAddTimerHandler(int milliseconds, WMCallback *callback, void *cdata);
168         WMDeleteTimerWithClientData(void *cdata);
169         WMDeleteTimerHandler(WMHandlerID handlerID);
170         WMAddIdleHandler(WMCallback *callback, void *cdata);
171         WMDeleteIdleHandler(WMHandlerID handlerID);
172         WMAddInputHandler(int fd, int condition, WMInputProc *proc,
173                           void *clientData);
174         WMDeleteInputHandler(WMHandlerID handlerID);
175 - added progress indicator widget
176 - Changed WMSetWindowUPosition() and WMSetWindowUSize() to
177   WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively,
178   for better naming conventions.
181 changes since wmaker 0.53.0:
182 ............................
184 - added balloon help
185 - fixed a bug with setting initial path in browsers.
186 - added WMSetButtonImageDimsWhenDisabled()
187 - changed simple callback/notifications to delegate-like stuff. Affected
188   widgets are:
189         WMBrowser
190         - WMSetBrowserFillProc() was replaced with WMSetBrowserDelegate
191         - WMBrowserDidScrollNotification was replaced with a delegate callback
193         WMTextField (not completed yet)
194         The notifications will still work, but using the delegate is preferable
196   How to convert old code to delegate callbacks:
197         1 - create a variable (static or dynamic) of the type of the 
198             delegate for the widget type.
199         2 - Replace the notification observers with the equivalent 
200             delegate callbacks. 
201         3 - Put pointers to the callbacks in the delegate variable.
203         Take a look in wfilepanel.c to see how it is used there.
205 - changed W_ViewProcedureTable to delegates
206         This will only affect user created widgets. If you have a custom
207         widget, you will need to update the callbacks and the declaration
208         of the W_ViewProcedureTable variable to be a W_ViewDelegate,
209         which is declared in WINGsP.h  To setup the delegate, assign
210         the delegate variable to view->delegate.
212 - WMTextField
213         Removed all the didChange notifications that were sent when the text
214         was changed programmatically. Only changes made by user interaction
215         will be notified now. If you need the old behaviour, send notifications
216         manually when you change the text.
218 - added WMTabView
219 - added WMGetColorPanelColor(WMColorPanel *panel)
220 - made WMGetUDStringForKey() to only return a reference to the string, not a
221   wstrdup()'ed copy. DO NOT FREE IT ANYMORE!
222 - added MultiByteText option to userdefaults file to control use of multibyte
223   string drawing functions
224 - renamed WMCreateFont() to WMCreateFontSet()
225 - renamed WMCreateFontInDefaultEncoding() to WMCreateNormalFont()
226 - added WMCreateFont() with different semantics
229 changes since wmaker 0.52.0:
230 ............................
232 - added int WMGetBrowserMaxVisibleColumns(WMBrowser *bPtr);
235 changes since wmaker 0.51.2:
236 ............................
238 - added WMColorWellDidChangeNotification
239 - added wfindfileinarray()
240 - fixed bug in window title setting 
241         (MANOME Tomonori <manome@itlb.te.noda.sut.ac.jp>)
243 changes since wmaker 0.51.1:
244 ............................
246 - wusergnusteppath() will return a statically allocated string now.
247  DO NOT FREE IT ANYMORE!!
251 changes since wmaker 0.51.0:
252 ............................
254 - applied c++ compat header patch from Martynas Kunigelis <mkunigelis@alna.lt>
255 - added WMSetTextFieldBeveled()
256 - removed W_GC() : use WMColorGC() instead
257 - added WMCreatePixmap()
258 - changed WMSetTextFieldEnabled() to WMSetTextFieldEditable()
260 changes since wmaker 0.50.1:
261 ............................
263 - fixed various bugs
264 - added patch from Franck Wolff <frawolff@club-internet.fr>, with
265   many fixes and enhancements
266 - added notification queues, asynchronous notifications etc.
267 - added WMSetBrowserDoubleAction()
268 - fixed list double click action
270 changes since wmaker 0.50.2:
271 ............................
273 - added wsetabort() - look WUtil.h
274 - fixed bug in WMList resize
275 - added notification sending when changing textfield programatically
276 - removed WMHideWindow()
277 - fixed bug in WMCloseWindow()
278 - added textfield selection patch
279 - added color panel code
280 - added auto name completion for the file panel
281 - added function to select text range, and to set cursor position in text
282   fields programatically
284 changes since wmaker 0.20.3:
285 ............................
287 - added WMSetSliderImage(), WMSetSliderKnobThickness()
288 - added WMGetListItemHeight()
289 - added WMListDidScrollNotification
290 - added WSetColorWellBordered()
291 - added hacky color dragging in colorwell
292 - added poll() support in WMNextEvent. WARNING: the stuff needed for
293   WMAddInputHandler() is not yet implemented for the poll stuff
294 - added WMSetFilePanelAccessoryView(), WMGetFilePanelAccessoryView()
295 - added WMSetPopUpButtonEnabled()
296 - added WMGetLabelImage()
297 - autoscroll for popup button menus
298 - added WMDrawPixmap()
299 - WARNING: changed parameter list for WMListDrawProc
301 changes since wmaker 0.20.2:
302 ............................
304 - WMSetBrowserMaxVisibleColumns() - untested
308 changes since wmaker 0.20.0:
309 ............................
311 - added generic object field for WMListItem. This is for hanging generic
312   clientdata
315 changes since wmaker 0.20.0:
316 ............................
318 - changed WMGetFilePanelFile() with WMGetFilePanelFileName()
319 - made SavePanel
321 changes since wmaker 0.19.3:
322 ............................
324 - added WMCreatePanelForWindow()
325 - added extra parent parameter for filepanel, alertpanel and inputpanel
326 - WMCloseWindow()
327 - WMChangePanelOwner()
328 - added WMAddInputHandler()
329 - change range related function arguments (WMTextField) to use WMRange
331 changes since wmaker 0.19.1:
332 ............................
334 - added wstrappend()
335 - fixed bug when changing selected radio button by hand
337 changes since wmaker 0.18.1:
338 ............................
340 - removed textHeight arg from W_PaintImageAndText
341 - added WMCreateWindowWithStyle()
342 - added WMSetWindowBaseSize() and ResizeIncrements()
343 - added WMSetWindowLeve()
344 - added WMSetWindowDocumentEdited()
345 - added WMSetScrollViewLineScroll(), WMSetScrollViewPageScroll()
346 - added WMSetWindowMiniwindowTitle()
347 - added WMSetWindowMiniwindowImage()
349 changes since wmaker 0.18.0:
350 ............................
352 - added functions to get RGB components and "#rrggbb" string from WMColor.
353 - added function to create color from a name
354 - fixed bug that caused blocking until some new event arrives, even
355   when there already were events in the queue
356   (like having to move the pointer over window to force the window to be
357   painted)
359 changes since wmaker 0.17.5:
360 ............................
362 I don't remember everything, but here it goes:
364 - fixed some bugs in text field
365 - added a incomplete implementation of split view (not yet usable)
366 - added a slider
367 - changed the filepanel stuff. Each application can have only 1 file panel.
368 The same panel will be reused every time you call for it, unless you free it.
369 - changed semantics of WMCreateFont() so that it returns NULL if the requested
370   font can't be loaded
371 - removed WMAddDestroyCallback() 
372 - fixed bug in WMRemovePopUpButtonItem()
373 - added function for user specified item height in WMList
374 - added WMSetPopUpButtonText(). It will set the default text in the button
375   when no options are selected
376 - fixed bug in remove/add item in already mapped popupbuttons. Note: it is
377   not good practice to change the contents of a popup button when it's
378   already visible and the user has probably interacted with it.
379 - fixed behaviour of "radio buttons"
380 - WMInitializeApplication() must be the first function to be called in the
381   program
382 - removed applicationName, argc and argv arguments from the WMCreateScree...
383   functions
384 - WMReleaseColor(scr,color) changed to WMReleaseColor(color)
385 - WMPaintColorRectangle() changed to WMPaintColorSwatch()
386 - added various functions in font and color handling
387 - added WMSetButtonFont()
388 - changed WMCreateCommandButton() so that the buttons it creates will change
389         their label when pushed
390 - added WMGetSystemPixmap(WMScreen *scr, int image)
391 - added partial I18N support
392 - added libPropList requirement and some related utility functions
393 - added a interface to prooplist, so that it works as a user defaults db
394 - added WMWidthOfString() (removed WMFontWidthOfString())
395 - added WMDrawString()
396 - added WMSetTextFieldSecure(WMTextField *tPtr, Bool flag)
397 - WMGetListItem() will dup the returned string
398 - removed need for ProgName being defined
399 - rewrote hashtable stuff and made it available for outside use
400 - added notification functions, with view resize notification
401 - added WMSetWindowMinSize() and MaxSize()
402 - text editing notification
403 - added WMSetListPosition() etc.
404 - added WMInsertBrowserItem()
405 - the above 2 functions return WMListItem*, instead of Bool
406 - rewrote browser
407 - WMGetListItem() will return WMListItem*
408 - removed WMGetListItems() and WMSetListItems()
409 - fixed focus stuff for multi-window apps
410 - changed all WMList function names that contained index to row