/[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 423 by frank, Thu Feb 20 16:23:59 2003 UTC revision 554 by jonathan, Tue Mar 25 16:20:51 2003 UTC
# Line 1  Line 1 
1    2003-03-25  Jonathan Coles   <[email protected]>
2    
3            * setup.py: Added custom script bdist_rpm_build_script so that
4            when the rpm is built the path to wx-config is correct.
5    
6            * setup.cfg: Added line saying to use the custom build script
7    
8    2003-03-20  Jonathan Coles   <[email protected]>
9    
10            Initial implementation of the Legend.
11    
12            * Thuban/UI/legend.py: New. Creates a window that shows the map's
13            Legend information and allows the user to add/modify classifications
14            and how the layers are drawn on the map.
15    
16            * setup.py: New command 'build_docs' which currently uses
17            happydoc to generate html documentation for Thuban.
18    
19            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
20            Returns a string which is appropriately describes the group.
21    
22            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
23            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
24    
25            * Thuban/Model/map.py (Map): Rename messages and use new, more
26            specific, messages.
27    
28            * Thuban/Model/messages.py: New message to indicate that a layer's
29            data has changed (LAYER_CHANGED). New map messages to indicate
30            when layers have been added/removed/changed or if the stacking order
31            of the layers has changed.
32    
33            * Thuban/Model/session.py: Rename and use new messages.
34    
35            * Thuban/UI/classifier.py: Remember if any changes have actually
36            been applied so that if the dialog is cancelled without an application
37            of changes we don't have to set a new classification.
38            (ClassDataPreviewer): Pulled out the window specific code and put it
39            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
40            symbols on any DC.
41            
42            * Thuban/UI/mainwindow.py: New code to open the legend.
43    
44            * Thuban/UI/view.py: Use new message names.
45    
46    2003-03-19  Jonathan Coles   <[email protected]>
47    
48            * Thuban/UI/main.py (verify_versions): New. Checks the versions
49            of Python, wxPython, and some other libraries.
50    
51            * extensions/thuban/wxproj.cpp (check_version): Checks the given
52            version against what wxproj was compiled with.
53            (check_version_gtk): If wxproj was compiled with gtk then check
54            the given version against the version of the gtk library
55            currently being used.
56    
57    2003-03-14  Bernhard Herzog  <[email protected]>
58    
59            * test/test_command.py: Run the tests when the module is run as a
60            script
61    
62    2003-03-14  Bernhard Herzog  <[email protected]>
63    
64            Implement selection of multiple selected shapes in the same layer:
65    
66            - Introduce a new class to hold the selection. This basically
67              replaces the interactor which was nothing more than the
68              selection anyway. A major difference is of course that the new
69              selection class supports multiple selected shapes in one layer
70            
71            - Move the object that represents the selection from the
72              application to the canvas. The canvas is a better place than the
73              application because the selection represents which shapes and
74              layer of the map displayed by the canvas are selected and
75              affects how the map is drawn.
76    
77            - Make the selection and its messages publicly available through
78              the mainwindow.
79    
80            - The non-modal dialogs do not get a reference to the interactor
81              anymore as they can simply refer to their parent, the
82              mainwindow, for the what the interactor had to offer.
83    
84            * Thuban/UI/selection.py: New module with a class to represent the
85            selection.
86    
87            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
88            these unused messages
89    
90            * Thuban/UI/application.py (ThubanApplication.OnInit)
91            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
92            interactor is gone now.
93            (ThubanApplication.CreateMainWindow): There is no interactor
94            anymore so we pass None as the interactor argument for now for
95            compatibility.
96    
97            * Thuban/UI/view.py (MapCanvas.delegated_messages)
98            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
99            Unsubscribe, delegate messages according to the delegated_messages
100            class variable.
101            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
102            attributes from instance variables as described with the
103            delegated_methods class variable.
104            (MapCanvas.__init__): New instance variable selection holding the
105            current selection
106            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
107            pass them on to the renderer
108            (MapCanvas.SetMap): Clear the selection when a different map is
109            selected.
110            (MapCanvas.shape_selected): Simple force a complete redraw. The
111            selection class now takes care of only issueing SHAPES_SELECTED
112            messages when the set of selected shapes actually does change.
113            (MapCanvas.SelectShapeAt): The selection is now managed in
114            self.selection
115    
116            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
117            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
118            Unsubscribe, delegate messages according to the delegated_messages
119            class variable.
120            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
121            attributes from instance variables as described with the
122            delegated_methods class variable.
123            (MainWindow.__init__): The interactor as ivar is gone. The
124            parameter is still there for compatibility. The selection messages
125            now come from the canvas.
126            (MainWindow.current_layer, MainWindow.has_selected_layer):
127            Delegate to the the canvas.
128            (MainWindow.LayerShowTable, MainWindow.Classify)
129            (MainWindow.identify_view_on_demand): The dialogs don't need the
130            interactor parameter anymore.
131    
132            * Thuban/UI/tableview.py (TableFrame.__init__)
133            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
134            (LayerTableFrame.row_selected): The interactor is gone. It's job
135            from the dialog's point of view is now done by the mainwindow,
136            i.e. the parent. Subscribe to SHAPES_SELECTED instead
137            of SELECTED_SHAPE
138            
139            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
140            is gone. It's job from the dialog's point of view is now done by
141            the mainwindow, i.e. the parent.
142            
143            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
144            gone. It's job from the dialog's point of view is now done by the
145            mainwindow, i.e. the parent.
146    
147            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
148            gone. It's job from the dialog's point of view is now done by the
149            mainwindow, i.e. the parent.
150            (SessionTreeCtrl.__init__): New parameter mainwindow which is
151            stored as self.mainwindow. The mainwindow is need so that the tree
152            can still subscribe to the selection messages.
153            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
154            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
155            selection is now accessible through the mainwindow. Subscribe to
156            SHAPES_SELECTED instead of SELECTED_SHAPE
157    
158            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
159            SHAPES_SELECTED message now.
160            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
161            so deal with multiple shapes
162            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
163            gone. It's job from the dialog's point of view is now done by the
164            mainwindow, i.e. the parent.
165    
166            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
167            parameter is now a list of shape ids.
168            (RecordTable.SetTable): The second parameter is now a list of
169            indices.
170    
171            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
172            selected_shape parameter and ivar to selected_shapes. It's now a
173            list of shape ids.
174            (MapRenderer.draw_label_layer): Deal with multiple selected
175            shapes. Rearrange the code a bit so that the setup and shape type
176            distinctions are only executed once.
177    
178            * test/test_selection.py: Test cases for the selection class
179    
180    2003-03-11  Jonathan Coles   <[email protected]>
181    
182            * Thuban/Model/load.py: Temporary fix so that the xml reader
183            doesn't cause Thuban to crash.
184    
185            * Thuban/Model/layer.py: Handle the cyclic references between
186            a layer and its classification better, and be sure to disconnect
187            the classification from the layer when the layer is destroyed
188            so that we don't maintain a cyclic reference that may not be
189            garbage collected.
190    
191            * Thuban/Model/classification.py: See comment for layer.py.
192    
193    2003-03-12  Jan-Oliver Wagner <[email protected]>
194    
195            * HOWTO-Release: New. Information on the steps for releasing
196            a new version of Thuban.
197    
198    2003-03-11  Jonathan Coles   <[email protected]>
199    
200            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
201            Use True instead of true.
202            (Classifier): Should have a single panel in which all the controls lie.
203    
204            * Thuban/UI/proj4dialog.py: Add normal border.
205    
206            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
207    
208            * Thuban/UI/mainwindow.py: Use True instead of true.
209    
210            * setup.py: Update some definitions to use wxWindows2.4 files
211    
212            * Data/iceland_sample_class.thuban: Fixed file so that the
213            field_type information is present.
214    
215    2003-03-10  Jonathan Coles   <[email protected]>
216    
217            * Thuban/UI/classifier.py (Classifier.__init__): Make the
218            field type label grow so that when the text changes the
219            size is updated correctly. This may be a wxWindows bug.
220    
221    2003-03-10  Jonathan Coles   <[email protected]>
222    
223            * Thuban/UI/application.py: Changed SESSION_CHANGED to
224            SESSION_REPLACED.
225    
226            * Thuban/UI/classifier.py: Wrap text with _().
227            (ClassGrid.CreateTable): Set dimensions and size hints here,
228            instead of in Reset, so we only set the size once.
229    
230            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
231    
232            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
233            Call Close() instead of Shutdown().
234    
235            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
236    
237            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
238            Go back to using OnClose() instead of Shutdown().
239    
240    2003-03-10  Jonathan Coles   <[email protected]>
241    
242            * Thuban/UI/classifier.py (Classifier): SelectField() needed
243            to know the old field index as well as the new one.
244    
245    2003-03-10  Jonathan Coles   <[email protected]>
246    
247            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
248            to correctly set the table information and call this from
249            __init__ and from _OnFieldSelect so that all the information
250            is up to date when the dialog opens and when a field is changed.
251    
252    2003-03-10  Jonathan Coles   <[email protected]>
253    
254            * Thuban/Model/classification.py (Classification): Don't use
255            layer's message function directly, use the ClassChanged() method
256            when then classification changes. SetField/SetFieldType/SetLayer
257            must keep the information about field name and field type in
258            sync when an owning layer is set or removed.
259    
260            * Thuban/Model/layer.py: Added ClassChanged() so that the
261            classification can tell the layer when its data has changed.
262            (Layer.SetClassification): Accepts None as an arguement to
263            remove the current classification and correctly handles
264            adding a new classification.
265    
266            * Thuban/Model/load.py: Comment out print statement
267    
268            * test/test_classification.py, test/test_save.py: New and
269            improved tests.
270    
271    2003-03-07  Jonathan Coles   <[email protected]>
272    
273            * Thuban/Model/classification.py: Implemented __copy__ and
274            __deepcopy__ for ClassGroup* and ClassGroupProperites so
275            they can easily be copied by the classifier dialog.
276            (ClassGroupProperites.__init__): The default line color should
277            have been Color.Black.
278    
279            * Thuban/UI/classifier.py: Setting and Getting table values now
280            uses a consistent set of functions.
281            (Classifier): Now non-modal. Has field type label which changes
282            as the field changes. Keep track of buttons in a list so that
283            we can enable/disable the buttons when the None field is selected.
284            (SelectPropertiesDialog): Add buttons to make the colors transparent.
285    
286            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
287            does what OnClose did, but can be called by the application to
288            close a window. Needed when a session changes, and we have to
289            close the classifier windows.
290    
291            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
292            Shuts down open dialogs. Used when a new session is created
293            or a session is opened.
294            (MainWindow.SaveSession): Should only call application.SaveSession()
295            if we don't call SaveSessionAs first.
296            (MainWindow.Classify): Allow different classifier dialogs for
297            different layers.
298    
299            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
300            the parent class handle it. Add Shutdown() to unsubscibe from
301            event notification and call the parent Shutdown(). This was
302            necessary so the application can close the tree window.
303    
304    2003-03-06  Jonathan Coles   <[email protected]>
305    
306            * Thuban/Model/classification.py: Minor documentation changes,
307            Addition of __eq__ and __ne__ methods.
308            (Classification.SetLayer): prevent recursion between this method
309            and Layer.SetClassification().
310    
311            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
312    
313            * Thuban/Model/layer.py (SetClassification): prevent recursion
314            between this method and Classification.SetLayer().
315    
316            * test/test_classification.py, test/test_load.py,
317            test/test_session.py: Fixed and added tests for the classification
318            classes.
319    
320    2003-03-06  Bernhard Herzog  <[email protected]>
321    
322            * Thuban/UI/classifier.py (ClassGrid.__init__)
323            (ClassGrid.CreateTable): Move the SetSelectionMode call to
324            CreateTable because otherwise it triggers an assertion in
325            wxPython/wxGTK 2.4.
326    
327    2003-03-05  Jonathan Coles   <[email protected]>
328    
329            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
330    
331            * Thuban/Model/load.py: import FIELDTYPE constants from table.
332    
333            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
334    
335            * Thuban/Model/table.py: Put FIELDTYPE constants back.
336    
337    2003-03-05  Jonathan Coles   <[email protected]>
338    
339            * Thuban/UI/classifier.py: Added class documentation.
340            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
341            Store just the groups in the table and generate the other
342            column information when it is requested. Add "None" field
343            to pull-down to select no classification.
344    
345            * Thuban/common.py: Moved FIELDTYPE constants from table.py
346            (Str2Num): Only catch ValueError exceptions.
347    
348            * Thuban/Model/classification.py: Class documentation. Renaming
349            of methods with Stroke to Line. Groups are stored in a single
350            list with the default as the first element. Groups are searched
351            in the order they appear in the list.
352    
353            * Thuban/Model/color.py: Documentation.
354    
355            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
356            the kind of data represented by a field.
357    
358            * Thuban/Model/load.py (ProcessSession): Use proper string
359            conversion function; fixes RTbug #1713.
360    
361            * Thuban/Model/save.py (Saver): Store field type information.
362    
363            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
364            (Table): Add field_info_by_name() to retrieve field information
365            by specifying the field name, not the number.
366    
367            * Thuban/UI/mainwindow.py: Function name changes.
368    
369            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
370            get the layer classification once. Don't try to classify
371            values when the field is None: just use the default properties.
372    
373            * Thuban/UI/view.py: Function name changes.
374    
375            * Doc/thuban.dtd: Add field_type attribute to a classification.
376    
377    2003-03-04  Bernhard Herzog  <[email protected]>
378    
379            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
380            the fill and stroke layer attributes optional with suitable
381            default values. Add the stroke_width layer attribute. Use correct
382            syntax for empty elements. Make the attribute list for labels
383            refer to the label element.
384    
385    2003-03-04  Bernhard Herzog  <[email protected]>
386    
387            * setup.py (thuban_build_py.build): Add a comment about distutils in
388            Python 2.3 containing some of the functionality we implement in
389            setup.py ourselves.
390    
391            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
392            before the selection mode. Doing it the other way round triggers
393            an assertion in wxWindows.
394    
395            * Thuban/Model/save.py (escape): Fix typo in doc-string
396    
397            * Thuban/Model/classification.py: Remove unnecessary wxPython
398            import
399    
400    2003-03-04  Jonathan Coles   <[email protected]>
401    
402            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
403            Parameter 'value' should default to None.
404    
405            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
406            the class attribute __classification is now private.
407    
408            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
409            Classifier to ClassGrid. Added support for removing selected rows,
410            which including code for keeping track of when cells are selected,
411            and deselected.
412            (ClassTable): Support for added/removing rows. Fixed a problem
413            with __ParseInput whereby it would not allow strings (only numbers)
414            to be entered.
415            (Classifier): Added button and supporting code for removing
416            selected rows.
417    
418    2003-02-27  Jonathan Coles   <[email protected]>
419    
420            * Thuban/common.py: Moved color conversion functions into
421            Thuban/UI/common.py.
422            (Str2Num): Now converts the float (not the string) to a long/int
423            so that an exception isn't thrown.
424    
425            * Thuban/UI/common.py: Common functions used in several UI modules
426    
427            * Thuban/Model/classification.py: Changed the class hierarchy
428            so that a Classification consists of Groups which return
429            Properties when a value matches a Group.
430    
431            * Thuban/Model/layer.py: Fixed name resolution problem.
432    
433            * Thuban/Model/load.py: Use new Classification and Group functions.
434    
435            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
436            failure.
437            (Saver.write_classification): Use new Classification and Group
438            functions.
439    
440            * Thuban/UI/classifier.py: Changes to use new Classification and Group
441            functions. Fix to create a tuple with a single value instead of
442            simply returning the value.
443    
444            * Thuban/UI/renderer.py: Use new Classification and Group functions.
445            Use common.py functions.
446    
447            * Thuban/UI/tree.py: Use common.py functions.
448            
449            * test/test_classification.py: Use new Classification and Group
450            classes.
451    
452    2003-02-24  Jonathan Coles   <[email protected]>
453    
454            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
455            functions from Thuban color objects to wxWindow colour objects.
456    
457            * Thuban/Model/classification.py (Classification): Renamed
458            GetProperties() to GetClassData(). Used the new iterator
459            in TreeInfo().
460            (ClassIterator): Iterator implementation to iterate over the
461            ClassData objects in a classification object.
462    
463            * Thuban/Model/save.py (Saver.write_classificaton): Uses
464            the new iterator to save the classification information.
465    
466            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
467            for changing the stroke and fill colors and previewing the
468            changes.
469    
470            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
471            MainWindow.SaveSessionAs): Text string changes so the dialogs
472            have more meaningful titles.
473    
474            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
475            Classification method name from GetProperties to GetClassData.
476    
477            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
478            instead of accessing now non-existent class variables.
479    
480    2003-02-24  Bernhard Herzog  <[email protected]>
481    
482            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
483            unneeded Shape() call. Rendering is substantially faster without
484            it and it avoids some problems with broken shape files.
485    
486  2003-02-20  Frank Koormann   <[email protected]>  2003-02-20  Frank Koormann   <[email protected]>
487    
488          Force minimal size of identify and label dialogs. The autosizing          Force minimal size of identify and label dialogs. The autosizing

Legend:
Removed from v.423  
changed lines
  Added in v.554

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26