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

Legend:
Removed from v.490  
changed lines
  Added in v.593

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26