/[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 1051 by frank, Tue May 27 09:32:07 2003 UTC revision 1127 by bh, Mon Jun 2 14:16:37 2003 UTC
# Line 1  Line 1 
1    2003-06-02  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
4            New commands.
5            (main_menu): Add the new commands.
6            (MainWindow.TableRename): New. Implementation of the table_rename
7            command.
8            (MainWindow.RenameLayer): New. Implementation of the layer_rename
9            command.
10    
11            * Thuban/Model/session.py (Session.AddTable): call self.changed to
12            set the modified flag
13    
14            * test/test_session.py (TestSessionSimple.test_add_table): Test
15            whether the modified flag is set properly
16    
17            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
18            instead of issue so that the modified flags get updated.
19    
20            * test/test_base.py (SomeTitledObject): Derive from Modifiable
21            instead of Publisher to reflect reality better and to accomodate
22            the fact that SetTitle now calls changed instead of issue
23    
24    2003-06-02  Bernhard Herzog  <[email protected]>
25    
26            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
27            acquisition has to happen before the try in a try-finally.
28    
29    2003-06-02  Bernhard Herzog  <[email protected]>
30    
31            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
32            possible that a layer is removed that is not currently selected in
33            the legend so don't check for this.
34    
35    2003-05-30  Bernhard Herzog  <[email protected]>
36    
37            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
38            variables to None that have direct or indirect references to
39            shapefiles or dbf files to make sure that they do go away and the
40            files are closed.
41    
42    2003-05-30  Bernhard Herzog  <[email protected]>
43    
44            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
45            availImgListIndices when a new image list is created
46            
47    2003-05-30  Bernhard Herzog  <[email protected]>
48    
49            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
50            changing_selection to indicate whether the LegendTree code itself
51            is currently changing the selection
52            (LegendTree.normalize_selection): New method to normalize the
53            selection by selecting the layer item even if the user clicked on
54            the classification.
55            (LegendTree._OnSelChanged): normalize the selection. This works
56            around a bug in wx which doesn't keep track of the selection
57            properly when subtrees are deleted.
58    
59    2003-05-30  Bernhard Herzog  <[email protected]>
60    
61            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
62            maximum and minimum scale factors.
63    
64            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
65            changes in classgen.py
66    
67    2003-05-30  Jonathan Coles   <[email protected]>
68    
69            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
70            all the methods functions. Fixes RTBug #1903.
71    
72            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
73            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
74            RTBug #1907.
75    
76            * Thuban/UI/classgen.py: Use classgen functions that were part
77            of the ClassGenerator class. Put try/finally blocks around
78            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
79            RTBug #1904.
80    
81            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
82    
83            * Thuban/UI/legend.py: The legend was cleared and repopulated any
84            time something changed which caused some state to be lost such
85            as which children were expanded or collapsed. Fixes RTBug #1901.
86            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
87            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
88            the legend but not in the map.
89            (LegendTree.__FillTree): Move main functionality out into smaller
90            methods that can be used by other methods.
91            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
92            if they are available.
93            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
94            that we override the wxTreeCtrl method. Iterate over children
95            and call __RemoveLayer.
96            (LegendTree.__AddLayer): New. Add a new layer to the legend.
97            (LegendTree.__RemoveLayer): Remove a layer from the legend.
98            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
99            Should only be called with the id of a layer branch.
100            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
101            Returns the root item or creates one if necessary.
102    
103            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
104            ProjectRasterFile with tuple arguments instead of strings.
105    
106            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
107            with try/finally. Fixes RTBug #1904.
108    
109            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
110            with try/finally. Fixes RTBug #1904.
111            (MapCanvas.FitSelectedToWindow): If a single point is selected
112            simply center it on the display. Fixes RTBug #1849.
113    
114            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
115            to be compiled as a standalone app. Now the code can only be
116            called from Python which simplifies the parameter passing.
117            (ProjectRasterFile): Handle Python arguments. Remove code that
118            checks for a destination dataset. Add more clean up code.
119    
120            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
121            TestMapWithContents.test_lower_layer_bottom):
122            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
123            Fixes RTBug #1907.
124    
125            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
126            extent to the map when the legend is toggled. Fixes RTBug #1881.
127    
128    2003-05-29  Jan-Oliver Wagner <[email protected]>
129    
130            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
131            unsubscribes all that is subcribed in __init__.
132    
133    2003-05-28  Bernhard Herzog  <[email protected]>
134    
135            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
136            (MainWindow.CanDuplicateLayer): New methods to implement the
137            Layer/Duplicate command.
138            (layer_duplicate command): New.
139            (main_menu): Add layer_duplicate to the Layer menu.
140    
141    2003-05-28  Bernhard Herzog  <[email protected]>
142    
143            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
144            renderer so that NULL/None values get displayed differently (by a
145            gray rectangle).
146            (TableGrid.__init__): Override the default renderers
147    
148    2003-05-28  Bernhard Herzog  <[email protected]>
149    
150            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
151            classification to "None" if the type of the field has changed.
152    
153            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
154            test for the Layer.SetShapeStore method
155    
156    2003-05-28  Jan-Oliver Wagner <[email protected]>
157    
158            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
159            does not necessarily have a filename).
160    
161    2003-05-28  Jan-Oliver Wagner <[email protected]>
162    
163            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
164            sort the selection list for the dialog.
165    
166    2003-05-28  Frank Koormann  <[email protected]>
167    
168            * extensions/thuban/wxproj.cpp
169            (project_point): Removed cast to int for projected point coordinates.
170            (shape_centroid): Return last point if all polygon vertices fall
171            to one point.
172    
173    2003-05-28  Bernhard Herzog  <[email protected]>
174    
175            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
176            with layers that don't have shapestores, i.e. raster layers.
177    
178    2003-05-28  Bernhard Herzog  <[email protected]>
179    
180            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
181            when determining the title from the filename.
182    
183            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
184            reflect changes in the way the title is derived from the filename
185    
186    2003-05-28  Frank Koormann  <[email protected]>
187    
188            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
189            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
190    
191    2003-05-27  Bernhard Herzog  <[email protected]>
192    
193            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
194            delegate SelectedLayer.
195            (MainWindow.LayerUnjoinTable): Implement.
196            (_can_unjoin): New. Helper function for the sensitivity of the
197            layer/unjoin command.
198    
199            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
200            (DerivedShapeStore.OrigShapeStore): New. Return the original
201            shapestore. Used to figure out how to unjoin.
202            (DerivedShapeStore.Shapefile): Fix a typo.
203    
204    2003-05-27  Bernhard Herzog  <[email protected]>
205    
206            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
207            well
208            (JoinDialog.__init__): Use the layer parameter and only build the
209            left choice when a layer is given
210            (JoinDialog.OnJoin): Handle layer joins as well
211            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
212            that the user selects the "Select..." item. The sensitivitly
213            updating is now in update_sensitivity
214            (JoinDialog.y): New method to refactor the sensitivity update of
215            the join button into its own method.
216    
217            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
218    
219    2003-05-27  Bernhard Herzog  <[email protected]>
220    
221            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
222            iff there are unreferenced tables in the session
223    
224    2003-05-27  Bernhard Herzog  <[email protected]>
225    
226            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
227    
228            * Thuban/Model/session.py (Session.UnreferencedTables): New method
229            to return tables that are not referenced by other tables or shape
230            stores and can be removed.
231            (Session.RemoveTable): Issue a TABLE_REMOVED message after
232            removing the table
233    
234            * Thuban/UI/mainwindow.py: Remove unused imports
235            (MainWindow.TableClose): Implement.
236    
237            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
238            messages so that the frame will be automatically closed when a new
239            session is opened or the table is removed.
240            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
241            __init__
242            (TableFrame.close_on_session_replaced)
243            (TableFrame.close_on_table_removed): New. Subscribers that close
244            the window
245    
246            * test/test_session.py (TestSessionMessages.test_remove_table)
247            (TestSessionSimple.test_remove_table): Move the test to
248            TestSessionSimple and add test for the TABLE_REMOVED message
249            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
250            (TestSessionSimple.test_unreferenced_tables) New. Test for the
251            UnreferencedTables method.
252            (UnreferencedTablesTests): New. Class with some more sophisticated
253            tests for UnreferencedTables.
254    
255    2003-05-27  Frank Koormann  <[email protected]>
256    
257            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
258            display has some unwanted side effects. Removed again.
259    
260    2003-05-27  Frank Koormann  <[email protected]>
261    
262            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
263    
264            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
265    
266    2003-05-27  Jan-Oliver Wagner <[email protected]>
267    
268            * test/test_menu.py (MenuTest.test): Added test for
269            Menu.RemoveItem().
270    
271            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
272            the menu.
273    
274    2003-05-27  Frank Koormann  <[email protected]>
275            
276            Nonmodal dialogs without parent (i.e. they can fall behind the main
277            window)
278    
279            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
280            all dialogs in the dialogs dictionary and the canvas.
281    
282            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
283            parent, i.e. can fall behind other windows.
284            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
285            dictionary before removing it.
286    
287            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
288    
289            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
290            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
291            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
292    
293    2003-05-27  Bernhard Herzog  <[email protected]>
294    
295            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
296            tableview dialog
297            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
298            Also, don't use the table's titles as the dialog names. The titles
299            aren't guaranteed to be unique.
300            (MainWindow.TableOpen): Open a table view dialog after opening the
301            table
302    
303    2003-05-27  Bernhard Herzog  <[email protected]>
304    
305            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
306            effect can be achieved by simply closing the window showing the
307            table.
308            (MainWindow.TableHide): Removed.
309            (main_menu): Removed "table_hide"
310    
311  2003-05-27  Frank Koormann  <[email protected]>  2003-05-27  Frank Koormann  <[email protected]>
312    
313          Fix legend tree display problems under Win32          Fix legend tree display problems under Win32

Legend:
Removed from v.1051  
changed lines
  Added in v.1127

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26