/[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 1069 by bh, Tue May 27 15:02:48 2003 UTC revision 1139 by frank, Thu Jun 5 16:00:12 2003 UTC
# Line 1  Line 1 
1    2003-06-05  Frank Koormann  <[email protected]>
2    
3            * Thuban/UI/identifyview.py (IdentifyView.__init__):
4            Layout reimplemented without panel. Make life easier to fit the list
5            in the dialog.
6    
7    2003-06-05  Frank Koormann  <[email protected]>
8    
9            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
10            once on initialisation (Former implementation resulted in multiple
11            entries for each projection).
12            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
13            if set, select the projection found under the specified name. This
14            overwrites any other selection estimate.
15            Removed projchoice filling from this method.
16            (ProjFrame._OnSave, ProjFrame._OnAddToList):
17            Updated call of ProjFrame.__FillAvailList
18            (LCCPanel._DoLayout): Moved parameter controls in more common order.
19    
20            * Resources/Projections/defaults.proj: Extended defaults representing
21            various common European projections.
22    
23    2003-06-05  Frank Koormann  <[email protected]>
24    
25            * Thuban/UI/identifyview.py (IdentifyView.__init__):
26            Use ListCtrl instead of GridCtrl
27    
28            * Thuban/Model/resource.py:
29            Guess location of .thuban directory from tempdir parent directory.
30    
31            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
32            Guess location of .thuban directory from tempdir parent directory.
33    
34    2003-06-04  Bernhard Herzog  <[email protected]>
35    
36            Do not cache the values returned by the tree widget's
37            GetFirstChild and GetNextChild methods because it led to lots of
38            segfaults. The new way requires more brute force but is more
39            reliable.
40    
41            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
42            variable layer2id
43            (LegendTree.find_layer): New method to do with brute force what
44            layer2id tried to accomplish
45            (LegendTree._OnMsgLayerChanged)
46            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
47            Use find_layer instead of layer2id
48            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
49            update layer2id anymore
50            (LegendTree._OnMsgMapLayersRemoved)
51            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
52    
53    2003-06-03  Thomas Koester  <[email protected]>
54    
55            * Thuban/Model/classgen.py (GenQuantiles0): New function.
56    
57    2003-06-02  Bernhard Herzog  <[email protected]>
58    
59            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
60            New commands.
61            (main_menu): Add the new commands.
62            (MainWindow.TableRename): New. Implementation of the table_rename
63            command.
64            (MainWindow.RenameLayer): New. Implementation of the layer_rename
65            command.
66    
67            * Thuban/Model/session.py (Session.AddTable): call self.changed to
68            set the modified flag
69    
70            * test/test_session.py (TestSessionSimple.test_add_table): Test
71            whether the modified flag is set properly
72    
73            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
74            instead of issue so that the modified flags get updated.
75    
76            * test/test_base.py (SomeTitledObject): Derive from Modifiable
77            instead of Publisher to reflect reality better and to accomodate
78            the fact that SetTitle now calls changed instead of issue
79    
80    2003-06-02  Bernhard Herzog  <[email protected]>
81    
82            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
83            acquisition has to happen before the try in a try-finally.
84    
85    2003-06-02  Bernhard Herzog  <[email protected]>
86    
87            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
88            possible that a layer is removed that is not currently selected in
89            the legend so don't check for this.
90    
91    2003-05-30  Bernhard Herzog  <[email protected]>
92    
93            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
94            variables to None that have direct or indirect references to
95            shapefiles or dbf files to make sure that they do go away and the
96            files are closed.
97    
98    2003-05-30  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
101            availImgListIndices when a new image list is created
102            
103    2003-05-30  Bernhard Herzog  <[email protected]>
104    
105            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
106            changing_selection to indicate whether the LegendTree code itself
107            is currently changing the selection
108            (LegendTree.normalize_selection): New method to normalize the
109            selection by selecting the layer item even if the user clicked on
110            the classification.
111            (LegendTree._OnSelChanged): normalize the selection. This works
112            around a bug in wx which doesn't keep track of the selection
113            properly when subtrees are deleted.
114    
115    2003-05-30  Bernhard Herzog  <[email protected]>
116    
117            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
118            maximum and minimum scale factors.
119    
120            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
121            changes in classgen.py
122    
123    2003-05-30  Jonathan Coles   <[email protected]>
124    
125            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
126            all the methods functions. Fixes RTBug #1903.
127    
128            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
129            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
130            RTBug #1907.
131    
132            * Thuban/UI/classgen.py: Use classgen functions that were part
133            of the ClassGenerator class. Put try/finally blocks around
134            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
135            RTBug #1904.
136    
137            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
138    
139            * Thuban/UI/legend.py: The legend was cleared and repopulated any
140            time something changed which caused some state to be lost such
141            as which children were expanded or collapsed. Fixes RTBug #1901.
142            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
143            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
144            the legend but not in the map.
145            (LegendTree.__FillTree): Move main functionality out into smaller
146            methods that can be used by other methods.
147            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
148            if they are available.
149            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
150            that we override the wxTreeCtrl method. Iterate over children
151            and call __RemoveLayer.
152            (LegendTree.__AddLayer): New. Add a new layer to the legend.
153            (LegendTree.__RemoveLayer): Remove a layer from the legend.
154            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
155            Should only be called with the id of a layer branch.
156            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
157            Returns the root item or creates one if necessary.
158    
159            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
160            ProjectRasterFile with tuple arguments instead of strings.
161    
162            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
163            with try/finally. Fixes RTBug #1904.
164    
165            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
166            with try/finally. Fixes RTBug #1904.
167            (MapCanvas.FitSelectedToWindow): If a single point is selected
168            simply center it on the display. Fixes RTBug #1849.
169    
170            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
171            to be compiled as a standalone app. Now the code can only be
172            called from Python which simplifies the parameter passing.
173            (ProjectRasterFile): Handle Python arguments. Remove code that
174            checks for a destination dataset. Add more clean up code.
175    
176            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
177            TestMapWithContents.test_lower_layer_bottom):
178            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
179            Fixes RTBug #1907.
180    
181            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
182            extent to the map when the legend is toggled. Fixes RTBug #1881.
183    
184    2003-05-29  Jan-Oliver Wagner <[email protected]>
185    
186            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
187            unsubscribes all that is subcribed in __init__.
188    
189    2003-05-28  Bernhard Herzog  <[email protected]>
190    
191            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
192            (MainWindow.CanDuplicateLayer): New methods to implement the
193            Layer/Duplicate command.
194            (layer_duplicate command): New.
195            (main_menu): Add layer_duplicate to the Layer menu.
196    
197    2003-05-28  Bernhard Herzog  <[email protected]>
198    
199            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
200            renderer so that NULL/None values get displayed differently (by a
201            gray rectangle).
202            (TableGrid.__init__): Override the default renderers
203    
204    2003-05-28  Bernhard Herzog  <[email protected]>
205    
206            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
207            classification to "None" if the type of the field has changed.
208    
209            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
210            test for the Layer.SetShapeStore method
211    
212    2003-05-28  Jan-Oliver Wagner <[email protected]>
213    
214            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
215            does not necessarily have a filename).
216    
217    2003-05-28  Jan-Oliver Wagner <[email protected]>
218    
219            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
220            sort the selection list for the dialog.
221    
222    2003-05-28  Frank Koormann  <[email protected]>
223    
224            * extensions/thuban/wxproj.cpp
225            (project_point): Removed cast to int for projected point coordinates.
226            (shape_centroid): Return last point if all polygon vertices fall
227            to one point.
228    
229    2003-05-28  Bernhard Herzog  <[email protected]>
230    
231            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
232            with layers that don't have shapestores, i.e. raster layers.
233    
234    2003-05-28  Bernhard Herzog  <[email protected]>
235    
236            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
237            when determining the title from the filename.
238    
239            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
240            reflect changes in the way the title is derived from the filename
241    
242    2003-05-28  Frank Koormann  <[email protected]>
243    
244            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
245            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
246    
247    2003-05-27  Bernhard Herzog  <[email protected]>
248    
249            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
250            delegate SelectedLayer.
251            (MainWindow.LayerUnjoinTable): Implement.
252            (_can_unjoin): New. Helper function for the sensitivity of the
253            layer/unjoin command.
254    
255            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
256            (DerivedShapeStore.OrigShapeStore): New. Return the original
257            shapestore. Used to figure out how to unjoin.
258            (DerivedShapeStore.Shapefile): Fix a typo.
259    
260    2003-05-27  Bernhard Herzog  <[email protected]>
261    
262            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
263            well
264            (JoinDialog.__init__): Use the layer parameter and only build the
265            left choice when a layer is given
266            (JoinDialog.OnJoin): Handle layer joins as well
267            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
268            that the user selects the "Select..." item. The sensitivitly
269            updating is now in update_sensitivity
270            (JoinDialog.y): New method to refactor the sensitivity update of
271            the join button into its own method.
272    
273            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
274    
275    2003-05-27  Bernhard Herzog  <[email protected]>
276    
277            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
278            iff there are unreferenced tables in the session
279    
280  2003-05-27  Bernhard Herzog  <[email protected]>  2003-05-27  Bernhard Herzog  <[email protected]>
281    
282          * Thuban/Model/messages.py (TABLE_REMOVED): New message.          * Thuban/Model/messages.py (TABLE_REMOVED): New message.

Legend:
Removed from v.1069  
changed lines
  Added in v.1139

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26