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