/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.514  
changed lines
  Added in v.600

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26