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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26