/[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 384 by jonathan, Tue Jan 28 18:38:17 2003 UTC revision 600 by bh, Thu Apr 3 11:37:26 2003 UTC
# Line 1  Line 1 
1    2003-04-03  Bernhard Herzog  <[email protected]>
2    
3            * test/support.py (print_garbage_information): New function that
4            prints information about still connected messages and memory
5            leaks.
6            (run_suite): Removed.
7            (run_tests): New function for use as a replacement of
8            unittest.main in the test_* files. This one calls
9            print_garbage_information at the end.
10    
11            * test/runtests.py (main): Use support.print_garbage_information
12    
13            * test/test_layer.py: Use support.run_tests instead of
14            unittest.main so we get memory leak information
15            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
16            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
17            (TestLayerLegend.test_visibility): Call the layer's Destroy method
18            to fix a memory leak.
19    
20            * test/test_classification.py: Use support.run_tests instead of
21            unittest.main so we get memory leak information
22            (TestClassification.test_classification): Call the layer's Destroy
23            method to fix a memory leak.
24    
25    2003-04-02  Bernhard Herzog  <[email protected]>
26    
27            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
28            Handle the reference counts of the return value and errors in
29            PyArg_ParseTuple correctly.
30    
31            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
32            sure the filename is absolute to avoid problems when saving the
33            session again
34    
35            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
36    
37    2003-04-01  Jonathan Coles   <[email protected]>
38    
39            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
40            that there actually are points in the returned list of points
41            before trying to index into the list. The list may be empty if
42            the shape is a Null Shape.
43    
44    2003-04-01  Bernhard Herzog  <[email protected]>
45    
46            * test/test_map.py: Don't use from <module> import *
47    
48    2003-04-01  Jonathan Coles   <[email protected]>
49    
50            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
51            LAYER_LEGEND_CHANGED
52    
53            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
54            self.Destroy() to close the window after yesterday's changes.
55    
56            * test/test_map.py, test/test_session.py: Fix messages that
57            are sent from maps and layers.
58    
59    2003-03-31  Jonathan Coles   <[email protected]>
60    
61            * Thuban/UI/classifier.py: Commented out some debugging statements.
62            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
63            RTbug #1769.
64    
65            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
66            position (although position doesn't work yet under GTK).
67            (DockableWindow.Destroy): New. Called when the window must be
68            closed. Namely needed when the DockFrame closes and must close
69            its children.
70            (DockFrame): Listen for EVT_CLOSE and destroy all children.
71    
72            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
73            when then window is told to close.
74            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
75            comment in source for more info.
76    
77            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
78    
79            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
80            symmetry with other such methods.
81            (MainWindow.ShowLegend): Show the legend docked by default.
82    
83    2003-03-28  Jonathan Coles   <[email protected]>
84    
85            * Thuban/UI/classifier.py: Support for highlighting a specific
86            group within the grid when the classification dialog is opened.
87            Also contains a lot of debugging printouts which will later
88            be removed.
89    
90            * Thuban/UI/dock.py: Complete rework on the dock code so that
91            that it is fairly removed from the rest of the Thuban application.
92            It is easy to add new docks which the rest of the program having
93            to be aware of them.
94    
95            * Thuban/UI/legend.py: Modifications to support selecting a
96            specific group in the classification dialog. Changed how layers
97            are drawn when the layer is visible/invisible.
98    
99            * Thuban/UI/mainwindow.py: Removed legend specific code and
100            replaced it with calls to the new dock code.
101    
102            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
103            to check if scale > 0. Trying to track down a divide by zero.
104    
105    2003-03-26  Jonathan Coles   <[email protected]>
106    
107            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
108            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
109            now part of DockableWindow.
110            (LegendPanel.DoOnSelChanged): Select the current layer in the
111            map.
112            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
113            with the selected layer and/or group.
114    
115    2003-03-26  Jonathan Coles   <[email protected]>
116    
117            This putback contains the code for dockable windows. There is
118            no support in wxWindows as of this date for windows that can
119            attach themselves to other windows.
120    
121            The current model contains a DockableWindow which has a parent
122            window for when it is detached and a dock window that it puts
123            its contents in when it is docked. The contents of a DockableWindow
124            must be a DockPanel. DockPanel itself derives from wxPanel.
125    
126            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
127            message, not a LAYER_LEGEND_CHANGED message.
128    
129            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
130    
131            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
132            as one of the style properties for the fieldTypeText item to
133            be sure that its size is correct when the text changes.
134    
135            * Thuban/UI/dock.py: New. Classes for the DockPanel and
136            DockableWindow.
137    
138            * Thuban/UI/legend.py: Added some more buttons and made the
139            LegendPanel a DockPanel.
140    
141            * Thuban/UI/mainwindow.py: Added sash windows to the main window
142            and supporting functions for manipulating the sashes.
143            (MainWindow.ShowLegend): Create a DockableWindow with the
144            LegendPanel as the contents.
145    
146            * Thuban/UI/messages.py: Added DOCKABLE_* messages
147    
148            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
149            not LAYER_LEGEND_CHANGED, messages.
150    
151    2003-03-25  Jonathan Coles   <[email protected]>
152    
153            * setup.py: Added custom script bdist_rpm_build_script so that
154            when the rpm is built the path to wx-config is correct.
155    
156            * setup.cfg: Added line saying to use the custom build script
157    
158    2003-03-20  Jonathan Coles   <[email protected]>
159    
160            Initial implementation of the Legend.
161    
162            * Thuban/UI/legend.py: New. Creates a window that shows the map's
163            Legend information and allows the user to add/modify classifications
164            and how the layers are drawn on the map.
165    
166            * setup.py: New command 'build_docs' which currently uses
167            happydoc to generate html documentation for Thuban.
168    
169            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
170            Returns a string which is appropriately describes the group.
171    
172            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
173            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
174    
175            * Thuban/Model/map.py (Map): Rename messages and use new, more
176            specific, messages.
177    
178            * Thuban/Model/messages.py: New message to indicate that a layer's
179            data has changed (LAYER_CHANGED). New map messages to indicate
180            when layers have been added/removed/changed or if the stacking order
181            of the layers has changed.
182    
183            * Thuban/Model/session.py: Rename and use new messages.
184    
185            * Thuban/UI/classifier.py: Remember if any changes have actually
186            been applied so that if the dialog is cancelled without an application
187            of changes we don't have to set a new classification.
188            (ClassDataPreviewer): Pulled out the window specific code and put it
189            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
190            symbols on any DC.
191            
192            * Thuban/UI/mainwindow.py: New code to open the legend.
193    
194            * Thuban/UI/view.py: Use new message names.
195    
196    2003-03-19  Jonathan Coles   <[email protected]>
197    
198            * Thuban/UI/main.py (verify_versions): New. Checks the versions
199            of Python, wxPython, and some other libraries.
200    
201            * extensions/thuban/wxproj.cpp (check_version): Checks the given
202            version against what wxproj was compiled with.
203            (check_version_gtk): If wxproj was compiled with gtk then check
204            the given version against the version of the gtk library
205            currently being used.
206    
207    2003-03-14  Bernhard Herzog  <[email protected]>
208    
209            * test/test_command.py: Run the tests when the module is run as a
210            script
211    
212    2003-03-14  Bernhard Herzog  <[email protected]>
213    
214            Implement selection of multiple selected shapes in the same layer:
215    
216            - Introduce a new class to hold the selection. This basically
217              replaces the interactor which was nothing more than the
218              selection anyway. A major difference is of course that the new
219              selection class supports multiple selected shapes in one layer
220            
221            - Move the object that represents the selection from the
222              application to the canvas. The canvas is a better place than the
223              application because the selection represents which shapes and
224              layer of the map displayed by the canvas are selected and
225              affects how the map is drawn.
226    
227            - Make the selection and its messages publicly available through
228              the mainwindow.
229    
230            - The non-modal dialogs do not get a reference to the interactor
231              anymore as they can simply refer to their parent, the
232              mainwindow, for the what the interactor had to offer.
233    
234            * Thuban/UI/selection.py: New module with a class to represent the
235            selection.
236    
237            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
238            these unused messages
239    
240            * Thuban/UI/application.py (ThubanApplication.OnInit)
241            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
242            interactor is gone now.
243            (ThubanApplication.CreateMainWindow): There is no interactor
244            anymore so we pass None as the interactor argument for now for
245            compatibility.
246    
247            * Thuban/UI/view.py (MapCanvas.delegated_messages)
248            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
249            Unsubscribe, delegate messages according to the delegated_messages
250            class variable.
251            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
252            attributes from instance variables as described with the
253            delegated_methods class variable.
254            (MapCanvas.__init__): New instance variable selection holding the
255            current selection
256            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
257            pass them on to the renderer
258            (MapCanvas.SetMap): Clear the selection when a different map is
259            selected.
260            (MapCanvas.shape_selected): Simple force a complete redraw. The
261            selection class now takes care of only issueing SHAPES_SELECTED
262            messages when the set of selected shapes actually does change.
263            (MapCanvas.SelectShapeAt): The selection is now managed in
264            self.selection
265    
266            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
267            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
268            Unsubscribe, delegate messages according to the delegated_messages
269            class variable.
270            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
271            attributes from instance variables as described with the
272            delegated_methods class variable.
273            (MainWindow.__init__): The interactor as ivar is gone. The
274            parameter is still there for compatibility. The selection messages
275            now come from the canvas.
276            (MainWindow.current_layer, MainWindow.has_selected_layer):
277            Delegate to the the canvas.
278            (MainWindow.LayerShowTable, MainWindow.Classify)
279            (MainWindow.identify_view_on_demand): The dialogs don't need the
280            interactor parameter anymore.
281    
282            * Thuban/UI/tableview.py (TableFrame.__init__)
283            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
284            (LayerTableFrame.row_selected): The interactor is gone. It's job
285            from the dialog's point of view is now done by the mainwindow,
286            i.e. the parent. Subscribe to SHAPES_SELECTED instead
287            of SELECTED_SHAPE
288            
289            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
290            is gone. It's job from the dialog's point of view is now done by
291            the mainwindow, i.e. the parent.
292            
293            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
294            gone. It's job from the dialog's point of view is now done by the
295            mainwindow, i.e. the parent.
296    
297            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
298            gone. It's job from the dialog's point of view is now done by the
299            mainwindow, i.e. the parent.
300            (SessionTreeCtrl.__init__): New parameter mainwindow which is
301            stored as self.mainwindow. The mainwindow is need so that the tree
302            can still subscribe to the selection messages.
303            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
304            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
305            selection is now accessible through the mainwindow. Subscribe to
306            SHAPES_SELECTED instead of SELECTED_SHAPE
307    
308            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
309            SHAPES_SELECTED message now.
310            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
311            so deal with multiple shapes
312            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
313            gone. It's job from the dialog's point of view is now done by the
314            mainwindow, i.e. the parent.
315    
316            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
317            parameter is now a list of shape ids.
318            (RecordTable.SetTable): The second parameter is now a list of
319            indices.
320    
321            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
322            selected_shape parameter and ivar to selected_shapes. It's now a
323            list of shape ids.
324            (MapRenderer.draw_label_layer): Deal with multiple selected
325            shapes. Rearrange the code a bit so that the setup and shape type
326            distinctions are only executed once.
327    
328            * test/test_selection.py: Test cases for the selection class
329    
330    2003-03-11  Jonathan Coles   <[email protected]>
331    
332            * Thuban/Model/load.py: Temporary fix so that the xml reader
333            doesn't cause Thuban to crash.
334    
335            * Thuban/Model/layer.py: Handle the cyclic references between
336            a layer and its classification better, and be sure to disconnect
337            the classification from the layer when the layer is destroyed
338            so that we don't maintain a cyclic reference that may not be
339            garbage collected.
340    
341            * Thuban/Model/classification.py: See comment for layer.py.
342    
343    2003-03-12  Jan-Oliver Wagner <[email protected]>
344    
345            * HOWTO-Release: New. Information on the steps for releasing
346            a new version of Thuban.
347    
348    2003-03-11  Jonathan Coles   <[email protected]>
349    
350            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
351            Use True instead of true.
352            (Classifier): Should have a single panel in which all the controls lie.
353    
354            * Thuban/UI/proj4dialog.py: Add normal border.
355    
356            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
357    
358            * Thuban/UI/mainwindow.py: Use True instead of true.
359    
360            * setup.py: Update some definitions to use wxWindows2.4 files
361    
362            * Data/iceland_sample_class.thuban: Fixed file so that the
363            field_type information is present.
364    
365    2003-03-10  Jonathan Coles   <[email protected]>
366    
367            * Thuban/UI/classifier.py (Classifier.__init__): Make the
368            field type label grow so that when the text changes the
369            size is updated correctly. This may be a wxWindows bug.
370    
371    2003-03-10  Jonathan Coles   <[email protected]>
372    
373            * Thuban/UI/application.py: Changed SESSION_CHANGED to
374            SESSION_REPLACED.
375    
376            * Thuban/UI/classifier.py: Wrap text with _().
377            (ClassGrid.CreateTable): Set dimensions and size hints here,
378            instead of in Reset, so we only set the size once.
379    
380            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
381    
382            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
383            Call Close() instead of Shutdown().
384    
385            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
386    
387            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
388            Go back to using OnClose() instead of Shutdown().
389    
390    2003-03-10  Jonathan Coles   <[email protected]>
391    
392            * Thuban/UI/classifier.py (Classifier): SelectField() needed
393            to know the old field index as well as the new one.
394    
395    2003-03-10  Jonathan Coles   <[email protected]>
396    
397            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
398            to correctly set the table information and call this from
399            __init__ and from _OnFieldSelect so that all the information
400            is up to date when the dialog opens and when a field is changed.
401    
402    2003-03-10  Jonathan Coles   <[email protected]>
403    
404            * Thuban/Model/classification.py (Classification): Don't use
405            layer's message function directly, use the ClassChanged() method
406            when then classification changes. SetField/SetFieldType/SetLayer
407            must keep the information about field name and field type in
408            sync when an owning layer is set or removed.
409    
410            * Thuban/Model/layer.py: Added ClassChanged() so that the
411            classification can tell the layer when its data has changed.
412            (Layer.SetClassification): Accepts None as an arguement to
413            remove the current classification and correctly handles
414            adding a new classification.
415    
416            * Thuban/Model/load.py: Comment out print statement
417    
418            * test/test_classification.py, test/test_save.py: New and
419            improved tests.
420    
421    2003-03-07  Jonathan Coles   <[email protected]>
422    
423            * Thuban/Model/classification.py: Implemented __copy__ and
424            __deepcopy__ for ClassGroup* and ClassGroupProperites so
425            they can easily be copied by the classifier dialog.
426            (ClassGroupProperites.__init__): The default line color should
427            have been Color.Black.
428    
429            * Thuban/UI/classifier.py: Setting and Getting table values now
430            uses a consistent set of functions.
431            (Classifier): Now non-modal. Has field type label which changes
432            as the field changes. Keep track of buttons in a list so that
433            we can enable/disable the buttons when the None field is selected.
434            (SelectPropertiesDialog): Add buttons to make the colors transparent.
435    
436            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
437            does what OnClose did, but can be called by the application to
438            close a window. Needed when a session changes, and we have to
439            close the classifier windows.
440    
441            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
442            Shuts down open dialogs. Used when a new session is created
443            or a session is opened.
444            (MainWindow.SaveSession): Should only call application.SaveSession()
445            if we don't call SaveSessionAs first.
446            (MainWindow.Classify): Allow different classifier dialogs for
447            different layers.
448    
449            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
450            the parent class handle it. Add Shutdown() to unsubscibe from
451            event notification and call the parent Shutdown(). This was
452            necessary so the application can close the tree window.
453    
454    2003-03-06  Jonathan Coles   <[email protected]>
455    
456            * Thuban/Model/classification.py: Minor documentation changes,
457            Addition of __eq__ and __ne__ methods.
458            (Classification.SetLayer): prevent recursion between this method
459            and Layer.SetClassification().
460    
461            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
462    
463            * Thuban/Model/layer.py (SetClassification): prevent recursion
464            between this method and Classification.SetLayer().
465    
466            * test/test_classification.py, test/test_load.py,
467            test/test_session.py: Fixed and added tests for the classification
468            classes.
469    
470    2003-03-06  Bernhard Herzog  <[email protected]>
471    
472            * Thuban/UI/classifier.py (ClassGrid.__init__)
473            (ClassGrid.CreateTable): Move the SetSelectionMode call to
474            CreateTable because otherwise it triggers an assertion in
475            wxPython/wxGTK 2.4.
476    
477    2003-03-05  Jonathan Coles   <[email protected]>
478    
479            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
480    
481            * Thuban/Model/load.py: import FIELDTYPE constants from table.
482    
483            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
484    
485            * Thuban/Model/table.py: Put FIELDTYPE constants back.
486    
487    2003-03-05  Jonathan Coles   <[email protected]>
488    
489            * Thuban/UI/classifier.py: Added class documentation.
490            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
491            Store just the groups in the table and generate the other
492            column information when it is requested. Add "None" field
493            to pull-down to select no classification.
494    
495            * Thuban/common.py: Moved FIELDTYPE constants from table.py
496            (Str2Num): Only catch ValueError exceptions.
497    
498            * Thuban/Model/classification.py: Class documentation. Renaming
499            of methods with Stroke to Line. Groups are stored in a single
500            list with the default as the first element. Groups are searched
501            in the order they appear in the list.
502    
503            * Thuban/Model/color.py: Documentation.
504    
505            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
506            the kind of data represented by a field.
507    
508            * Thuban/Model/load.py (ProcessSession): Use proper string
509            conversion function; fixes RTbug #1713.
510    
511            * Thuban/Model/save.py (Saver): Store field type information.
512    
513            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
514            (Table): Add field_info_by_name() to retrieve field information
515            by specifying the field name, not the number.
516    
517            * Thuban/UI/mainwindow.py: Function name changes.
518    
519            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
520            get the layer classification once. Don't try to classify
521            values when the field is None: just use the default properties.
522    
523            * Thuban/UI/view.py: Function name changes.
524    
525            * Doc/thuban.dtd: Add field_type attribute to a classification.
526    
527    2003-03-04  Bernhard Herzog  <[email protected]>
528    
529            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
530            the fill and stroke layer attributes optional with suitable
531            default values. Add the stroke_width layer attribute. Use correct
532            syntax for empty elements. Make the attribute list for labels
533            refer to the label element.
534    
535    2003-03-04  Bernhard Herzog  <[email protected]>
536    
537            * setup.py (thuban_build_py.build): Add a comment about distutils in
538            Python 2.3 containing some of the functionality we implement in
539            setup.py ourselves.
540    
541            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
542            before the selection mode. Doing it the other way round triggers
543            an assertion in wxWindows.
544    
545            * Thuban/Model/save.py (escape): Fix typo in doc-string
546    
547            * Thuban/Model/classification.py: Remove unnecessary wxPython
548            import
549    
550    2003-03-04  Jonathan Coles   <[email protected]>
551    
552            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
553            Parameter 'value' should default to None.
554    
555            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
556            the class attribute __classification is now private.
557    
558            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
559            Classifier to ClassGrid. Added support for removing selected rows,
560            which including code for keeping track of when cells are selected,
561            and deselected.
562            (ClassTable): Support for added/removing rows. Fixed a problem
563            with __ParseInput whereby it would not allow strings (only numbers)
564            to be entered.
565            (Classifier): Added button and supporting code for removing
566            selected rows.
567    
568    2003-02-27  Jonathan Coles   <[email protected]>
569    
570            * Thuban/common.py: Moved color conversion functions into
571            Thuban/UI/common.py.
572            (Str2Num): Now converts the float (not the string) to a long/int
573            so that an exception isn't thrown.
574    
575            * Thuban/UI/common.py: Common functions used in several UI modules
576    
577            * Thuban/Model/classification.py: Changed the class hierarchy
578            so that a Classification consists of Groups which return
579            Properties when a value matches a Group.
580    
581            * Thuban/Model/layer.py: Fixed name resolution problem.
582    
583            * Thuban/Model/load.py: Use new Classification and Group functions.
584    
585            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
586            failure.
587            (Saver.write_classification): Use new Classification and Group
588            functions.
589    
590            * Thuban/UI/classifier.py: Changes to use new Classification and Group
591            functions. Fix to create a tuple with a single value instead of
592            simply returning the value.
593    
594            * Thuban/UI/renderer.py: Use new Classification and Group functions.
595            Use common.py functions.
596    
597            * Thuban/UI/tree.py: Use common.py functions.
598            
599            * test/test_classification.py: Use new Classification and Group
600            classes.
601    
602    2003-02-24  Jonathan Coles   <[email protected]>
603    
604            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
605            functions from Thuban color objects to wxWindow colour objects.
606    
607            * Thuban/Model/classification.py (Classification): Renamed
608            GetProperties() to GetClassData(). Used the new iterator
609            in TreeInfo().
610            (ClassIterator): Iterator implementation to iterate over the
611            ClassData objects in a classification object.
612    
613            * Thuban/Model/save.py (Saver.write_classificaton): Uses
614            the new iterator to save the classification information.
615    
616            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
617            for changing the stroke and fill colors and previewing the
618            changes.
619    
620            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
621            MainWindow.SaveSessionAs): Text string changes so the dialogs
622            have more meaningful titles.
623    
624            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
625            Classification method name from GetProperties to GetClassData.
626    
627            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
628            instead of accessing now non-existent class variables.
629    
630    2003-02-24  Bernhard Herzog  <[email protected]>
631    
632            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
633            unneeded Shape() call. Rendering is substantially faster without
634            it and it avoids some problems with broken shape files.
635    
636    2003-02-20  Frank Koormann   <[email protected]>
637    
638            Force minimal size of identify and label dialogs. The autosizing
639            looked too ugly.
640    
641            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
642            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
643            Set size of listctrl.
644            * Thuban/UI/identifyview.py (IdentifyView.__init__):
645            Set size of dialog.
646    
647    2003-02-19  Jonathan Coles   <[email protected]>
648    
649            * test/test_classification.py, test/test_layer.py,
650            test/test_load.py, test/test_map.py, test/test_session.py:
651            Updated the tests to use the new functions that are in the
652            respective classes.
653    
654            * Thuban/Model/classification.py (Classification):
655            Uses the new ClassData* classes. Modification messages are
656            passed up to the parent layer (if it exists).
657            (ClassData): New class to encapsulate the common data in each
658            classification property.
659            (ClassDataDefault): Represents the Default class. data.
660            (ClassDataPoint): Represents a single class. data point
661            (ClassDataRange): Represents a class. range
662            (ClassDataMap): Represents a class. map (unused).
663    
664            * Thuban/Model/color.py: Added Color.None to represent something
665            with no color. Color.Black represents the color black.
666            (NoColor): Helper class derived from Color to represent something
667            with no color.
668    
669            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
670            stroke_width attributes. Made the 'classification' attribute private.
671            New methods for setting/getting the classification.
672    
673            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
674            to get the classifcation and use the new ClassData* classes to
675            hold the classification data. Use Str2Num to convert numbers
676            properly.
677    
678            * Thuban/Model/save.py (Saver): Use new Color and Classification
679            methods
680    
681            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
682            custom grid.
683            (ClassTable): Support for editing Values and Labels and for
684            changing what type (point or range) of data is stored in each
685            property based on how the user enters the data.
686            (Classifier): Support for saving the new classifications and
687            launching the dialog to edit a property.
688            (SelectPropertiesDialog): New class for editing the visual
689            properties of a classification (stroke color, width, and fill color)
690            (ClassPreviewer): Took the Draw method from ClassRenderer and
691            made most of it into this new class. Intend to use this class in
692            the SelectPropertiesDialog for previewing changes.
693    
694            * Thuban/UI/renderer.py: Use new Color and Classification methods.
695    
696            * Thuban/UI/tree.py: Formatting changes.
697    
698            * Doc/thuban.dtd: Add 'label' element
699    
700            * Thuban/common.py: New. Contains common routines used throughout
701            the code.
702            (Str2Num): Takes a string and converts it to the "best" type of
703            number.
704    
705    2003-02-14  Bernhard Herzog  <[email protected]>
706    
707            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
708            dragging flag is always set to 0 even when the tool implementation
709            raises an exception
710    
711    2003-02-11  Bernhard Herzog  <[email protected]>
712    
713            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
714            method to create a splash screen.
715            (ThubanApplication.ShowMainWindow): New. Show the main window.
716            Needed so the splash screen can display the mainwindow
717            (ThubanApplication.OnInit): Call the
718            new splash_screen method to determine whether the application
719            should display a splash screen. If it displays a splash screen do
720            not immediately show the main window.
721    
722    2003-02-11  Jonathan Coles  <[email protected]>
723    
724            * Thuban/Model/classification.py: Added import line to fix
725            feature conflicts between running on python2.2 and python2.1.
726    
727            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
728            onto the clinfo parameter, so removed the deepcopy().
729    
730    2003-02-10  Jonathan Coles  <[email protected]>
731    
732            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
733            Added element_open variable to track opening and closing of tags
734            so that tags that don't span more than one line are closed with
735            /> instead of </tag_name>. Use the GetDefault*() methods of
736            the Classification class.
737    
738            * Thuban/Model/classification.py (Classificaton): Added set and
739            get methods for the default data. The class also takes a layer
740            reference so that modification messages can be sent. Fixed the
741            methods to use the new ClassData class.
742            (ClassData): New class to encapsulate the classification data
743    
744            * Thuban/Model/layer.py (Layer): Remove the
745            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
746            SetDefault*() methods on the layer's classification object.
747            (Layer.__init__): Use the new SetDefault*() methods in the
748            Classification class.
749    
750            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
751            object instead of a dictionary.
752    
753            * Thuban/UI/classifier.py (ClassRenderer): New class to
754            draw the classifications in the dialog box's table.
755            (Classifier): Modified to use the ClassRenderer class.
756    
757            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
758            methods of the Classification class.
759    
760            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
761            of the ClassData class.
762    
763            * test/test_classification.py, test/test_layer.py,
764            test/test_map.py, test/test_session.py: Fix the tests to work
765            with the above code changes.
766    
767    2003-02-03  Jonathan Coles  <[email protected]>
768    
769            * Thuban/Model/classification.py (Classification): Added getNull()
770            to return the NullData reference
771    
772            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
773            Layer.SetStrokeWidth): Modified these functions to change the
774            null data in the classification rather than keep these values
775            directly in the Layer class. Menu options to change these values
776            work again.
777    
778  2003-01-28  Jonathan Coles  <[email protected]>  2003-01-28  Jonathan Coles  <[email protected]>
779    
780          * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.          * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
781          Fixed crashing problem on some systems. Dialog box shows          Fixed crashing problem on some systems. Dialog box shows
782          classification data.          classification data.
783    
784          * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing          * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
# Line 14  Line 791 
791          function to add information about the classification into the          function to add information about the classification into the
792          tree view.          tree view.
793    
794  2003-01-27      Jan-Oliver Wagner <[email protected]>  2003-01-27  Jan-Oliver Wagner <[email protected]>
795    
796          * Thuban/__init__.py (_): New.          * Thuban/__init__.py (_): New.
797    
798          * Thuban/Model/classification.py, Thuban/Model/extension.py,          * Thuban/Model/classification.py, Thuban/Model/extension.py,
799          Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,          Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
800          Thuban/Model/session.py, Thuban/UI/application.py, Thuban/UI/classifier.py,          Thuban/Model/session.py, Thuban/UI/application.py,
801          Thuban/UI/context.py, Thuban/UI/controls.py, Thuban/UI/identifyview.py,          Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
802          Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, Thuban/UI/menu.py,          Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
803          Thuban/UI/proj4dialog.py, Thuban/UI/renderer.py, Thuban/UI/tree.py,          Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
804          Thuban/Lib/connector.py, Thuban/Lib/fileutil.py:          Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
805          Replace user string by _() for i18n.          Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
806    
807  2003-01-27  Jonathan Coles  <[email protected]>  2003-01-27  Jonathan Coles  <[email protected]>
808    
809    * Thuban/Model/layer.py: Classification initialization calls.          * Thuban/Model/layer.py: Classification initialization calls.
810    
811    * Thuban/Model/classification.py: Created class to encapsulate          * Thuban/Model/classification.py: Created class to encapsulate
812    a layer classification. Supports specific data points and          a layer classification. Supports specific data points and
813    ranges.          ranges.
814    
815    * Thuban/Model/load.py: Added support for loading classification          * Thuban/Model/load.py: Added support for loading classification
816    information.          information.
817    
818    * Thuban/Model/save.py: Added support for saving classification          * Thuban/Model/save.py: Added support for saving classification
819    information.          information.
820    
821    * Thuban/UI/classifier.py: Initial class for a dialog box for          * Thuban/UI/classifier.py: Initial class for a dialog box for
822    specifying classification information.          specifying classification information.
823    
824    * Thuban/UI/mainwindows.py: Support for opening the classifier          * Thuban/UI/mainwindows.py: Support for opening the classifier
825    dialog.          dialog.
826    
827    * Thuban/UI/renderer.py: Support for drawing a layer with the          * Thuban/UI/renderer.py: Support for drawing a layer with the
828    classification information.          classification information.
829    
830    * Data/iceland_sample_class.thuban: iceland_sample with          * Data/iceland_sample_class.thuban: iceland_sample with
831    classification data.          classification data.
832    
833    * test/test_classification: Tests for the Classification class.          * test/test_classification: Tests for the Classification class.
834    
835  2002-12-09  Bernhard Herzog  <[email protected]>  2002-12-09  Bernhard Herzog  <[email protected]>
836    
# Line 89  Line 866 
866          * Thuban/UI/mainwindow.py: Altered the order of tools in the          * Thuban/UI/mainwindow.py: Altered the order of tools in the
867          toolbar: First now are all navigation tools (Zoom In/Out, Pan,          toolbar: First now are all navigation tools (Zoom In/Out, Pan,
868          Full Extent).          Full Extent).
869        
870  2002-10-23  Bernhard Herzog  <[email protected]>  2002-10-23  Bernhard Herzog  <[email protected]>
871    
872          * setup.py (setup call): version now 0.1.3          * setup.py (setup call): version now 0.1.3
# Line 200  Line 977 
977          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
978          VIEW_POSITION          VIEW_POSITION
979    
980  2002-09-04  Frank Koormann   <[email protected]>  2002-09-04  Frank Koormann  <[email protected]>
981    
982          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
983    
# Line 287  Line 1064 
1064    
1065          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
1066          records.          records.
1067          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
1068    
1069          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1070          into the underlying table.          into the underlying table.
# Line 325  Line 1102 
1102          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1103          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
1104    
1105  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
1106    
1107          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1108          tree window already open          tree window already open
# Line 453  Line 1230 
1230          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
1231          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
1232          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
1233          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1234          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
1235    
1236          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 514  Line 1291 
1291          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
1292          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
1293          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
1294          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
1295          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
1296    
1297  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 595  Line 1372 
1372          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1373          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1374    
1375  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1376    
1377          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1378          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 824  Line 1601 
1601          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1602          position in the statusbar          position in the statusbar
1603    
1604  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1605    
1606          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1607    
1608  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1609            
1610          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1611    
1612          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1613    
1614          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1615    
1616            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1617            box
1618    
1619  2002-04-21      Jan-Oliver Wagner <[email protected]>  2002-04-21  Jan-Oliver Wagner <[email protected]>
1620    
1621          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1622    
1623          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1624    
1625          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1626          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1627    
1628  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1629    
1630          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1631          saving _new_ sessions          saving _new_ sessions
# Line 949  Line 1727 
1727    
1728          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1729          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1730    
1731  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1732    
1733          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1734          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1735    
1736          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1737          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1738          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1739          too.          too.
# Line 1066  Line 1843 
1843          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
1844          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
1845    
1846          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1847          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
1848          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
1849          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
1850          the application's OnInit method          the application's OnInit method
# Line 1083  Line 1860 
1860          layer to the tableview dialog.          layer to the tableview dialog.
1861    
1862          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
1863          (TableGrid):          (TableGrid):
1864          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
1865          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
1866          (TableFrame.__init__):          (TableFrame.__init__):
# Line 1150  Line 1927 
1927  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
1928    
1929          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1930            
1931          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1932          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
1933            
1934          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1935          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
1936          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 1200  Line 1977 
1977          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
1978          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
1979          link_file method          link_file method
1980            
1981          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1982          the window when the first layer is added to the map.          the window when the first layer is added to the map.
1983    
# Line 1237  Line 2014 
2014          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
2015          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2016          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
2017            
2018          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
2019          installer          installer
2020    

Legend:
Removed from v.384  
changed lines
  Added in v.600

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26