/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Annotation of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 608 - (hide annotations)
Fri Apr 4 13:55:36 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 80210 byte(s)
updated ChangeLog

1 jonathan 601 2003-04-04 Jonathan Coles <[email protected]>
2 jonathan 608
3     * Thuban/Model/classification.py: Rename Color.None to
4     Color.Transparent.
5     (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
6     Don't bother copying the color, since Colors are immutable.
7    
8     * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
9     Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
10     Thuban/UI/renderer.py, Thuban/UI/view.py:
11     Rename Color.None to Color.Transparent.
12    
13     * test/test_classification.py, test/test_load.py: Rename Color.None
14     to Color.Transparent.
15    
16     2003-04-04 Jonathan Coles <[email protected]>
17 jonathan 603
18     * Thuban/Model/classification.py: Fix assert calls.
19     (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
20     Copy the color parameter rather than hold onto a reference.
21 jonathan 601
22 jonathan 603 * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
23     the color object.
24     (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
25     are sure there exists only one refernce to Color.None in the system.
26     This allows us to use 'is' rather than the comparision functions.
27    
28     * Thuban/Model/save.py: Fix assert calls.
29    
30     * Thuban/UI/classifier.py: Fix assert calls.
31     (ClassGrid._OnCellDClick): Call up to the classifier to open the
32     dialog to edit the groups properties.
33     (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
34     correctly if a cell is resized.
35     (ClassTable.SetClassification): New. Changes the classification
36     that is in the table.
37     (ClassTable.__SetRow): Allow groups to be prepended.
38     (Classifier): New code for opening the EditProperties and
39     GenerateRanges dialogs.
40     (SelectPropertiesDialog.__GetColor): Only set the color in the
41     color dialog if the current color is not None.
42    
43     * Thuban/UI/dock.py: Fix assert calls.
44    
45     * Thuban/UI/legend.py: Fix assert calls.
46    
47     * Thuban/UI/renderer.py: Fix assert calls.
48    
49     * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
50     classifications.
51     (GenRangePanel): Panel specific to range generation.
52     (GenSingletonPanel): Panel specific to singleton generation.
53     (ClassGenerator): Class responsible for actually generating
54     the classification from the data gathered in the dialog box.
55     (PropertyRamp): Generates properties whose values range from
56     a starting property to an ending property.
57 jonathan 601
58 bh 600 2003-04-03 Bernhard Herzog <[email protected]>
59    
60     * test/support.py (print_garbage_information): New function that
61     prints information about still connected messages and memory
62     leaks.
63     (run_suite): Removed.
64     (run_tests): New function for use as a replacement of
65     unittest.main in the test_* files. This one calls
66     print_garbage_information at the end.
67    
68     * test/runtests.py (main): Use support.print_garbage_information
69    
70     * test/test_layer.py: Use support.run_tests instead of
71     unittest.main so we get memory leak information
72     (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
73     (TestLayer.test_point_layer, TestLayer.test_empty_layer)
74     (TestLayerLegend.test_visibility): Call the layer's Destroy method
75     to fix a memory leak.
76    
77     * test/test_classification.py: Use support.run_tests instead of
78     unittest.main so we get memory leak information
79     (TestClassification.test_classification): Call the layer's Destroy
80     method to fix a memory leak.
81    
82 bh 591 2003-04-02 Bernhard Herzog <[email protected]>
83    
84 bh 595 * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
85     Handle the reference counts of the return value and errors in
86     PyArg_ParseTuple correctly.
87    
88 bh 593 * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
89     sure the filename is absolute to avoid problems when saving the
90     session again
91    
92 bh 591 * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
93    
94 jonathan 587 2003-04-01 Jonathan Coles <[email protected]>
95    
96 jonathan 589 * Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
97 jonathan 587 that there actually are points in the returned list of points
98     before trying to index into the list. The list may be empty if
99     the shape is a Null Shape.
100    
101 bh 586 2003-04-01 Bernhard Herzog <[email protected]>
102    
103     * test/test_map.py: Don't use from <module> import *
104    
105 jonathan 581 2003-04-01 Jonathan Coles <[email protected]>
106    
107     * Thuban/Model/session.py: Use LAYER_CHANGED instead of
108     LAYER_LEGEND_CHANGED
109    
110     * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
111     self.Destroy() to close the window after yesterday's changes.
112    
113     * test/test_map.py, test/test_session.py: Fix messages that
114     are sent from maps and layers.
115    
116 jonathan 575 2003-03-31 Jonathan Coles <[email protected]>
117    
118     * Thuban/UI/classifier.py: Commented out some debugging statements.
119     (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
120     RTbug #1769.
121    
122     * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
123     position (although position doesn't work yet under GTK).
124     (DockableWindow.Destroy): New. Called when the window must be
125     closed. Namely needed when the DockFrame closes and must close
126     its children.
127     (DockFrame): Listen for EVT_CLOSE and destroy all children.
128    
129     * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
130     when then window is told to close.
131     (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
132     comment in source for more info.
133    
134     * Thuban/UI/main.py: Show the legend by default when Thuban starts.
135    
136     * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
137     symmetry with other such methods.
138     (MainWindow.ShowLegend): Show the legend docked by default.
139    
140 jonathan 569 2003-03-28 Jonathan Coles <[email protected]>
141    
142     * Thuban/UI/classifier.py: Support for highlighting a specific
143     group within the grid when the classification dialog is opened.
144     Also contains a lot of debugging printouts which will later
145     be removed.
146    
147     * Thuban/UI/dock.py: Complete rework on the dock code so that
148     that it is fairly removed from the rest of the Thuban application.
149     It is easy to add new docks which the rest of the program having
150     to be aware of them.
151    
152     * Thuban/UI/legend.py: Modifications to support selecting a
153     specific group in the classification dialog. Changed how layers
154     are drawn when the layer is visible/invisible.
155    
156     * Thuban/UI/mainwindow.py: Removed legend specific code and
157     replaced it with calls to the new dock code.
158    
159     * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
160     to check if scale > 0. Trying to track down a divide by zero.
161    
162 jonathan 557 2003-03-26 Jonathan Coles <[email protected]>
163    
164 jonathan 567 * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
165     (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
166     now part of DockableWindow.
167     (LegendPanel.DoOnSelChanged): Select the current layer in the
168     map.
169     (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
170     with the selected layer and/or group.
171    
172     2003-03-26 Jonathan Coles <[email protected]>
173    
174 jonathan 557 This putback contains the code for dockable windows. There is
175     no support in wxWindows as of this date for windows that can
176     attach themselves to other windows.
177    
178     The current model contains a DockableWindow which has a parent
179     window for when it is detached and a dock window that it puts
180     its contents in when it is docked. The contents of a DockableWindow
181     must be a DockPanel. DockPanel itself derives from wxPanel.
182    
183     * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
184     message, not a LAYER_LEGEND_CHANGED message.
185    
186     * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
187    
188     * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
189     as one of the style properties for the fieldTypeText item to
190     be sure that its size is correct when the text changes.
191    
192     * Thuban/UI/dock.py: New. Classes for the DockPanel and
193     DockableWindow.
194    
195     * Thuban/UI/legend.py: Added some more buttons and made the
196     LegendPanel a DockPanel.
197    
198     * Thuban/UI/mainwindow.py: Added sash windows to the main window
199     and supporting functions for manipulating the sashes.
200     (MainWindow.ShowLegend): Create a DockableWindow with the
201     LegendPanel as the contents.
202    
203     * Thuban/UI/messages.py: Added DOCKABLE_* messages
204    
205     * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
206     not LAYER_LEGEND_CHANGED, messages.
207    
208 jonathan 554 2003-03-25 Jonathan Coles <[email protected]>
209    
210     * setup.py: Added custom script bdist_rpm_build_script so that
211     when the rpm is built the path to wx-config is correct.
212    
213     * setup.cfg: Added line saying to use the custom build script
214    
215 jonathan 552 2003-03-20 Jonathan Coles <[email protected]>
216    
217     Initial implementation of the Legend.
218    
219     * Thuban/UI/legend.py: New. Creates a window that shows the map's
220     Legend information and allows the user to add/modify classifications
221     and how the layers are drawn on the map.
222    
223     * setup.py: New command 'build_docs' which currently uses
224     happydoc to generate html documentation for Thuban.
225    
226     * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
227     Returns a string which is appropriately describes the group.
228    
229     * Thuban/Model/layer.py (Layer.SetClassification): Generate a
230     LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
231    
232     * Thuban/Model/map.py (Map): Rename messages and use new, more
233     specific, messages.
234    
235     * Thuban/Model/messages.py: New message to indicate that a layer's
236     data has changed (LAYER_CHANGED). New map messages to indicate
237     when layers have been added/removed/changed or if the stacking order
238     of the layers has changed.
239    
240     * Thuban/Model/session.py: Rename and use new messages.
241    
242     * Thuban/UI/classifier.py: Remember if any changes have actually
243     been applied so that if the dialog is cancelled without an application
244     of changes we don't have to set a new classification.
245     (ClassDataPreviewer): Pulled out the window specific code and put it
246     ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
247     symbols on any DC.
248    
249     * Thuban/UI/mainwindow.py: New code to open the legend.
250    
251     * Thuban/UI/view.py: Use new message names.
252    
253 jonathan 541 2003-03-19 Jonathan Coles <[email protected]>
254    
255     * Thuban/UI/main.py (verify_versions): New. Checks the versions
256     of Python, wxPython, and some other libraries.
257    
258     * extensions/thuban/wxproj.cpp (check_version): Checks the given
259     version against what wxproj was compiled with.
260     (check_version_gtk): If wxproj was compiled with gtk then check
261     the given version against the version of the gtk library
262     currently being used.
263    
264 bh 538 2003-03-14 Bernhard Herzog <[email protected]>
265    
266     * test/test_command.py: Run the tests when the module is run as a
267     script
268    
269     2003-03-14 Bernhard Herzog <[email protected]>
270    
271     Implement selection of multiple selected shapes in the same layer:
272    
273     - Introduce a new class to hold the selection. This basically
274     replaces the interactor which was nothing more than the
275     selection anyway. A major difference is of course that the new
276     selection class supports multiple selected shapes in one layer
277    
278     - Move the object that represents the selection from the
279     application to the canvas. The canvas is a better place than the
280     application because the selection represents which shapes and
281     layer of the map displayed by the canvas are selected and
282     affects how the map is drawn.
283    
284     - Make the selection and its messages publicly available through
285     the mainwindow.
286    
287     - The non-modal dialogs do not get a reference to the interactor
288     anymore as they can simply refer to their parent, the
289     mainwindow, for the what the interactor had to offer.
290    
291     * Thuban/UI/selection.py: New module with a class to represent the
292     selection.
293    
294     * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
295     these unused messages
296    
297     * Thuban/UI/application.py (ThubanApplication.OnInit)
298     (ThubanApplication.OnExit, ThubanApplication.SetSession): The
299     interactor is gone now.
300     (ThubanApplication.CreateMainWindow): There is no interactor
301     anymore so we pass None as the interactor argument for now for
302     compatibility.
303    
304     * Thuban/UI/view.py (MapCanvas.delegated_messages)
305     (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
306     Unsubscribe, delegate messages according to the delegated_messages
307     class variable.
308     (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
309     attributes from instance variables as described with the
310     delegated_methods class variable.
311     (MapCanvas.__init__): New instance variable selection holding the
312     current selection
313     (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
314     pass them on to the renderer
315     (MapCanvas.SetMap): Clear the selection when a different map is
316     selected.
317     (MapCanvas.shape_selected): Simple force a complete redraw. The
318     selection class now takes care of only issueing SHAPES_SELECTED
319     messages when the set of selected shapes actually does change.
320     (MapCanvas.SelectShapeAt): The selection is now managed in
321     self.selection
322    
323     * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
324     (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
325     Unsubscribe, delegate messages according to the delegated_messages
326     class variable.
327     (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
328     attributes from instance variables as described with the
329     delegated_methods class variable.
330     (MainWindow.__init__): The interactor as ivar is gone. The
331     parameter is still there for compatibility. The selection messages
332     now come from the canvas.
333     (MainWindow.current_layer, MainWindow.has_selected_layer):
334     Delegate to the the canvas.
335     (MainWindow.LayerShowTable, MainWindow.Classify)
336     (MainWindow.identify_view_on_demand): The dialogs don't need the
337     interactor parameter anymore.
338    
339     * Thuban/UI/tableview.py (TableFrame.__init__)
340     (LayerTableFrame.__init__, LayerTableFrame.OnClose)
341     (LayerTableFrame.row_selected): The interactor is gone. It's job
342     from the dialog's point of view is now done by the mainwindow,
343     i.e. the parent. Subscribe to SHAPES_SELECTED instead
344     of SELECTED_SHAPE
345    
346     * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
347     is gone. It's job from the dialog's point of view is now done by
348     the mainwindow, i.e. the parent.
349    
350     * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
351     gone. It's job from the dialog's point of view is now done by the
352     mainwindow, i.e. the parent.
353    
354     * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
355     gone. It's job from the dialog's point of view is now done by the
356     mainwindow, i.e. the parent.
357     (SessionTreeCtrl.__init__): New parameter mainwindow which is
358     stored as self.mainwindow. The mainwindow is need so that the tree
359     can still subscribe to the selection messages.
360     (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
361     (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
362     selection is now accessible through the mainwindow. Subscribe to
363     SHAPES_SELECTED instead of SELECTED_SHAPE
364    
365     * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
366     SHAPES_SELECTED message now.
367     (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
368     so deal with multiple shapes
369     (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
370     gone. It's job from the dialog's point of view is now done by the
371     mainwindow, i.e. the parent.
372    
373     * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
374     parameter is now a list of shape ids.
375     (RecordTable.SetTable): The second parameter is now a list of
376     indices.
377    
378     * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
379     selected_shape parameter and ivar to selected_shapes. It's now a
380     list of shape ids.
381     (MapRenderer.draw_label_layer): Deal with multiple selected
382     shapes. Rearrange the code a bit so that the setup and shape type
383     distinctions are only executed once.
384    
385     * test/test_selection.py: Test cases for the selection class
386    
387 jonathan 527 2003-03-11 Jonathan Coles <[email protected]>
388    
389     * Thuban/Model/load.py: Temporary fix so that the xml reader
390     doesn't cause Thuban to crash.
391    
392     * Thuban/Model/layer.py: Handle the cyclic references between
393     a layer and its classification better, and be sure to disconnect
394     the classification from the layer when the layer is destroyed
395     so that we don't maintain a cyclic reference that may not be
396     garbage collected.
397    
398     * Thuban/Model/classification.py: See comment for layer.py.
399    
400 jan 523 2003-03-12 Jan-Oliver Wagner <[email protected]>
401    
402     * HOWTO-Release: New. Information on the steps for releasing
403     a new version of Thuban.
404    
405 jonathan 514 2003-03-11 Jonathan Coles <[email protected]>
406    
407     * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
408     Use True instead of true.
409     (Classifier): Should have a single panel in which all the controls lie.
410    
411     * Thuban/UI/proj4dialog.py: Add normal border.
412    
413     * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
414    
415     * Thuban/UI/mainwindow.py: Use True instead of true.
416    
417     * setup.py: Update some definitions to use wxWindows2.4 files
418    
419     * Data/iceland_sample_class.thuban: Fixed file so that the
420     field_type information is present.
421    
422 jonathan 490 2003-03-10 Jonathan Coles <[email protected]>
423    
424 jonathan 505 * Thuban/UI/classifier.py (Classifier.__init__): Make the
425     field type label grow so that when the text changes the
426     size is updated correctly. This may be a wxWindows bug.
427    
428     2003-03-10 Jonathan Coles <[email protected]>
429    
430 jonathan 499 * Thuban/UI/application.py: Changed SESSION_CHANGED to
431     SESSION_REPLACED.
432    
433     * Thuban/UI/classifier.py: Wrap text with _().
434     (ClassGrid.CreateTable): Set dimensions and size hints here,
435     instead of in Reset, so we only set the size once.
436    
437     * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
438    
439     * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
440     Call Close() instead of Shutdown().
441    
442     * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
443    
444     * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
445     Go back to using OnClose() instead of Shutdown().
446    
447     2003-03-10 Jonathan Coles <[email protected]>
448    
449 jonathan 497 * Thuban/UI/classifier.py (Classifier): SelectField() needed
450     to know the old field index as well as the new one.
451    
452     2003-03-10 Jonathan Coles <[email protected]>
453    
454 jonathan 495 * Thuban/UI/classifier.py (Classifier): Use __SelectField()
455     to correctly set the table information and call this from
456     __init__ and from _OnFieldSelect so that all the information
457     is up to date when the dialog opens and when a field is changed.
458    
459     2003-03-10 Jonathan Coles <[email protected]>
460    
461 jonathan 490 * Thuban/Model/classification.py (Classification): Don't use
462     layer's message function directly, use the ClassChanged() method
463     when then classification changes. SetField/SetFieldType/SetLayer
464     must keep the information about field name and field type in
465     sync when an owning layer is set or removed.
466    
467     * Thuban/Model/layer.py: Added ClassChanged() so that the
468     classification can tell the layer when its data has changed.
469     (Layer.SetClassification): Accepts None as an arguement to
470     remove the current classification and correctly handles
471     adding a new classification.
472    
473     * Thuban/Model/load.py: Comment out print statement
474    
475     * test/test_classification.py, test/test_save.py: New and
476     improved tests.
477    
478 jonathan 483 2003-03-07 Jonathan Coles <[email protected]>
479    
480     * Thuban/Model/classification.py: Implemented __copy__ and
481     __deepcopy__ for ClassGroup* and ClassGroupProperites so
482     they can easily be copied by the classifier dialog.
483     (ClassGroupProperites.__init__): The default line color should
484     have been Color.Black.
485    
486     * Thuban/UI/classifier.py: Setting and Getting table values now
487     uses a consistent set of functions.
488     (Classifier): Now non-modal. Has field type label which changes
489     as the field changes. Keep track of buttons in a list so that
490     we can enable/disable the buttons when the None field is selected.
491     (SelectPropertiesDialog): Add buttons to make the colors transparent.
492    
493     * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
494     does what OnClose did, but can be called by the application to
495     close a window. Needed when a session changes, and we have to
496     close the classifier windows.
497    
498     * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
499     Shuts down open dialogs. Used when a new session is created
500     or a session is opened.
501     (MainWindow.SaveSession): Should only call application.SaveSession()
502     if we don't call SaveSessionAs first.
503     (MainWindow.Classify): Allow different classifier dialogs for
504     different layers.
505    
506     * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
507     the parent class handle it. Add Shutdown() to unsubscibe from
508     event notification and call the parent Shutdown(). This was
509     necessary so the application can close the tree window.
510    
511 jonathan 478 2003-03-06 Jonathan Coles <[email protected]>
512    
513     * Thuban/Model/classification.py: Minor documentation changes,
514     Addition of __eq__ and __ne__ methods.
515     (Classification.SetLayer): prevent recursion between this method
516     and Layer.SetClassification().
517    
518     * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
519    
520     * Thuban/Model/layer.py (SetClassification): prevent recursion
521     between this method and Classification.SetLayer().
522    
523     * test/test_classification.py, test/test_load.py,
524     test/test_session.py: Fixed and added tests for the classification
525     classes.
526    
527 bh 477 2003-03-06 Bernhard Herzog <[email protected]>
528    
529     * Thuban/UI/classifier.py (ClassGrid.__init__)
530     (ClassGrid.CreateTable): Move the SetSelectionMode call to
531     CreateTable because otherwise it triggers an assertion in
532     wxPython/wxGTK 2.4.
533    
534 jonathan 459 2003-03-05 Jonathan Coles <[email protected]>
535    
536 jonathan 475 * Thuban/common.py: Move FIELDTYPE constants back to table.py.
537 jonathan 471
538 jonathan 475 * Thuban/Model/load.py: import FIELDTYPE constants from table.
539 jonathan 471
540 jonathan 475 * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
541 jonathan 471
542 jonathan 475 * Thuban/Model/table.py: Put FIELDTYPE constants back.
543 jonathan 471
544     2003-03-05 Jonathan Coles <[email protected]>
545    
546 jonathan 459 * Thuban/UI/classifier.py: Added class documentation.
547     Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
548     Store just the groups in the table and generate the other
549     column information when it is requested. Add "None" field
550     to pull-down to select no classification.
551    
552     * Thuban/common.py: Moved FIELDTYPE constants from table.py
553     (Str2Num): Only catch ValueError exceptions.
554    
555     * Thuban/Model/classification.py: Class documentation. Renaming
556     of methods with Stroke to Line. Groups are stored in a single
557     list with the default as the first element. Groups are searched
558     in the order they appear in the list.
559    
560     * Thuban/Model/color.py: Documentation.
561    
562     * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
563     the kind of data represented by a field.
564    
565     * Thuban/Model/load.py (ProcessSession): Use proper string
566     conversion function; fixes RTbug #1713.
567    
568     * Thuban/Model/save.py (Saver): Store field type information.
569    
570     * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
571     (Table): Add field_info_by_name() to retrieve field information
572     by specifying the field name, not the number.
573    
574     * Thuban/UI/mainwindow.py: Function name changes.
575    
576     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
577     get the layer classification once. Don't try to classify
578     values when the field is None: just use the default properties.
579    
580     * Thuban/UI/view.py: Function name changes.
581    
582     * Doc/thuban.dtd: Add field_type attribute to a classification.
583    
584 bh 456 2003-03-04 Bernhard Herzog <[email protected]>
585    
586 bh 458 * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
587     the fill and stroke layer attributes optional with suitable
588     default values. Add the stroke_width layer attribute. Use correct
589     syntax for empty elements. Make the attribute list for labels
590     refer to the label element.
591    
592     2003-03-04 Bernhard Herzog <[email protected]>
593    
594 bh 456 * setup.py (thuban_build_py.build): Add a comment about distutils in
595     Python 2.3 containing some of the functionality we implement in
596     setup.py ourselves.
597    
598     * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
599     before the selection mode. Doing it the other way round triggers
600     an assertion in wxWindows.
601    
602     * Thuban/Model/save.py (escape): Fix typo in doc-string
603    
604     * Thuban/Model/classification.py: Remove unnecessary wxPython
605     import
606    
607 jonathan 448 2003-03-04 Jonathan Coles <[email protected]>
608    
609     * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
610     Parameter 'value' should default to None.
611    
612     * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
613     the class attribute __classification is now private.
614    
615     * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
616     Classifier to ClassGrid. Added support for removing selected rows,
617     which including code for keeping track of when cells are selected,
618     and deselected.
619     (ClassTable): Support for added/removing rows. Fixed a problem
620     with __ParseInput whereby it would not allow strings (only numbers)
621     to be entered.
622     (Classifier): Added button and supporting code for removing
623     selected rows.
624    
625 jonathan 445 2003-02-27 Jonathan Coles <[email protected]>
626 jonathan 434
627     * Thuban/common.py: Moved color conversion functions into
628     Thuban/UI/common.py.
629     (Str2Num): Now converts the float (not the string) to a long/int
630     so that an exception isn't thrown.
631    
632     * Thuban/UI/common.py: Common functions used in several UI modules
633    
634     * Thuban/Model/classification.py: Changed the class hierarchy
635     so that a Classification consists of Groups which return
636     Properties when a value matches a Group.
637    
638     * Thuban/Model/layer.py: Fixed name resolution problem.
639    
640     * Thuban/Model/load.py: Use new Classification and Group functions.
641    
642     * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
643     failure.
644     (Saver.write_classification): Use new Classification and Group
645     functions.
646    
647     * Thuban/UI/classifier.py: Changes to use new Classification and Group
648 jonathan 445 functions. Fix to create a tuple with a single value instead of
649     simply returning the value.
650 jonathan 434
651     * Thuban/UI/renderer.py: Use new Classification and Group functions.
652     Use common.py functions.
653    
654 jonathan 445 * Thuban/UI/tree.py: Use common.py functions.
655 jonathan 447
656     * test/test_classification.py: Use new Classification and Group
657     classes.
658 jonathan 434
659 jonathan 426 2003-02-24 Jonathan Coles <[email protected]>
660    
661     * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
662     functions from Thuban color objects to wxWindow colour objects.
663    
664     * Thuban/Model/classification.py (Classification): Renamed
665     GetProperties() to GetClassData(). Used the new iterator
666     in TreeInfo().
667     (ClassIterator): Iterator implementation to iterate over the
668     ClassData objects in a classification object.
669    
670     * Thuban/Model/save.py (Saver.write_classificaton): Uses
671     the new iterator to save the classification information.
672    
673     * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
674     for changing the stroke and fill colors and previewing the
675     changes.
676    
677     * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
678     MainWindow.SaveSessionAs): Text string changes so the dialogs
679     have more meaningful titles.
680    
681     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
682     Classification method name from GetProperties to GetClassData.
683    
684     * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
685     instead of accessing now non-existent class variables.
686    
687 bh 425 2003-02-24 Bernhard Herzog <[email protected]>
688    
689     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
690     unneeded Shape() call. Rendering is substantially faster without
691     it and it avoids some problems with broken shape files.
692    
693 frank 423 2003-02-20 Frank Koormann <[email protected]>
694    
695     Force minimal size of identify and label dialogs. The autosizing
696     looked too ugly.
697    
698     * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
699     * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
700     Set size of listctrl.
701     * Thuban/UI/identifyview.py (IdentifyView.__init__):
702     Set size of dialog.
703    
704 jonathan 408 2003-02-19 Jonathan Coles <[email protected]>
705    
706     * test/test_classification.py, test/test_layer.py,
707     test/test_load.py, test/test_map.py, test/test_session.py:
708     Updated the tests to use the new functions that are in the
709     respective classes.
710    
711     * Thuban/Model/classification.py (Classification):
712     Uses the new ClassData* classes. Modification messages are
713     passed up to the parent layer (if it exists).
714     (ClassData): New class to encapsulate the common data in each
715     classification property.
716     (ClassDataDefault): Represents the Default class. data.
717     (ClassDataPoint): Represents a single class. data point
718     (ClassDataRange): Represents a class. range
719     (ClassDataMap): Represents a class. map (unused).
720    
721     * Thuban/Model/color.py: Added Color.None to represent something
722     with no color. Color.Black represents the color black.
723     (NoColor): Helper class derived from Color to represent something
724     with no color.
725    
726     * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
727     stroke_width attributes. Made the 'classification' attribute private.
728     New methods for setting/getting the classification.
729    
730     * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
731     to get the classifcation and use the new ClassData* classes to
732     hold the classification data. Use Str2Num to convert numbers
733     properly.
734    
735     * Thuban/Model/save.py (Saver): Use new Color and Classification
736     methods
737    
738     * Thuban/UI/classifier.py (ClassGrid): New class to represent a
739     custom grid.
740     (ClassTable): Support for editing Values and Labels and for
741     changing what type (point or range) of data is stored in each
742     property based on how the user enters the data.
743     (Classifier): Support for saving the new classifications and
744     launching the dialog to edit a property.
745     (SelectPropertiesDialog): New class for editing the visual
746     properties of a classification (stroke color, width, and fill color)
747     (ClassPreviewer): Took the Draw method from ClassRenderer and
748     made most of it into this new class. Intend to use this class in
749     the SelectPropertiesDialog for previewing changes.
750    
751     * Thuban/UI/renderer.py: Use new Color and Classification methods.
752    
753     * Thuban/UI/tree.py: Formatting changes.
754    
755     * Doc/thuban.dtd: Add 'label' element
756    
757     * Thuban/common.py: New. Contains common routines used throughout
758     the code.
759     (Str2Num): Takes a string and converts it to the "best" type of
760     number.
761    
762 bh 405 2003-02-14 Bernhard Herzog <[email protected]>
763    
764     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
765     dragging flag is always set to 0 even when the tool implementation
766     raises an exception
767    
768 bh 402 2003-02-11 Bernhard Herzog <[email protected]>
769    
770     * Thuban/UI/application.py (ThubanApplication.splash_screen): New
771     method to create a splash screen.
772     (ThubanApplication.ShowMainWindow): New. Show the main window.
773     Needed so the splash screen can display the mainwindow
774     (ThubanApplication.OnInit): Call the
775     new splash_screen method to determine whether the application
776     should display a splash screen. If it displays a splash screen do
777     not immediately show the main window.
778    
779 jonathan 399 2003-02-11 Jonathan Coles <[email protected]>
780    
781     * Thuban/Model/classification.py: Added import line to fix
782     feature conflicts between running on python2.2 and python2.1.
783    
784     * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
785     onto the clinfo parameter, so removed the deepcopy().
786    
787 jonathan 396 2003-02-10 Jonathan Coles <[email protected]>
788    
789 tkoester 403 * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
790 jonathan 396 Added element_open variable to track opening and closing of tags
791     so that tags that don't span more than one line are closed with
792     /> instead of </tag_name>. Use the GetDefault*() methods of
793     the Classification class.
794    
795     * Thuban/Model/classification.py (Classificaton): Added set and
796     get methods for the default data. The class also takes a layer
797     reference so that modification messages can be sent. Fixed the
798     methods to use the new ClassData class.
799     (ClassData): New class to encapsulate the classification data
800    
801     * Thuban/Model/layer.py (Layer): Remove the
802 tkoester 403 Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
803 jonathan 396 SetDefault*() methods on the layer's classification object.
804 tkoester 403 (Layer.__init__): Use the new SetDefault*() methods in the
805 jonathan 396 Classification class.
806    
807     * Thuban/Model/load.py (ProcessSession): Use the new ClassData
808     object instead of a dictionary.
809    
810 tkoester 403 * Thuban/UI/classifier.py (ClassRenderer): New class to
811 jonathan 396 draw the classifications in the dialog box's table.
812     (Classifier): Modified to use the ClassRenderer class.
813    
814 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
815     methods of the Classification class.
816 jonathan 396
817     * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
818     of the ClassData class.
819    
820     * test/test_classification.py, test/test_layer.py,
821     test/test_map.py, test/test_session.py: Fix the tests to work
822     with the above code changes.
823    
824 jonathan 387 2003-02-03 Jonathan Coles <[email protected]>
825    
826     * Thuban/Model/classification.py (Classification): Added getNull()
827     to return the NullData reference
828    
829     * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
830     Layer.SetStrokeWidth): Modified these functions to change the
831     null data in the classification rather than keep these values
832     directly in the Layer class. Menu options to change these values
833     work again.
834    
835 jonathan 380 2003-01-28 Jonathan Coles <[email protected]>
836    
837 jonathan 384 * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
838 tkoester 403 Fixed crashing problem on some systems. Dialog box shows
839 jonathan 380 classification data.
840    
841 jonathan 384 * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
842     Colors in the tree view.
843    
844     * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
845     the tree info for classifications. Commented out unnecessary lines.
846    
847     * Thuban/Model/classification.py (Classification.TreeInfo): New
848     function to add information about the classification into the
849     tree view.
850    
851 tkoester 403 2003-01-27 Jan-Oliver Wagner <[email protected]>
852 jan 375
853 tkoester 403 * Thuban/__init__.py (_): New.
854 jan 375
855     * Thuban/Model/classification.py, Thuban/Model/extension.py,
856     Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
857 tkoester 403 Thuban/Model/session.py, Thuban/UI/application.py,
858     Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
859     Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
860     Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
861     Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
862     Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
863 jan 375
864 jonathan 370 2003-01-27 Jonathan Coles <[email protected]>
865    
866 tkoester 403 * Thuban/Model/layer.py: Classification initialization calls.
867 jonathan 370
868 tkoester 403 * Thuban/Model/classification.py: Created class to encapsulate
869     a layer classification. Supports specific data points and
870     ranges.
871 jonathan 370
872 tkoester 403 * Thuban/Model/load.py: Added support for loading classification
873     information.
874 jonathan 370
875 tkoester 403 * Thuban/Model/save.py: Added support for saving classification
876     information.
877 jonathan 370
878 tkoester 403 * Thuban/UI/classifier.py: Initial class for a dialog box for
879     specifying classification information.
880 jonathan 370
881 tkoester 403 * Thuban/UI/mainwindows.py: Support for opening the classifier
882     dialog.
883 jonathan 370
884 tkoester 403 * Thuban/UI/renderer.py: Support for drawing a layer with the
885     classification information.
886 jonathan 370
887 tkoester 403 * Data/iceland_sample_class.thuban: iceland_sample with
888     classification data.
889 jonathan 370
890 tkoester 403 * test/test_classification: Tests for the Classification class.
891 jonathan 370
892 bh 359 2002-12-09 Bernhard Herzog <[email protected]>
893    
894 bh 361 * test/test_command.py: New. Tests for the command classes.
895    
896 bh 359 * Thuban/UI/command.py (ToolCommand): New class for tool commands.
897     (Command.IsTool): New method to distinguish between command
898     switching tools and other commands.
899    
900     * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
901     the tool to avoid direct assignments to instance variables
902     (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
903     (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
904     change the tool
905    
906     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
907     active tool's command turns insensitive, disable the tool.
908     (_tool_command): Use the new ToolCommand class
909    
910     * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
911     SelectTool method to change the tool
912     (iconfile): Use the ToolCommand class
913    
914 bh 354 2002-12-03 Bernhard Herzog <[email protected]>
915    
916     * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
917     the case of selected items that are not children of Layers or Maps
918     properly. Previously this bug would trigger an assertion in
919     wxWindows.
920    
921 frank 352 2002-11-06 Frank Koormann <[email protected]>
922    
923 bh 354 * Thuban/UI/mainwindow.py: Altered the order of tools in the
924     toolbar: First now are all navigation tools (Zoom In/Out, Pan,
925     Full Extent).
926 tkoester 403
927 bh 349 2002-10-23 Bernhard Herzog <[email protected]>
928    
929     * setup.py (setup call): version now 0.1.3
930    
931     * MANIFEST.in: Add the files in test/
932    
933     * test/README: Add note about tests requiring the iceland data
934    
935     * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
936     copyright notice.
937    
938 bh 344 2002-10-18 Bernhard Herzog <[email protected]>
939    
940     * test/test_map.py
941     (TestMapWithContents.test_projected_bounding_box): Use an explicit
942     epsilon.
943    
944     * test/support.py (FloatComparisonMixin.assertFloatEqual)
945     (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
946     message if the assertion fails and don't return the return value
947     of self.assert_. In assertFloatSeqEqual the return meant that not
948     all items of the sequence were compared.
949    
950 bh 326 2002-09-20 Bernhard Herzog <[email protected]>
951    
952 bh 341 * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
953    
954     * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
955    
956 bh 338 * test/test_map.py (TestMapWithContents.test_tree_info): Create
957     the string with the bounding box on the fly because of platform
958     differences in the way %g is handled.
959    
960     * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
961     DBFfile too because Thuban layers can't yet cope missing DBF
962     files.
963    
964     2002-09-20 Bernhard Herzog <[email protected]>
965    
966 bh 326 * test/test_menu.py: Use initthuban instead of
967     add_thuban_dir_to_path to initialize Thuban.
968    
969     * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
970     Mixin class for float comparisons
971     (SubscriberMixin): New. Mixin class to test messages sent through
972     the Connector class
973    
974     * test/README: Fix a typo and add the -v flag to the command for
975     individual tests
976    
977 bh 335 * test/test_session.py: New. Test cases for Thuban.Model.session
978    
979     * test/test_proj.py: New. Test cases for Thuban.Model.proj
980    
981     * test/test_map.py: New. Test cases for Thuban.Model.map
982    
983     * test/test_layer.py: New. Test cases for Thuban.Model.layer
984    
985     * test/test_label.py: New. Test cases for Thuban.Model.label
986    
987     * test/test_connector.py: New. Test cases for Thuban.Lib.connector
988    
989     * test/test_color.py: New. Test cases for Thuban.Model.color
990    
991     * test/test_base.py: New. Test cases for Thuban.Model.base
992    
993 bh 322 2002-09-13 Bernhard Herzog <[email protected]>
994    
995     * Thuban/Model/session.py (Session.forwarded_channels): Forward
996     the CHANGED channel too.
997    
998     * Thuban/Model/map.py (Map.forwarded_channels): Forward the
999     CHANGED channel too.
1000     (Map.__init__): Call the Modifiable constructor as well.
1001    
1002     * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
1003     event if the modified flag changes.
1004     (Modifiable.changed): Tweak the doc-string.
1005    
1006     * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
1007     (MainWindow.set_position_text): Put the code that puts the text
1008     with the mouse position into the status bar into the new method
1009     set_position_text so that it can overwritten in derived classes.
1010    
1011 bh 317 2002-09-12 Bernhard Herzog <[email protected]>
1012    
1013     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
1014     message box on the main window.
1015    
1016 bh 313 2002-09-11 Bernhard Herzog <[email protected]>
1017    
1018     * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
1019     the 'E' because it's less likely to interfere with other menu
1020     entries.
1021 bh 315 (MainWindow.build_menu): remove an incorrect comment.
1022 bh 313
1023 bh 311 2002-09-10 Bernhard Herzog <[email protected]>
1024    
1025     * Thuban/UI/mainwindow.py (MainWindow.Map): New.
1026     (_tool_command): Add sensitive parameter
1027     (_has_visible_map): Sensitivity callback to tools and other
1028     commands that require a visible map. Use it in map_zoom_in_tool,
1029     map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
1030     and map_full_extent
1031    
1032 bh 308 2002-09-06 Bernhard Herzog <[email protected]>
1033    
1034     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1035     VIEW_POSITION
1036    
1037 tkoester 403 2002-09-04 Frank Koormann <[email protected]>
1038 frank 306
1039     * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1040    
1041 bh 302 2002-09-02 Bernhard Herzog <[email protected]>
1042    
1043 bh 304 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
1044     wxWindows already and our implementation doesn't work correctly
1045     with wxGTK 2.3:
1046     (MapCanvas.__init__): Remove the instance variable
1047     (MapCanvas.OnPaint): Always call do_redraw when there's a map to
1048     be drawin
1049     (MapCanvas.OnIdle): Removed.
1050    
1051 bh 302 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
1052     a parameter to determine the size of the rectangle.
1053     (MapCanvas.find_shape_at): Create the box around the point on a
1054     layer by layer basis and make the size depend on the shape type.
1055     This solves a problem with the selection of point shapes at the
1056     border of the layer's bounding box
1057    
1058 bh 292 2002-08-30 Bernhard Herzog <[email protected]>
1059    
1060 bh 300 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
1061     for the sensitivity of remove layer.
1062     (_can_remove_layer): New. Sensitivity callback for remove layer
1063     (Command layer_remove): Use _can_remove_layer
1064    
1065     * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
1066     determine whether a given layer can be deleted.
1067    
1068 bh 297 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1069     (MapCanvas.do_redraw): Get rid of the unused update_region
1070     instance variable
1071    
1072 bh 294 * Thuban/UI/view.py: Add/update some doc-strings.
1073    
1074 bh 292 * test/: new subdirectory with a bunch of unit tests.
1075    
1076     * test/README, test/test_table.py, test/test_save.py,
1077     test/test_menu.py, test/test_load.py: Initial set of tests and
1078     brief instructions on how to run them
1079    
1080 bh 287 2002-08-29 Bernhard Herzog <[email protected]>
1081    
1082 bh 291 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1083     arcs with multiple parts.
1084    
1085 bh 289 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1086     Handle degenrate rectangles.
1087    
1088 bh 287 * Thuban/Model/table.py: Make writing records work correctly:
1089     (Table.__init__): Keep track of whether the DBF is open for
1090     writing
1091     (Table.write_record): Open the DBF file for writing when necessary
1092    
1093 bh 285 2002-08-27 Bernhard Herzog <[email protected]>
1094    
1095     * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
1096     dbf files only for reading by default. Use a new writable dbf
1097     object for writing.
1098    
1099 bh 278 2002-08-26 Bernhard Herzog <[email protected]>
1100    
1101 bh 282 * Thuban/UI/mainwindow.py: Refactor the context creation:
1102     (MainWindow.Context): New method to return a context
1103     (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
1104     new method
1105    
1106 bh 278 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
1107     layer table specific code from TableGrid into LayerTableGrid
1108     (TableFrame, LayerTableFrame): Split the layer table specific code
1109     from TableFrame into LayerTableFrame
1110 bh 280 (LayerTableGrid.select_shape): Remove a debug print
1111 bh 278
1112     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1113     LayerTableFrame
1114    
1115 bh 277 2002-08-23 Bernhard Herzog <[email protected]>
1116    
1117     * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
1118     absolute filename.
1119    
1120 bh 269 2002-08-22 Bernhard Herzog <[email protected]>
1121    
1122 bh 275 * Thuban/Model/table.py (Table.write_record): New method to write
1123     records.
1124 tkoester 403 (Table.__init__): Open the DBF file for writing too.
1125 bh 275
1126     * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1127     into the underlying table.
1128    
1129     * extensions/shapelib/shapefil.h (DBFCommit),
1130     extensions/shapelib/dbfopen.c (DBFCommit): New API function to
1131     commit any changes made to the DBF file.
1132    
1133 bh 271 * Thuban/UI/mainwindow.py (make_check_current_tool)
1134     (_tool_command): Put the code that generates the "checked"
1135     callback into a separate function so that we can reuse it
1136     elsewhere
1137    
1138 bh 269 * Thuban/Model/save.py (Saver): New class to handle serializing a
1139     session into an XML file. The main reason to introduce a class is
1140     that applications built on Thuban can derive from it so that they
1141     can save additional information in a session file.
1142     (save_session): Delegate almost all the work to the Saver class.
1143     Rename the filename argument to file because it may be a file like
1144     object now.
1145    
1146     * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
1147     code. Remove the little test code which would be executed when the
1148     module is run as a script which didn't work anymore since it can't
1149     import the other Thuban modules.
1150     (ProcessSession, load_session): Refactor the ProcessSession to
1151     have one method for each element start and end tag so that derived
1152     classes can easily override the processing of individual tags.
1153     Also, always parse with namespaces enabled because applications
1154     built on top of Thuban will likely use namespaces if they extend
1155     the session file format.
1156    
1157 bh 266 2002-08-21 Bernhard Herzog <[email protected]>
1158    
1159     * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1160     because thubaninit_contents will do it for us.
1161    
1162 tkoester 403 2002-08-16 Jan-Oliver Wagner <[email protected]>
1163 jan 265
1164     * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1165     tree window already open
1166    
1167 bh 259 2002-08-15 Bernhard Herzog <[email protected]>
1168    
1169 bh 263 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
1170     with self.
1171    
1172     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
1173     when we have actually captured it.
1174    
1175 bh 259 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
1176     shapefile and destroy the table.
1177    
1178     * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
1179    
1180 bh 254 2002-08-14 Bernhard Herzog <[email protected]>
1181    
1182 bh 256 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
1183     instance variable columns
1184     (RecordTable.GetTypeName): row and col may be negative in some
1185     cases.
1186    
1187 bh 254 * setup.py (InstallLocal.initialize_options)
1188     (InstallLocal.finalize_options, InstallLocal.user_options): New
1189     option create-init-file to build a thubaninit.py when running
1190     install_local
1191     (InstallLocal.run): Create the thubaninit.py module when requested
1192     (thubaninit_contents): Split the template into several parts and
1193     create a new function thubaninit_contents that creates the
1194     contents of a thubaninit module.
1195     (ThubanInstall.run): Use the new function to create the thubaninit
1196     module.
1197    
1198 bh 252 2002-07-30 Bernhard Herzog <[email protected]>
1199    
1200     * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
1201     cleanup.
1202     (ThubanApplication.MainLoop): Extend to automatically call OnExit.
1203    
1204     * Thuban/Model/session.py (Session.Destroy): Don't bypass the
1205     direct base class' Destroy method.
1206    
1207     * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
1208     layers.
1209     (Map.Destroy): Destroy the label_layer as well and call the
1210     inherited Desatroymethod first so that no more messages are
1211     issued.
1212     (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
1213     message if the stacking order actually has changed. Add
1214     doc-strings.
1215     (Map.BoundingBox): Correct the doc-string.
1216     (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
1217     (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
1218    
1219     * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
1220     all labels.
1221    
1222 bh 247 2002-07-29 Bernhard Herzog <[email protected]>
1223    
1224     * Thuban/Model/map.py (Map.subscribe_layer_channels)
1225     (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
1226     to a layer's channels into separate methods.
1227     (Map.RemoveLayer, Map.AddLayer): Call the new methods
1228     (Map.Destroy): Unsubscribe from a layer's channels before
1229     destroying it.
1230    
1231     * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
1232     selected_layer parameter to searched_layer which is the layer to
1233     search in.
1234     (MapCanvas.SelectShapeAt): New parameter layer to restrict the
1235     search to that layer. Return the selected layer and shape.
1236    
1237     * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
1238     typo
1239    
1240 bh 238 2002-07-24 Bernhard Herzog <[email protected]>
1241    
1242 bh 243 * Thuban/UI/application.py (ThubanApplication.create_session):
1243     Extend the doc string.
1244     (ThubanApplication.subscribe_session)
1245     (ThubanApplication.unsubscribe_session): New methods to
1246     subscribe/unsubscribe to/from session channels.
1247     (ThubanApplication.SetSession): Call the new methods here.
1248     (ThubanApplication.maps_changed, ThubanApplication.set_map):
1249     Renamed set_map to maps_changed. Its now a subscriber for
1250     MAPS_CHANGED.
1251    
1252     * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
1253     x-coordinate in case of simple clicks
1254    
1255     * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
1256     don't pass it as a parameter
1257    
1258     * Thuban/Model/session.py (Session.RemoveMap): New
1259    
1260 bh 238 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1261     window size into a parameter.
1262    
1263 bh 235 2002-07-23 Bernhard Herzog <[email protected]>
1264    
1265 bh 237 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1266     just commands.
1267    
1268 bh 235 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
1269     parameter list a bit to allow setting the window title and the
1270     initial message in the status bar. Update the callers.
1271    
1272     * Thuban/UI/application.py (ThubanApplication.OnInit)
1273     (ThubanApplication.CreateMainWindow): Put the mainwindow
1274     instantiation into a separate method so that it can be overridden
1275     by a subclass.
1276    
1277 bh 230 2002-07-19 Bernhard Herzog <[email protected]>
1278    
1279 bh 234 * Thuban/Model/session.py: Issue a CHANGED message every time
1280     another changed message is issued to make it easier to get
1281     notified of changes.
1282     (Session): Update the doc string
1283     (Session.forward): Issue changed-events as CHANGED as well.
1284     (Session.changed): Overwrite the inherited version to issue
1285     CHANGED events as well.
1286    
1287     * Thuban/UI/tree.py: We can now simply subscribe to the session's
1288     CHANGED channel to be informed of changes.
1289     (SessionTreeCtrl.session_channels): Not needed any longer.
1290 tkoester 403 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1291 bh 234 Only have to (un)subscribe CHANGED
1292    
1293     * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1294    
1295 bh 230 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
1296     for the wxPython locale bug to __init__.py so that it's
1297     automatically executed by anybody using UI code from Thuban.
1298    
1299 bh 225 2002-07-18 Bernhard Herzog <[email protected]>
1300    
1301 bh 228 * Thuban/UI/main.py (main): app no longer needs to be global
1302    
1303     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
1304     as parameter and store it in an instance variable
1305     (MainWindow.invoke_command, MainWindow.update_command_ui)
1306     (MainWindow.save_modified_session, MainWindow.NewSession)
1307     (MainWindow.OpenSession, MainWindow.SaveSession)
1308     (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
1309     application object.
1310    
1311     * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
1312     the main window with self.
1313    
1314 bh 225 * Thuban/UI/context.py: New module with the context class
1315    
1316     * Thuban/UI/command.py (Command): Update doc string.
1317    
1318     * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
1319     MainWindow.update_command_ui): Pass an instance of the context
1320     class to the command's methods
1321     (check_current_tool, call_method): Handle the new context
1322     implementation
1323    
1324     * Examples/simple_extensions/simple_tool.py (simple_tool,
1325     check_simple_tool): Handle the new context implementation
1326    
1327     * Examples/simple_extensions/simple_command.py (simple_command):
1328     Handle the new context implementation. Update the comments about
1329     the context.
1330    
1331     * Thuban/UI/application.py (ThubanApplication.SetSession): Add
1332     doc-string
1333     (ThubanApplication.Session): New method to return the session
1334     object
1335    
1336     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
1337     interactor's selected_layer may not be a layer of the current
1338     session when the tree is updated while a new session is being set.
1339    
1340 bh 217 2002-07-17 Bernhard Herzog <[email protected]>
1341    
1342     * Thuban/UI/tree.py (color_string): Removed. No longer used.
1343     (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
1344     update_tree into update_tree and add_items. The tree now uses a
1345     more generic way to display the contents of the tree.
1346     (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
1347    
1348     * Thuban/Model/layer.py (Layer.TreeInfo),
1349     Thuban/Model/extension.py (Extension.TreeInfo),
1350     Thuban/Model/map.py (Map.TreeInfo),
1351 tkoester 403 Thuban/Model/session.py (Session.TreeInfo):
1352 bh 217 Add TreeInfo methods to implement the new tree view update scheme
1353    
1354 bh 216 2002-07-16 Bernhard Herzog <[email protected]>
1355    
1356     * Thuban/UI/application.py: Don't use "import from" for the
1357     MainWindow. It can't always be resolved.
1358     (ThubanApplication.OnInit): change reference to MainWindow
1359     accordingly.
1360    
1361     * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
1362     completely
1363    
1364 bh 213 2002-07-10 Bernhard Herzog <[email protected]>
1365    
1366     * setup.py (create_init_module): New configurable variable whose
1367     default depends on the platform we're running on.
1368     (ThubanInstall.initialize_options): Initialize
1369     self.create_init_module from the global create_init_module
1370     (ThubanInstall.user_options): indictate that the options
1371     create-init-module and init-module-dir have arguments.
1372    
1373     * setup.py: In the setup call change the version number to include
1374     cvs.
1375    
1376     * MANIFEST.in: Add the files in Examples
1377    
1378 bh 205 2002-07-09 Bernhard Herzog <[email protected]>
1379    
1380 bh 210 * setup.py: In the setup call, use the thuban homepage as the
1381     value of the url parameter.
1382    
1383 bh 208 * Examples: New subdirectory for examples.
1384    
1385     * Examples/simple_extensions/simple_tool.xpm,
1386     Examples/simple_extensions/simple_tool.py,
1387     Examples/simple_extensions/simple_command.py,
1388     Examples/simple_extensions/README: Simple examples showing how to
1389     add new commands and tools.
1390    
1391 bh 207 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
1392     bdist_rpm that we also have an install script.
1393     (bdist_inno): Add 2002 to the copyright notice.
1394    
1395 bh 205 * setup.py: Create a file in python's site-packages directory to
1396     make installation of Thuban as a library easier.
1397     (ThubanInstall.user_options): Add two new options,
1398     create-init-module and init-module-dir
1399     (ThubanInstall.expand_with_pure_python_dirs): New method to expand
1400     filenames for installation in the default directories.
1401     (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
1402     the inherited methods to capture some filenames before they're
1403     transformed too much by distutils.
1404     (ThubanInstall.run): Create the init module if requested.
1405     (ThubanInstall.thuban_init_filename): New method to return the
1406     full name of the init module.
1407     (ThubanInstall.get_outputs): Append the filename of the init
1408     module.
1409    
1410 bh 202 2002-07-08 Bernhard Herzog <[email protected]>
1411    
1412 bh 205 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
1413     handle the prefix properly which means that the default for the
1414     installation prefix should be /usr for RPMs and /usr/local when
1415     doing a normal source install.
1416     (bdist_rpm_install_script): Script to override the default install
1417     commands in the specfile generated by the bdist_rpm command.
1418     (thuban_bdist_rpm.user_options): Add a prefix option
1419     (thuban_bdist_rpm.initialize_options): Init the prefix option.
1420     Create the script files for the spec files as empty files here
1421     (thuban_bdist_rpm._make_spec_file): Override the inherited method
1422     to fill the script files with content.
1423    
1424 bh 202 * Thuban/Model/save.py (relative_filename): Wrapper around
1425     Thuban.Lib.fileutil.relative_filename that accepts an empty dir
1426     argument. save_session now automatically uses this version,
1427     solving a problem when saving to a relative filename.
1428    
1429     * setup.py: In the setup call, make sure that the library
1430     directories are under $prefix/lib not directly under $prefix.
1431    
1432 tkoester 403 2002-06-20 Jan-Oliver Wagner <[email protected]>
1433 jan 199
1434     * Thuban/Model/extension.py: new module to handle extension objects.
1435     * Thuban/Model/messages.py: new messages for extensions.
1436     * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
1437     Session.AddExtension): new for handling extensions.
1438     Also some other minor changes to round up extension handling.
1439     * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
1440     of Extension titles and title and names of its objects.
1441    
1442 bh 194 2002-05-29 Bernhard Herzog <[email protected]>
1443    
1444     * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
1445 bh 202 the events for a command.
1446 bh 194 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
1447     Call bind_command_events to bind the events. add_toolbar_command
1448     can now bind events too so that it's possible to have commands
1449     that are only available through the toolbar.
1450     (MainWindow.init_ids): New instance variable events_bound to keep
1451     track of for which commands events have been bound.
1452    
1453 bh 190 2002-05-28 Bernhard Herzog <[email protected]>
1454    
1455     * Thuban/UI/menu.py: New module to build and manage menus.
1456    
1457     * Thuban/UI/mainwindow.py: Remove some unused imports.
1458     (MainWindow.__init__, main_menu): move the definition of the main
1459     menu from __init__ to the Menu instance main_menu.
1460     (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
1461     build the menu bar and sub-menus from a menu description.
1462    
1463     * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
1464     startup file
1465     (ThubanApplication.read_startup_files): New method to run
1466     ~/.thuban/thubanstart.py
1467    
1468 bh 192 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
1469     Move the toolbar definition to the Menu instance main_toolbar.
1470     (MainWindow.build_toolbar): New method to build the toolbar
1471     similar to the build_menu methods
1472    
1473 bh 184 2002-05-23 Bernhard Herzog <[email protected]>
1474    
1475 bh 186 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1476     layer_outline_color. Fix it in the definition of the command too.
1477    
1478 bh 184 * Thuban/UI/command.py (Command): Fix typo in doc string
1479    
1480 bh 182 2002-05-22 Bernhard Herzog <[email protected]>
1481    
1482     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1483     in the docstring
1484    
1485 bh 175 2002-05-15 Bernhard Herzog <[email protected]>
1486    
1487 bh 180 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
1488     when the shapefile is empty.
1489     (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
1490     now return None for empty shapefiles. Update doc-strings.
1491    
1492     * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
1493     the layer's bbox being None.
1494    
1495     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
1496     layer's bbox being None.
1497    
1498 bh 175 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
1499     necessary.
1500     (MapCanvas.__init__): New instance variables, last_selected_layer
1501     and last_selected_shape to determine how the selection has
1502     changed.
1503    
1504     * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
1505     AutoSizeColumns because it will cause a traversal of the entire
1506     table which for large .dbf files will take a very long time.
1507    
1508 bh 172 2002-05-14 Bernhard Herzog <[email protected]>
1509    
1510     * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
1511     maximum depth for the tree than shapelib does by default.
1512    
1513 bh 165 2002-05-10 Bernhard Herzog <[email protected]>
1514    
1515     * setup.py (py_modules): The shptree modules doesn't have a
1516     wrapper, so don't include it in the py_modules
1517    
1518 bh 163 2002-05-08 Bernhard Herzog <[email protected]>
1519    
1520     * extensions/shapelib/shptree.c (compare_ints): Make arguments
1521     const void * as in the qsort prototype
1522     (SHPTreeFindLikelyShapes): Remove some unused variables.
1523    
1524     * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
1525     maintains to redraw the window during a drag.
1526     (MapCanvas.unprojected_rect_around_point): New method to determine
1527     a small region around a point for hit-testing.
1528     (MapCanvas.find_shape_at): Only test the shapes in a small region
1529     around the point.
1530    
1531     * setup.py: Increment the version to 0.1.2
1532    
1533     * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
1534     debug print and set session to None after unsubscribing
1535    
1536 bh 146 2002-05-07 Bernhard Herzog <[email protected]>
1537    
1538 bh 154 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
1539     the file to have a .thuban extension.
1540    
1541 bh 152 * Thuban/UI/tree.py (session_channels): New class constant with
1542     all the session channels to subscribe to to update the tree
1543     (SessionTreeCtrl.session_changed): Remember the session so that we
1544     can unsubscribe properly. Use the new class constant to
1545     unsubscribe from the old session and subscribe to the new one.
1546     (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
1547     subscriptions of the SessionTreeCtrl.
1548     (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
1549    
1550     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
1551     Session Tree" command to the file menu.
1552    
1553     * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
1554     as update_region to the renderer.
1555    
1556     * Thuban/UI/renderer.py
1557     (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
1558     update box is now directly a tuple, not a wxRect anymore.
1559    
1560     * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
1561     prints.
1562    
1563     2002-05-07 Bernhard Herzog <[email protected]>
1564    
1565 bh 146 * setup.py: Add the shptree extension module. See
1566     extensions/pyshapelib/ChangeLog for more details.
1567    
1568     * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
1569     extensions/shapelib/dbfopen.c: Really update to the versions of
1570     shapelib 1.2.9. For some reason it wasn't really done on
1571     2002-04-11.
1572    
1573     * extensions/shapelib/shptree.c: Modified version of shptree.c of
1574     shapelib 1.2.9. The only real difference is the use of qsort
1575     instead of a bubble sort implementation
1576    
1577     * Thuban/Model/layer.py (Layer.__init__): New instance variable
1578     shapetree to hold the shapelib quadtree for the shapefile
1579     (Layer.open_shapefile): Create the quad tree.
1580     (Layer.ShapesInRegion): New method to return the ids of shapes in
1581     a given region using the quad tree.
1582    
1583     * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
1584     comment
1585     (draw_polygon_shape): Accept both arcs and polygons.
1586     (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
1587     the api.
1588    
1589     * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
1590     return the shape ids to be rendered in a given layer.
1591     (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
1592     ids. Use draw_polygon_shape to draw arc shapes as well.
1593     (ScreenRenderer.RenderMap): New parameter for the rectangle that
1594     has to be updated
1595     (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
1596     calling it's ShapesInRegion method.
1597    
1598     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1599     update_region for the update region.
1600     (MapCanvas.OnPaint): Maintain the update region
1601     (MapCanvas.do_redraw): Pass the bounding box of the update_region
1602     to the renderer when drawing the bitmap. Reset the update_region.
1603    
1604 bh 129 2002-05-03 Bernhard Herzog <[email protected]>
1605    
1606 bh 131 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
1607     MainWindow.OpenSession): Change the file extension of the session
1608     files to .thuban
1609    
1610 bh 129 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
1611     Move the map channels to be forwarded by the session into the
1612 bh 146 class constant with forwarded_channels. Also add
1613     LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
1614     forwarded_channels
1615 bh 129
1616     * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
1617     typo and some rewording).
1618    
1619 bh 126 2002-05-02 Bernhard Herzog <[email protected]>
1620    
1621     * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
1622     around to speed up most redraws:
1623     (MapCanvas.__init__): New instance variable bitmap which holds the
1624     bitmap
1625     (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
1626     self.bitmap to draw.
1627     (MapCanvas.full_redraw): New method to force a full redraw
1628     including the bitmap
1629     (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
1630     make sure the bitmap is redrawn.
1631     (MapCanvas.projection_changed, MapCanvas.set_view_transform,
1632     MapCanvas.shape_selected): Call full_redraw instead of readraw to
1633     make sure the bitmap is redrawn.
1634     (MapCanvas.OnSize): New method to handle size events so that the
1635     bitmap can be redrawn.
1636    
1637 bh 124 2002-04-29 Bernhard Herzog <[email protected]>
1638    
1639     * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1640     canvas' VIEW_POSITION event
1641     (MainWindow.view_position_changed): Handler for VIEW_POSITION.
1642     Update the text in the status-bar accordingly.
1643    
1644     * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
1645     (MapCanvas.__del__): Implement because Publisher.__del__ has to be
1646     called.
1647     (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
1648     current_position
1649     (MapCanvas.set_current_position): New method to set
1650     current_position. Issue a VIEW_POSITION event
1651     (MapCanvas.CurrentPosition): New public method to return the value
1652     of current_position. Should be called when the VIEW_POSITION event
1653     is processed.
1654     (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
1655     Update the position.
1656     (MapCanvas.OnLeaveWindow): Set the position to None.
1657    
1658     * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1659     position in the statusbar
1660    
1661 tkoester 403 2002-04-26 Frank Koormann <[email protected]>
1662 frank 120
1663     * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1664    
1665 tkoester 403 2002-04-24 Frank Koormann <[email protected]>
1666    
1667 frank 118 * Resources/Bitmaps/identify.xpm: shadow added
1668    
1669     * Resources/Bitmaps/fullextent.xpm: new
1670 jan 116
1671 tkoester 403 2002-04-22 Jan-Oliver Wagner <[email protected]>
1672 jan 116
1673 tkoester 403 * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1674     box
1675 jan 114
1676 tkoester 403 2002-04-21 Jan-Oliver Wagner <[email protected]>
1677    
1678 jan 114 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1679    
1680     * Thuban/UI/tree.py (update_tree): added added map extent
1681    
1682     * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1683 tkoester 403 icon; added map_full_extend as tool
1684 jan 114
1685 tkoester 403 2002-04-19 Jan-Oliver Wagner <[email protected]>
1686 jan 107
1687     * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1688     saving _new_ sessions
1689    
1690     * Thuban/Model/session.py (create_empty_session): new session
1691     don't have a filename (set to None)
1692    
1693     * Thuban/UI/tree.py (update_tree): added filename and modified flag
1694    
1695     * Thuban/Model/load.py (ProcessSession): convert projection
1696     parameters from unicode to regular string
1697    
1698     * Data/iceland_sample.session: Added UTM Zone 26 projection.
1699    
1700 bh 100 2002-04-11 Bernhard Herzog <[email protected]>
1701    
1702     * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
1703     extensions/shapelib/dbfopen.c: Update to the versions of shapelib
1704     1.2.9
1705    
1706     * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
1707     the pyshapelib directoy into the list of include dirs, so that
1708     pyshapelib_api.h can be found.
1709    
1710     * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
1711     holds the pyshapelib C-API
1712     (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
1713     pyshapelib_api to access the shapelib functions.
1714     (initwxproj): Import the c_api from the shapelib module and
1715     initialize pyshapelib_api.
1716    
1717 bh 89 2002-04-04 Bernhard Herzog <[email protected]>
1718    
1719 bh 91 * setup.py (thuban_bdist_rpm.initialize_options): Use
1720     initialize_options to create the scripts for the rpm.
1721    
1722 bh 89 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
1723    
1724 bh 85 2002-04-03 Bernhard Herzog <[email protected]>
1725    
1726 bh 87 * setup.py: Increment version to 0.1.1
1727    
1728 bh 85 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
1729     Layer" and "Remove Layer" commands from the layer menu to the map
1730     menu
1731    
1732 bh 83 2002-02-15 Bernhard Herzog <[email protected]>
1733    
1734     * Thuban/Model/layer.py (Layer.Shape): list append only takes one
1735     argument (python <= 1.5.2 erroneously accepted multiuple
1736     arguments)
1737    
1738 bh 81 2002-02-04 Bernhard Herzog <[email protected]>
1739    
1740     * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
1741     RecordGrid in the identifyview.
1742     (IdentifyView.__init__): Use IdentifyGridCtrl instead of
1743     IdentifyListCtrl. The grid allows editing of the values.
1744    
1745     * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
1746     implementing a grid for a single row of a thuban table.
1747    
1748     * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
1749     layers by default. Easier to use than the previous default of only
1750     searching through the select layer which meant that if no layer
1751     was selected, you couldn't select a shape.
1752    
1753     * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
1754    
1755     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
1756     stroke_width attribute
1757    
1758     * Thuban/Model/save.py (save_session): Write the new stroke_width
1759     attribute
1760    
1761     * Thuban/Model/load.py (ProcessSession.startElement): Read the
1762     stroke_width attribute
1763    
1764     * Thuban/Model/layer.py (Layer.__init__): New parameter and
1765     instance variable stroke_width
1766     (Layer.SetStrokeWidth): Set the stroke_width.
1767    
1768 bh 72 2002-02-01 Bernhard Herzog <[email protected]>
1769    
1770     * extensions/thuban/wxproj.cpp (project_points): Fix two
1771     off-by-one errors in the last loop that joins the various parts
1772     together.
1773    
1774 bh 71 2002-01-14 Bernhard Herzog <[email protected]>
1775    
1776     * setup.py (data_dist.make_distribution): Fix some typos
1777    
1778 bh 70 2001-09-18 Bernhard Herzog <[email protected]>
1779    
1780     * README: Slight tweaking in preparation for the 0.1 release
1781    
1782     * setup.cfg: Add section for sdist to create both tgz and zip
1783     archives
1784    
1785     * setup.py: increase version number to 0.1
1786     (data_dist): New command class for data distribution
1787    
1788 bh 64 2001-09-14 Bernhard Herzog <[email protected]>
1789    
1790 bh 70 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1791     Handle the case of no layer (i.e. layer is None) properly.
1792    
1793 tkoester 403 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1794 bh 70 Set the initial selection of the combo boxes to reflect the
1795     projection we're starting with in a way that works on windows,
1796     too.
1797    
1798 bh 64 * Thuban/Lib/connector.py (Connector.print_connections): Print the
1799     puiblisher's ids in hex to make it easier to compare them to the
1800     standard repr of python methods
1801    
1802     * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
1803     messages
1804    
1805 bh 59 2001-09-13 Bernhard Herzog <[email protected]>
1806    
1807 bh 64 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
1808     deselect the layer if no layer is selected
1809    
1810 bh 59 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
1811     idle time when there actually is something to draw. If there's
1812     nothing to draw simply clear the window
1813     (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
1814     (MapCanvas.SetMap): force a redraw in all cases because
1815     FitMapToWindow doesn't always do it.
1816     (MapCanvas.ZoomFactor): Add an optional parameter, center, to
1817     specify the point to move into the center of the window
1818     (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
1819     dragged, zoon in/out by a factor of 2
1820 bh 64 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
1821     index, i.e. reversed drawing order) so that objects appearing to
1822     be in from of others are selected first. This is probably mostly
1823     relevant for point shapes where the symbols used may overlap
1824 bh 59
1825     * Thuban/Model/session.py (create_empty_session): Unset the
1826     modified bit before returning it
1827    
1828     * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
1829     create_empty_session session to create the new, empty session.
1830    
1831     * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
1832     the tool bitmaps.
1833     (MainWindow.OnClose, MainWindow.save_modified_session): Separate
1834     the code that asks whether the session should be saved into the
1835     new method save_modified_session.
1836     (MainWindow.OpenSession, MainWindow.NewSession): Use the new
1837     method to save modified session here too.
1838    
1839 bh 55 2001-09-11 Bernhard Herzog <[email protected]>
1840    
1841     * setup.py (InnoIconItem): fix typo
1842    
1843     (thuban_bdist_inno.run):
1844     (bdist_inno.run): Move the decision not to create symlinks on
1845     non-nt platforms to thuban_bdist_inno and do it unconditinally
1846     since we never want to create the symlinks here
1847    
1848 bh 48 2001-09-10 Bernhard Herzog <[email protected]>
1849    
1850 bh 53 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
1851     identify view immediately
1852    
1853     * Thuban/UI/controls.py: New file with two classes RecordListCtrl
1854     and SelectableRecordListCtrl that implement the code shared by the
1855     identify view and the label dialog
1856    
1857     * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
1858     new class RecordListCtrl
1859    
1860     * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
1861     return value of GetValue is None instead of using it as a boolean
1862     directly so that Zero numbers are handled properly.
1863     (LabelListCtrl): Derive from the new class
1864     SelectableRecordListCtrl
1865    
1866 bh 48 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
1867     (Proj4Dialog.dialogLayout): Make the window resizable and set the
1868     size of the text control explicitly to make the sizers work on
1869     both Windows and X.
1870    
1871 bh 44 2001-09-07 Bernhard Herzog <[email protected]>
1872    
1873     * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
1874     that can limit the search to the currently selected layer.
1875     (MapCanvas.SelectShapeAt): Make sure that the currently selected
1876     layer stays selected even when no shape is found
1877 bh 46 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
1878     height do nothing (avoids zero division errors)
1879 bh 44
1880 bh 32 2001-09-06 Bernhard Herzog <[email protected]>
1881    
1882 bh 42 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
1883     Correct the spelling of SessionTreeCtrl. dabbrev is too damn
1884     convenient :-)
1885     (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
1886     a new instvar layer_to_item to map layers to tree items
1887     (SessionTreeCtrl.layer_selected): Select the appropriate tree item
1888     to match the current selection in the interactor
1889    
1890 bh 40 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
1891     (Interactor.HasSelectedLayer): New methods to query the current
1892     selection
1893    
1894     * Thuban/UI/mainwindow.py (MainWindow.current_layer):
1895     (MainWindow.has_selected_layer): Simply call the appropriate
1896     interactor method
1897    
1898     * Thuban/UI/mainwindow.py (MainWindow.__init__):
1899     (MainWindow.LayerShowTable):
1900     (MainWindow.identify_view_on_demand): Store the interactor in an
1901     instvar and use that reference instead of going through main.app
1902    
1903 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1904     * Thuban/UI/application.py (ThubanApplication.OnInit):
1905 bh 40 * Thuban/UI/main.py (main): Create the session tree view in main
1906     with the new mainwindow method ShowSessionTree and not directly
1907     the application's OnInit method
1908    
1909     * Thuban/UI/tree.py (myTreeCtrlPanel):
1910     (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
1911     TreeCtrl isntead of a panel. This affects most method since we now
1912     refer to self instead of self.tree
1913     (SessionTreeView): New class implementing a non-modal dialog
1914     showing the session tree.
1915    
1916 bh 35 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
1917     layer to the tableview dialog.
1918    
1919     * Thuban/UI/tableview.py: Add some doc-strings
1920 tkoester 403 (TableGrid):
1921 bh 35 (TableGrid.OnRangeSelect):
1922     (TableGrid.OnSelectCell):
1923     (TableFrame.__init__):
1924     (TableFrame.row_selected):
1925     Selecting rows in the grid view now updates the selected shapes
1926     through the TableFrame. To achieve this we derive TableGrid from
1927     Publisher and introduce the message type ROW_SELECTED which the
1928     TableFrame subscribes to and which is issued by OnRangeSelect and
1929     OnSelectCell
1930    
1931     (DataTable.SelectRow): Removed because it's no longer needed in
1932     the row/shape selection scheme
1933    
1934 bh 32 * Thuban/UI/dialogs.py: New file implementing common classes for
1935     dialogs
1936    
1937     * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
1938     the SELECTED_SHAPE message anymore. This is now handled by the
1939     parent.
1940     (TableGrid.select_shape): Only update the selection if the shape
1941     is not None.
1942     (TableFrame): Inherit from the new NonModalDialog class.
1943     (TableFrame.__init__, TableFrame.select_shape): Handle the
1944     SELECT_SHAPE message.
1945     (TableFrame.OnClose): Extend the inherited method to unsubscribe
1946     SELECT_SHAPE
1947    
1948     * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
1949     (MainWindow.add_dialog):
1950     (MainWindow.dialog_open):
1951     (MainWindow.remove_dialog):
1952     (MainWindow.get_open_dialog): New methods to maintain a dictionary
1953     of opened non-modal dialogs.
1954    
1955     (MainWindow.__init__): Initialize the new non-modal dictionary
1956     management code
1957     (MainWindow.LayerShowTable): maintain separate dialogs for each
1958     table using the non-modal dialog management code to only open a
1959     view once for each table.
1960    
1961     (MainWindow.IdentifyTool):
1962     (MainWindow.__init__):
1963     (MainWindow.identify_view_on_demand): Don't open the identify view
1964     in IdentifyTool anymore. This will be done automatically by the
1965     new method identify_view_on_demand which handles the
1966     SELECTED_SHAPE message so that the identify view will be opened on
1967     demand
1968    
1969     * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
1970     the interactor argument. The SELECTED_SHAPE message is now handled
1971     by the parent.
1972     (IdentifyView.__init__): Add the interactor argument so that we
1973     can handle the SELECTED_SHAPE message here
1974     (IdentifyView.selected_shape): New method to handle the
1975     SELECTED_SHAPE messages
1976    
1977     * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
1978     NonModalDialog class
1979     (IdentifyView.OnClose): Extend the inherited version to
1980     unsubscribe SELECT_SHAPE
1981    
1982     * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
1983    
1984 bh 26 2001-09-05 Bernhard Herzog <[email protected]>
1985    
1986     * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1987 tkoester 403
1988 bh 26 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1989     interactor to pass through to the MapCanvas
1990 tkoester 403
1991 bh 26 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1992     argument to the MainWindow constructor to get rid of the ugly hack
1993     that made main.app available early just so that the mapcanvas
1994     could access the interactor object.
1995    
1996 bh 19 2001-09-04 Bernhard Herzog <[email protected]>
1997    
1998 bh 22 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
1999     that runs a modal message box
2000     (MainWindow.OnClose): Use the new method
2001     (MainWindow.RemoveLayer): Just do nothing in case no layer is
2002     selected. The command should be grayed out anyway, so there's no
2003     need to pop up a message box.
2004     (MainWindow.AddLayer): Pop up a message box with an error message
2005     if the shape file can't be opened
2006    
2007     * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
2008     immediately. This will cause an exception in case the file can't
2009     be opened and we can display an appropriate message.
2010    
2011 bh 19 * MANIFEST.in: Add extensions/pyprojection/LICENSE
2012    
2013     * setup.py (thuban_bdist_rpm): New class implementing a Thuban
2014     specific bdist_rpm command.
2015    
2016     * Thuban/UI/main.py: Catch ImportError exceptions when importing
2017     the locale module because it may not be available on some
2018     installations.
2019    
2020     * extensions/pyprojection/LICENSE: Copy of the license text in
2021     Projection.i. Having it in a separate file makes it easier to
2022     refer to license text in e.g. RPMs
2023    
2024 bh 18 2001-09-03 Bernhard Herzog <[email protected]>
2025    
2026 bh 19 * setup.py: use wx-config instead of wxgtk-config because it's
2027     more generic
2028    
2029     * setup.py (ThubanInstall.get_outputs): Add the symlink in
2030     <prefix>/bin to the outputs
2031     (ThubanInstall.link_file): New method to link files. We need this
2032     because the standard copy_files refuses to link non-existing
2033     files.
2034     (ThubanInstall.run): Remove the leading install root from the
2035     script filename if an install root was specified and use the new
2036     link_file method
2037 tkoester 403
2038 bh 18 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2039     the window when the first layer is added to the map.
2040    
2041     * setup.py (ThubanInstall.run): Honor the build root (self.root)
2042     when linking thuban.py to <prefix>/bin
2043    
2044 bh 16 2001-08-31 Bernhard Herzog <[email protected]>
2045    
2046     * setup.py: In the setup call, the install parameters shouldn't
2047     have trailing slashes because distutils on non-posix platforms
2048     doesn't like that. The same applies to other directories like
2049     "Resources/Bitmaps"
2050    
2051     In the configuration section for nt, move the wxWindows directory
2052     optins into the part clearly marked as editable.
2053    
2054     (InstallLocal.initialize_options):
2055     (InstallLocal.user_options): remove the currently unused debug
2056     flag
2057     (thuban_build_py.find_all_modules): Add this method so that it
2058     works for our case of having packages and modules in one
2059     distribution as well.
2060     (ThubanInstall.initialize_options):
2061     (ThubanInstall.finalize_options):
2062     (ThubanInstall.user_options):
2063     (ThubanInstall.boolean_options): Add new options, do-symlink and
2064     extra files. Since these are the first ThubanInstall specific
2065     options, override user_options and boolean_options
2066     (ThubanInstall.run): Honor the new do-symlink and extra-files
2067     options.
2068     (ThubanInstall.get_outputs): Add to override the base-class's
2069     version and add the extra-files to the outputs
2070     (bdist_inno): New class for windows distributions with Inno Setup
2071     (InnoIconItem): Helper class for bdist_inno
2072     (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2073     this together with the appropriate parameters, to the setup call.
2074 tkoester 403
2075 bh 16 * setup.cfg (bdist_inno): added new section for the inno setup
2076     installer
2077    
2078     * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
2079     changing_selection to avoid recursive selection events when
2080     modifying the selection in response to a selection event.
2081     (myTreeCtrlPanel.normalize_selection): Set the new inst var when
2082     changing the tree's selection.
2083     (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
2084     we're not being called indirectly from normalize_selection.
2085    
2086     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
2087     event.Check only if the command is actuall checkable.
2088     (MainWindow.__init__): Call the toolbar's Realize method to make
2089     sure that the items are actually shown
2090    
2091 bh 7 2001-08-28 Bernhard Herzog <[email protected]>
2092    
2093 bh 9 * setup.py: Fix some doc strings
2094    
2095 bh 7 * ChangeLog: started
2096    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26