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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26