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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.35  
changed lines
  Added in v.575

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26