/[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 1065 by frank, Tue May 27 14:10:33 2003 UTC revision 1109 by jonathan, Fri May 30 06:31:48 2003 UTC
# Line 1  Line 1 
1    2003-05-30  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
4            all the methods functions. Fixes RTBug #1903.
5    
6            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
7            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
8            RTBug #1907.
9    
10            * Thuban/UI/classgen.py: Use classgen functions that were part
11            of the ClassGenerator class. Put try/finally blocks around
12            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
13            RTBug #1904.
14    
15            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
16    
17            * Thuban/UI/legend.py: The legend was cleared and repopulated any
18            time something changed which caused some state to be lost such
19            as which children were expanded or collapsed. Fixes RTBug #1901.
20            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
21            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
22            the legend but not in the map.
23            (LegendTree.__FillTree): Move main functionality out into smaller
24            methods that can be used by other methods.
25            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
26            if they are available.
27            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
28            that we override the wxTreeCtrl method. Iterate over children
29            and call __RemoveLayer.
30            (LegendTree.__AddLayer): New. Add a new layer to the legend.
31            (LegendTree.__RemoveLayer): Remove a layer from the legend.
32            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
33            Should only be called with the id of a layer branch.
34            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
35            Returns the root item or creates one if necessary.
36    
37            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
38            ProjectRasterFile with tuple arguments instead of strings.
39    
40            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
41            with try/finally. Fixes RTBug #1904.
42    
43            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
44            with try/finally. Fixes RTBug #1904.
45            (MapCanvas.FitSelectedToWindow): If a single point is selected
46            simply center it on the display. Fixes RTBug #1849.
47    
48            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
49            to be compiled as a standalone app. Now the code can only be
50            called from Python which simplifies the parameter passing.
51            (ProjectRasterFile): Handle Python arguments. Remove code that
52            checks for a destination dataset. Add more clean up code.
53    
54            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
55            TestMapWithContents.test_lower_layer_bottom):
56            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
57            Fixes RTBug #1907.
58    
59            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
60            extent to the map when the legend is toggled. Fixes RTBug #1881.
61    
62    2003-05-29  Jan-Oliver Wagner <[email protected]>
63    
64            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
65            unsubscribes all that is subcribed in __init__.
66    
67    2003-05-28  Bernhard Herzog  <[email protected]>
68    
69            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
70            (MainWindow.CanDuplicateLayer): New methods to implement the
71            Layer/Duplicate command.
72            (layer_duplicate command): New.
73            (main_menu): Add layer_duplicate to the Layer menu.
74    
75    2003-05-28  Bernhard Herzog  <[email protected]>
76    
77            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
78            renderer so that NULL/None values get displayed differently (by a
79            gray rectangle).
80            (TableGrid.__init__): Override the default renderers
81    
82    2003-05-28  Bernhard Herzog  <[email protected]>
83    
84            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
85            classification to "None" if the type of the field has changed.
86    
87            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
88            test for the Layer.SetShapeStore method
89    
90    2003-05-28  Jan-Oliver Wagner <[email protected]>
91    
92            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
93            does not necessarily have a filename).
94    
95    2003-05-28  Jan-Oliver Wagner <[email protected]>
96    
97            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
98            sort the selection list for the dialog.
99    
100    2003-05-28  Frank Koormann  <[email protected]>
101    
102            * extensions/thuban/wxproj.cpp
103            (project_point): Removed cast to int for projected point coordinates.
104            (shape_centroid): Return last point if all polygon vertices fall
105            to one point.
106    
107    2003-05-28  Bernhard Herzog  <[email protected]>
108    
109            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
110            with layers that don't have shapestores, i.e. raster layers.
111    
112    2003-05-28  Bernhard Herzog  <[email protected]>
113    
114            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
115            when determining the title from the filename.
116    
117            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
118            reflect changes in the way the title is derived from the filename
119    
120    2003-05-28  Frank Koormann  <[email protected]>
121    
122            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
123            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
124    
125    2003-05-27  Bernhard Herzog  <[email protected]>
126    
127            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
128            delegate SelectedLayer.
129            (MainWindow.LayerUnjoinTable): Implement.
130            (_can_unjoin): New. Helper function for the sensitivity of the
131            layer/unjoin command.
132    
133            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
134            (DerivedShapeStore.OrigShapeStore): New. Return the original
135            shapestore. Used to figure out how to unjoin.
136            (DerivedShapeStore.Shapefile): Fix a typo.
137    
138    2003-05-27  Bernhard Herzog  <[email protected]>
139    
140            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
141            well
142            (JoinDialog.__init__): Use the layer parameter and only build the
143            left choice when a layer is given
144            (JoinDialog.OnJoin): Handle layer joins as well
145            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
146            that the user selects the "Select..." item. The sensitivitly
147            updating is now in update_sensitivity
148            (JoinDialog.y): New method to refactor the sensitivity update of
149            the join button into its own method.
150    
151            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
152    
153    2003-05-27  Bernhard Herzog  <[email protected]>
154    
155            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
156            iff there are unreferenced tables in the session
157    
158    2003-05-27  Bernhard Herzog  <[email protected]>
159    
160            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
161    
162            * Thuban/Model/session.py (Session.UnreferencedTables): New method
163            to return tables that are not referenced by other tables or shape
164            stores and can be removed.
165            (Session.RemoveTable): Issue a TABLE_REMOVED message after
166            removing the table
167    
168            * Thuban/UI/mainwindow.py: Remove unused imports
169            (MainWindow.TableClose): Implement.
170    
171            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
172            messages so that the frame will be automatically closed when a new
173            session is opened or the table is removed.
174            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
175            __init__
176            (TableFrame.close_on_session_replaced)
177            (TableFrame.close_on_table_removed): New. Subscribers that close
178            the window
179    
180            * test/test_session.py (TestSessionMessages.test_remove_table)
181            (TestSessionSimple.test_remove_table): Move the test to
182            TestSessionSimple and add test for the TABLE_REMOVED message
183            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
184            (TestSessionSimple.test_unreferenced_tables) New. Test for the
185            UnreferencedTables method.
186            (UnreferencedTablesTests): New. Class with some more sophisticated
187            tests for UnreferencedTables.
188    
189    2003-05-27  Frank Koormann  <[email protected]>
190    
191            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
192            display has some unwanted side effects. Removed again.
193    
194  2003-05-27  Frank Koormann  <[email protected]>  2003-05-27  Frank Koormann  <[email protected]>
195    
196          * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.          * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
# Line 6  Line 199 
199    
200  2003-05-27  Jan-Oliver Wagner <[email protected]>  2003-05-27  Jan-Oliver Wagner <[email protected]>
201    
202          * test/test_menu.py (MenuTest.test): Added test for Menu.RemoveItem().          * test/test_menu.py (MenuTest.test): Added test for
203            Menu.RemoveItem().
204    
205          * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from the menu.          * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
206            the menu.
207    
208  2003-05-27  Frank Koormann  <[email protected]>  2003-05-27  Frank Koormann  <[email protected]>
209                    

Legend:
Removed from v.1065  
changed lines
  Added in v.1109

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26