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