/[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 499 by jonathan, Mon Mar 10 15:10:48 2003 UTC revision 575 by jonathan, Mon Mar 31 18:30:51 2003 UTC
# Line 1  Line 1 
1    2003-03-31  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/classifier.py: Commented out some debugging statements.
4            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
5            RTbug #1769.
6    
7            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
8            position (although position doesn't work yet under GTK).
9            (DockableWindow.Destroy): New. Called when the window must be
10            closed. Namely needed when the DockFrame closes and must close
11            its children.
12            (DockFrame): Listen for EVT_CLOSE and destroy all children.
13    
14            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
15            when then window is told to close.
16            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
17            comment in source for more info.
18    
19            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
20    
21            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
22            symmetry with other such methods.
23            (MainWindow.ShowLegend): Show the legend docked by default.
24    
25    2003-03-28  Jonathan Coles   <[email protected]>
26    
27            * Thuban/UI/classifier.py: Support for highlighting a specific
28            group within the grid when the classification dialog is opened.
29            Also contains a lot of debugging printouts which will later
30            be removed.
31    
32            * Thuban/UI/dock.py: Complete rework on the dock code so that
33            that it is fairly removed from the rest of the Thuban application.
34            It is easy to add new docks which the rest of the program having
35            to be aware of them.
36    
37            * Thuban/UI/legend.py: Modifications to support selecting a
38            specific group in the classification dialog. Changed how layers
39            are drawn when the layer is visible/invisible.
40    
41            * Thuban/UI/mainwindow.py: Removed legend specific code and
42            replaced it with calls to the new dock code.
43    
44            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
45            to check if scale > 0. Trying to track down a divide by zero.
46    
47    2003-03-26  Jonathan Coles   <[email protected]>
48    
49            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
50            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
51            now part of DockableWindow.
52            (LegendPanel.DoOnSelChanged): Select the current layer in the
53            map.
54            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
55            with the selected layer and/or group.
56    
57    2003-03-26  Jonathan Coles   <[email protected]>
58    
59            This putback contains the code for dockable windows. There is
60            no support in wxWindows as of this date for windows that can
61            attach themselves to other windows.
62    
63            The current model contains a DockableWindow which has a parent
64            window for when it is detached and a dock window that it puts
65            its contents in when it is docked. The contents of a DockableWindow
66            must be a DockPanel. DockPanel itself derives from wxPanel.
67    
68            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
69            message, not a LAYER_LEGEND_CHANGED message.
70    
71            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
72    
73            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
74            as one of the style properties for the fieldTypeText item to
75            be sure that its size is correct when the text changes.
76    
77            * Thuban/UI/dock.py: New. Classes for the DockPanel and
78            DockableWindow.
79    
80            * Thuban/UI/legend.py: Added some more buttons and made the
81            LegendPanel a DockPanel.
82    
83            * Thuban/UI/mainwindow.py: Added sash windows to the main window
84            and supporting functions for manipulating the sashes.
85            (MainWindow.ShowLegend): Create a DockableWindow with the
86            LegendPanel as the contents.
87    
88            * Thuban/UI/messages.py: Added DOCKABLE_* messages
89    
90            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
91            not LAYER_LEGEND_CHANGED, messages.
92    
93    2003-03-25  Jonathan Coles   <[email protected]>
94    
95            * setup.py: Added custom script bdist_rpm_build_script so that
96            when the rpm is built the path to wx-config is correct.
97    
98            * setup.cfg: Added line saying to use the custom build script
99    
100    2003-03-20  Jonathan Coles   <[email protected]>
101    
102            Initial implementation of the Legend.
103    
104            * Thuban/UI/legend.py: New. Creates a window that shows the map's
105            Legend information and allows the user to add/modify classifications
106            and how the layers are drawn on the map.
107    
108            * setup.py: New command 'build_docs' which currently uses
109            happydoc to generate html documentation for Thuban.
110    
111            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
112            Returns a string which is appropriately describes the group.
113    
114            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
115            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
116    
117            * Thuban/Model/map.py (Map): Rename messages and use new, more
118            specific, messages.
119    
120            * Thuban/Model/messages.py: New message to indicate that a layer's
121            data has changed (LAYER_CHANGED). New map messages to indicate
122            when layers have been added/removed/changed or if the stacking order
123            of the layers has changed.
124    
125            * Thuban/Model/session.py: Rename and use new messages.
126    
127            * Thuban/UI/classifier.py: Remember if any changes have actually
128            been applied so that if the dialog is cancelled without an application
129            of changes we don't have to set a new classification.
130            (ClassDataPreviewer): Pulled out the window specific code and put it
131            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
132            symbols on any DC.
133            
134            * Thuban/UI/mainwindow.py: New code to open the legend.
135    
136            * Thuban/UI/view.py: Use new message names.
137    
138    2003-03-19  Jonathan Coles   <[email protected]>
139    
140            * Thuban/UI/main.py (verify_versions): New. Checks the versions
141            of Python, wxPython, and some other libraries.
142    
143            * extensions/thuban/wxproj.cpp (check_version): Checks the given
144            version against what wxproj was compiled with.
145            (check_version_gtk): If wxproj was compiled with gtk then check
146            the given version against the version of the gtk library
147            currently being used.
148    
149    2003-03-14  Bernhard Herzog  <[email protected]>
150    
151            * test/test_command.py: Run the tests when the module is run as a
152            script
153    
154    2003-03-14  Bernhard Herzog  <[email protected]>
155    
156            Implement selection of multiple selected shapes in the same layer:
157    
158            - Introduce a new class to hold the selection. This basically
159              replaces the interactor which was nothing more than the
160              selection anyway. A major difference is of course that the new
161              selection class supports multiple selected shapes in one layer
162            
163            - Move the object that represents the selection from the
164              application to the canvas. The canvas is a better place than the
165              application because the selection represents which shapes and
166              layer of the map displayed by the canvas are selected and
167              affects how the map is drawn.
168    
169            - Make the selection and its messages publicly available through
170              the mainwindow.
171    
172            - The non-modal dialogs do not get a reference to the interactor
173              anymore as they can simply refer to their parent, the
174              mainwindow, for the what the interactor had to offer.
175    
176            * Thuban/UI/selection.py: New module with a class to represent the
177            selection.
178    
179            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
180            these unused messages
181    
182            * Thuban/UI/application.py (ThubanApplication.OnInit)
183            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
184            interactor is gone now.
185            (ThubanApplication.CreateMainWindow): There is no interactor
186            anymore so we pass None as the interactor argument for now for
187            compatibility.
188    
189            * Thuban/UI/view.py (MapCanvas.delegated_messages)
190            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
191            Unsubscribe, delegate messages according to the delegated_messages
192            class variable.
193            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
194            attributes from instance variables as described with the
195            delegated_methods class variable.
196            (MapCanvas.__init__): New instance variable selection holding the
197            current selection
198            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
199            pass them on to the renderer
200            (MapCanvas.SetMap): Clear the selection when a different map is
201            selected.
202            (MapCanvas.shape_selected): Simple force a complete redraw. The
203            selection class now takes care of only issueing SHAPES_SELECTED
204            messages when the set of selected shapes actually does change.
205            (MapCanvas.SelectShapeAt): The selection is now managed in
206            self.selection
207    
208            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
209            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
210            Unsubscribe, delegate messages according to the delegated_messages
211            class variable.
212            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
213            attributes from instance variables as described with the
214            delegated_methods class variable.
215            (MainWindow.__init__): The interactor as ivar is gone. The
216            parameter is still there for compatibility. The selection messages
217            now come from the canvas.
218            (MainWindow.current_layer, MainWindow.has_selected_layer):
219            Delegate to the the canvas.
220            (MainWindow.LayerShowTable, MainWindow.Classify)
221            (MainWindow.identify_view_on_demand): The dialogs don't need the
222            interactor parameter anymore.
223    
224            * Thuban/UI/tableview.py (TableFrame.__init__)
225            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
226            (LayerTableFrame.row_selected): The interactor is gone. It's job
227            from the dialog's point of view is now done by the mainwindow,
228            i.e. the parent. Subscribe to SHAPES_SELECTED instead
229            of SELECTED_SHAPE
230            
231            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
232            is gone. It's job from the dialog's point of view is now done by
233            the mainwindow, i.e. the parent.
234            
235            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
236            gone. It's job from the dialog's point of view is now done by the
237            mainwindow, i.e. the parent.
238    
239            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
240            gone. It's job from the dialog's point of view is now done by the
241            mainwindow, i.e. the parent.
242            (SessionTreeCtrl.__init__): New parameter mainwindow which is
243            stored as self.mainwindow. The mainwindow is need so that the tree
244            can still subscribe to the selection messages.
245            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
246            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
247            selection is now accessible through the mainwindow. Subscribe to
248            SHAPES_SELECTED instead of SELECTED_SHAPE
249    
250            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
251            SHAPES_SELECTED message now.
252            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
253            so deal with multiple shapes
254            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
255            gone. It's job from the dialog's point of view is now done by the
256            mainwindow, i.e. the parent.
257    
258            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
259            parameter is now a list of shape ids.
260            (RecordTable.SetTable): The second parameter is now a list of
261            indices.
262    
263            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
264            selected_shape parameter and ivar to selected_shapes. It's now a
265            list of shape ids.
266            (MapRenderer.draw_label_layer): Deal with multiple selected
267            shapes. Rearrange the code a bit so that the setup and shape type
268            distinctions are only executed once.
269    
270            * test/test_selection.py: Test cases for the selection class
271    
272    2003-03-11  Jonathan Coles   <[email protected]>
273    
274            * Thuban/Model/load.py: Temporary fix so that the xml reader
275            doesn't cause Thuban to crash.
276    
277            * Thuban/Model/layer.py: Handle the cyclic references between
278            a layer and its classification better, and be sure to disconnect
279            the classification from the layer when the layer is destroyed
280            so that we don't maintain a cyclic reference that may not be
281            garbage collected.
282    
283            * Thuban/Model/classification.py: See comment for layer.py.
284    
285    2003-03-12  Jan-Oliver Wagner <[email protected]>
286    
287            * HOWTO-Release: New. Information on the steps for releasing
288            a new version of Thuban.
289    
290    2003-03-11  Jonathan Coles   <[email protected]>
291    
292            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
293            Use True instead of true.
294            (Classifier): Should have a single panel in which all the controls lie.
295    
296            * Thuban/UI/proj4dialog.py: Add normal border.
297    
298            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
299    
300            * Thuban/UI/mainwindow.py: Use True instead of true.
301    
302            * setup.py: Update some definitions to use wxWindows2.4 files
303    
304            * Data/iceland_sample_class.thuban: Fixed file so that the
305            field_type information is present.
306    
307    2003-03-10  Jonathan Coles   <[email protected]>
308    
309            * Thuban/UI/classifier.py (Classifier.__init__): Make the
310            field type label grow so that when the text changes the
311            size is updated correctly. This may be a wxWindows bug.
312    
313  2003-03-10  Jonathan Coles   <[email protected]>  2003-03-10  Jonathan Coles   <[email protected]>
314    
315          * Thuban/UI/application.py: Changed SESSION_CHANGED to          * Thuban/UI/application.py: Changed SESSION_CHANGED to

Legend:
Removed from v.499  
changed lines
  Added in v.575

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26