/[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 216 by bh, Tue Jul 16 15:26:15 2002 UTC revision 591 by bh, Wed Apr 2 15:03:30 2003 UTC
# Line 1  Line 1 
1    2003-04-02  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
4    
5    2003-04-01  Jonathan Coles   <[email protected]>
6    
7            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
8            that there actually are points in the returned list of points
9            before trying to index into the list. The list may be empty if
10            the shape is a Null Shape.
11    
12    2003-04-01  Bernhard Herzog  <[email protected]>
13    
14            * test/test_map.py: Don't use from <module> import *
15    
16    2003-04-01  Jonathan Coles   <[email protected]>
17    
18            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
19            LAYER_LEGEND_CHANGED
20    
21            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
22            self.Destroy() to close the window after yesterday's changes.
23    
24            * test/test_map.py, test/test_session.py: Fix messages that
25            are sent from maps and layers.
26    
27    2003-03-31  Jonathan Coles   <[email protected]>
28    
29            * Thuban/UI/classifier.py: Commented out some debugging statements.
30            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
31            RTbug #1769.
32    
33            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
34            position (although position doesn't work yet under GTK).
35            (DockableWindow.Destroy): New. Called when the window must be
36            closed. Namely needed when the DockFrame closes and must close
37            its children.
38            (DockFrame): Listen for EVT_CLOSE and destroy all children.
39    
40            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
41            when then window is told to close.
42            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
43            comment in source for more info.
44    
45            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
46    
47            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
48            symmetry with other such methods.
49            (MainWindow.ShowLegend): Show the legend docked by default.
50    
51    2003-03-28  Jonathan Coles   <[email protected]>
52    
53            * Thuban/UI/classifier.py: Support for highlighting a specific
54            group within the grid when the classification dialog is opened.
55            Also contains a lot of debugging printouts which will later
56            be removed.
57    
58            * Thuban/UI/dock.py: Complete rework on the dock code so that
59            that it is fairly removed from the rest of the Thuban application.
60            It is easy to add new docks which the rest of the program having
61            to be aware of them.
62    
63            * Thuban/UI/legend.py: Modifications to support selecting a
64            specific group in the classification dialog. Changed how layers
65            are drawn when the layer is visible/invisible.
66    
67            * Thuban/UI/mainwindow.py: Removed legend specific code and
68            replaced it with calls to the new dock code.
69    
70            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
71            to check if scale > 0. Trying to track down a divide by zero.
72    
73    2003-03-26  Jonathan Coles   <[email protected]>
74    
75            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
76            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
77            now part of DockableWindow.
78            (LegendPanel.DoOnSelChanged): Select the current layer in the
79            map.
80            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
81            with the selected layer and/or group.
82    
83    2003-03-26  Jonathan Coles   <[email protected]>
84    
85            This putback contains the code for dockable windows. There is
86            no support in wxWindows as of this date for windows that can
87            attach themselves to other windows.
88    
89            The current model contains a DockableWindow which has a parent
90            window for when it is detached and a dock window that it puts
91            its contents in when it is docked. The contents of a DockableWindow
92            must be a DockPanel. DockPanel itself derives from wxPanel.
93    
94            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
95            message, not a LAYER_LEGEND_CHANGED message.
96    
97            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
98    
99            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
100            as one of the style properties for the fieldTypeText item to
101            be sure that its size is correct when the text changes.
102    
103            * Thuban/UI/dock.py: New. Classes for the DockPanel and
104            DockableWindow.
105    
106            * Thuban/UI/legend.py: Added some more buttons and made the
107            LegendPanel a DockPanel.
108    
109            * Thuban/UI/mainwindow.py: Added sash windows to the main window
110            and supporting functions for manipulating the sashes.
111            (MainWindow.ShowLegend): Create a DockableWindow with the
112            LegendPanel as the contents.
113    
114            * Thuban/UI/messages.py: Added DOCKABLE_* messages
115    
116            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
117            not LAYER_LEGEND_CHANGED, messages.
118    
119    2003-03-25  Jonathan Coles   <[email protected]>
120    
121            * setup.py: Added custom script bdist_rpm_build_script so that
122            when the rpm is built the path to wx-config is correct.
123    
124            * setup.cfg: Added line saying to use the custom build script
125    
126    2003-03-20  Jonathan Coles   <[email protected]>
127    
128            Initial implementation of the Legend.
129    
130            * Thuban/UI/legend.py: New. Creates a window that shows the map's
131            Legend information and allows the user to add/modify classifications
132            and how the layers are drawn on the map.
133    
134            * setup.py: New command 'build_docs' which currently uses
135            happydoc to generate html documentation for Thuban.
136    
137            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
138            Returns a string which is appropriately describes the group.
139    
140            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
141            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
142    
143            * Thuban/Model/map.py (Map): Rename messages and use new, more
144            specific, messages.
145    
146            * Thuban/Model/messages.py: New message to indicate that a layer's
147            data has changed (LAYER_CHANGED). New map messages to indicate
148            when layers have been added/removed/changed or if the stacking order
149            of the layers has changed.
150    
151            * Thuban/Model/session.py: Rename and use new messages.
152    
153            * Thuban/UI/classifier.py: Remember if any changes have actually
154            been applied so that if the dialog is cancelled without an application
155            of changes we don't have to set a new classification.
156            (ClassDataPreviewer): Pulled out the window specific code and put it
157            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
158            symbols on any DC.
159            
160            * Thuban/UI/mainwindow.py: New code to open the legend.
161    
162            * Thuban/UI/view.py: Use new message names.
163    
164    2003-03-19  Jonathan Coles   <[email protected]>
165    
166            * Thuban/UI/main.py (verify_versions): New. Checks the versions
167            of Python, wxPython, and some other libraries.
168    
169            * extensions/thuban/wxproj.cpp (check_version): Checks the given
170            version against what wxproj was compiled with.
171            (check_version_gtk): If wxproj was compiled with gtk then check
172            the given version against the version of the gtk library
173            currently being used.
174    
175    2003-03-14  Bernhard Herzog  <[email protected]>
176    
177            * test/test_command.py: Run the tests when the module is run as a
178            script
179    
180    2003-03-14  Bernhard Herzog  <[email protected]>
181    
182            Implement selection of multiple selected shapes in the same layer:
183    
184            - Introduce a new class to hold the selection. This basically
185              replaces the interactor which was nothing more than the
186              selection anyway. A major difference is of course that the new
187              selection class supports multiple selected shapes in one layer
188            
189            - Move the object that represents the selection from the
190              application to the canvas. The canvas is a better place than the
191              application because the selection represents which shapes and
192              layer of the map displayed by the canvas are selected and
193              affects how the map is drawn.
194    
195            - Make the selection and its messages publicly available through
196              the mainwindow.
197    
198            - The non-modal dialogs do not get a reference to the interactor
199              anymore as they can simply refer to their parent, the
200              mainwindow, for the what the interactor had to offer.
201    
202            * Thuban/UI/selection.py: New module with a class to represent the
203            selection.
204    
205            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
206            these unused messages
207    
208            * Thuban/UI/application.py (ThubanApplication.OnInit)
209            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
210            interactor is gone now.
211            (ThubanApplication.CreateMainWindow): There is no interactor
212            anymore so we pass None as the interactor argument for now for
213            compatibility.
214    
215            * Thuban/UI/view.py (MapCanvas.delegated_messages)
216            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
217            Unsubscribe, delegate messages according to the delegated_messages
218            class variable.
219            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
220            attributes from instance variables as described with the
221            delegated_methods class variable.
222            (MapCanvas.__init__): New instance variable selection holding the
223            current selection
224            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
225            pass them on to the renderer
226            (MapCanvas.SetMap): Clear the selection when a different map is
227            selected.
228            (MapCanvas.shape_selected): Simple force a complete redraw. The
229            selection class now takes care of only issueing SHAPES_SELECTED
230            messages when the set of selected shapes actually does change.
231            (MapCanvas.SelectShapeAt): The selection is now managed in
232            self.selection
233    
234            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
235            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
236            Unsubscribe, delegate messages according to the delegated_messages
237            class variable.
238            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
239            attributes from instance variables as described with the
240            delegated_methods class variable.
241            (MainWindow.__init__): The interactor as ivar is gone. The
242            parameter is still there for compatibility. The selection messages
243            now come from the canvas.
244            (MainWindow.current_layer, MainWindow.has_selected_layer):
245            Delegate to the the canvas.
246            (MainWindow.LayerShowTable, MainWindow.Classify)
247            (MainWindow.identify_view_on_demand): The dialogs don't need the
248            interactor parameter anymore.
249    
250            * Thuban/UI/tableview.py (TableFrame.__init__)
251            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
252            (LayerTableFrame.row_selected): The interactor is gone. It's job
253            from the dialog's point of view is now done by the mainwindow,
254            i.e. the parent. Subscribe to SHAPES_SELECTED instead
255            of SELECTED_SHAPE
256            
257            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
258            is gone. It's job from the dialog's point of view is now done by
259            the mainwindow, i.e. the parent.
260            
261            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
262            gone. It's job from the dialog's point of view is now done by the
263            mainwindow, i.e. the parent.
264    
265            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
266            gone. It's job from the dialog's point of view is now done by the
267            mainwindow, i.e. the parent.
268            (SessionTreeCtrl.__init__): New parameter mainwindow which is
269            stored as self.mainwindow. The mainwindow is need so that the tree
270            can still subscribe to the selection messages.
271            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
272            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
273            selection is now accessible through the mainwindow. Subscribe to
274            SHAPES_SELECTED instead of SELECTED_SHAPE
275    
276            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
277            SHAPES_SELECTED message now.
278            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
279            so deal with multiple shapes
280            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
281            gone. It's job from the dialog's point of view is now done by the
282            mainwindow, i.e. the parent.
283    
284            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
285            parameter is now a list of shape ids.
286            (RecordTable.SetTable): The second parameter is now a list of
287            indices.
288    
289            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
290            selected_shape parameter and ivar to selected_shapes. It's now a
291            list of shape ids.
292            (MapRenderer.draw_label_layer): Deal with multiple selected
293            shapes. Rearrange the code a bit so that the setup and shape type
294            distinctions are only executed once.
295    
296            * test/test_selection.py: Test cases for the selection class
297    
298    2003-03-11  Jonathan Coles   <[email protected]>
299    
300            * Thuban/Model/load.py: Temporary fix so that the xml reader
301            doesn't cause Thuban to crash.
302    
303            * Thuban/Model/layer.py: Handle the cyclic references between
304            a layer and its classification better, and be sure to disconnect
305            the classification from the layer when the layer is destroyed
306            so that we don't maintain a cyclic reference that may not be
307            garbage collected.
308    
309            * Thuban/Model/classification.py: See comment for layer.py.
310    
311    2003-03-12  Jan-Oliver Wagner <[email protected]>
312    
313            * HOWTO-Release: New. Information on the steps for releasing
314            a new version of Thuban.
315    
316    2003-03-11  Jonathan Coles   <[email protected]>
317    
318            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
319            Use True instead of true.
320            (Classifier): Should have a single panel in which all the controls lie.
321    
322            * Thuban/UI/proj4dialog.py: Add normal border.
323    
324            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
325    
326            * Thuban/UI/mainwindow.py: Use True instead of true.
327    
328            * setup.py: Update some definitions to use wxWindows2.4 files
329    
330            * Data/iceland_sample_class.thuban: Fixed file so that the
331            field_type information is present.
332    
333    2003-03-10  Jonathan Coles   <[email protected]>
334    
335            * Thuban/UI/classifier.py (Classifier.__init__): Make the
336            field type label grow so that when the text changes the
337            size is updated correctly. This may be a wxWindows bug.
338    
339    2003-03-10  Jonathan Coles   <[email protected]>
340    
341            * Thuban/UI/application.py: Changed SESSION_CHANGED to
342            SESSION_REPLACED.
343    
344            * Thuban/UI/classifier.py: Wrap text with _().
345            (ClassGrid.CreateTable): Set dimensions and size hints here,
346            instead of in Reset, so we only set the size once.
347    
348            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
349    
350            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
351            Call Close() instead of Shutdown().
352    
353            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
354    
355            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
356            Go back to using OnClose() instead of Shutdown().
357    
358    2003-03-10  Jonathan Coles   <[email protected]>
359    
360            * Thuban/UI/classifier.py (Classifier): SelectField() needed
361            to know the old field index as well as the new one.
362    
363    2003-03-10  Jonathan Coles   <[email protected]>
364    
365            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
366            to correctly set the table information and call this from
367            __init__ and from _OnFieldSelect so that all the information
368            is up to date when the dialog opens and when a field is changed.
369    
370    2003-03-10  Jonathan Coles   <[email protected]>
371    
372            * Thuban/Model/classification.py (Classification): Don't use
373            layer's message function directly, use the ClassChanged() method
374            when then classification changes. SetField/SetFieldType/SetLayer
375            must keep the information about field name and field type in
376            sync when an owning layer is set or removed.
377    
378            * Thuban/Model/layer.py: Added ClassChanged() so that the
379            classification can tell the layer when its data has changed.
380            (Layer.SetClassification): Accepts None as an arguement to
381            remove the current classification and correctly handles
382            adding a new classification.
383    
384            * Thuban/Model/load.py: Comment out print statement
385    
386            * test/test_classification.py, test/test_save.py: New and
387            improved tests.
388    
389    2003-03-07  Jonathan Coles   <[email protected]>
390    
391            * Thuban/Model/classification.py: Implemented __copy__ and
392            __deepcopy__ for ClassGroup* and ClassGroupProperites so
393            they can easily be copied by the classifier dialog.
394            (ClassGroupProperites.__init__): The default line color should
395            have been Color.Black.
396    
397            * Thuban/UI/classifier.py: Setting and Getting table values now
398            uses a consistent set of functions.
399            (Classifier): Now non-modal. Has field type label which changes
400            as the field changes. Keep track of buttons in a list so that
401            we can enable/disable the buttons when the None field is selected.
402            (SelectPropertiesDialog): Add buttons to make the colors transparent.
403    
404            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
405            does what OnClose did, but can be called by the application to
406            close a window. Needed when a session changes, and we have to
407            close the classifier windows.
408    
409            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
410            Shuts down open dialogs. Used when a new session is created
411            or a session is opened.
412            (MainWindow.SaveSession): Should only call application.SaveSession()
413            if we don't call SaveSessionAs first.
414            (MainWindow.Classify): Allow different classifier dialogs for
415            different layers.
416    
417            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
418            the parent class handle it. Add Shutdown() to unsubscibe from
419            event notification and call the parent Shutdown(). This was
420            necessary so the application can close the tree window.
421    
422    2003-03-06  Jonathan Coles   <[email protected]>
423    
424            * Thuban/Model/classification.py: Minor documentation changes,
425            Addition of __eq__ and __ne__ methods.
426            (Classification.SetLayer): prevent recursion between this method
427            and Layer.SetClassification().
428    
429            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
430    
431            * Thuban/Model/layer.py (SetClassification): prevent recursion
432            between this method and Classification.SetLayer().
433    
434            * test/test_classification.py, test/test_load.py,
435            test/test_session.py: Fixed and added tests for the classification
436            classes.
437    
438    2003-03-06  Bernhard Herzog  <[email protected]>
439    
440            * Thuban/UI/classifier.py (ClassGrid.__init__)
441            (ClassGrid.CreateTable): Move the SetSelectionMode call to
442            CreateTable because otherwise it triggers an assertion in
443            wxPython/wxGTK 2.4.
444    
445    2003-03-05  Jonathan Coles   <[email protected]>
446    
447            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
448    
449            * Thuban/Model/load.py: import FIELDTYPE constants from table.
450    
451            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
452    
453            * Thuban/Model/table.py: Put FIELDTYPE constants back.
454    
455    2003-03-05  Jonathan Coles   <[email protected]>
456    
457            * Thuban/UI/classifier.py: Added class documentation.
458            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
459            Store just the groups in the table and generate the other
460            column information when it is requested. Add "None" field
461            to pull-down to select no classification.
462    
463            * Thuban/common.py: Moved FIELDTYPE constants from table.py
464            (Str2Num): Only catch ValueError exceptions.
465    
466            * Thuban/Model/classification.py: Class documentation. Renaming
467            of methods with Stroke to Line. Groups are stored in a single
468            list with the default as the first element. Groups are searched
469            in the order they appear in the list.
470    
471            * Thuban/Model/color.py: Documentation.
472    
473            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
474            the kind of data represented by a field.
475    
476            * Thuban/Model/load.py (ProcessSession): Use proper string
477            conversion function; fixes RTbug #1713.
478    
479            * Thuban/Model/save.py (Saver): Store field type information.
480    
481            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
482            (Table): Add field_info_by_name() to retrieve field information
483            by specifying the field name, not the number.
484    
485            * Thuban/UI/mainwindow.py: Function name changes.
486    
487            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
488            get the layer classification once. Don't try to classify
489            values when the field is None: just use the default properties.
490    
491            * Thuban/UI/view.py: Function name changes.
492    
493            * Doc/thuban.dtd: Add field_type attribute to a classification.
494    
495    2003-03-04  Bernhard Herzog  <[email protected]>
496    
497            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
498            the fill and stroke layer attributes optional with suitable
499            default values. Add the stroke_width layer attribute. Use correct
500            syntax for empty elements. Make the attribute list for labels
501            refer to the label element.
502    
503    2003-03-04  Bernhard Herzog  <[email protected]>
504    
505            * setup.py (thuban_build_py.build): Add a comment about distutils in
506            Python 2.3 containing some of the functionality we implement in
507            setup.py ourselves.
508    
509            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
510            before the selection mode. Doing it the other way round triggers
511            an assertion in wxWindows.
512    
513            * Thuban/Model/save.py (escape): Fix typo in doc-string
514    
515            * Thuban/Model/classification.py: Remove unnecessary wxPython
516            import
517    
518    2003-03-04  Jonathan Coles   <[email protected]>
519    
520            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
521            Parameter 'value' should default to None.
522    
523            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
524            the class attribute __classification is now private.
525    
526            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
527            Classifier to ClassGrid. Added support for removing selected rows,
528            which including code for keeping track of when cells are selected,
529            and deselected.
530            (ClassTable): Support for added/removing rows. Fixed a problem
531            with __ParseInput whereby it would not allow strings (only numbers)
532            to be entered.
533            (Classifier): Added button and supporting code for removing
534            selected rows.
535    
536    2003-02-27  Jonathan Coles   <[email protected]>
537    
538            * Thuban/common.py: Moved color conversion functions into
539            Thuban/UI/common.py.
540            (Str2Num): Now converts the float (not the string) to a long/int
541            so that an exception isn't thrown.
542    
543            * Thuban/UI/common.py: Common functions used in several UI modules
544    
545            * Thuban/Model/classification.py: Changed the class hierarchy
546            so that a Classification consists of Groups which return
547            Properties when a value matches a Group.
548    
549            * Thuban/Model/layer.py: Fixed name resolution problem.
550    
551            * Thuban/Model/load.py: Use new Classification and Group functions.
552    
553            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
554            failure.
555            (Saver.write_classification): Use new Classification and Group
556            functions.
557    
558            * Thuban/UI/classifier.py: Changes to use new Classification and Group
559            functions. Fix to create a tuple with a single value instead of
560            simply returning the value.
561    
562            * Thuban/UI/renderer.py: Use new Classification and Group functions.
563            Use common.py functions.
564    
565            * Thuban/UI/tree.py: Use common.py functions.
566            
567            * test/test_classification.py: Use new Classification and Group
568            classes.
569    
570    2003-02-24  Jonathan Coles   <[email protected]>
571    
572            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
573            functions from Thuban color objects to wxWindow colour objects.
574    
575            * Thuban/Model/classification.py (Classification): Renamed
576            GetProperties() to GetClassData(). Used the new iterator
577            in TreeInfo().
578            (ClassIterator): Iterator implementation to iterate over the
579            ClassData objects in a classification object.
580    
581            * Thuban/Model/save.py (Saver.write_classificaton): Uses
582            the new iterator to save the classification information.
583    
584            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
585            for changing the stroke and fill colors and previewing the
586            changes.
587    
588            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
589            MainWindow.SaveSessionAs): Text string changes so the dialogs
590            have more meaningful titles.
591    
592            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
593            Classification method name from GetProperties to GetClassData.
594    
595            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
596            instead of accessing now non-existent class variables.
597    
598    2003-02-24  Bernhard Herzog  <[email protected]>
599    
600            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
601            unneeded Shape() call. Rendering is substantially faster without
602            it and it avoids some problems with broken shape files.
603    
604    2003-02-20  Frank Koormann   <[email protected]>
605    
606            Force minimal size of identify and label dialogs. The autosizing
607            looked too ugly.
608    
609            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
610            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
611            Set size of listctrl.
612            * Thuban/UI/identifyview.py (IdentifyView.__init__):
613            Set size of dialog.
614    
615    2003-02-19  Jonathan Coles   <[email protected]>
616    
617            * test/test_classification.py, test/test_layer.py,
618            test/test_load.py, test/test_map.py, test/test_session.py:
619            Updated the tests to use the new functions that are in the
620            respective classes.
621    
622            * Thuban/Model/classification.py (Classification):
623            Uses the new ClassData* classes. Modification messages are
624            passed up to the parent layer (if it exists).
625            (ClassData): New class to encapsulate the common data in each
626            classification property.
627            (ClassDataDefault): Represents the Default class. data.
628            (ClassDataPoint): Represents a single class. data point
629            (ClassDataRange): Represents a class. range
630            (ClassDataMap): Represents a class. map (unused).
631    
632            * Thuban/Model/color.py: Added Color.None to represent something
633            with no color. Color.Black represents the color black.
634            (NoColor): Helper class derived from Color to represent something
635            with no color.
636    
637            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
638            stroke_width attributes. Made the 'classification' attribute private.
639            New methods for setting/getting the classification.
640    
641            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
642            to get the classifcation and use the new ClassData* classes to
643            hold the classification data. Use Str2Num to convert numbers
644            properly.
645    
646            * Thuban/Model/save.py (Saver): Use new Color and Classification
647            methods
648    
649            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
650            custom grid.
651            (ClassTable): Support for editing Values and Labels and for
652            changing what type (point or range) of data is stored in each
653            property based on how the user enters the data.
654            (Classifier): Support for saving the new classifications and
655            launching the dialog to edit a property.
656            (SelectPropertiesDialog): New class for editing the visual
657            properties of a classification (stroke color, width, and fill color)
658            (ClassPreviewer): Took the Draw method from ClassRenderer and
659            made most of it into this new class. Intend to use this class in
660            the SelectPropertiesDialog for previewing changes.
661    
662            * Thuban/UI/renderer.py: Use new Color and Classification methods.
663    
664            * Thuban/UI/tree.py: Formatting changes.
665    
666            * Doc/thuban.dtd: Add 'label' element
667    
668            * Thuban/common.py: New. Contains common routines used throughout
669            the code.
670            (Str2Num): Takes a string and converts it to the "best" type of
671            number.
672    
673    2003-02-14  Bernhard Herzog  <[email protected]>
674    
675            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
676            dragging flag is always set to 0 even when the tool implementation
677            raises an exception
678    
679    2003-02-11  Bernhard Herzog  <[email protected]>
680    
681            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
682            method to create a splash screen.
683            (ThubanApplication.ShowMainWindow): New. Show the main window.
684            Needed so the splash screen can display the mainwindow
685            (ThubanApplication.OnInit): Call the
686            new splash_screen method to determine whether the application
687            should display a splash screen. If it displays a splash screen do
688            not immediately show the main window.
689    
690    2003-02-11  Jonathan Coles  <[email protected]>
691    
692            * Thuban/Model/classification.py: Added import line to fix
693            feature conflicts between running on python2.2 and python2.1.
694    
695            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
696            onto the clinfo parameter, so removed the deepcopy().
697    
698    2003-02-10  Jonathan Coles  <[email protected]>
699    
700            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
701            Added element_open variable to track opening and closing of tags
702            so that tags that don't span more than one line are closed with
703            /> instead of </tag_name>. Use the GetDefault*() methods of
704            the Classification class.
705    
706            * Thuban/Model/classification.py (Classificaton): Added set and
707            get methods for the default data. The class also takes a layer
708            reference so that modification messages can be sent. Fixed the
709            methods to use the new ClassData class.
710            (ClassData): New class to encapsulate the classification data
711    
712            * Thuban/Model/layer.py (Layer): Remove the
713            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
714            SetDefault*() methods on the layer's classification object.
715            (Layer.__init__): Use the new SetDefault*() methods in the
716            Classification class.
717    
718            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
719            object instead of a dictionary.
720    
721            * Thuban/UI/classifier.py (ClassRenderer): New class to
722            draw the classifications in the dialog box's table.
723            (Classifier): Modified to use the ClassRenderer class.
724    
725            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
726            methods of the Classification class.
727    
728            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
729            of the ClassData class.
730    
731            * test/test_classification.py, test/test_layer.py,
732            test/test_map.py, test/test_session.py: Fix the tests to work
733            with the above code changes.
734    
735    2003-02-03  Jonathan Coles  <[email protected]>
736    
737            * Thuban/Model/classification.py (Classification): Added getNull()
738            to return the NullData reference
739    
740            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
741            Layer.SetStrokeWidth): Modified these functions to change the
742            null data in the classification rather than keep these values
743            directly in the Layer class. Menu options to change these values
744            work again.
745    
746    2003-01-28  Jonathan Coles  <[email protected]>
747    
748            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
749            Fixed crashing problem on some systems. Dialog box shows
750            classification data.
751    
752            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
753            Colors in the tree view.
754    
755            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
756            the tree info for classifications. Commented out unnecessary lines.
757    
758            * Thuban/Model/classification.py (Classification.TreeInfo): New
759            function to add information about the classification into the
760            tree view.
761    
762    2003-01-27  Jan-Oliver Wagner <[email protected]>
763    
764            * Thuban/__init__.py (_): New.
765    
766            * Thuban/Model/classification.py, Thuban/Model/extension.py,
767            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
768            Thuban/Model/session.py, Thuban/UI/application.py,
769            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
770            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
771            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
772            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
773            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
774    
775    2003-01-27  Jonathan Coles  <[email protected]>
776    
777            * Thuban/Model/layer.py: Classification initialization calls.
778    
779            * Thuban/Model/classification.py: Created class to encapsulate
780            a layer classification. Supports specific data points and
781            ranges.
782    
783            * Thuban/Model/load.py: Added support for loading classification
784            information.
785    
786            * Thuban/Model/save.py: Added support for saving classification
787            information.
788    
789            * Thuban/UI/classifier.py: Initial class for a dialog box for
790            specifying classification information.
791    
792            * Thuban/UI/mainwindows.py: Support for opening the classifier
793            dialog.
794    
795            * Thuban/UI/renderer.py: Support for drawing a layer with the
796            classification information.
797    
798            * Data/iceland_sample_class.thuban: iceland_sample with
799            classification data.
800    
801            * test/test_classification: Tests for the Classification class.
802    
803    2002-12-09  Bernhard Herzog  <[email protected]>
804    
805            * test/test_command.py: New. Tests for the command classes.
806    
807            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
808            (Command.IsTool): New method to distinguish between command
809            switching tools and other commands.
810    
811            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
812            the tool to avoid direct assignments to instance variables
813            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
814            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
815            change the tool
816    
817            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
818            active tool's command turns insensitive, disable the tool.
819            (_tool_command): Use the new ToolCommand class
820    
821            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
822            SelectTool method to change the tool
823            (iconfile): Use the ToolCommand class
824    
825    2002-12-03  Bernhard Herzog  <[email protected]>
826    
827            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
828            the case of selected items that are not children of Layers or Maps
829            properly. Previously this bug would trigger an assertion in
830            wxWindows.
831    
832    2002-11-06  Frank Koormann  <[email protected]>
833    
834            * Thuban/UI/mainwindow.py: Altered the order of tools in the
835            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
836            Full Extent).
837    
838    2002-10-23  Bernhard Herzog  <[email protected]>
839    
840            * setup.py (setup call): version now 0.1.3
841    
842            * MANIFEST.in: Add the files in test/
843    
844            * test/README: Add note about tests requiring the iceland data
845    
846            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
847            copyright notice.
848    
849    2002-10-18  Bernhard Herzog  <[email protected]>
850    
851            * test/test_map.py
852            (TestMapWithContents.test_projected_bounding_box): Use an explicit
853            epsilon.
854    
855            * test/support.py (FloatComparisonMixin.assertFloatEqual)
856            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
857            message if the assertion fails and don't return the return value
858            of self.assert_. In assertFloatSeqEqual the return meant that not
859            all items of the sequence were compared.
860    
861    2002-09-20  Bernhard Herzog  <[email protected]>
862    
863            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
864    
865            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
866    
867            * test/test_map.py (TestMapWithContents.test_tree_info): Create
868            the string with the bounding box on the fly because of platform
869            differences in the way %g is handled.
870    
871            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
872            DBFfile too because Thuban layers can't yet cope missing DBF
873            files.
874    
875    2002-09-20  Bernhard Herzog  <[email protected]>
876    
877            * test/test_menu.py: Use initthuban instead of
878            add_thuban_dir_to_path to initialize Thuban.
879    
880            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
881            Mixin class for float comparisons
882            (SubscriberMixin): New. Mixin class to test messages sent through
883            the Connector class
884    
885            * test/README: Fix a typo and add the -v flag to the command for
886            individual tests
887    
888            * test/test_session.py: New. Test cases for Thuban.Model.session
889    
890            * test/test_proj.py: New. Test cases for Thuban.Model.proj
891    
892            * test/test_map.py: New. Test cases for Thuban.Model.map
893    
894            * test/test_layer.py: New. Test cases for Thuban.Model.layer
895    
896            * test/test_label.py: New. Test cases for Thuban.Model.label
897    
898            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
899    
900            * test/test_color.py: New. Test cases for Thuban.Model.color
901    
902            * test/test_base.py: New. Test cases for Thuban.Model.base
903    
904    2002-09-13  Bernhard Herzog  <[email protected]>
905    
906            * Thuban/Model/session.py (Session.forwarded_channels): Forward
907            the CHANGED channel too.
908    
909            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
910            CHANGED channel too.
911            (Map.__init__): Call the Modifiable constructor as well.
912    
913            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
914            event if the modified flag changes.
915            (Modifiable.changed): Tweak the doc-string.
916    
917            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
918            (MainWindow.set_position_text): Put the code that puts the text
919            with the mouse position into the status bar into the new method
920            set_position_text so that it can overwritten in derived classes.
921    
922    2002-09-12  Bernhard Herzog  <[email protected]>
923    
924            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
925            message box on the main window.
926    
927    2002-09-11  Bernhard Herzog  <[email protected]>
928    
929            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
930            the 'E' because it's less likely to interfere with other menu
931            entries.
932            (MainWindow.build_menu): remove an incorrect comment.
933    
934    2002-09-10  Bernhard Herzog  <[email protected]>
935    
936            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
937            (_tool_command): Add sensitive parameter
938            (_has_visible_map): Sensitivity callback to tools and other
939            commands that require a visible map. Use it in map_zoom_in_tool,
940            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
941            and map_full_extent
942    
943    2002-09-06  Bernhard Herzog  <[email protected]>
944    
945            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
946            VIEW_POSITION
947    
948    2002-09-04  Frank Koormann  <[email protected]>
949    
950            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
951    
952    2002-09-02  Bernhard Herzog  <[email protected]>
953    
954            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
955            wxWindows already and our implementation doesn't work correctly
956            with wxGTK 2.3:
957            (MapCanvas.__init__): Remove the instance variable
958            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
959            be drawin
960            (MapCanvas.OnIdle): Removed.
961    
962            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
963            a parameter to determine the size of the rectangle.
964            (MapCanvas.find_shape_at): Create the box around the point on a
965            layer by layer basis and make the size depend on the shape type.
966            This solves a problem with the selection of point shapes at the
967            border of the layer's bounding box
968    
969    2002-08-30  Bernhard Herzog  <[email protected]>
970    
971            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
972            for the sensitivity  of remove layer.
973            (_can_remove_layer): New. Sensitivity callback for remove layer
974            (Command layer_remove): Use _can_remove_layer
975    
976            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
977            determine whether a given layer can be deleted.
978    
979            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
980            (MapCanvas.do_redraw): Get rid of the unused update_region
981            instance variable
982    
983            * Thuban/UI/view.py: Add/update some doc-strings.
984    
985            * test/: new subdirectory with a bunch of unit tests.
986    
987            * test/README, test/test_table.py, test/test_save.py,
988            test/test_menu.py, test/test_load.py: Initial set of tests and
989            brief instructions on how to run them
990    
991    2002-08-29  Bernhard Herzog  <[email protected]>
992    
993            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
994            arcs with multiple parts.
995    
996            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
997            Handle degenrate rectangles.
998    
999            * Thuban/Model/table.py: Make writing records work correctly:
1000            (Table.__init__): Keep track of whether the DBF is open for
1001            writing
1002            (Table.write_record): Open the DBF file for writing when necessary
1003    
1004    2002-08-27  Bernhard Herzog  <[email protected]>
1005    
1006            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
1007            dbf files only for reading by default. Use a new writable dbf
1008            object for writing.
1009    
1010    2002-08-26  Bernhard Herzog  <[email protected]>
1011    
1012            * Thuban/UI/mainwindow.py: Refactor the context creation:
1013            (MainWindow.Context): New method to return a context
1014            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
1015            new method
1016    
1017            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
1018            layer table specific code from TableGrid into LayerTableGrid
1019            (TableFrame, LayerTableFrame): Split the layer table specific code
1020            from TableFrame into LayerTableFrame
1021            (LayerTableGrid.select_shape): Remove a debug print
1022    
1023            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1024            LayerTableFrame
1025    
1026    2002-08-23  Bernhard Herzog  <[email protected]>
1027    
1028            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
1029            absolute filename.
1030    
1031    2002-08-22  Bernhard Herzog  <[email protected]>
1032    
1033            * Thuban/Model/table.py (Table.write_record): New method to write
1034            records.
1035            (Table.__init__): Open the DBF file for writing too.
1036    
1037            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1038            into the underlying table.
1039    
1040            * extensions/shapelib/shapefil.h (DBFCommit),
1041            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
1042            commit any changes made to the DBF file.
1043    
1044            * Thuban/UI/mainwindow.py (make_check_current_tool)
1045            (_tool_command): Put the code that generates the "checked"
1046            callback into a separate function so that we can reuse it
1047            elsewhere
1048    
1049            * Thuban/Model/save.py (Saver): New class to handle serializing a
1050            session into an XML file. The main reason to introduce a class is
1051            that applications built on Thuban can derive from it so that they
1052            can save additional information in a session file.
1053            (save_session): Delegate almost all the work to the Saver class.
1054            Rename the filename argument to file because it may be a file like
1055            object now.
1056    
1057            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
1058            code. Remove the little test code which would be executed when the
1059            module is run as a script which didn't work anymore since it can't
1060            import the other Thuban modules.
1061            (ProcessSession, load_session): Refactor the ProcessSession to
1062            have one method for each element start and end tag so that derived
1063            classes can easily override the processing of individual tags.
1064            Also, always parse with namespaces enabled because applications
1065            built on top of Thuban will likely use namespaces if they extend
1066            the session file format.
1067    
1068    2002-08-21  Bernhard Herzog  <[email protected]>
1069    
1070            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1071            because thubaninit_contents will do it for us.
1072    
1073    2002-08-16  Jan-Oliver Wagner <[email protected]>
1074    
1075            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1076            tree window already open
1077    
1078    2002-08-15  Bernhard Herzog  <[email protected]>
1079    
1080            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
1081            with self.
1082    
1083            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
1084            when we have actually captured it.
1085    
1086            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
1087            shapefile and destroy the table.
1088    
1089            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
1090    
1091    2002-08-14  Bernhard Herzog  <[email protected]>
1092    
1093            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
1094            instance variable columns
1095            (RecordTable.GetTypeName): row and col may be negative in some
1096            cases.
1097    
1098            * setup.py (InstallLocal.initialize_options)
1099            (InstallLocal.finalize_options, InstallLocal.user_options): New
1100            option create-init-file to build a thubaninit.py when running
1101            install_local
1102            (InstallLocal.run): Create the thubaninit.py module when requested
1103            (thubaninit_contents): Split the template into several parts and
1104            create a new function thubaninit_contents that creates the
1105            contents of a thubaninit module.
1106            (ThubanInstall.run): Use the new function to create the thubaninit
1107            module.
1108    
1109    2002-07-30  Bernhard Herzog  <[email protected]>
1110    
1111            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
1112            cleanup.
1113            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
1114    
1115            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
1116            direct base class' Destroy method.
1117    
1118            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
1119            layers.
1120            (Map.Destroy): Destroy the label_layer as well and call the
1121            inherited Desatroymethod first so that no more messages are
1122            issued.
1123            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
1124            message if the stacking order actually has changed. Add
1125            doc-strings.
1126            (Map.BoundingBox): Correct the doc-string.
1127            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
1128            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
1129    
1130            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
1131            all labels.
1132    
1133    2002-07-29  Bernhard Herzog  <[email protected]>
1134    
1135            * Thuban/Model/map.py (Map.subscribe_layer_channels)
1136            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
1137            to a layer's channels into separate methods.
1138            (Map.RemoveLayer, Map.AddLayer): Call the new methods
1139            (Map.Destroy): Unsubscribe from a layer's channels before
1140            destroying it.
1141    
1142            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
1143            selected_layer parameter to searched_layer which is the layer to
1144            search in.
1145            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
1146            search to that layer. Return the selected layer and shape.
1147    
1148            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
1149            typo
1150    
1151    2002-07-24  Bernhard Herzog  <[email protected]>
1152    
1153            * Thuban/UI/application.py (ThubanApplication.create_session):
1154            Extend the doc string.
1155            (ThubanApplication.subscribe_session)
1156            (ThubanApplication.unsubscribe_session): New methods to
1157            subscribe/unsubscribe to/from session channels.
1158            (ThubanApplication.SetSession): Call the new methods here.
1159            (ThubanApplication.maps_changed, ThubanApplication.set_map):
1160            Renamed set_map to maps_changed. Its now a subscriber for
1161            MAPS_CHANGED.
1162    
1163            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
1164            x-coordinate in case of simple clicks
1165    
1166            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
1167            don't pass it as a parameter
1168    
1169            * Thuban/Model/session.py (Session.RemoveMap): New
1170    
1171            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1172            window size into a parameter.
1173    
1174    2002-07-23  Bernhard Herzog  <[email protected]>
1175    
1176            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1177            just commands.
1178    
1179            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
1180            parameter list a bit to allow setting the window title and the
1181            initial message in the status bar. Update the callers.
1182    
1183            * Thuban/UI/application.py (ThubanApplication.OnInit)
1184            (ThubanApplication.CreateMainWindow): Put the mainwindow
1185            instantiation into a separate method so that it can be overridden
1186            by a subclass.
1187    
1188    2002-07-19  Bernhard Herzog  <[email protected]>
1189    
1190            * Thuban/Model/session.py: Issue a CHANGED message every time
1191            another changed message is issued to make it easier to get
1192            notified of changes.
1193            (Session): Update the doc string
1194            (Session.forward): Issue changed-events as CHANGED as well.
1195            (Session.changed): Overwrite the inherited version to issue
1196            CHANGED events as well.
1197    
1198            * Thuban/UI/tree.py: We can now simply subscribe to the session's
1199            CHANGED channel to be informed of changes.
1200            (SessionTreeCtrl.session_channels): Not needed any longer.
1201            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1202            Only have to (un)subscribe CHANGED
1203    
1204            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1205    
1206            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
1207            for the wxPython locale bug to __init__.py so that it's
1208            automatically executed by anybody using UI code from Thuban.
1209    
1210    2002-07-18  Bernhard Herzog  <[email protected]>
1211    
1212            * Thuban/UI/main.py (main): app no longer needs to be global
1213    
1214            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
1215            as parameter and store it in an instance variable
1216            (MainWindow.invoke_command, MainWindow.update_command_ui)
1217            (MainWindow.save_modified_session, MainWindow.NewSession)
1218            (MainWindow.OpenSession, MainWindow.SaveSession)
1219            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
1220            application object.
1221    
1222            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
1223            the main window with self.
1224    
1225            * Thuban/UI/context.py: New module with the context class
1226    
1227            * Thuban/UI/command.py (Command): Update doc string.
1228    
1229            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
1230            MainWindow.update_command_ui): Pass an instance of the context
1231            class to the command's methods
1232            (check_current_tool, call_method): Handle the new context
1233            implementation
1234    
1235            * Examples/simple_extensions/simple_tool.py (simple_tool,
1236            check_simple_tool): Handle the new context implementation
1237    
1238            * Examples/simple_extensions/simple_command.py (simple_command):
1239            Handle the new context implementation. Update the comments about
1240            the context.
1241    
1242            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
1243            doc-string
1244            (ThubanApplication.Session): New method to return the session
1245            object
1246    
1247            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
1248            interactor's selected_layer may not be a layer of the current
1249            session when the tree is updated while a new session is being set.
1250    
1251    2002-07-17  Bernhard Herzog  <[email protected]>
1252    
1253            * Thuban/UI/tree.py (color_string): Removed. No longer used.
1254            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
1255            update_tree into update_tree and add_items. The tree now uses a
1256            more generic way to display the contents of the tree.
1257            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
1258    
1259            * Thuban/Model/layer.py (Layer.TreeInfo),
1260            Thuban/Model/extension.py (Extension.TreeInfo),
1261            Thuban/Model/map.py (Map.TreeInfo),
1262            Thuban/Model/session.py (Session.TreeInfo):
1263            Add TreeInfo methods to implement the new tree view update scheme
1264    
1265  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
1266    
1267          * Thuban/UI/application.py: Don't use "import from" for the          * Thuban/UI/application.py: Don't use "import from" for the
# Line 76  Line 1340 
1340          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1341          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1342    
1343  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1344    
1345          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1346          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 305  Line 1569 
1569          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1570          position in the statusbar          position in the statusbar
1571    
1572  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1573    
1574          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1575    
1576  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1577            
1578          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1579    
1580          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1581    
1582          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1583    
1584            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1585            box
1586    
1587  2002-04-21      Jan-Oliver Wagner <[email protected]>  2002-04-21  Jan-Oliver Wagner <[email protected]>
1588    
1589          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1590    
1591          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1592    
1593          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1594          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1595    
1596  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1597    
1598          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1599          saving _new_ sessions          saving _new_ sessions
# Line 430  Line 1695 
1695    
1696          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1697          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1698    
1699  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1700    
1701          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1702          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1703    
1704          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1705          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1706          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1707          too.          too.
# Line 547  Line 1811 
1811          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
1812          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
1813    
1814          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1815          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
1816          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
1817          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
1818          the application's OnInit method          the application's OnInit method
# Line 564  Line 1828 
1828          layer to the tableview dialog.          layer to the tableview dialog.
1829    
1830          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
1831          (TableGrid):          (TableGrid):
1832          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
1833          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
1834          (TableFrame.__init__):          (TableFrame.__init__):
# Line 631  Line 1895 
1895  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
1896    
1897          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1898            
1899          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1900          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
1901            
1902          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1903          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
1904          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 681  Line 1945 
1945          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
1946          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
1947          link_file method          link_file method
1948            
1949          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1950          the window when the first layer is added to the map.          the window when the first layer is added to the map.
1951    
# Line 718  Line 1982 
1982          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
1983          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
1984          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
1985            
1986          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
1987          installer          installer
1988    

Legend:
Removed from v.216  
changed lines
  Added in v.591

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26