replaced linked list with WMBag in WMList
[wmaker-crm.git] / WINGs / ChangeLog
blob52208c78d6aa8576d21b6b2c3d6010af44af7a7c
1 changes since wmaker 0.61.0:
2 ............................
4 - added WMGetTextFieldFont()
5 - escape key in panels (craig nellist <crn@ozemail.com.au>)
6 - applied patch with fixes and enhancements to textfield 
7         (Franck Wolff <wolff@cybercable.fr>)
8 - changed WMList to use WMBag internally, instead of a linked list
9 - replaced WMAddSortedListItem() with WMSortListItems()
10 - replaced WMAddSortedBrowserItem() with WMSortBrowserColumn()
11 - added WMGetListItems()
13 changes since wmaker 0.60.0:
14 ............................
16 - added WMScreenWidth() and WMScreenHeight() functions.
17 - fixed some problems when compiling with non gcc compilers.
18 - added WMSetTextFieldFont()
19 - added WMSetButtonImageDefault() (craig nellist <crn@ozemail.com.au>)
20 - added WMBag (array/list)
21 - added libWUtil, a library that is a subset of libWINGs. It contains utils
22   that can be used in writing non-GUI programs. They include: hashes,
23   notifications, input/idle/timer handlers, user defaults database handling,
24   memory handling, application resource handling, etc.
25   All the non-GUI stuff from libWINGs is present.
26   Still linWINGs contain all this stuff so if you use libWINGs, you don't
27   need to link against libWUtil too.
28   One notable aspect of libWUtil is that it has a modified version of the
29   event handling function. It is named WHandleEvents() and will handle all
30   input/idle/timer events the app has.
31   If your app has a permanent input handler (as for example a socket a server
32   is listening on), then the main loop of the app can be:
33         while(1) {
34             WHandleEvents();
35         }
36   but if there is no permanent input handler, you need to add some delay to
37   avoid a too high cpu load by your program:
38         while(1) {
39             WHandleEvents();
40             wusleep(5000);
41         }
42   A permanent input handler is one that is established when the program starts
43   and is present until the program exits.
44   One that is deleted and later reinstalled, is not considered permanent.
45   This difference is because if there is some input handler, the function will
46   block until some event appears, while if there is no input handler the
47   function will return almost immediately (after handling the timer/idle
48   stuff).
50   Except the stuff declared in WUtil.h, the following functions declared in
51   WINGs.h are also present in libWUtil (you will need to #include <WINGs.h>
52   if you use one of these):
53         WMInitializeApplication(char *applicationName, int *argc, char **argv);
54         WMSetResourcePath(char *path);
55         WMGetApplicationName();
56         WMPathForResourceOfType(char *resource, char *ext);
57         WMAddTimerHandler(int milliseconds, WMCallback *callback, void *cdata);
58         WMDeleteTimerWithClientData(void *cdata);
59         WMDeleteTimerHandler(WMHandlerID handlerID);
60         WMAddIdleHandler(WMCallback *callback, void *cdata);
61         WMDeleteIdleHandler(WMHandlerID handlerID);
62         WMAddInputHandler(int fd, int condition, WMInputProc *proc,
63                           void *clientData);
64         WMDeleteInputHandler(WMHandlerID handlerID);
65 - added progress indicator widget
66 - Changed WMSetWindowUPosition() and WMSetWindowUSize() to
67   WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively,
68   for better naming conventions.
71 changes since wmaker 0.53.0:
72 ............................
74 - added balloon help
75 - fixed a bug with setting initial path in browsers.
76 - added WMSetButtonImageDimsWhenDisabled()
77 - changed simple callback/notifications to delegate-like stuff. Affected
78   widgets are:
79         WMBrowser
80         - WMSetBrowserFillProc() was replaced with WMSetBrowserDelegate
81         - WMBrowserDidScrollNotification was replaced with a delegate callback
83         WMTextField (not completed yet)
84         The notifications will still work, but using the delegate is preferable
86   How to convert old code to delegate callbacks:
87         1 - create a variable (static or dynamic) of the type of the 
88             delegate for the widget type.
89         2 - Replace the notification observers with the equivalent 
90             delegate callbacks. 
91         3 - Put pointers to the callbacks in the delegate variable.
93         Take a look in wfilepanel.c to see how it is used there.
95 - changed W_ViewProcedureTable to delegates
96         This will only affect user created widgets. If you have a custom
97         widget, you will need to update the callbacks and the declaration
98         of the W_ViewProcedureTable variable to be a W_ViewDelegate,
99         which is declared in WINGsP.h  To setup the delegate, assign
100         the delegate variable to view->delegate.
102 - WMTextField
103         Removed all the didChange notifications that were sent when the text
104         was changed programmatically. Only changes made by user interaction
105         will be notified now. If you need the old behaviour, send notifications
106         manually when you change the text.
108 - added WMTabView
109 - added WMGetColorPanelColor(WMColorPanel *panel)
110 - made WMGetUDStringForKey() to only return a reference to the string, not a
111   wstrdup()'ed copy. DO NOT FREE IT ANYMORE!
112 - added MultiByteText option to userdefaults file to control use of multibyte
113   string drawing functions
114 - renamed WMCreateFont() to WMCreateFontSet()
115 - renamed WMCreateFontInDefaultEncoding() to WMCreateNormalFont()
116 - added WMCreateFont() with different semantics
119 changes since wmaker 0.52.0:
120 ............................
122 - added int WMGetBrowserMaxVisibleColumns(WMBrowser *bPtr);
125 changes since wmaker 0.51.2:
126 ............................
128 - added WMColorWellDidChangeNotification
129 - added wfindfileinarray()
130 - fixed bug in window title setting 
131         (MANOME Tomonori <manome@itlb.te.noda.sut.ac.jp>)
133 changes since wmaker 0.51.1:
134 ............................
136 - wusergnusteppath() will return a statically allocated string now.
137  DO NOT FREE IT ANYMORE!!
141 changes since wmaker 0.51.0:
142 ............................
144 - applied c++ compat header patch from Martynas Kunigelis <mkunigelis@alna.lt>
145 - added WMSetTextFieldBeveled()
146 - removed W_GC() : use WMColorGC() instead
147 - added WMCreatePixmap()
148 - changed WMSetTextFieldEnabled() to WMSetTextFieldEditable()
150 changes since wmaker 0.50.1:
151 ............................
153 - fixed various bugs
154 - added patch from Franck Wolff <frawolff@club-internet.fr>, with
155   many fixes and enhancements
156 - added notification queues, asynchronous notifications etc.
157 - added WMSetBrowserDoubleAction()
158 - fixed list double click action
160 changes since wmaker 0.50.2:
161 ............................
163 - added wsetabort() - look WUtil.h
164 - fixed bug in WMList resize
165 - added notification sending when changing textfield programatically
166 - removed WMHideWindow()
167 - fixed bug in WMCloseWindow()
168 - added textfield selection patch
169 - added color panel code
170 - added auto name completion for the file panel
171 - added function to select text range, and to set cursor position in text
172   fields programatically
174 changes since wmaker 0.20.3:
175 ............................
177 - added WMSetSliderImage(), WMSetSliderKnobThickness()
178 - added WMGetListItemHeight()
179 - added WMListDidScrollNotification
180 - added WSetColorWellBordered()
181 - added hacky color dragging in colorwell
182 - added poll() support in WMNextEvent. WARNING: the stuff needed for
183   WMAddInputHandler() is not yet implemented for the poll stuff
184 - added WMSetFilePanelAccessoryView(), WMGetFilePanelAccessoryView()
185 - added WMSetPopUpButtonEnabled()
186 - added WMGetLabelImage()
187 - autoscroll for popup button menus
188 - added WMDrawPixmap()
189 - WARNING: changed parameter list for WMListDrawProc
191 changes since wmaker 0.20.2:
192 ............................
194 - WMSetBrowserMaxVisibleColumns() - untested
198 changes since wmaker 0.20.0:
199 ............................
201 - added generic object field for WMListItem. This is for hanging generic
202   clientdata
205 changes since wmaker 0.20.0:
206 ............................
208 - changed WMGetFilePanelFile() with WMGetFilePanelFileName()
209 - made SavePanel
211 changes since wmaker 0.19.3:
212 ............................
214 - added WMCreatePanelForWindow()
215 - added extra parent parameter for filepanel, alertpanel and inputpanel
216 - WMCloseWindow()
217 - WMChangePanelOwner()
218 - added WMAddInputHandler()
219 - change range related function arguments (WMTextField) to use WMRange
221 changes since wmaker 0.19.1:
222 ............................
224 - added wstrappend()
225 - fixed bug when changing selected radio button by hand
227 changes since wmaker 0.18.1:
228 ............................
230 - removed textHeight arg from W_PaintImageAndText
231 - added WMCreateWindowWithStyle()
232 - added WMSetWindowBaseSize() and ResizeIncrements()
233 - added WMSetWindowLeve()
234 - added WMSetWindowDocumentEdited()
235 - added WMSetScrollViewLineScroll(), WMSetScrollViewPageScroll()
236 - added WMSetWindowMiniwindowTitle()
237 - added WMSetWindowMiniwindowImage()
239 changes since wmaker 0.18.0:
240 ............................
242 - added functions to get RGB components and "#rrggbb" string from WMColor.
243 - added function to create color from a name
244 - fixed bug that caused blocking until some new event arrives, even
245   when there already were events in the queue
246   (like having to move the pointer over window to force the window to be
247   painted)
249 changes since wmaker 0.17.5:
250 ............................
252 I don't remember everything, but here it goes:
254 - fixed some bugs in text field
255 - added a incomplete implementation of split view (not yet usable)
256 - added a slider
257 - changed the filepanel stuff. Each application can have only 1 file panel.
258 The same panel will be reused every time you call for it, unless you free it.
259 - changed semantics of WMCreateFont() so that it returns NULL if the requested
260   font can't be loaded
261 - removed WMAddDestroyCallback() 
262 - fixed bug in WMRemovePopUpButtonItem()
263 - added function for user specified item height in WMList
264 - added WMSetPopUpButtonText(). It will set the default text in the button
265   when no options are selected
266 - fixed bug in remove/add item in already mapped popupbuttons. Note: it is
267   not good practice to change the contents of a popup button when it's
268   already visible and the user has probably interacted with it.
269 - fixed behaviour of "radio buttons"
270 - WMInitializeApplication() must be the first function to be called in the
271   program
272 - removed applicationName, argc and argv arguments from the WMCreateScree...
273   functions
274 - WMReleaseColor(scr,color) changed to WMReleaseColor(color)
275 - WMPaintColorRectangle() changed to WMPaintColorSwatch()
276 - added various functions in font and color handling
277 - added WMSetButtonFont()
278 - changed WMCreateCommandButton() so that the buttons it creates will change
279         their label when pushed
280 - added WMGetSystemPixmap(WMScreen *scr, int image)
281 - added partial I18N support
282 - added libPropList requirement and some related utility functions
283 - added a interface to prooplist, so that it works as a user defaults db
284 - added WMWidthOfString() (removed WMFontWidthOfString())
285 - added WMDrawString()
286 - added WMSetTextFieldSecure(WMTextField *tPtr, Bool flag)
287 - WMGetListItem() will dup the returned string
288 - removed need for ProgName being defined
289 - rewrote hashtable stuff and made it available for outside use
290 - added notification functions, with view resize notification
291 - added WMSetWindowMinSize() and MaxSize()
292 - text editing notification
293 - added WMSetListPosition() etc.
294 - added WMInsertBrowserItem()
295 - the above 2 functions return WMListItem*, instead of Bool
296 - rewrote browser
297 - WMGetListItem() will return WMListItem*
298 - removed WMGetListItems() and WMSetListItems()
299 - fixed focus stuff for multi-window apps
300 - changed all WMList function names that contained index to row