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