updated upzzle, removed SetWindowInitialSize added SetWindowAspectRatio
[wmaker-crm.git] / WINGs / ChangeLog
blob105aeb45e771c9e96a5834e5b24d15957819ec85
1 changes since wmaker 0.62.0:
2 ............................
3 - added WM{S,G}etDataFormat()
4 - added drag and drop
5 - changed selection code
6 - added clientdata to WMFindInBag
7 - removed SetWindowInitialSize()
8 - added SetWindowAspectRatio()
10 changes since wmaker 0.61.1:
11 ............................
13 - WARNING: semantic of bags has changed!
14         An index assigned to an item will always keep that index unless
15         you insert an item before it.
17         For example:
18                 bag = WMCreateBag();
19                 WMSetInBag(bag, 10, "bla");
20         That code will put "bla" in index 10, instead of 0, as it used to be.
21 - fixed WMInsertInBag(). It ignored index, and always put the new item at end.
22 - added WMSaveUserDefaults().
23 - rewrote WMPopUpButton to use WMMenuItem
24 - added WMGetPopUpButtonMenuItem(WMPopUpButton *bPtr, int index)
25 - WMSortListItemsWithComparer(WMList *lPtr, (int)(f)(const void*, const void*))
26 - WMSortBrowserColumnWithComparer()
27 - fixed bug with sorting list items.
28 - fixed bug in handling keyboard input associated with selection and
29   notification sending.
30 - filepanel puts dirs on top of list (Wolff <wolff@cybercable.fr>)
31 - added WMReplaceInBag (Wolff <wolff@cybercable.fr>)
32 - added vertical views and multiple views in WMSplitView (Wolff <wolff@cybercable.fr>)
33 - changed values of parameter values of WMSplitViewConstrainProc()
34 - configurable default fontsize patch (Igor P. Roboul <igor@mordor.myip.org>)
35 - fixed a bug that crashed the programm when a popup button was scrolled.
36 - fixed a bug that caused incorrect drawing position of the popup indicator.
37 - fixed a bug that prevented selecting no item (-1) in a popup button.
38 - an assertion will be raised if the program tries to select a popup button
39   item that is beyond the total number of items present in the popup button.
40 - changed names of functions for SplitView to be consistent. Some contained
41   SubView while other Subview. Now all have Subview.
42 - fixed a bug in how input events were posted. Establishing 2 or more input 
43   handlers for the same file descriptor, handling different (read/write/except)
44   events, caused wrong handlers to be called.
45 - Reimplemented the input and idle handlers with WMBag to avoid a functional
46   problem with them: inability to remove handlers next to the called one, from
47   the called handler itself. Trying to do this with the old version caused the
48   program to crash.
49 - changed wrealloc behaviour to be like this: new = wrealloc(old, new_size);
50     1. if old is NULL, return wmalloc(new_size).
51     2. if new_size is 0, call wfree(old), and return NULL.
52     3. if both old is a valid pointer and new_size>0, call realloc.
53 - added wstrerror(int errnum) to return the string associated with errnum.
54 - new wsyserrorwithcode(int error, const char* fmt, ...), similar to 
55   wsyserror(), but printing the message for the specified error code.
56 - added 3 new classes: WMData, WMHost and WMConnection
57 - fixed a big memory leak in the color panel code (from Pascal Hofstee).
58 - added scrolling to tabview
60 changes since wmaker 0.61.0:
61 ............................
63 - added WMGetTextFieldFont()
64 - escape key in panels (craig nellist <crn@ozemail.com.au>)
65 - applied patch with fixes and enhancements to textfield 
66         (Franck Wolff <wolff@cybercable.fr>)
67 - changed WMList to use WMBag internally, instead of a linked list
68 - replaced WMAddSortedListItem() with WMSortListItems()
69 - replaced WMAddSortedBrowserItem() with WMSortBrowserColumn()
71 changes since wmaker 0.60.0:
72 ............................
74 - added WMScreenWidth() and WMScreenHeight() functions.
75 - fixed some problems when compiling with non gcc compilers.
76 - added WMSetTextFieldFont()
77 - added WMSetButtonImageDefault() (craig nellist <crn@ozemail.com.au>)
78 - added WMBag (array/list)
79 - added libWUtil, a library that is a subset of libWINGs. It contains utils
80   that can be used in writing non-GUI programs. They include: hashes,
81   notifications, input/idle/timer handlers, user defaults database handling,
82   memory handling, application resource handling, etc.
83   All the non-GUI stuff from libWINGs is present.
84   Still linWINGs contain all this stuff so if you use libWINGs, you don't
85   need to link against libWUtil too.
86   One notable aspect of libWUtil is that it has a modified version of the
87   event handling function. It is named WHandleEvents() and will handle all
88   input/idle/timer events the app has.
89   If your app has a permanent input handler (as for example a socket a server
90   is listening on), then the main loop of the app can be:
91         while(1) {
92             WHandleEvents();
93         }
94   but if there is no permanent input handler, you need to add some delay to
95   avoid a too high cpu load by your program:
96         while(1) {
97             WHandleEvents();
98             wusleep(5000);
99         }
100   A permanent input handler is one that is established when the program starts
101   and is present until the program exits.
102   One that is deleted and later reinstalled, is not considered permanent.
103   This difference is because if there is some input handler, the function will
104   block until some event appears, while if there is no input handler the
105   function will return almost immediately (after handling the timer/idle
106   stuff).
108   Except the stuff declared in WUtil.h, the following functions declared in
109   WINGs.h are also present in libWUtil (you will need to #include <WINGs.h>
110   if you use one of these):
111         WMInitializeApplication(char *applicationName, int *argc, char **argv);
112         WMSetResourcePath(char *path);
113         WMGetApplicationName();
114         WMPathForResourceOfType(char *resource, char *ext);
115         WMAddTimerHandler(int milliseconds, WMCallback *callback, void *cdata);
116         WMDeleteTimerWithClientData(void *cdata);
117         WMDeleteTimerHandler(WMHandlerID handlerID);
118         WMAddIdleHandler(WMCallback *callback, void *cdata);
119         WMDeleteIdleHandler(WMHandlerID handlerID);
120         WMAddInputHandler(int fd, int condition, WMInputProc *proc,
121                           void *clientData);
122         WMDeleteInputHandler(WMHandlerID handlerID);
123 - added progress indicator widget
124 - Changed WMSetWindowUPosition() and WMSetWindowUSize() to
125   WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively,
126   for better naming conventions.
129 changes since wmaker 0.53.0:
130 ............................
132 - added balloon help
133 - fixed a bug with setting initial path in browsers.
134 - added WMSetButtonImageDimsWhenDisabled()
135 - changed simple callback/notifications to delegate-like stuff. Affected
136   widgets are:
137         WMBrowser
138         - WMSetBrowserFillProc() was replaced with WMSetBrowserDelegate
139         - WMBrowserDidScrollNotification was replaced with a delegate callback
141         WMTextField (not completed yet)
142         The notifications will still work, but using the delegate is preferable
144   How to convert old code to delegate callbacks:
145         1 - create a variable (static or dynamic) of the type of the 
146             delegate for the widget type.
147         2 - Replace the notification observers with the equivalent 
148             delegate callbacks. 
149         3 - Put pointers to the callbacks in the delegate variable.
151         Take a look in wfilepanel.c to see how it is used there.
153 - changed W_ViewProcedureTable to delegates
154         This will only affect user created widgets. If you have a custom
155         widget, you will need to update the callbacks and the declaration
156         of the W_ViewProcedureTable variable to be a W_ViewDelegate,
157         which is declared in WINGsP.h  To setup the delegate, assign
158         the delegate variable to view->delegate.
160 - WMTextField
161         Removed all the didChange notifications that were sent when the text
162         was changed programmatically. Only changes made by user interaction
163         will be notified now. If you need the old behaviour, send notifications
164         manually when you change the text.
166 - added WMTabView
167 - added WMGetColorPanelColor(WMColorPanel *panel)
168 - made WMGetUDStringForKey() to only return a reference to the string, not a
169   wstrdup()'ed copy. DO NOT FREE IT ANYMORE!
170 - added MultiByteText option to userdefaults file to control use of multibyte
171   string drawing functions
172 - renamed WMCreateFont() to WMCreateFontSet()
173 - renamed WMCreateFontInDefaultEncoding() to WMCreateNormalFont()
174 - added WMCreateFont() with different semantics
177 changes since wmaker 0.52.0:
178 ............................
180 - added int WMGetBrowserMaxVisibleColumns(WMBrowser *bPtr);
183 changes since wmaker 0.51.2:
184 ............................
186 - added WMColorWellDidChangeNotification
187 - added wfindfileinarray()
188 - fixed bug in window title setting 
189         (MANOME Tomonori <manome@itlb.te.noda.sut.ac.jp>)
191 changes since wmaker 0.51.1:
192 ............................
194 - wusergnusteppath() will return a statically allocated string now.
195  DO NOT FREE IT ANYMORE!!
199 changes since wmaker 0.51.0:
200 ............................
202 - applied c++ compat header patch from Martynas Kunigelis <mkunigelis@alna.lt>
203 - added WMSetTextFieldBeveled()
204 - removed W_GC() : use WMColorGC() instead
205 - added WMCreatePixmap()
206 - changed WMSetTextFieldEnabled() to WMSetTextFieldEditable()
208 changes since wmaker 0.50.1:
209 ............................
211 - fixed various bugs
212 - added patch from Franck Wolff <frawolff@club-internet.fr>, with
213   many fixes and enhancements
214 - added notification queues, asynchronous notifications etc.
215 - added WMSetBrowserDoubleAction()
216 - fixed list double click action
218 changes since wmaker 0.50.2:
219 ............................
221 - added wsetabort() - look WUtil.h
222 - fixed bug in WMList resize
223 - added notification sending when changing textfield programatically
224 - removed WMHideWindow()
225 - fixed bug in WMCloseWindow()
226 - added textfield selection patch
227 - added color panel code
228 - added auto name completion for the file panel
229 - added function to select text range, and to set cursor position in text
230   fields programatically
232 changes since wmaker 0.20.3:
233 ............................
235 - added WMSetSliderImage(), WMSetSliderKnobThickness()
236 - added WMGetListItemHeight()
237 - added WMListDidScrollNotification
238 - added WSetColorWellBordered()
239 - added hacky color dragging in colorwell
240 - added poll() support in WMNextEvent. WARNING: the stuff needed for
241   WMAddInputHandler() is not yet implemented for the poll stuff
242 - added WMSetFilePanelAccessoryView(), WMGetFilePanelAccessoryView()
243 - added WMSetPopUpButtonEnabled()
244 - added WMGetLabelImage()
245 - autoscroll for popup button menus
246 - added WMDrawPixmap()
247 - WARNING: changed parameter list for WMListDrawProc
249 changes since wmaker 0.20.2:
250 ............................
252 - WMSetBrowserMaxVisibleColumns() - untested
256 changes since wmaker 0.20.0:
257 ............................
259 - added generic object field for WMListItem. This is for hanging generic
260   clientdata
263 changes since wmaker 0.20.0:
264 ............................
266 - changed WMGetFilePanelFile() with WMGetFilePanelFileName()
267 - made SavePanel
269 changes since wmaker 0.19.3:
270 ............................
272 - added WMCreatePanelForWindow()
273 - added extra parent parameter for filepanel, alertpanel and inputpanel
274 - WMCloseWindow()
275 - WMChangePanelOwner()
276 - added WMAddInputHandler()
277 - change range related function arguments (WMTextField) to use WMRange
279 changes since wmaker 0.19.1:
280 ............................
282 - added wstrappend()
283 - fixed bug when changing selected radio button by hand
285 changes since wmaker 0.18.1:
286 ............................
288 - removed textHeight arg from W_PaintImageAndText
289 - added WMCreateWindowWithStyle()
290 - added WMSetWindowBaseSize() and ResizeIncrements()
291 - added WMSetWindowLeve()
292 - added WMSetWindowDocumentEdited()
293 - added WMSetScrollViewLineScroll(), WMSetScrollViewPageScroll()
294 - added WMSetWindowMiniwindowTitle()
295 - added WMSetWindowMiniwindowImage()
297 changes since wmaker 0.18.0:
298 ............................
300 - added functions to get RGB components and "#rrggbb" string from WMColor.
301 - added function to create color from a name
302 - fixed bug that caused blocking until some new event arrives, even
303   when there already were events in the queue
304   (like having to move the pointer over window to force the window to be
305   painted)
307 changes since wmaker 0.17.5:
308 ............................
310 I don't remember everything, but here it goes:
312 - fixed some bugs in text field
313 - added a incomplete implementation of split view (not yet usable)
314 - added a slider
315 - changed the filepanel stuff. Each application can have only 1 file panel.
316 The same panel will be reused every time you call for it, unless you free it.
317 - changed semantics of WMCreateFont() so that it returns NULL if the requested
318   font can't be loaded
319 - removed WMAddDestroyCallback() 
320 - fixed bug in WMRemovePopUpButtonItem()
321 - added function for user specified item height in WMList
322 - added WMSetPopUpButtonText(). It will set the default text in the button
323   when no options are selected
324 - fixed bug in remove/add item in already mapped popupbuttons. Note: it is
325   not good practice to change the contents of a popup button when it's
326   already visible and the user has probably interacted with it.
327 - fixed behaviour of "radio buttons"
328 - WMInitializeApplication() must be the first function to be called in the
329   program
330 - removed applicationName, argc and argv arguments from the WMCreateScree...
331   functions
332 - WMReleaseColor(scr,color) changed to WMReleaseColor(color)
333 - WMPaintColorRectangle() changed to WMPaintColorSwatch()
334 - added various functions in font and color handling
335 - added WMSetButtonFont()
336 - changed WMCreateCommandButton() so that the buttons it creates will change
337         their label when pushed
338 - added WMGetSystemPixmap(WMScreen *scr, int image)
339 - added partial I18N support
340 - added libPropList requirement and some related utility functions
341 - added a interface to prooplist, so that it works as a user defaults db
342 - added WMWidthOfString() (removed WMFontWidthOfString())
343 - added WMDrawString()
344 - added WMSetTextFieldSecure(WMTextField *tPtr, Bool flag)
345 - WMGetListItem() will dup the returned string
346 - removed need for ProgName being defined
347 - rewrote hashtable stuff and made it available for outside use
348 - added notification functions, with view resize notification
349 - added WMSetWindowMinSize() and MaxSize()
350 - text editing notification
351 - added WMSetListPosition() etc.
352 - added WMInsertBrowserItem()
353 - the above 2 functions return WMListItem*, instead of Bool
354 - rewrote browser
355 - WMGetListItem() will return WMListItem*
356 - removed WMGetListItems() and WMSetListItems()
357 - fixed focus stuff for multi-window apps
358 - changed all WMList function names that contained index to row