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