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