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

Legend:
Removed from v.523  
changed lines
  Added in v.595

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26