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