root/tags/dabo-0.6.2/ChangeLog

Revision 2060, 69.5 kB (checked in by paul, 3 years ago)

Changelog for dabo-0.6.2

Line 
1 See the Subversion log for all the details.
2
3 Dabo 0.6.2 (2006-03-28) (Revision 2060):
4 BugFix: Make scrollbar appear on datanav select page on init.
5 BugFix: Make Tab/Shift+Tab work as nav keys in searchable dGrids.
6
7 Dabo 0.6.1 (2006-03-27) (Revision 2051):
8 BugFix: Double select-page entries in datanav apps.
9
10 Dabo 0.6 (2006-03-27) (Revision 2043):
11 (for now, due to lack of time, I'm just echoing svn log. If someone wants to
12 summarize the changes --today!-- that would be *very much* appreciated.)
13
14 ------------------------------------------------------------------------
15 r1863 | ed | 2006-01-25 18:41:44 -0800 (Wed, 25 Jan 2006) | 4 lines
16
17 Fixed a problem when switching to the Browse page of the datanav grid without first running a query. Also, there was an error being thrown if a previous query had results, and a subsequent query had no results.
18
19 Modified the code in _setCurrentRow() of dGrid so that it wasn't calling SetGridCursor() unless the position had actually changed. I had recorded up to 10 calls to this function, all with the exact same values each time I switched to the Browse page.
20
21 ------------------------------------------------------------------------
22 r1864 | ed | 2006-01-26 09:34:20 -0800 (Thu, 26 Jan 2006) | 4 lines
23
24 Removed the code that lower-cased field names, as it was preventing the code from working with case-sensitive backends and columns containing capital letters.
25
26 Also fixed a problem where str values were not able to be properly converted to unicode.
27
28 ------------------------------------------------------------------------
29 r1866 | ed | 2006-01-26 15:11:35 -0800 (Thu, 26 Jan 2006) | 2 lines
30
31 Added a parameter to the promptForFileName() method to specify the default path for the dialog.
32
33 ------------------------------------------------------------------------
34 r1867 | ed | 2006-01-26 17:36:12 -0800 (Thu, 26 Jan 2006) | 9 lines
35
36 Added the TreeItemContextMenu event. This differs from the normal ContextMenuEvent in that it returns the itemID of the node that was right-clicked.
37
38 Added code in the event data gathering code to store the tree item ID for these events in EventData.itemID.
39
40 Changed all the names '_id' in the dTreeView.py file to the clearer 'itemID'.
41
42 Fixed an oversight in the dSizerMixin that didn't remove the Box for a dBorderSizer when the sizer was released.
43
44
45 ------------------------------------------------------------------------
46 r1872 | paul | 2006-01-27 08:01:09 -0800 (Fri, 27 Jan 2006) | 1 line
47
48 The double-Activate on Windows is really getting in the way. I haven't heard anything from my bug report yet, so I added workaround code to ignore the first Activate.
49 ------------------------------------------------------------------------
50 r1873 | ed | 2006-01-27 12:16:01 -0800 (Fri, 27 Jan 2006) | 2 lines
51
52 Cleaned up the order of releasing child objects for sizers. Also fixed problem with releasing the box for border sizers.
53
54 ------------------------------------------------------------------------
55 r1875 | ed | 2006-01-28 15:32:34 -0800 (Sat, 28 Jan 2006) | 2 lines
56
57 Added getFunctionList() method to return a list of all 'class' and 'def' statements in the current file.
58
59 ------------------------------------------------------------------------
60 r1876 | echo | 2006-01-29 12:50:27 -0800 (Sun, 29 Jan 2006) | 3 lines
61
62 First pass at integrating the dTable class into the dabo.db framework. Right now, if this works at all, it only works for SQLite.
63
64
65 ------------------------------------------------------------------------
66 r1877 | ed | 2006-01-29 19:45:26 -0800 (Sun, 29 Jan 2006) | 2 lines
67
68 Fixed a bug wherein multiply-nested sizers might not release all of their content when release(True) is called.
69
70 ------------------------------------------------------------------------
71 r1878 | ed | 2006-01-29 20:37:07 -0800 (Sun, 29 Jan 2006) | 2 lines
72
73 Added a 'setInactive()' method that will hide the auto-complete popup if one is visible.
74
75 ------------------------------------------------------------------------
76 r1882 | paul | 2006-01-31 09:28:37 -0800 (Tue, 31 Jan 2006) | 1 line
77
78 Disabled the fillGrid()'s setting of focus to the grid, as it causes problems with stealing focus away from another active form, at least on Windows. Also, it seems that such code really doesn't belong inside the function to build the grid, but perhaps we'll find it belongs somewhere else.
79 ------------------------------------------------------------------------
80 r1883 | paul | 2006-01-31 11:58:23 -0800 (Tue, 31 Jan 2006) | 1 line
81
82 The xml header wasn't being converted to native line endings. Fixed.
83 ------------------------------------------------------------------------
84 r1884 | paul | 2006-01-31 16:09:18 -0800 (Tue, 31 Jan 2006) | 1 line
85
86 No need to explicitly do the unicode conversion in the report fields, as that is done in the report writer.
87 ------------------------------------------------------------------------
88 r1885 | ed | 2006-01-31 16:25:28 -0800 (Tue, 31 Jan 2006) | 12 lines
89
90 Added a Refresh event. This is raised when dForm.refresh() is called. All dPemMixin classes will receive it, and fire their refresh() hook method.
91
92 Added dynamic properties. Every property can be made dynamic by prefixing it with 'Dynamic'. Dynamic props are set to any callable function; when the object receives a Refresh event, the function's return value is used to set the value of the underlying property.
93
94 [NOTE: The previous paragraph no longer applies.]
95
96 Example: given a label and a function 'currTime()' in a form that returns the current time, issuing the following:
97
98     label.DynamicCaption = label.Form.currTime
99    
100 will result in the label's Caption property being updated every time label.Form.refresh() is called with the value of the current time.
101
102 Also added two methods to dabo.ui for converting image data back to bitmaps and images. These were necessary because I noticed that when Editor.py was called from locations other than its own directory, the image file for the function button was not found. The solution was to convert the .png file to a data stream using wx.tools.img2py.py, and store that in Editor.py.
103
104 ------------------------------------------------------------------------
105 r1889 | paul | 2006-02-01 16:23:51 -0800 (Wed, 01 Feb 2006) | 13 lines
106
107 This commit lets you set dApp.UI=None, and setup() won't try to load a UI.
108 You have to do it explicitly, though, such as:
109
110 app = dabo.dApp()
111 app.UI = None
112 app.setup()
113
114 --or--
115
116 app = dabo.dApp(UI=None)
117 app.setup()
118
119
120 ------------------------------------------------------------------------
121 r1890 | ed | 2006-02-02 05:13:52 -0800 (Thu, 02 Feb 2006) | 10 lines
122
123 Major revamping of the whole refresh/update/dynamic design.
124
125 First, refresh() simply repaints the object and anything contained in it. It simply calls the wx.Refresh() method.
126
127 There is now a method named 'update()' which will update any dynamic aspects of a control, such as its Dynamic* properties, or its data bindings, if any. If the object is a form, calling update triggers a ValueUpdate event that all data-aware controls will receive. All objects with children will raise an Update event in order to propagate the update message. You can call update() on a specific object, and only that object and its children will be updated.
128
129 This clarifies the language we use: 'refresh' refers only to having the object repainted on the screen, while 'update' can change aspects of the object, such as its value or other properties.
130
131 Updated all the classes that referred to these events and methods by their old names.
132
133 ------------------------------------------------------------------------
134 r1892 | ed | 2006-02-02 15:32:49 -0800 (Thu, 02 Feb 2006) | 3 lines
135
136 First crack at creating a double-buffered drawing surface. The new class, 'dDrawPanel', is a subclass of dPanel, but has its repainting handled through the double-buffer techniques outlined on the wxPython wiki.
137
138
139 ------------------------------------------------------------------------
140 r1897 | ed | 2006-02-04 14:03:39 -0800 (Sat, 04 Feb 2006) | 4 lines
141
142 Bookmarks in dEditor now persist when you save the file. If you re-open a saved file with bookmarks, they are restored.
143
144 Refactored dUserSettingProvider a little bit. Fixed a bug in getUserSettingKeys() that resulted in it always returning an empty list. Added deleteUserSetting() and deleteAllUserSettings(); these do just what you think they would.
145
146 ------------------------------------------------------------------------
147 r1902 | paul | 2006-02-06 08:32:50 -0800 (Mon, 06 Feb 2006) | 13 lines
148
149 Simplified dPemMixin's __getattr__ and __setattr__ somewhat. I still believe it
150 would be better to be explicit about dynamic properties, and will try to find
151 some time to make that happen.
152
153 Changed a couple exec() calls to setattr() calls instead, which may be safer
154 if not faster, but definitely more explicit and easier to understand.
155
156 Added back a needed test for deadObject that I removed from the onUpdate
157 callback, and changed the test in update() back to testing for the deadObject
158 instead of putting it in a try block.
159
160
161 -----------------------------------------------------------------------
162 r1904 | paul | 2006-02-06 16:36:58 -0800 (Mon, 06 Feb 2006) | 54 lines
163
164 Added makeDynamicProperty() function to dabo.ui, which creates a dynamic
165 property definition for the passed normal property object. I wanted to put
166 this in propertyHelperMixin but it doesn't appear to me that dynamic
167 properties are really at all useful outside of a UI context (indeed,
168 everything else having to do with dynamic props is defined inside
169 dPemMixin...).
170
171 Explicitly defined Dynamic properties for most of the existing properties
172 defined in dPemMixin. Removed the automagical __getattr__/__setattr__
173 overrides.
174
175 This dynamism is really cool, and I'm sorry that we aren't seeing completely
176 eye-to-eye on it. But here are some things that "just work" with my
177 implementation:
178
179 1) Run SimpleFormWithBizobj, and in the command window type:
180 > def dfb(biz):
181 >    return biz.ccity.strip() == "Arecibo"
182    
183 > self.PageFrame.Pages[2].setAll("DynamicFontBold", (dfb, self.getBizobj()))
184
185 Now, go to the edit page and scroll through. The setAll() call just worked without
186 any changes needed. Something is keeping it working with the original implementation
187 but I admit that I don't see why, at first glance.
188
189 2) Notice when you are typing in the command window, that the dynamic properties
190 show up in the list. This is really what I mean when I talk about things being
191 documented.
192
193 3) Passing dynamic props to the constructor is the same as defining them in the class
194 txt = dabo.ui.dTextBox(self, DynamicEnabled=myFunc)
195 txt.DynamicFontItalic = myFunc
196
197 Both of the above calls work as usual WRT the Dabo Property Interface.
198
199 Granted, there's more work involved when defining a new class (gotta remember to tell
200 Python about the dynamic props). But after all is said, done, and considered, it is
201 my genuine hope and belief that this was the right way to go. But I am still sorry for
202 stepping on toes.
203
204 I'll follow through with making other properties (those outside dPemMixin) dynamic as
205 well.
206
207 There are things to consider in the future, such as:
208
209 + Do we make a DynamicValue?
210 + If so, does it override the value gotten from FieldSource, if set?
211 + What bearing does this have on the dynamism already present in, e.g.,
212 the setting of dynamic values from non-bizobj data bindings?
213
214 Anyway, thanks for putting in the Dynamic stuff, Ed. Once we take care of the refresh
215 overhead - perhaps by using the timer/observer-based approach I talked about this
216 morning - this is really going to be killer.
217
218 ------------------------------------------------------------------------
219 r1907 | ed | 2006-02-07 07:32:34 -0800 (Tue, 07 Feb 2006) | 2 lines
220
221 Implemented the handling of RowSpan/ColSpan for grid sizers.  Added a GridSizerSpanException class that is raised if an attempt to set the span to a location that is already occupied.
222
223 ------------------------------------------------------------------------
224 r1909 | paul | 2006-02-07 12:43:44 -0800 (Tue, 07 Feb 2006) | 16 lines
225
226 Sorted out some problems and redundancies in the update() cycle:
227
228 + Removed the update delays, as they caused other problems.
229
230 + Because of the recursive nature of the update() function, both ValueUpdate
231   and Update events were triggering the controls to update themselves. Removed
232   ValueUpdate event and consolidated into the update() cycle.
233
234 + The Refresh() call inside update() was being called way too much. In testing
235   different ways to limit this refreshing, I discovered that for all the cases
236   I tested, the Refresh() wasn't needed at all. So I removed it. If you need
237     a refresh() you need to call that explicitly now. I think this may be better
238     anyway because they are different concepts.
239        
240 Performance still isn't stellar, but it does seem much better now.
241
242 ------------------------------------------------------------------------
243 r1912 | ed | 2006-02-08 14:44:41 -0800 (Wed, 08 Feb 2006) | 6 lines
244
245 Revamped the entire flow for transactions. These changes have been tested on MySQL and SQLite, but still need to be tested with Firebird and PostgreSQL.
246
247 Changed the default for bizobjs, cursors, etc., to not autocommit. The AutoCommit property of the bizobj is simply a pass-through to the cursor's AutoCommit property.
248
249 Also cleaned up some inconsistent spacing and method ordering.
250
251 ------------------------------------------------------------------------
252 r1917 | paul | 2006-02-09 11:48:33 -0800 (Thu, 09 Feb 2006) | 8 lines
253
254 Modified datanav to allow for manual setups that don't use fieldSpecs or
255 relationSpecs. I'll be committing a change to the AppWizard that allows
256 for this option soon.
257
258 Moved SelectPageClass, BrowsePageClass, and EditPageClass from PageFrame
259 to Form, since that is a better central location for these properties.
260
261
262 ------------------------------------------------------------------------
263 r1919 | ed | 2006-02-09 21:17:46 -0800 (Thu, 09 Feb 2006) | 7 lines
264
265 EXPERIMENTAL!
266 Added a splash screen to the Dabo app startup. This is based on Andrea Gavana's AdvancedSplash class, and allows for cool shaped windows, etc.
267
268 Right now on the Mac there is a noticeable delay from when the splash screen shaped frame appears and when the bitmap is drawn in the Paint event. I'm hoping to be able to figure out why, and also hope that this is just a Mac thing, as Andrea says he's tested this on WinXP and Gtk.
269
270 If this works, we may want to consider better artwork for our default splash screen, but this transparent 'dabo' lettering will do for now.
271
272 ------------------------------------------------------------------------
273 r1922 | ed | 2006-02-10 14:39:15 -0800 (Fri, 10 Feb 2006) | 7 lines
274
275 Turned off the default for showing the splash screen. You can now pass the splash screen settings as parameters to the constructor of dApp, since that's the only practical way to override them.
276
277 Changed the bulk of initialization to the constructor of uiApp. Previously the uiApp object was created, and then things like platform, app reference, etc., weren't established until setup(). dApp now passes a callback to uiApp that is used to continue the startup process once the uiApp has finished initializing.
278
279 Many changes to the SplashScreen class. It now works decently on OS X and Windows, and still looks like crap on Gtk.
280
281
282 ------------------------------------------------------------------------
283 1924 | ed | 2006-02-10 18:23:33 -0800 (Fri, 10 Feb 2006) | 2 lines
284
285 Added the ability to set the DataSource to an object, rather than just a string that can be eval'd to an object.
286
287 ------------------------------------------------------------------------
288 r1926 | ed | 2006-02-11 10:29:20 -0800 (Sat, 11 Feb 2006) | 4 lines
289
290 Changed the 'getMaxRow/Col' methods to 'getHighRow/Col' in order to avoid confusion with the MaxRows/Cols props in dGridSizer.
291
292 Modified both sizer classes to accept windows and not just SizerItems when setting/getting prop values.
293
294 ------------------------------------------------------------------------
295 r1929 | ed | 2006-02-12 07:12:14 -0800 (Sun, 12 Feb 2006) | 2 lines
296
297 Added the movePage() method, which takes either a page reference or a page index, and moves the page to the specified position. The page is then selected, unless the third parameter 'selecting' is False.
298
299 ------------------------------------------------------------------------
300 r1933 | ed | 2006-02-12 15:36:46 -0800 (Sun, 12 Feb 2006) | 6 lines
301
302 Added a getInt() method to dabo.ui.uiwx.
303
304 Fixed the splashscreen display on Windows.
305
306 Added the ability to set the font face and size for the editor.
307
308 ------------------------------------------------------------------------
309 r1938 | ed | 2006-02-13 15:51:36 -0800 (Mon, 13 Feb 2006) | 4 lines
310
311 Added the setCheck() method to dMenu. Given a caption, it will check any menus whose captions match. By default it will uncheck any that don't match; you can pass False as the second argument and leave non-matchers alone. Also added clearChecks() to uncheck all menu items in a menu.
312
313 Exposed the FileName and FilePath properties in dEditor.
314
315 ------------------------------------------------------------------------
316 r1939 | paul | 2006-02-13 16:32:28 -0800 (Mon, 13 Feb 2006) | 4 lines
317
318 Added some syntax sugar for referring to fields and variables. Where you
319 used to have to refer to self.Record["clientname"], you can now do
320 self.clientname. Same with self.Variables.
321
322 ------------------------------------------------------------------------
323 r1940 | ed | 2006-02-14 07:21:27 -0800 (Tue, 14 Feb 2006) | 4 lines
324
325 Added the 'callEvery' function to dabo.ui. This function accepts an interval (in milliseconds), and callable reference, and optional arguments to that callable. It then creates a timer that fires the callable every <interval> milliseconds, passing along any optionally included arguments. The timer reference is then returned, where it can be controlled by calling stop(), start() or release().
326
327 This is based on the dCallEvery class that Brandon Singer proposed. I made it a function in dabo.ui because I felt it was more consistent with the existing functions callAfter() and callAfterInterval().
328
329 ------------------------------------------------------------------------
330 r1941 | ed | 2006-02-14 18:06:00 -0800 (Tue, 14 Feb 2006) | 2 lines
331
332 Changed the default for forms to not automatically show "Record 1 of 0" or similar meaningless database information in the status bar. Set it back to True for the datanav Form class, so all datanav apps should remain unchanged. All of the apps in the demo and IDE directories that don't query data, though, no longer show that message.
333
334 ------------------------------------------------------------------------
335 r1942 | ed | 2006-02-14 18:35:24 -0800 (Tue, 14 Feb 2006) | 2 lines
336
337 Creating an instance of dApp doesn't automatically create an instance of uiApp. Instead, it now asks dabo.ui to get it a reference, and dabo.ui either returns the current instance if one already exists, or creates one if not. This allows you to run wxPython apps from within wxPython apps.
338
339 ------------------------------------------------------------------------
340 r1943 | ed | 2006-02-15 14:13:29 -0800 (Wed, 15 Feb 2006) | 5 lines
341
342 Added some rudimentary support for file drag/drop. Right now, you can call 'createFileDropTarget' on an object to make it able to respond to files dropped on it. Pass in an optional handler object reference; otherwise, the handler is set to the object itself. The drop event is passed on to the handler by calling its 'processDroppedFiles' method, which should be overridden in the handler object to do the specific processing of the files.
343
344 Added a 'Column' property to dEditor; this represents the column position in the current line, and can be changed to move the cursor within the line.
345
346
347 ------------------------------------------------------------------------
348 r1944 | ed | 2006-02-16 06:21:47 -0800 (Thu, 16 Feb 2006) | 2 lines
349
350 Added option in getItemByRowCol() to return the sizer item in the given position instead of the object managed by that sizer item.
351
352 ------------------------------------------------------------------------
353 r1945 | ed | 2006-02-16 07:32:33 -0800 (Thu, 16 Feb 2006) | 2 lines
354
355 Added method 'isItemChecked()' to allow you to determine the checked status of any menu item.
356
357 ------------------------------------------------------------------------
358 r1946 | paul | 2006-02-16 08:36:49 -0800 (Thu, 16 Feb 2006) | 4 lines
359
360 Added dabo.ui.getMousePosition(), which returns the position of the mouse
361 on the screen. This is in contrast to dPemMixin.getMousePosition(), which
362 gets the position of the mouse inside the client window.
363
364 ------------------------------------------------------------------------
365 r1951 | ed | 2006-02-16 14:06:06 -0800 (Thu, 16 Feb 2006) | 4 lines
366
367 Update to allow execution of SQL statements without affecting the current data set. The bizobj has a new pass-through method named 'execute()', which takes a statement understood by the backend database and passes it to its cursor's execute method.
368
369 The cursor class has been modified to run all statements that don't begin with 'select' through its auxiliary cursor, thereby preserving its data set. Preliminary tests that I've run have confirmed that these are working correctly, but there should be a lot more testing done before I am confident that these changes are truly sound and can handle whatever we can toss at them.
370
371 ------------------------------------------------------------------------
372 r1954 | ed | 2006-02-16 17:12:17 -0800 (Thu, 16 Feb 2006) | 2 lines
373
374 You can now set the DataSource to an actual object, instead of having to set it to a string that could be resolved to an object.
375
376 ------------------------------------------------------------------------
377 r1958 | ed | 2006-02-17 18:13:28 -0800 (Fri, 17 Feb 2006) | 6 lines
378
379 Added basic support for storing lists/tuples in the user settings.
380
381 Added a simple way of persisting MRU lists in applications. A new dApp property, '_persistentMRUs' is a dict that contains the name of the menu as the key for the entry, and the function to bind the items to as the value. The framework will then handle saving and restoring MRU lists upon app startup and closing.
382
383 Modified the uiApp to accept just the menu caption as an identifier instead of requiring the actual menu. This is necessary to create MRU lists for context menus, or for restoring menus at app startup.
384
385 ------------------------------------------------------------------------
386 r1959 | ed | 2006-02-18 12:55:23 -0800 (Sat, 18 Feb 2006) | 2 lines
387
388 Updated the requirement that a bizobj be found for all data sources. SInce that was written, Dabo's use of data binding has expanded to lots of non-bizobj uses.
389
390 ------------------------------------------------------------------------
391 r1962 | ed | 2006-02-20 14:22:40 -0800 (Mon, 20 Feb 2006) | 2 lines
392
393 Completed the majority of the work needed to implement saved classes that can be used in other class designs; it was working from the Designer, but not when you ran the form. These changes implement the whole inheritance structure so that if you change the underlying class, any changes not explicitly overridden in the design that uses that class are reflected. This works for both property changes as well as code changes.
394
395 ------------------------------------------------------------------------
396 r1963 | ed | 2006-02-21 06:11:12 -0800 (Tue, 21 Feb 2006) | 8 lines
397
398 Switched the default order of arguments in callAfterInterval(). It makes more sense to specify the interval first, followed by the function and its arguments. Sticking the interval between the function and its arguments seems very awkward. I added code to callAfterInterval() to check if it received a call in which the interval is the second argument (i.e., the original style) and switch them around in that event.
399
400 Removed dDrawPanel as a class. Turns out that adding double-buffering to panels doesn't affect their performance noticeably, so it made sense to turn this on for all dPanel objects by default. However, if you run into a situation where this adversely affects your app, there is a new property named 'Buffered' that will turn this behavior off (i.e., make it work like it used to) when set to False.
401
402 *IF YOU USED dDrawPanel IN YOUR CODE, THIS WILL BREAK IT!*
403
404 You must update by changing all references to dDrawPanel to simply dPanel.
405
406 ------------------------------------------------------------------------
407 r1964 | ed | 2006-02-21 11:05:01 -0800 (Tue, 21 Feb 2006) | 2 lines
408
409 Changed the default for double buffering back to off. Seems that it wasn't as transparently simple as I thought.
410
411 ------------------------------------------------------------------------
412 r1969 | ed | 2006-02-25 11:37:56 -0800 (Sat, 25 Feb 2006) | 2 lines
413
414 Removed the old syntax for begin/commit/rollbackTransaction. The default for these actions in dBackendObject is to call the appropriate method on the connection, not to execute a command on the cursor.
415
416 ------------------------------------------------------------------------
417 r1971 | ed | 2006-02-26 14:38:48 -0800 (Sun, 26 Feb 2006) | 2 lines
418
419 Removed the call to cursor.connection.begin() in the beginTransaction() method. This does not seem to be needed for most backends; in fact, it is typically used to override autocommit to create temporary explicit transactions.
420
421 ------------------------------------------------------------------------
422 r1972 | echo | 2006-02-28 10:51:19 -0800 (Tue, 28 Feb 2006) | 7 lines
423
424 Table creation now works for MySQL also.
425
426 The class dAutoBizobj is a bizobj that has a dTable.
427
428 The function AutoCreateTables() will try to create all the tables that have been setup with dAutoBizobj objects. If it can't create the tables, a message pops up for the user and the db admin. The db admin can enter the username and password for access to create tables or the db admin can manualy execute the queries in the queries.sql.
429
430 Also, having autotables for more than database or even more than one host does not messup or crash, it is handled.
431 ------------------------------------------------------------------------
432 r1975 | ed | 2006-03-01 13:43:52 -0800 (Wed, 01 Mar 2006) | 9 lines
433
434 Converted the dTimer from a bitmap to a non-visible control based directly on wx.Timer. This makes it fit in much better with dabo.ui.callEvery(), which is much more convenient to use in many cases.
435
436 Began coding for the Hover property, which will allow for easier visual coding of MouseOver events. It isn't fully implemented yet, so don't try working with it.
437
438 ------------------------------------------------------------------------
439 r1977 | ed | 2006-03-01 16:34:12 -0800 (Wed, 01 Mar 2006) | 2 lines
440
441 Implemented the Hover property in dPemMixin. The reason for this rather than relying on MouseLeave to terminate the effect is that there are many time when it seems that the mouse leaves the area without triggering the MouseLeave event. The Hover mechanism employs a timer to check for mouse position, and fire the MouseLeave code if it detects that the mouse position is outside of the control.
442
443 ------------------------------------------------------------------------
444 r1981 | paul | 2006-03-03 09:53:18 -0800 (Fri, 03 Mar 2006) | 6 lines
445
446 Added a CustomSQL property to the datanav form. If set, the settings in the
447 select page will be ignored and the contents of CustomSQL used instead.
448
449 ------------------------------------------------------------------------
450 r1983 | ed | 2006-03-05 08:42:35 -0800 (Sun, 05 Mar 2006) | 15 lines
451
452 Added defaults to dGrid.getValue(). If no row or col is specified, it defaults to the current row/column, respectively.
453
454 Added fontMetricFromDrawObject() to dabo.ui. This enables simple calculation of the width/height of a drawn text object.
455
456 Added a fitToSizer() method to dPemMixin. This will resize the object to fit the size required by the sizer represented in its Sizer property. You can also pass in extraWidth and extraHeight values to adjust the size further.
457
458 Added 'Alignment' to the pre-init properties of dCheckBox. Cleaned up the property methods and definitions to make them alphabetized, and to make the strings localized. Also relaxed the values accepted for the Alignment property.
459
460 Added an option to dEditor.changeFontSize() to accept strings in the format "+n" or "-n". These will increment or decrement the font size by 'n' points.
461
462 ------------------------------------------------------------------------
463 r1985 | ed | 2006-03-06 17:42:06 -0800 (Mon, 06 Mar 2006) | 2 lines
464
465 Moved the _addCode() method out of dFormMixin, since it really is more generic than that. It now lives in dObject._addCodeAsMethod(), which takes a dict of method name/code pairs and adds them as methods of the object. dPemMixin now looks for a keyword argument called 'srcCode', and if found, adds it to the object.
466
467 ------------------------------------------------------------------------
468 r1986 | ed | 2006-03-09 13:47:29 -0800 (Thu, 09 Mar 2006) | 6 lines
469
470 This class handles the conversion of cdxml text to a class object. It has one main method: classFromXml(), which takes a cdxml file and returns the main class stored in that file. This class can then be instantiated as part of a live app.
471
472 It is working for most simple classes. You can create layouts using sizers, panels, and add code to any object, and it will work. However, support for GRIDS and PAGEFRAMES is not completed yet. ANY SAVED DESIGN WITH GRIDS OR PAGEFRAMES WILL BE BROKEN NOW.
473
474 This will, of course, be temporary, until I can add that logic to this class.
475
476 ------------------------------------------------------------------------
477 r1987 | ed | 2006-03-09 13:49:16 -0800 (Thu, 09 Mar 2006) | 2 lines
478
479 Updated dabo.ui to use the new cdxml converter in createForm().
480
481 ------------------------------------------------------------------------
482 r1988 | ed | 2006-03-10 16:20:42 -0800 (Fri, 10 Mar 2006) | 4 lines
483
484 Added support for grids and pageframes. These are now re-created as they appeared in the design.
485
486 This is now ready for testing and bug reports.
487
488 ------------------------------------------------------------------------
489 r1992 | ed | 2006-03-11 17:56:25 -0800 (Sat, 11 Mar 2006) | 2 lines
490
491 You can now call addObject() and pass a cdxml file instead of a Dabo class reference, and the class defined in the cdxml will be added to the parent.
492
493 ------------------------------------------------------------------------
494 r1998 | ed | 2006-03-14 17:17:06 -0800 (Tue, 14 Mar 2006) | 4 lines
495
496 Cleaned up the dynamic code creation routines in dObject and DesignerXmlConverter.
497
498 Modified xmltodict to handle property declarations. After 0.6 is out, we really need to move to a more automatic way of doing this. I'd like to look into things such as cElementTree, which is supposed to be incorporated into the next verison of Python. Our files are not so huge that we couldn't parse them into DOM trees.
499
500 ------------------------------------------------------------------------
501 r1999 | ed | 2006-03-15 04:29:28 -0800 (Wed, 15 Mar 2006) | 8 lines
502
503 Added setAfter() and setAfterInterval() to dabo.ui. These work the same as callAfter() and callAfterInterval(), except you use them to set properties to particular values.
504
505 Added the following properties to dGrid: MovableColumns, ResizableColumns, and ResizableRows. When any of these are set to False, the user cannot move/resize the column or row.
506
507 ------------------------------------------------------------------------
508 r2013 | paul | 2006-03-21 08:59:43 -0800 (Tue, 21 Mar 2006) | 1 line
509
510 Changed the keyboard datanav navigation from Ctrl+, and Ctrl+. to Alt+LEFT and Alt+RIGHT. I've confirmed this works on Win and Gtk. Will test Mac next. The original configuration, in addition to being nonintuitive, didn't work on Windows.
511 ------------------------------------------------------------------------
512 r2017 | paul | 2006-03-21 09:41:51 -0800 (Tue, 21 Mar 2006) | 1 line
513
514 Changed the nav keys to Ctrl+LEFT/Ctrl+Right because Alt+arrow on Mac translates to the Option+Arrow which is used for keyboard navigation of text entry fields. Note that because of a separate problem, only forward keyboard navigation is possible on Mac currently.
515 ------------------------------------------------------------------------
516 r2018 | paul | 2006-03-21 09:49:06 -0800 (Tue, 21 Mar 2006) | 4 lines
517
518 Ok, using Ctrl+Arrow on Win and Lin causes the same problem that using
519 Alt+Arrow causes on Mac. Therefore, I've added code to use the best alt
520 key on the running platform.
521
522 ------------------------------------------------------------------------
523 r2023 | ed | 2006-03-21 17:41:20 -0800 (Tue, 21 Mar 2006) | 6 lines
524
525 Added the ability to save screenshots in one of several graphics formats. While this was part of the Bubblet demo originally, it could have uses elsewhere. For example, combining this with dabo.ui.callAfterInterval() would enable timed screen shots.
526
527 Screenshots can be of any object. If no object is specified, the active form is used.
528
529 In order to detect which graphic format was selected, the various file dialog methods have been augmented with similarly-named methods that also return the type selected by the user. For example, calling getFile("jpg", "png") simply returns the path to the selected file. But calling getFileAndType("jpg", "png") returns a 2-tuple: the first element is the path, and the second would be either "jpg" or "png", depending on which of the wildcard types was selected by the user.
530
531 ------------------------------------------------------------------------
532 r2027 | ed | 2006-03-22 11:18:56 -0800 (Wed, 22 Mar 2006) | 9 lines
533
534 Hacked a bit to get getCaptureBitmap() to work well on GTTK, but it's still
535 a bit of a mess. GTK doesn't capture the title bar, menu bar or frame
536 decorations of a window, and I tried to compensate the sizing accordingly.
537 Individual controls don't seem to work at all. I don't have more time to
538 play around with this now, but this is hardly a show-stopper for release.
539
540 ------------------------------------------------------------------------
541
542
543 Dabo 0.5.1 (2006-01-25) (Revision 1860):
544 Additional MDI/SDI improvements and fixes. By default, dForm on Windows will be a MDI child.
545
546 Fixed PageFrame background color to take the background color from the form, not unconditional white. Only on Windows - Gtk and Mac do the right thing by default.
547
548 Fixed various issues with getting icon files and converting them to bitmaps.
549
550 Set the default grid font to Arial,9 on Windows, as the wx-default was just plain ugly.
551
552 Added getPositionInSizer() method to sizers, since they may also be contained within sizers.
553
554 Reworked dShell. Now it appears as a split window, with the standard command area on the top, and the output in the lower pane.
555
556 Changed dGridSizer to raise an exception if the insert method is called instead of just returning False.
557
558 Added SashPositionChanged event. Updated dSplitter to raise this event when the sash position changes.
559
560 Added scrollToBeginning() and scrollToEnd() methods to dEditBox.
561
562 Added pass-through properties for dSplitForm's splitter's panels.
563
564 Added the property 'SplitState' to the dShell class. By right-clicking on the shell, you can toggle between the new split behavior and the "traditional" single pane behavior.
565
566 Added a right-click menu to the output pane. Right now all it can do is clear itself, but we could add other stuff such as font selection, etc.
567
568 Fixed a bug in uiApp that prevented Cut(), Copy() and Paste() from working in the shell (and other non-Daboized controls that only have wx versions of these methods).
569
570 Added a menu command to the shell to clear the output window using Ctrl-Backspace.
571
572 Added the MenuOpen event to dEvents. This allows us to create dynamic menus by intercepting this event and updating the prompts of the menu items as needed. Added the event data code to save the prompt and menu object that triggered the event.
573
574 Added 'deadObjectException' as an alias to wx._core.PyDeadObjectError to the dabo.ui.uiwx module. This will enable Dabo code to handle this condition without having to use wx code.
575
576 Added a bunch on internationalization to the dShell script.
577
578 Made the dMessageBox titles come from Application.getAppInfo(appName) by default.
579
580 Added handling for situations where a bizobj is used with a data connection.
581
582 Added a sizeToColumns() method. This will set the width of the grid equal to that of its component Columns.
583
584 Fixed copy to clipboard in about.py to use CRLF on Windows.
585
586 Added new properties to grid:
587     HorizontalScrolling
588     VerticalScrolling
589     ShowColumnLables
590     ShowCellBorders
591
592 The scrolling properties are booleans, and will hide/show the scrollbars.
593
594 Fixed some problems with setting the column's Width. For a number of reasons, when you created a grid from scratch and then added columns using addColumn, the columns widths you'd specify weren't being respected. Fixed.
595
596 Moved the code for the dEditor class from ide/dEditor.py into its own uiwx-level class. This will allow other apps (I'm thinking Designer here!) to instantiate code editors where they need.
597
598 Revamped the layout of the dOkCancelDialog class to create the panel and sizer that is needed in addControls().
599
600 Cleaned up some of the default spacing so that with AutoSize=True, the form still looks OK.
601
602 Removed the split sash code from the dEditor. That stuff belongs in the form the editor is located, not in the editor itself.
603
604 Fixed a bug in dGrid that only seemed to pop up when the grid was located on a form with a bizobj but that wasn't a dForm. The presets dialog in minesweeper fit that description, and it was throwing errors when you navigated through the grid.
605
606 Added methods for getting/setting the back color of individual items.
607
608 Added property CellHighlightWidth to dGrid, and used that property in the about dialog.
609
610 Made dPanel.addControls() better behaved.
611
612 Reworked/improved the Quick Report dialog in datanav.
613
614 Updated dPageFrameNoTabs to raise the same events as the 'tabbed' versions do. Added a 'getPageNumber()' method.
615
616 Added PNG files for rotating images clockwise and counter-clockwise.
617
618 Improved dImage to support 90 degree rotation in either direction. Added rotation to the the demo.
619
620 Fixed a bug in dListControl's StringValue prop, and any other place where the framework was trying to call the control's GetString() method, since it doesn't have one.
621
622 Added SearchDelay property to dApp, which becomes the default SearchDelay for dGrid. The dGrid SearchDelay can get set to any int but that won't override the dApp setting. If dGrid.SearchDelay is set to None (the default), that is when the dApp setting gets used. Set the default SearchDelay to 300 - better than the previous 600 IMO but still not too fast. Eventually, when we provide a default system preference screen, we should expose this property for the user to tweak how they like.
623
624 Cleaned up and consolidated lots of stuff in dGrid, which shouldn't have any effect on runtime performance. Made SameSizeRows into an actual property.
625
626 Using the standard button sizer in the okay/cancel dialog is good, because it lets wx handle the platform-convention rules. However, even though it handles rearranging the order of the buttons as needed, it doesn't rearrange tab order. So I added code to do that.
627
628 Reworked the login dialog to subclass from dOkCancelDialog.
629
630 Reworked dGrid to sync the rowcount in refresh() calls. Fixed bug in syncing of column counts.
631
632 The entire populate() cycle was happening every time you entered the browse page in datanav apps, when in reality the only thing you need to do in current dGrids when the dataset has been requeried is a simple refresh().
633
634 Added an initial call to _clearDocument(), which is where all the defaults are set for the editor. The DesignerEditor would not indent properly without this.
635
636 Added moveToBeginning() and moveToEnd() methods to position the pointer at the beginning and end of the document, respectively.
637
638 Added functions to dBizobj, dCursor, and dBackend to get the data structure from the cursor description, instead of querying the backend based on a table name. This is more likely to contain correct information, but will need work for other backends besides MySQL. Also, getting the pkid is still problematic - but IMO it isn't a big deal to just have the user tell us which field to use as the PK.
639
640 Fixed dGrid's buildFromDataSet() to use the new function so it will work even if the bizobj has no records at the time of creation.
641
642 Fixed dGrid.sort() to not care if sort is done on an empty bizobj. Added the logic to restore code saved in the Designer so that it functions properly in the re-created form.
643
644 This is big - really big. For the first time, you can create a form in the Designer, add code to be bound to events, or create custom methods, and that code will work in the form created from the .cdxml file exactly the same as if you had written those methods in a regular .py script.
645
646 Improved the card deck pictures.
647
648 Fixed some problems in the Icon setter that would cause errors if None was passed, or if the icon path didn't exist, as would be the case if you were running with py2exe and didn't include the icon files as resources.
649
650 Added a significant change to eventMixin.py's auto event binding logic. The code now first looks at the object itself before looking up its family tree. This is critical for the event binding when running a cdxml file, where methods are added to the object at runtime, and are not present in the class definition.
651
652 Cleaned up some spacing in dEvents; also fixed some "appliesToClass" logic that had events 'applying' to incorrect classses. There are still some anomalies, I'm sure; the event listing in the Designer will reveal these.
653
654 Modified the dynamic code binding to fix the problem with modifying the object's class definition in the current namespace. Also fixed a problem where code for dPage objects was not getting assigned.
655
656 Fixed a bug in the dListControl's _getValue() method when there were no items in the list.
657
658 Added alias 'dragging' for 'mouseDown' in the EventData for mouse events.
659
660 Added method 'getMousePosition()' to dPemMixin. This returns the mouse position in relative coordinates to the object that called it.
661
662 Added 'drawBitmap()' method to dPemMixin. Like the other wx.DC drawing methods, this wraps the wx.DC.DrawBitmap() method into an object interface that Dabo objects can use.
663
664 Changed getSQL() so that if no FROM clause has been specified, it defaults to a FROM clause using the cursor's Table.
665
666 Addedproperties SettingsFileName and SettingsDirectoryName to the app's UserSettingProvider. The defaults for both come from app.getAppInfo("appShortName"), and determine the name of the directory and file name of the user settings file. The directory name will be lower()'d and have a '.' prepended automatically.
667
668 Created the dFoldPanel and dFoldPanelBar classes, which wrap the built-in wx.lib.FoldPanel classes. Modified __init__.py to include these, and added some hacks to dPemMixin to enable them to work with the event structure.
669
670 Added the dCalendar control. This wraps the wx.calendar.CalendarCtrl, making it simpler and more Pythonic to work with.
671
672 Added a setting 'firstDayOfWeek' to dabo.settings
673
674 Moved the method _getWxColour() from dFoldPanelBar into dPemMixin, as it is needed in both dFoldPanelBar as well as dCalendar, and possibly other wx controls that expect a wx.Colour object instead of a color tuple.
675
676 Added the calendar events and their processing.
677
678 Added a form subclass named 'dBorderlessForm'. This creates a form with no visible border or title bar. Renamed the base form class in dForm.py from 'dFormBase' to 'BaseForm'. I felt that the 'd' prefix was misleading, as it isn't meant to be a Dabo base class at all.
679
680 Updated dDateTextBox to use regular datetime values internally instead of wx.DateTime. Updated the calendar to use the new Dabo dCalendar instead of the raw wx version.
681
682 Added row and column highlighting to the dGrid class. Default is to only show the selected cell, but that can be changed by setting the SelectionMode property to either "rows" or "columns". The color used to highlight the selected row/col is controlled by the new SelectionBackColor and SelectionForeColor properties; defaults are yellow background and black text.
683
684 Added a GridRangeSelected event to dEvents, and added the code to raise it to dGrid.
685
686 Changed the default SelectionMode for the datanav grid to 'row'.
687
688 Added some additional properties and functionality to the dFoldPanelBar class. First is the 'Singleton' property, which controls a behavior in which one and only one panel is open at any time. Expanding a different panel collapses the currently open one, and attempting to collapse the expanded panel does nothing.
689
690 Second, there is a 'SingleClick' property that controls whether you need to double-click on a panel's caption bar (default behavior) to toggle it, or whether a single click will suffice.
691
692 Finally, the 'CollapseToBottom' property determines whether any collapsed panels are positioned at the bottom of the control, or whether they remain in their natural position.
693
694 I added the FoldPanelCaptionClick and FoldPanelChange events to dEvents in order to implement these features. They are available to instances of the dFoldPanelBar class for hooking additional behaviors to these events.
695
696 I updated the test form for dFoldPanelBar to enable you to play with these settings.
697
698 Fixed a bug in dGrid's new SelectionMode property. I had previously checked for only 'r' or 'c' at the beginning of the setting, forgetting that 'cells' is a valid setting, so I fixed that to check the first two letters.
699
700 Added the property 'AlternateRowColoring' to dGrid. When True, rows in the grid will be colored depending on the RowColorOdd and RowColorEven properties.
701
702 Changed the datanav grid to use alternate row coloring.
703
704 Added some changes to the column Width setting that were necessary for working correctly in the Designer.
705
706 Fixed a bug with MultipleSelect in the dTreeView class. Added some navigation methods for returning adjacent nodes. Fixed a selection bug when working with MultipleSelect=True.
707
708 Added code to properly escape characters that should not be in XML attributes. Also cleaned up some uneven spacing in the created XML.
709
710 Fixed a bug in dGrid that didn't allow the ColumnCount to be reduced.
711
712 Fixed a bug in dPage that happened when the page was instantiated separately from the pageframe, since it wasn't yet in the Pages collection.
713
714 Added 'dEditableList', which is a wrapping of the wx.gizmos.EditableListBox. This control takes a list and allows the user to add/edit/delete items from the list, as well as re-order them. There are properties to enable/disable any of the following: edit, add, delete, order. All are enabled by default.
715
716 Fixed a bug in dGridSizer. Apparently, calling 'AddGrowableRow/Col' multiple times increments an internal counter, and a subsequent 'RemoveGrowableRow/Col' will only decrement it, and will not set it to be not growable unless the counter has dropped to zero. Now setting a row as growable won't do anything if it already is.
717
718 Added the drawText() method, along with the text draw objects.
719
720 Added columns to reportWriter. Added smarter sorting of elements in the xml output, for instance putting the report title up top instead of on bottom, and putting the bands in order that they appear and not alpha order.
721
722 Changed all the sizer routines to return the SizerItem managing the object that was just added to the sizer.
723
724 Sizer.Children now modified the SizerItem objects to include a 'ControllingSizer' attribute that references the parent sizer.
725
726 Modified the dFoldPanelBar class to better time its refreshes. It's still a bit funky, but does seem to work better.
727
728 Modified dFormMixin to handle the new Spacer panels correctly.
729
730 Added a 'Children' property to dFoldPanelBar that returns the child panels, instead of the layout panel that it uses to manage the visible panels.
731
732 Added a return value to setItemProp() in the sizers so that we can tell if a value was successfully applied.
733
734 Fixed the problem with propertyHelperMixin.getPropertyList(): it was caching the list of properties across the class hierarchy, instead of caching just for this one class definition. Good catch, Ed!
735
736 Wrapped the wx.CheckListBox for Dabo.
737
738 Changed the parameter to sizer for setting the sides that the Border property applies to from 'borderFlags' to 'borderSides', as this seems much more appropriate. Updated the sizers to properly get/set this prop from a list of values.
739
740 Changed all hard-coded "\n" in dicttoxml to the more crossplatform idiom "%s" % os.linesep.
741
742 Fixed a problem whereby nested sizers did not get their Parent property set. Thanks to Casey McGuire for catching this bug.
743
744 Added the GridCellEditBegin event, which is raised when a grid cell editor is shown. This allows you to record the value of a cell before it is modified by the user.
745
746 Added StayOnTop property to dFormMixin.
747
748 Added ShowMenuBar property, so I can avoid showing the Dabo menubar on my property sheet and object tree forms.
749
750 Added groups and variables elements to a newly created report form.
751
752 Changed the default position to (-1, -1), since (0, 0) places the form under the menu bar when running on OS X.
753
754 Fixed a problem with dGrid on Windows where the propsheet was stealing the focus
755
756 Added ForegroundColor and BackgroundColor to dColumn. These props apply to all cells in a column that don't have custom renderers.
757
758 Fleshed out the 'nextNode()' and 'priorNode()' methods to provide true flat navigation through the tree. Also cleaned up several other methods that dealt with nodes and their objects.
759
760 Added font properties to treeview nodes.
761
762 Wrapped the wx.Font object into dFont. This breaks the font editing on the PropSheet, and possibly a few other places that use the font prop, but we'll have to find those afterwards. All previous references to Font have to be changed to GetFont() instead; likewise, all assignments to Font must be replaced with calls to SetFont().
763
764 Revamped the internals of dFont.
765
766 Added 'defaultFontSize' to settings.py
767
768 Updated the font handling in dGrid and dTreeView.
769
770 Cleaned up some spacing in dLabel.
771
772 Added the default wx IDs to the About and Quit menu items so that they appear in the proper place on OS X.
773
774 Updated the long-neglected BorderSizer class, which wraps the wx.StaticBoxSizer class. You can now pass either a pre-made dBox object to the constructor, or pass a parent object, and the constructor will create the box for you.
775
776 Added a Caption property to dBorderSizer. This will update the caption displayed on the sizer's box.
777
778 Refactored the getItemProp() method so that dBorderSizer will use the same functionality.
779
780 Added getAvailableFonts() method. Returns a list of all font faces installed on the current system.
781
782 Updated dFormMixin to handle dBorderSizer objects in .cdxml files
783
784 Changed the prompt and shortcut for the 'Quit' item in dBaseMenuBar to be 'Quit' and 'Ctrl-Q' on all platforms.
785
786 Added additional properties to dBorderSizer that are basically proxies to the box's caption.
787
788 Added a Dabo wrapper for wx._core._wxPyDeadObject.
789
790 Added a couple helper functions for converting between 0-255 rgb
791 format and 0-1 format.
792
793 Added basic MRU (Most Recently Used) capabilities to Dabo. I had looked at the wx.FileHistory class, but it seemed a bit too rigid to work with our design. To use MRU in a menu, the menu should be created by passing 'MRU=True' in the constructor.
794
795 Added Variables, Groups, and Objects as ReportObjectCollections.
796
797 Changed dEvents.ContextMenu to derive from Event instead of MenuEvent, since the contextmenu event is a request for a context menu to be displayed, and not generated from any existing menu.
798
799 Added an addObject() function to report objects. Changed the sorting of report elements so that Variables appears before Groups. Fixed a bug which sometimes kept variables and groups from getting their xml generated.
800
801 Modified xmltodict to properly escape any internal ampersands.
802
803 Modified the Quick Report (list format) to generate the report form not by crafting the XML by hand, but by using the object interface and then finally having the report writer return the XML. This results in quick reports getting the same XML format as if the Designer were used.
804
805 Added the dHyperLink control. This is a wrapped version of the wx.lib.hyperlink.HyperLinkCtrl.
806
807 Added a new function to dabo.ui, callAfterInterval(func, interval). It will call the passed function after the interval has elapsed. Additionally, if callAfterInterval() is called again with the same function before the original timer had elapsed, the old timer is destroyed and the new one instantiated, making the function only run once, after a timer finally reaches the interval.
808
809 Added 'removePage()' and 'cyclePages()' functions to the dPageFrameMixin class. The former allow for a specific page to be removed, while the latter accepts an integer value and cycles the selected page forward (positive) or backwards (negative).
810
811 Added a clear() function to dMenu() for removing all current items.
812
813 Thanks to Brandon Singer, I've fixed a problem where passing kwargs to the constructor of any dObject subclass would silently pass any unhandled kwargs. The fix to the base problem was easy, but it turns out lots of our code was relying on this. I fixed the obvious places (code that gets run from dabo/ui/uiwx/test.py) but I suspect I've missed a few. If you get the exception:
814         TypeError: __init__() got an unexpected keyword argument '<argument>'
815 then it is due to this fix.
816
817 The minesweeper demo uses dabo.fastNameSet when creating the squares, and it turns out that when fastNameSet is True, autoBindEvents() doesn't run. Fixed.
818
819 Fixed dApp to raise the Activate/Deactivate events properly. Fixed dApp to raise Key events. The app gets key events if no window has stopped the event along the way. So now we can dApp.bindEvent(dEvents.KeyChar, func). Fixed dApp to autoBindEvents().
820
821 the menutype keyword can now be used to specifiy about, exit and preferences menu item. Dabo will then automatically use the correct wxID, so the menu items are automatically moved to the MacOS application menu.
822
823 Modified colorTupleFromName() to also attempt to interpret strings as HTML-style hex values.
824
825
826 Dabo-0.5 (2005-11-30) (Revision 1610):
827
828 Added a new class, DataSet, which lets you issue sql queries against local
829 Dabo data, not just against the backend. You can query, sort, and update
830 individual DataSets, and even join multiple DataSets - all without making a
831 call to the backend database server.
832
833 Began the work of making an embedded, internal, database engine (SQLite).
834 Starting with future releases, SQLite will be an integral part of Dabo.
835
836 Improved the autoBindEvents() to bind to matching methods in all parent
837 containers, not just the form. Auto-binding of events now works so well that
838 it is the default; you no longer have to manually call it. This is now
839 *really cool*.
840
841 Added a basic framework for drawing shapes on any window. Once created, the
842 shapes are accessible with an object reference. This should make dealing with
843 DC's a thing of the past for most uses. Way cool!
844
845 Sorted out MDI/SDI issues. By default, dForm on Windows MDI children and
846 dFormMain on Windows will be MDI parents. On other platforms, both dForm and
847 dFormMain will be SDI by default. The above statement is true for datanav
848 applications (ones generated by the AppWizard). The pure-Dabo default is for
849 SDI forms. In any case, you may change this by setting dabo.MDI.
850
851 Improved the datanav Quick Report feature, which can print a list of the
852 current records, mimicing the browse page, or a whole page of information on
853 one record, mimicing the edit page. Added the ability for the user to save
854 the generated report form for editing with the Report Designer or editing the
855 rfxml directly.
856
857 Improved showContextMenu(), and sorted out the difference between
858 MouseRightClick and ContextMenu events.
859
860 Fixed bug in Find dialog which would segfault on Windows and Mac. Added
861 replace functionality.
862
863 dCheckBox now supports 3 state mode, (True, False and None).
864
865 Fixed bug in dbMySQL that would interpret longtext or longblob fields as
866 ints.
867
868 Fixed dBackend to properly send Python None values as NULLs.
869
870 dForms now know how to read in cdxml files, created by the upcoming UI
871 Designer.
872
873 Fixed a bug in colorTupleFromString() that failed to return the correct
874 value.
875
876 Fixed some encoding issues with dReportWriter.
877
878 Added some handling for broken database connections.
879
880 Added some useful properties to dTreeView that improve its display and
881 editability.
882
883 Fixed some problems with the Hit event and dSpinner.
884
885 Improved report writer's paragraph handling.
886
887 Further removed user code from direct wx access in a few places. User code
888 can still get at the wx structures though, just not quite as easily.
889
890 Fixed mixed indentation problems, made some code cleaner, and added/edited
891 lots of docstrings.
892
893 Added some useful functions to dMenu to remove items and get references to
894 menu items.
895
896 Added a DynamicEnabled property to dMenuItem. Set this to a function which
897 will get run when the parent menu is shown to determine whether the menu
898 item is enabled or not.
899
900 Menu.Children will now contain object references to Dabo menus and menu
901 items.
902
903 Improved dToolbar somewhat, in anticipation of fully objectifying the
904 individual toolbar items. The ultimate goal is for the interface to
905 a dToolbar to be similar to that of dMenu.
906
907 Fixed some problems in dBizobj that make working with multi-table select
908 statements more sane.
909
910 Fixed a bug in dGrid which resulted in very slow deletion of rows, for
911 instance
912 after requerying the recordset and getting fewer rows that were in the grid
913 before.
914
915 Added properties ShowInTaskBar and FloatOnParent to dForm, and actually
916 made the following properties work: ShowMinButton, ShowMaxButton,
917 ShowCloseButton, ShowSystemMenu, TinyTitleBar.
918
919 Added a picklist mode to datanav Forms, showing only the select and browse
920 pages for a user to pick a record. The form dismisses on escape, and returns
921 the selected row's pk on enter.
922
923 Handling of None values in many UI controls, the bizobj, and the database is
924 much improved.
925
926 Added middle button and scroll mouse events.
927
928 Added some hooks to datanav.Form that allow developers to control the
929 select options for given fields. This would allow you to put, for example,
930 a radiogroup with a few choices instead of the default textbox.
931
932 Added connection manager to dApp, which maintains a set of open database
933 connections that your forms can reference by name. Added Connection property
934 to dForm.
935
936 Fixed bugs in and improved dSplitter, dListControl, dControlItemMixin, and
937 dListBox.
938
939 Phwew! All that in 7 weeks.
940
941
942
943 Dabo-0.4.2 (2005-10-07) (Revision 1418):
944 Added PrimaryBizobj property to dForm, which can replace calls to getPrimaryBizobj().
945
946 Added Accepted property to dOkCancelDialog, which gets set automatically if the
947 user pressed "OK".
948
949 Added AutoSQL, UserSQL, CurrentSQL, LastSQL properties to dCursor and dBizobj.
950 When time to requery, the SQL will come from UserSQL if set, or AutoSQL will
951 be regenerated.
952
953 Fixed a bug that kept changes to a new record from getting committed.
954
955 Added DefaultValues property to bizobj.
956
957 Added ListSelection and ListDeselection events to dListControl. Added properties
958 MultipleSelect, HitIndex, LastSelectedIndex, HeaderVisible, HorizontalRules,
959 and VerticalRules. Changed the behavior of both dListControl and dListBox so that merely selecting an item doesn't raise the Hit event; instead, it raises a ListSelection event, and if another item had been previously selected, it raises a ListDeselection event. Hit is only raised from double-clicking on an item, or by pressing Enter.
960
961 Added new property to dTextBox: StrictDateEntry. Changed the code for
962 interpreting dates entered by the user to allow for some less explicit
963 formats (YYYYMMDD, YYMMDD, and MMDD). If StrictDateEntry is False (the
964 default), these other formats will be used when interpreting dates
965 entered by the user.
966
967 Added field-level validation to the framework.
968
969 Improved support for decimal.Decimal, both at the database level and in
970 dTextBox.
971
972 Added new auto event binding, which automatically binds events based on any
973 defined callback functions. For example, if you have a method onMouseEnter()
974 defined, the dEvents.MouseEnter will automatically be bound to that method.
975 Inspired by PythonCard.
976
977 Added RegID property to forms, that allows for object registration
978 with the form. Not all objects require RegIDs, but if they have one,
979 they must be unique among all objects in a form. A reference to that
980 object can then be gotten from any other object by calling
981 'self.Form.getObjectByRegID(<regid>)'.
982
983 Linked RegID to the auto event binding, so that if a form has a method
984 of onHit_cmdOK(), and has a button with a RegID of 'cmdOK', the
985 cmdOk's Hit will get bound to the form's callback, automatically.
986
987 Improved dGrid and dColumn. Many properties added, and you are now in much
988 finer control over the display of grid column headers, grid cell attributes,
989 grid cell editors and renderers, and the grid itself.
990
991 Began work of allowing case-insensitive property values for properties that
992 take string values, and for properties that take a limited number of values
993 where the first letter is unique, you can set the property by just using the
994 first letter. dTextBox.Alignment = "c" sets the property to "Center", for
995 example.
996
997 Modified dBizobj, dCursorMixin, and dBackend so that the user can specify
998 the Unicode Encoding to use. Changed the default encoding from latin-1 to
999 utf-8.
1000
1001 Added feature to optionally draw sizer outlines on any form that uses dSizers.
1002 This is currently accessible via an option in the View menu when the base
1003 menu bar is in use, or you can turn it on/off programatically.
1004
1005 Grids now remember the column that is sorted, and resort when next instantiated.
1006
1007 Added support in dReportWriter for report groups and report variables, and
1008 dynamic band heights (based on the height of contained objects). Added showExpr,
1009 which is an expression that evaluates at runtime and if true, shows the object
1010 in the report, and not if false.
1011
1012 Improved the automatic print preview report format in datanav. It now:
1013
1014     + prints column headers
1015
1016     + mirrors the font size, column width, cell vertical and horizontal
1017       alignment, and column height of the grid
1018
1019     + mirrors the font size, header height, vertical and horizontal
1020       alignment of the grid headers
1021
1022     + automatically reorients to landscape if the detail flows beyond the width
1023       of portrait
1024
1025     + stops printing more columns if doing so would result in overflowing the
1026       right margin
1027
1028 Key bindings are now case-insensitive.
1029