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

Legend:
Removed from v.426  
changed lines
  Added in v.587

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26