root/tags/dabo-0.6.5/ChangeLog

Revision 2124, 71.3 kB (checked in by paul, 3 years ago)

Version bump and ChangeLog? entries for Dabo 0.6.5s.

Line 
1 See the Subversion log for all the details.
2
3 Dabo 0.6.5 (2006-04-18) (Revision 2124):
4
5 Fixed showModal() to reactivate the windows previously deactivated when the
6 modal window is closed or hidden.
7
8 Fixed a bug where not passing a font to getFont() would cause the function to record an error and return None.
9
10 dCursorMixin's initProperties() hook was being called twice. Fixed, and put
11 our framework code in _initProperties() instead.
12
13
14 Dabo 0.6.4 (2006-04-06) (Revision 2099):
15
16 Added the missing doDefault() call to dSplitter's _initEvents.
17
18 Fixed the problem where entering a unicode character in a dTextBox
19 set up with a str value doesn't stick. Tracker #0101.
20
21 Added default encoding of "utf-8" to dEditor, and added encoding and
22 decoding at the I/O boundaries of saveFile() and openFile(). Fixes
23 tracker # 0107.
24
25 Fixed a couple bugs in dDateTextBox that would occur if you typed a regular key
26 that isn't otherwise handled. It was basically an old-code problem.
27
28 Fixed a problem where fast CPUs could generate identical names for objects.
29 Tracker #0104
30
31
32 Dabo 0.6.3 (2006-04-03) (Revision 2079):
33 Added exception handling to requerying, with calls to rollbackTransaction() if an exception is encountered.
34
35 Modified the process used to determine field types. Formerly we relied on an empty cursor supplying all of the information, but with the recent switch to depending on self._fieldTypes, if new() is run before a query that returns data is run, all the default values are set to empty strings. Now if there is no _fieldTypes for a cursor, the structure-only query returns a maximum of one record, and that is now used to set the _fieldTypes dict.
36
37 Fixed a problem where setting AutoPopulatePK on the bizobj didn't propagate the setting to the cursor.
38
39 Added Alt+Up and Alt+Down hotkeys for navigating AppWizard apps. These keys
40 bring you to the first and last records in the dataset.
41
42
43 Dabo 0.6.2 (2006-03-28) (Revision 2060):
44 BugFix: Make scrollbar appear on datanav select page on init.
45 BugFix: Make Tab/Shift+Tab work as nav keys in searchable dGrids.
46
47
48 Dabo 0.6.1 (2006-03-27) (Revision 2051):
49 BugFix: Double select-page entries in datanav apps.
50
51
52 Dabo 0.6 (2006-03-27) (Revision 2043):
53 (for now, due to lack of time, I'm just echoing svn log. If someone wants to
54 summarize the changes --today!-- that would be *very much* appreciated.)
55
56 ------------------------------------------------------------------------
57 r1863 | ed | 2006-01-25 18:41:44 -0800 (Wed, 25 Jan 2006) | 4 lines
58
59 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.
60
61 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.
62
63 ------------------------------------------------------------------------
64 r1864 | ed | 2006-01-26 09:34:20 -0800 (Thu, 26 Jan 2006) | 4 lines
65
66 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.
67
68 Also fixed a problem where str values were not able to be properly converted to unicode.
69
70 ------------------------------------------------------------------------
71 r1866 | ed | 2006-01-26 15:11:35 -0800 (Thu, 26 Jan 2006) | 2 lines
72
73 Added a parameter to the promptForFileName() method to specify the default path for the dialog.
74
75 ------------------------------------------------------------------------
76 r1867 | ed | 2006-01-26 17:36:12 -0800 (Thu, 26 Jan 2006) | 9 lines
77
78 Added the TreeItemContextMenu event. This differs from the normal ContextMenuEvent in that it returns the itemID of the node that was right-clicked.
79
80 Added code in the event data gathering code to store the tree item ID for these events in EventData.itemID.
81
82 Changed all the names '_id' in the dTreeView.py file to the clearer 'itemID'.
83
84 Fixed an oversight in the dSizerMixin that didn't remove the Box for a dBorderSizer when the sizer was released.
85
86
87 ------------------------------------------------------------------------
88 r1872 | paul | 2006-01-27 08:01:09 -0800 (Fri, 27 Jan 2006) | 1 line
89
90 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.
91 ------------------------------------------------------------------------
92 r1873 | ed | 2006-01-27 12:16:01 -0800 (Fri, 27 Jan 2006) | 2 lines
93
94 Cleaned up the order of releasing child objects for sizers. Also fixed problem with releasing the box for border sizers.
95
96 ------------------------------------------------------------------------
97 r1875 | ed | 2006-01-28 15:32:34 -0800 (Sat, 28 Jan 2006) | 2 lines
98
99 Added getFunctionList() method to return a list of all 'class' and 'def' statements in the current file.
100
101 ------------------------------------------------------------------------
102 r1876 | echo | 2006-01-29 12:50:27 -0800 (Sun, 29 Jan 2006) | 3 lines
103
104 First pass at integrating the dTable class into the dabo.db framework. Right now, if this works at all, it only works for SQLite.
105
106
107 ------------------------------------------------------------------------
108 r1877 | ed | 2006-01-29 19:45:26 -0800 (Sun, 29 Jan 2006) | 2 lines
109
110 Fixed a bug wherein multiply-nested sizers might not release all of their content when release(True) is called.
111
112 ------------------------------------------------------------------------
113 r1878 | ed | 2006-01-29 20:37:07 -0800 (Sun, 29 Jan 2006) | 2 lines
114
115 Added a 'setInactive()' method that will hide the auto-complete popup if one is visible.
116
117 ------------------------------------------------------------------------
118 r1882 | paul | 2006-01-31 09:28:37 -0800 (Tue, 31 Jan 2006) | 1 line
119
120 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.
121 ------------------------------------------------------------------------
122 r1883 | paul | 2006-01-31 11:58:23 -0800 (Tue, 31 Jan 2006) | 1 line
123
124 The xml header wasn't being converted to native line endings. Fixed.
125 ------------------------------------------------------------------------
126 r1884 | paul | 2006-01-31 16:09:18 -0800 (Tue, 31 Jan 2006) | 1 line
127
128 No need to explicitly do the unicode conversion in the report fields, as that is done in the report writer.
129 ------------------------------------------------------------------------
130 r1885 | ed | 2006-01-31 16:25:28 -0800 (Tue, 31 Jan 2006) | 12 lines
131
132 Added a Refresh event. This is raised when dForm.refresh() is called. All dPemMixin classes will receive it, and fire their refresh() hook method.
133
134 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.
135
136 [NOTE: The previous paragraph no longer applies.]
137
138 Example: given a label and a function 'currTime()' in a form that returns the current time, issuing the following:
139
140     label.DynamicCaption = label.Form.currTime
141    
142 will result in the label's Caption property being updated every time label.Form.refresh() is called with the value of the current time.
143
144 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.
145
146 ------------------------------------------------------------------------
147 r1889 | paul | 2006-02-01 16:23:51 -0800 (Wed, 01 Feb 2006) | 13 lines
148
149 This commit lets you set dApp.UI=None, and setup() won't try to load a UI.
150 You have to do it explicitly, though, such as:
151
152 app = dabo.dApp()
153 app.UI = None
154 app.setup()
155
156 --or--
157
158 app = dabo.dApp(UI=None)
159 app.setup()
160
161
162 ------------------------------------------------------------------------
163 r1890 | ed | 2006-02-02 05:13:52 -0800 (Thu, 02 Feb 2006) | 10 lines
164
165 Major revamping of the whole refresh/update/dynamic design.
166
167 First, refresh() simply repaints the object and anything contained in it. It simply calls the wx.Refresh() method.
168
169 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.
170
171 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.
172
173 Updated all the classes that referred to these events and methods by their old names.
174
175 ------------------------------------------------------------------------
176 r1892 | ed | 2006-02-02 15:32:49 -0800 (Thu, 02 Feb 2006) | 3 lines
177
178 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.
179
180
181 ------------------------------------------------------------------------
182 r1897 | ed | 2006-02-04 14:03:39 -0800 (Sat, 04 Feb 2006) | 4 lines
183
184 Bookmarks in dEditor now persist when you save the file. If you re-open a saved file with bookmarks, they are restored.
185
186 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.
187
188 ------------------------------------------------------------------------
189 r1902 | paul | 2006-02-06 08:32:50 -0800 (Mon, 06 Feb 2006) | 13 lines
190
191 Simplified dPemMixin's __getattr__ and __setattr__ somewhat. I still believe it
192 would be better to be explicit about dynamic properties, and will try to find
193 some time to make that happen.
194
195 Changed a couple exec() calls to setattr() calls instead, which may be safer
196 if not faster, but definitely more explicit and easier to understand.
197
198 Added back a needed test for deadObject that I removed from the onUpdate
199 callback, and changed the test in update() back to testing for the deadObject
200 instead of putting it in a try block.
201
202
203 -----------------------------------------------------------------------
204 r1904 | paul | 2006-02-06 16:36:58 -0800 (Mon, 06 Feb 2006) | 54 lines
205
206 Added makeDynamicProperty() function to dabo.ui, which creates a dynamic
207 property definition for the passed normal property object. I wanted to put
208 this in propertyHelperMixin but it doesn't appear to me that dynamic
209 properties are really at all useful outside of a UI context (indeed,
210 everything else having to do with dynamic props is defined inside
211 dPemMixin...).
212
213 Explicitly defined Dynamic properties for most of the existing properties
214 defined in dPemMixin. Removed the automagical __getattr__/__setattr__
215 overrides.
216
217 This dynamism is really cool, and I'm sorry that we aren't seeing completely
218 eye-to-eye on it. But here are some things that "just work" with my
219 implementation:
220
221 1) Run SimpleFormWithBizobj, and in the command window type:
222 > def dfb(biz):
223 >    return biz.ccity.strip() == "Arecibo"
224    
225 > self.PageFrame.Pages[2].setAll("DynamicFontBold", (dfb, self.getBizobj()))
226
227 Now, go to the edit page and scroll through. The setAll() call just worked without
228 any changes needed. Something is keeping it working with the original implementation
229 but I admit that I don't see why, at first glance.
230
231 2) Notice when you are typing in the command window, that the dynamic properties
232 show up in the list. This is really what I mean when I talk about things being
233 documented.
234
235 3) Passing dynamic props to the constructor is the same as defining them in the class
236 txt = dabo.ui.dTextBox(self, DynamicEnabled=myFunc)
237 txt.DynamicFontItalic = myFunc
238
239 Both of the above calls work as usual WRT the Dabo Property Interface.
240
241 Granted, there's more work involved when defining a new class (gotta remember to tell
242 Python about the dynamic props). But after all is said, done, and considered, it is
243 my genuine hope and belief that this was the right way to go. But I am still sorry for
244 stepping on toes.
245
246 I'll follow through with making other properties (those outside dPemMixin) dynamic as
247 well.
248
249 There are things to consider in the future, such as:
250
251 + Do we make a DynamicValue?
252 + If so, does it override the value gotten from FieldSource, if set?
253 + What bearing does this have on the dynamism already present in, e.g.,
254 the setting of dynamic values from non-bizobj data bindings?
255
256 Anyway, thanks for putting in the Dynamic stuff, Ed. Once we take care of the refresh
257 overhead - perhaps by using the timer/observer-based approach I talked about this
258 morning - this is really going to be killer.
259
260 ------------------------------------------------------------------------
261 r1907 | ed | 2006-02-07 07:32:34 -0800 (Tue, 07 Feb 2006) | 2 lines
262
263 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.
264
265 ------------------------------------------------------------------------
266 r1909 | paul | 2006-02-07 12:43:44 -0800 (Tue, 07 Feb 2006) | 16 lines
267
268 Sorted out some problems and redundancies in the update() cycle:
269
270 + Removed the update delays, as they caused other problems.
271
272 + Because of the recursive nature of the update() function, both ValueUpdate
273   and Update events were triggering the controls to update themselves. Removed
274   ValueUpdate event and consolidated into the update() cycle.
275
276 + The Refresh() call inside update() was being called way too much. In testing
277   different ways to limit this refreshing, I discovered that for all the cases
278   I tested, the Refresh() wasn't needed at all. So I removed it. If you need
279     a refresh() you need to call that explicitly now. I think this may be better
280     anyway because they are different concepts.
281        
282 Performance still isn't stellar, but it does seem much better now.
283
284 ------------------------------------------------------------------------
285 r1912 | ed | 2006-02-08 14:44:41 -0800 (Wed, 08 Feb 2006) | 6 lines
286
287 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.
288
289 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.
290
291 Also cleaned up some inconsistent spacing and method ordering.
292
293 ------------------------------------------------------------------------
294 r1917 | paul | 2006-02-09 11:48:33 -0800 (Thu, 09 Feb 2006) | 8 lines
295
296 Modified datanav to allow for manual setups that don't use fieldSpecs or
297 relationSpecs. I'll be committing a change to the AppWizard that allows
298 for this option soon.
299
300 Moved SelectPageClass, BrowsePageClass, and EditPageClass from PageFrame
301 to Form, since that is a better central location for these properties.
302
303
304 ------------------------------------------------------------------------
305 r1919 | ed | 2006-02-09 21:17:46 -0800 (Thu, 09 Feb 2006) | 7 lines
306
307 EXPERIMENTAL!
308 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.
309
310 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.
311
312 If this works, we may want to consider better artwork for our default splash screen, but this transparent 'dabo' lettering will do for now.
313
314 ------------------------------------------------------------------------
315 r1922 | ed | 2006-02-10 14:39:15 -0800 (Fri, 10 Feb 2006) | 7 lines
316
317 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.
318
319 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.
320
321 Many changes to the SplashScreen class. It now works decently on OS X and Windows, and still looks like crap on Gtk.
322
323
324 ------------------------------------------------------------------------
325 1924 | ed | 2006-02-10 18:23:33 -0800 (Fri, 10 Feb 2006) | 2 lines
326
327 Added the ability to set the DataSource to an object, rather than just a string that can be eval'd to an object.
328
329 ------------------------------------------------------------------------
330 r1926 | ed | 2006-02-11 10:29:20 -0800 (Sat, 11 Feb 2006) | 4 lines
331
332 Changed the 'getMaxRow/Col' methods to 'getHighRow/Col' in order to avoid confusion with the MaxRows/Cols props in dGridSizer.
333
334 Modified both sizer classes to accept windows and not just SizerItems when setting/getting prop values.
335
336 ------------------------------------------------------------------------
337 r1929 | ed | 2006-02-12 07:12:14 -0800 (Sun, 12 Feb 2006) | 2 lines
338
339 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.
340
341 ------------------------------------------------------------------------
342 r1933 | ed | 2006-02-12 15:36:46 -0800 (Sun, 12 Feb 2006) | 6 lines
343
344 Added a getInt() method to dabo.ui.uiwx.
345
346 Fixed the splashscreen display on Windows.
347
348 Added the ability to set the font face and size for the editor.
349
350 ------------------------------------------------------------------------
351 r1938 | ed | 2006-02-13 15:51:36 -0800 (Mon, 13 Feb 2006) | 4 lines
352
353 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.
354
355 Exposed the FileName and FilePath properties in dEditor.
356
357 ------------------------------------------------------------------------
358 r1939 | paul | 2006-02-13 16:32:28 -0800 (Mon, 13 Feb 2006) | 4 lines
359
360 Added some syntax sugar for referring to fields and variables. Where you
361 used to have to refer to self.Record["clientname"], you can now do
362 self.clientname. Same with self.Variables.
363
364 ------------------------------------------------------------------------
365 r1940 | ed | 2006-02-14 07:21:27 -0800 (Tue, 14 Feb 2006) | 4 lines
366
367 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().
368
369 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().
370
371 ------------------------------------------------------------------------
372 r1941 | ed | 2006-02-14 18:06:00 -0800 (Tue, 14 Feb 2006) | 2 lines
373
374 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.
375
376 ------------------------------------------------------------------------
377 r1942 | ed | 2006-02-14 18:35:24 -0800 (Tue, 14 Feb 2006) | 2 lines
378
379 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.
380
381 ------------------------------------------------------------------------
382 r1943 | ed | 2006-02-15 14:13:29 -0800 (Wed, 15 Feb 2006) | 5 lines
383
384 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.
385
386 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.
387
388
389 ------------------------------------------------------------------------
390 r1944 | ed | 2006-02-16 06:21:47 -0800 (Thu, 16 Feb 2006) | 2 lines
391
392 Added option in getItemByRowCol() to return the sizer item in the given position instead of the object managed by that sizer item.
393
394 ------------------------------------------------------------------------
395 r1945 | ed | 2006-02-16 07:32:33 -0800 (Thu, 16 Feb 2006) | 2 lines
396
397 Added method 'isItemChecked()' to allow you to determine the checked status of any menu item.
398
399 ------------------------------------------------------------------------
400 r1946 | paul | 2006-02-16 08:36:49 -0800 (Thu, 16 Feb 2006) | 4 lines
401
402 Added dabo.ui.getMousePosition(), which returns the position of the mouse
403 on the screen. This is in contrast to dPemMixin.getMousePosition(), which
404 gets the position of the mouse inside the client window.
405
406 ------------------------------------------------------------------------
407 r1951 | ed | 2006-02-16 14:06:06 -0800 (Thu, 16 Feb 2006) | 4 lines
408
409 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.
410
411 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.
412
413 ------------------------------------------------------------------------
414 r1954 | ed | 2006-02-16 17:12:17 -0800 (Thu, 16 Feb 2006) | 2 lines
415
416 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.
417
418 ------------------------------------------------------------------------
419 r1958 | ed | 2006-02-17 18:13:28 -0800 (Fri, 17 Feb 2006) | 6 lines
420
421 Added basic support for storing lists/tuples in the user settings.
422
423 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.
424
425 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.
426
427 ------------------------------------------------------------------------
428 r1959 | ed | 2006-02-18 12:55:23 -0800 (Sat, 18 Feb 2006) | 2 lines
429
430 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.
431
432 ------------------------------------------------------------------------
433 r1962 | ed | 2006-02-20 14:22:40 -0800 (Mon, 20 Feb 2006) | 2 lines
434
435 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.
436
437 ------------------------------------------------------------------------
438 r1963 | ed | 2006-02-21 06:11:12 -0800 (Tue, 21 Feb 2006) | 8 lines
439
440 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.
441
442 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.
443
444 *IF YOU USED dDrawPanel IN YOUR CODE, THIS WILL BREAK IT!*
445
446 You must update by changing all references to dDrawPanel to simply dPanel.
447
448 ------------------------------------------------------------------------
449 r1964 | ed | 2006-02-21 11:05:01 -0800 (Tue, 21 Feb 2006) | 2 lines
450
451 Changed the default for double buffering back to off. Seems that it wasn't as transparently simple as I thought.
452
453 ------------------------------------------------------------------------
454 r1969 | ed | 2006-02-25 11:37:56 -0800 (Sat, 25 Feb 2006) | 2 lines
455
456 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.
457
458 ------------------------------------------------------------------------
459 r1971 | ed | 2006-02-26 14:38:48 -0800 (Sun, 26 Feb 2006) | 2 lines
460
461 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.
462
463 ------------------------------------------------------------------------
464 r1972 | echo | 2006-02-28 10:51:19 -0800 (Tue, 28 Feb 2006) | 7 lines
465
466 Table creation now works for MySQL also.
467
468 The class dAutoBizobj is a bizobj that has a dTable.
469
470 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.
471
472 Also, having autotables for more than database or even more than one host does not messup or crash, it is handled.
473 ------------------------------------------------------------------------
474 r1975 | ed | 2006-03-01 13:43:52 -0800 (Wed, 01 Mar 2006) | 9 lines
475
476 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.
477
478 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.
479
480 ------------------------------------------------------------------------
481 r1977 | ed | 2006-03-01 16:34:12 -0800 (Wed, 01 Mar 2006) | 2 lines
482
483 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.
484
485 ------------------------------------------------------------------------
486 r1981 | paul | 2006-03-03 09:53:18 -0800 (Fri, 03 Mar 2006) | 6 lines
487
488 Added a CustomSQL property to the datanav form. If set, the settings in the
489 select page will be ignored and the contents of CustomSQL used instead.
490
491 ------------------------------------------------------------------------
492 r1983 | ed | 2006-03-05 08:42:35 -0800 (Sun, 05 Mar 2006) | 15 lines
493
494 Added defaults to dGrid.getValue(). If no row or col is specified, it defaults to the current row/column, respectively.
495
496 Added fontMetricFromDrawObject() to dabo.ui. This enables simple calculation of the width/height of a drawn text object.
497
498 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.
499
500 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.
501
502 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.
503
504 ------------------------------------------------------------------------
505 r1985 | ed | 2006-03-06 17:42:06 -0800 (Mon, 06 Mar 2006) | 2 lines
506
507 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.
508
509 ------------------------------------------------------------------------
510 r1986 | ed | 2006-03-09 13:47:29 -0800 (Thu, 09 Mar 2006) | 6 lines
511
512 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.
513
514 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.
515
516 This will, of course, be temporary, until I can add that logic to this class.
517
518 ------------------------------------------------------------------------
519 r1987 | ed | 2006-03-09 13:49:16 -0800 (Thu, 09 Mar 2006) | 2 lines
520
521 Updated dabo.ui to use the new cdxml converter in createForm().
522
523 ------------------------------------------------------------------------
524 r1988 | ed | 2006-03-10 16:20:42 -0800 (Fri, 10 Mar 2006) | 4 lines
525
526 Added support for grids and pageframes. These are now re-created as they appeared in the design.
527
528 This is now ready for testing and bug reports.
529
530 ------------------------------------------------------------------------
531 r1992 | ed | 2006-03-11 17:56:25 -0800 (Sat, 11 Mar 2006) | 2 lines
532
533 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.
534
535 ------------------------------------------------------------------------
536 r1998 | ed | 2006-03-14 17:17:06 -0800 (Tue, 14 Mar 2006) | 4 lines
537
538 Cleaned up the dynamic code creation routines in dObject and DesignerXmlConverter.
539
540 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.
541
542 ------------------------------------------------------------------------
543 r1999 | ed | 2006-03-15 04:29:28 -0800 (Wed, 15 Mar 2006) | 8 lines
544
545 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.
546
547 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.
548
549 ------------------------------------------------------------------------
550 r2013 | paul | 2006-03-21 08:59:43 -0800 (Tue, 21 Mar 2006) | 1 line
551
552 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.
553 ------------------------------------------------------------------------
554 r2017 | paul | 2006-03-21 09:41:51 -0800 (Tue, 21 Mar 2006) | 1 line
555
556 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.
557 ------------------------------------------------------------------------
558 r2018 | paul | 2006-03-21 09:49:06 -0800 (Tue, 21 Mar 2006) | 4 lines
559
560 Ok, using Ctrl+Arrow on Win and Lin causes the same problem that using
561 Alt+Arrow causes on Mac. Therefore, I've added code to use the best alt
562 key on the running platform.
563
564 ------------------------------------------------------------------------
565 r2023 | ed | 2006-03-21 17:41:20 -0800 (Tue, 21 Mar 2006) | 6 lines
566
567 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.
568
569 Screenshots can be of any object. If no object is specified, the active form is used.
570
571 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.
572
573 ------------------------------------------------------------------------
574 r2027 | ed | 2006-03-22 11:18:56 -0800 (Wed, 22 Mar 2006) | 9 lines
575
576 Hacked a bit to get getCaptureBitmap() to work well on GTTK, but it's still
577 a bit of a mess. GTK doesn't capture the title bar, menu bar or frame
578 decorations of a window, and I tried to compensate the sizing accordingly.
579 Individual controls don't seem to work at all. I don't have more time to
580 play around with this now, but this is hardly a show-stopper for release.
581
582 ------------------------------------------------------------------------
583
584
585 Dabo 0.5.1 (2006-01-25) (Revision 1860):
586 Additional MDI/SDI improvements and fixes. By default, dForm on Windows will be a MDI child.
587
588 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.
589
590 Fixed various issues with getting icon files and converting them to bitmaps.
591
592 Set the default grid font to Arial,9 on Windows, as the wx-default was just plain ugly.
593
594 Added getPositionInSizer() method to sizers, since they may also be contained within sizers.
595
596 Reworked dShell. Now it appears as a split window, with the standard command area on the top, and the output in the lower pane.
597
598 Changed dGridSizer to raise an exception if the insert method is called instead of just returning False.
599
600 Added SashPositionChanged event. Updated dSplitter to raise this event when the sash position changes.
601
602 Added scrollToBeginning() and scrollToEnd() methods to dEditBox.
603
604 Added pass-through properties for dSplitForm's splitter's panels.
605
606 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.
607
608 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.
609
610 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).
611
612 Added a menu command to the shell to clear the output window using Ctrl-Backspace.
613
614 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.
615
616 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.
617
618 Added a bunch on internationalization to the dShell script.
619
620 Made the dMessageBox titles come from Application.getAppInfo(appName) by default.
621
622 Added handling for situations where a bizobj is used with a data connection.
623
624 Added a sizeToColumns() method. This will set the width of the grid equal to that of its component Columns.
625
626 Fixed copy to clipboard in about.py to use CRLF on Windows.
627
628 Added new properties to grid:
629     HorizontalScrolling
630     VerticalScrolling
631     ShowColumnLables
632     ShowCellBorders
633
634 The scrolling properties are booleans, and will hide/show the scrollbars.
635
636 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.
637
638 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.
639
640 Revamped the layout of the dOkCancelDialog class to create the panel and sizer that is needed in addControls().
641
642 Cleaned up some of the default spacing so that with AutoSize=True, the form still looks OK.
643
644 Removed the split sash code from the dEditor. That stuff belongs in the form the editor is located, not in the editor itself.
645
646 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.
647
648 Added methods for getting/setting the back color of individual items.
649
650 Added property CellHighlightWidth to dGrid, and used that property in the about dialog.
651
652 Made dPanel.addControls() better behaved.
653
654 Reworked/improved the Quick Report dialog in datanav.
655
656 Updated dPageFrameNoTabs to raise the same events as the 'tabbed' versions do. Added a 'getPageNumber()' method.
657
658 Added PNG files for rotating images clockwise and counter-clockwise.
659
660 Improved dImage to support 90 degree rotation in either direction. Added rotation to the the demo.
661
662 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.
663
664 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.
665
666 Cleaned up and consolidated lots of stuff in dGrid, which shouldn't have any effect on runtime performance. Made SameSizeRows into an actual property.
667
668 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.
669
670 Reworked the login dialog to subclass from dOkCancelDialog.
671
672 Reworked dGrid to sync the rowcount in refresh() calls. Fixed bug in syncing of column counts.
673
674 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().
675
676 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.
677
678 Added moveToBeginning() and moveToEnd() methods to position the pointer at the beginning and end of the document, respectively.
679
680 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.
681
682 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.
683
684 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.
685
686 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.
687
688 Improved the card deck pictures.
689
690 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.
691
692 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.
693
694 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.
695
696 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.
697
698 Fixed a bug in the dListControl's _getValue() method when there were no items in the list.
699
700 Added alias 'dragging' for 'mouseDown' in the EventData for mouse events.
701
702 Added method 'getMousePosition()' to dPemMixin. This returns the mouse position in relative coordinates to the object that called it.
703
704 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.
705
706 Changed getSQL() so that if no FROM clause has been specified, it defaults to a FROM clause using the cursor's Table.
707
708 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.
709
710 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.
711
712 Added the dCalendar control. This wraps the wx.calendar.CalendarCtrl, making it simpler and more Pythonic to work with.
713
714 Added a setting 'firstDayOfWeek' to dabo.settings
715
716 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.
717
718 Added the calendar events and their processing.
719
720 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.
721
722 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.
723
724 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.
725
726 Added a GridRangeSelected event to dEvents, and added the code to raise it to dGrid.
727
728 Changed the default SelectionMode for the datanav grid to 'row'.
729
730 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.
731
732 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.
733
734 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.
735
736 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.
737
738 I updated the test form for dFoldPanelBar to enable you to play with these settings.
739
740 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.
741
742 Added the property 'AlternateRowColoring' to dGrid. When True, rows in the grid will be colored depending on the RowColorOdd and RowColorEven properties.
743
744 Changed the datanav grid to use alternate row coloring.
745
746 Added some changes to the column Width setting that were necessary for working correctly in the Designer.
747
748 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.
749
750 Added code to properly escape characters that should not be in XML attributes. Also cleaned up some uneven spacing in the created XML.
751
752 Fixed a bug in dGrid that didn't allow the ColumnCount to be reduced.
753
754 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.
755
756 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.
757
758 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.
759
760 Added the drawText() method, along with the text draw objects.
761
762 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.
763
764 Changed all the sizer routines to return the SizerItem managing the object that was just added to the sizer.
765
766 Sizer.Children now modified the SizerItem objects to include a 'ControllingSizer' attribute that references the parent sizer.
767
768 Modified the dFoldPanelBar class to better time its refreshes. It's still a bit funky, but does seem to work better.
769
770 Modified dFormMixin to handle the new Spacer panels correctly.
771
772 Added a 'Children' property to dFoldPanelBar that returns the child panels, instead of the layout panel that it uses to manage the visible panels.
773
774 Added a return value to setItemProp() in the sizers so that we can tell if a value was successfully applied.
775
776 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!
777
778 Wrapped the wx.CheckListBox for Dabo.
779
780 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.
781
782 Changed all hard-coded "\n" in dicttoxml to the more crossplatform idiom "%s" % os.linesep.
783
784 Fixed a problem whereby nested sizers did not get their Parent property set. Thanks to Casey McGuire for catching this bug.
785
786 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.
787
788 Added StayOnTop property to dFormMixin.
789
790 Added ShowMenuBar property, so I can avoid showing the Dabo menubar on my property sheet and object tree forms.
791
792 Added groups and variables elements to a newly created report form.
793
794 Changed the default position to (-1, -1), since (0, 0) places the form under the menu bar when running on OS X.
795
796 Fixed a problem with dGrid on Windows where the propsheet was stealing the focus
797
798 Added ForegroundColor and BackgroundColor to dColumn. These props apply to all cells in a column that don't have custom renderers.
799
800 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.
801
802 Added font properties to treeview nodes.
803
804 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().
805
806 Revamped the internals of dFont.
807
808 Added 'defaultFontSize' to settings.py
809
810 Updated the font handling in dGrid and dTreeView.
811
812 Cleaned up some spacing in dLabel.
813
814 Added the default wx IDs to the About and Quit menu items so that they appear in the proper place on OS X.
815
816 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.
817
818 Added a Caption property to dBorderSizer. This will update the caption displayed on the sizer's box.
819
820 Refactored the getItemProp() method so that dBorderSizer will use the same functionality.
821
822 Added getAvailableFonts() method. Returns a list of all font faces installed on the current system.
823
824 Updated dFormMixin to handle dBorderSizer objects in .cdxml files
825
826 Changed the prompt and shortcut for the 'Quit' item in dBaseMenuBar to be 'Quit' and 'Ctrl-Q' on all platforms.
827
828 Added additional properties to dBorderSizer that are basically proxies to the box's caption.
829
830 Added a Dabo wrapper for wx._core._wxPyDeadObject.
831
832 Added a couple helper functions for converting between 0-255 rgb
833 format and 0-1 format.
834
835 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.
836
837 Added Variables, Groups, and Objects as ReportObjectCollections.
838
839 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.
840
841 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.
842
843 Modified xmltodict to properly escape any internal ampersands.
844
845 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.
846
847 Added the dHyperLink control. This is a wrapped version of the wx.lib.hyperlink.HyperLinkCtrl.
848
849 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.
850
851 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).
852
853 Added a clear() function to dMenu() for removing all current items.
854
855 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:
856         TypeError: __init__() got an unexpected keyword argument '<argument>'
857 then it is due to this fix.
858
859 The minesweeper demo uses dabo.fastNameSet when creating the squares, and it turns out that when fastNameSet is True, autoBindEvents() doesn't run. Fixed.
860
861 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().
862
863 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.
864
865 Modified colorTupleFromName() to also attempt to interpret strings as HTML-style hex values.
866
867
868 Dabo-0.5 (2005-11-30) (Revision 1610):
869
870 Added a new class, DataSet, which lets you issue sql queries against local
871 Dabo data, not just against the backend. You can query, sort, and update
872 individual DataSets, and even join multiple DataSets - all without making a
873 call to the backend database server.
874
875 Began the work of making an embedded, internal, database engine (SQLite).
876 Starting with future releases, SQLite will be an integral part of Dabo.
877
878 Improved the autoBindEvents() to bind to matching methods in all parent
879 containers, not just the form. Auto-binding of events now works so well that
880 it is the default; you no longer have to manually call it. This is now
881 *really cool*.
882
883 Added a basic framework for drawing shapes on any window. Once created, the
884 shapes are accessible with an object reference. This should make dealing with
885 DC's a thing of the past for most uses. Way cool!
886
887 Sorted out MDI/SDI issues. By default, dForm on Windows MDI children and
888 dFormMain on Windows will be MDI parents. On other platforms, both dForm and
889 dFormMain will be SDI by default. The above statement is true for datanav
890 applications (ones generated by the AppWizard). The pure-Dabo default is for
891 SDI forms. In any case, you may change this by setting dabo.MDI.
892
893 Improved the datanav Quick Report feature, which can print a list of the
894 current records, mimicing the browse page, or a whole page of information on
895 one record, mimicing the edit page. Added the ability for the user to save
896 the generated report form for editing with the Report Designer or editing the
897 rfxml directly.
898
899 Improved showContextMenu(), and sorted out the difference between
900 MouseRightClick and ContextMenu events.
901
902 Fixed bug in Find dialog which would segfault on Windows and Mac. Added
903 replace functionality.
904
905 dCheckBox now supports 3 state mode, (True, False and None).
906
907 Fixed bug in dbMySQL that would interpret longtext or longblob fields as
908 ints.
909
910 Fixed dBackend to properly send Python None values as NULLs.
911
912 dForms now know how to read in cdxml files, created by the upcoming UI
913 Designer.
914
915 Fixed a bug in colorTupleFromString() that failed to return the correct
916 value.
917
918 Fixed some encoding issues with dReportWriter.
919
920 Added some handling for broken database connections.
921
922 Added some useful properties to dTreeView that improve its display and
923 editability.
924
925 Fixed some problems with the Hit event and dSpinner.
926
927 Improved report writer's paragraph handling.
928
929 Further removed user code from direct wx access in a few places. User code
930 can still get at the wx structures though, just not quite as easily.
931
932 Fixed mixed indentation problems, made some code cleaner, and added/edited
933 lots of docstrings.
934
935 Added some useful functions to dMenu to remove items and get references to
936 menu items.
937
938 Added a DynamicEnabled property to dMenuItem. Set this to a function which
939 will get run when the parent menu is shown to determine whether the menu
940 item is enabled or not.
941
942 Menu.Children will now contain object references to Dabo menus and menu
943 items.
944
945 Improved dToolbar somewhat, in anticipation of fully objectifying the
946 individual toolbar items. The ultimate goal is for the interface to
947 a dToolbar to be similar to that of dMenu.
948
949 Fixed some problems in dBizobj that make working with multi-table select
950 statements more sane.
951
952 Fixed a bug in dGrid which resulted in very slow deletion of rows, for
953 instance
954 after requerying the recordset and getting fewer rows that were in the grid
955 before.
956
957 Added properties ShowInTaskBar and FloatOnParent to dForm, and actually
958 made the following properties work: ShowMinButton, ShowMaxButton,
959 ShowCloseButton, ShowSystemMenu, TinyTitleBar.
960
961 Added a picklist mode to datanav Forms, showing only the select and browse
962 pages for a user to pick a record. The form dismisses on escape, and returns
963 the selected row's pk on enter.
964
965 Handling of None values in many UI controls, the bizobj, and the database is
966 much improved.
967
968 Added middle button and scroll mouse events.
969
970 Added some hooks to datanav.Form that allow developers to control the
971 select options for given fields. This would allow you to put, for example,
972 a radiogroup with a few choices instead of the default textbox.
973
974 Added connection manager to dApp, which maintains a set of open database
975 connections that your forms can reference by name. Added Connection property
976 to dForm.
977
978 Fixed bugs in and improved dSplitter, dListControl, dControlItemMixin, and
979 dListBox.
980
981 Phwew! All that in 7 weeks.
982
983
984
985 Dabo-0.4.2 (2005-10-07) (Revision 1418):
986 Added PrimaryBizobj property to dForm, which can replace calls to getPrimaryBizobj().
987
988 Added Accepted property to dOkCancelDialog, which gets set automatically if the
989 user pressed "OK".
990
991 Added AutoSQL, UserSQL, CurrentSQL, LastSQL properties to dCursor and dBizobj.
992 When time to requery, the SQL will come from UserSQL if set, or AutoSQL will
993 be regenerated.
994
995 Fixed a bug that kept changes to a new record from getting committed.
996
997 Added DefaultValues property to bizobj.
998
999 Added ListSelection and ListDeselection events to dListControl. Added properties
1000 MultipleSelect, HitIndex, LastSelectedIndex, HeaderVisible, HorizontalRules,
1001 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.
1002
1003 Added new property to dTextBox: StrictDateEntry. Changed the code for
1004 interpreting dates entered by the user to allow for some less explicit
1005 formats (YYYYMMDD, YYMMDD, and MMDD). If StrictDateEntry is False (the
1006 default), these other formats will be used when interpreting dates
1007 entered by the user.
1008
1009 Added field-level validation to the framework.
1010
1011 Improved support for decimal.Decimal, both at the database level and in
1012 dTextBox.
1013
1014 Added new auto event binding, which automatically binds events based on any
1015 defined callback functions. For example, if you have a method onMouseEnter()
1016 defined, the dEvents.MouseEnter will automatically be bound to that method.
1017 Inspired by PythonCard.
1018
1019 Added RegID property to forms, that allows for object registration
1020 with the form. Not all objects require RegIDs, but if they have one,
1021 they must be unique among all objects in a form. A reference to that
1022 object can then be gotten from any other object by calling
1023 'self.Form.getObjectByRegID(<regid>)'.
1024
1025 Linked RegID to the auto event binding, so that if a form has a method
1026 of onHit_cmdOK(), and has a button with a RegID of 'cmdOK', the
1027 cmdOk's Hit will get bound to the form's callback, automatically.
1028