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