/[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 1044 by bh, Mon May 26 19:27:40 2003 UTC revision 1152 by frank, Wed Jun 11 11:06:27 2003 UTC
# Line 1  Line 1 
1    2003-06-11  Frank Koormann  <[email protected]>
2    
3            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
4            update.
5    
6    2003-06-11  Frank Koormann  <[email protected]>
7    
8            * Thuban/Lib/fileutil.py (get_application_dir): New function to
9            determine the absolute .thuban/thuban directory under
10            "posix" (os.expanduser) and "nt" (read AppData registry key).
11    
12            * Thuban/Model/resource.py: Use get_application_dir
13    
14            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
15            Use get_application_dir.
16    
17    2003-06-10  Bernhard Herzog  <[email protected]>
18    
19            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
20            the messages MAP_LAYERS_REMOVED messages
21            (LayerTableFrame.OnClose): Unsubscribe from it.
22            (LayerTableFrame.map_layers_removed): New. Receiver for
23            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
24            dialog is showing is removed.
25    
26    2003-06-10  Bernhard Herzog  <[email protected]>
27    
28            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
29            of the receivers list so that unsubscribing in a receiver doesn't
30            modify it while iterating over it.
31    
32            * test/test_connector.py
33            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
34            unsubscribing in a receiver works correctly. See docstring for
35            details
36    
37    2003-06-10  Bernhard Herzog  <[email protected]>
38    
39            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
40            message.
41    
42            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
43            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
44            LAYER_CHANGED will still be sent if the classification changes.
45    
46            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
47            parameter so we can subscribe to some of its messages
48            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
49            and the layer's LAYER_SHAPESTORE_REPLACED
50            (Classifier.unsubscribe_messages): New. Unsubscribe from message
51            subscribed to in __init__
52            (Classifier.map_layers_removed)
53            (Classifier.layer_shapestore_replaced): receivers for the messages
54            subscribed to in __init__. Unsubscribe and close the dialog
55    
56            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
57            the map to the Classifier dialog
58    
59            * test/test_layer.py (SetShapeStoreTests): Derive from
60            SubscriberMixin as well so we can test messages
61            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
62            messages
63            (SetShapeStoreTests.tearDown): Clear the messages again
64            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
65            for the modified flag too
66            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
67            to check whether SetShapeStore sets the modified flag
68            (SetShapeStoreTests.test_set_shape_store_different_field_name)
69            (SetShapeStoreTests.test_set_shape_store_same_field)
70            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
71            Add tests for the messages. This checks both the new
72            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
73    
74    2003-06-06  Jan-Oliver Wagner <[email protected]>
75    
76            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
77            the menu items.
78    
79    2003-06-05  Frank Koormann  <[email protected]>
80    
81            * Thuban/UI/identifyview.py (IdentifyView.__init__):
82            Layout reimplemented without panel. Make life easier to fit the list
83            in the dialog.
84    
85    2003-06-05  Frank Koormann  <[email protected]>
86    
87            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
88            once on initialisation (Former implementation resulted in multiple
89            entries for each projection).
90            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
91            if set, select the projection found under the specified name. This
92            overwrites any other selection estimate.
93            Removed projchoice filling from this method.
94            (ProjFrame._OnSave, ProjFrame._OnAddToList):
95            Updated call of ProjFrame.__FillAvailList
96            (LCCPanel._DoLayout): Moved parameter controls in more common order.
97    
98            * Resources/Projections/defaults.proj: Extended defaults representing
99            various common European projections.
100    
101    2003-06-05  Frank Koormann  <[email protected]>
102    
103            * Thuban/UI/identifyview.py (IdentifyView.__init__):
104            Use ListCtrl instead of GridCtrl
105    
106            * Thuban/Model/resource.py:
107            Guess location of .thuban directory from tempdir parent directory.
108    
109            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
110            Guess location of .thuban directory from tempdir parent directory.
111    
112    2003-06-04  Bernhard Herzog  <[email protected]>
113    
114            Do not cache the values returned by the tree widget's
115            GetFirstChild and GetNextChild methods because it led to lots of
116            segfaults. The new way requires more brute force but is more
117            reliable.
118    
119            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
120            variable layer2id
121            (LegendTree.find_layer): New method to do with brute force what
122            layer2id tried to accomplish
123            (LegendTree._OnMsgLayerChanged)
124            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
125            Use find_layer instead of layer2id
126            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
127            update layer2id anymore
128            (LegendTree._OnMsgMapLayersRemoved)
129            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
130    
131    2003-06-03  Thomas Koester  <[email protected]>
132    
133            * Thuban/Model/classgen.py (GenQuantiles0): New function.
134    
135    2003-06-02  Bernhard Herzog  <[email protected]>
136    
137            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
138            New commands.
139            (main_menu): Add the new commands.
140            (MainWindow.TableRename): New. Implementation of the table_rename
141            command.
142            (MainWindow.RenameLayer): New. Implementation of the layer_rename
143            command.
144    
145            * Thuban/Model/session.py (Session.AddTable): call self.changed to
146            set the modified flag
147    
148            * test/test_session.py (TestSessionSimple.test_add_table): Test
149            whether the modified flag is set properly
150    
151            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
152            instead of issue so that the modified flags get updated.
153    
154            * test/test_base.py (SomeTitledObject): Derive from Modifiable
155            instead of Publisher to reflect reality better and to accomodate
156            the fact that SetTitle now calls changed instead of issue
157    
158    2003-06-02  Bernhard Herzog  <[email protected]>
159    
160            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
161            acquisition has to happen before the try in a try-finally.
162    
163    2003-06-02  Bernhard Herzog  <[email protected]>
164    
165            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
166            possible that a layer is removed that is not currently selected in
167            the legend so don't check for this.
168    
169    2003-05-30  Bernhard Herzog  <[email protected]>
170    
171            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
172            variables to None that have direct or indirect references to
173            shapefiles or dbf files to make sure that they do go away and the
174            files are closed.
175    
176    2003-05-30  Bernhard Herzog  <[email protected]>
177    
178            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
179            availImgListIndices when a new image list is created
180            
181    2003-05-30  Bernhard Herzog  <[email protected]>
182    
183            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
184            changing_selection to indicate whether the LegendTree code itself
185            is currently changing the selection
186            (LegendTree.normalize_selection): New method to normalize the
187            selection by selecting the layer item even if the user clicked on
188            the classification.
189            (LegendTree._OnSelChanged): normalize the selection. This works
190            around a bug in wx which doesn't keep track of the selection
191            properly when subtrees are deleted.
192    
193    2003-05-30  Bernhard Herzog  <[email protected]>
194    
195            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
196            maximum and minimum scale factors.
197    
198            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
199            changes in classgen.py
200    
201    2003-05-30  Jonathan Coles   <[email protected]>
202    
203            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
204            all the methods functions. Fixes RTBug #1903.
205    
206            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
207            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
208            RTBug #1907.
209    
210            * Thuban/UI/classgen.py: Use classgen functions that were part
211            of the ClassGenerator class. Put try/finally blocks around
212            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
213            RTBug #1904.
214    
215            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
216    
217            * Thuban/UI/legend.py: The legend was cleared and repopulated any
218            time something changed which caused some state to be lost such
219            as which children were expanded or collapsed. Fixes RTBug #1901.
220            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
221            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
222            the legend but not in the map.
223            (LegendTree.__FillTree): Move main functionality out into smaller
224            methods that can be used by other methods.
225            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
226            if they are available.
227            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
228            that we override the wxTreeCtrl method. Iterate over children
229            and call __RemoveLayer.
230            (LegendTree.__AddLayer): New. Add a new layer to the legend.
231            (LegendTree.__RemoveLayer): Remove a layer from the legend.
232            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
233            Should only be called with the id of a layer branch.
234            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
235            Returns the root item or creates one if necessary.
236    
237            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
238            ProjectRasterFile with tuple arguments instead of strings.
239    
240            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
241            with try/finally. Fixes RTBug #1904.
242    
243            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
244            with try/finally. Fixes RTBug #1904.
245            (MapCanvas.FitSelectedToWindow): If a single point is selected
246            simply center it on the display. Fixes RTBug #1849.
247    
248            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
249            to be compiled as a standalone app. Now the code can only be
250            called from Python which simplifies the parameter passing.
251            (ProjectRasterFile): Handle Python arguments. Remove code that
252            checks for a destination dataset. Add more clean up code.
253    
254            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
255            TestMapWithContents.test_lower_layer_bottom):
256            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
257            Fixes RTBug #1907.
258    
259            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
260            extent to the map when the legend is toggled. Fixes RTBug #1881.
261    
262    2003-05-29  Jan-Oliver Wagner <[email protected]>
263    
264            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
265            unsubscribes all that is subcribed in __init__.
266    
267    2003-05-28  Bernhard Herzog  <[email protected]>
268    
269            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
270            (MainWindow.CanDuplicateLayer): New methods to implement the
271            Layer/Duplicate command.
272            (layer_duplicate command): New.
273            (main_menu): Add layer_duplicate to the Layer menu.
274    
275    2003-05-28  Bernhard Herzog  <[email protected]>
276    
277            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
278            renderer so that NULL/None values get displayed differently (by a
279            gray rectangle).
280            (TableGrid.__init__): Override the default renderers
281    
282    2003-05-28  Bernhard Herzog  <[email protected]>
283    
284            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
285            classification to "None" if the type of the field has changed.
286    
287            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
288            test for the Layer.SetShapeStore method
289    
290    2003-05-28  Jan-Oliver Wagner <[email protected]>
291    
292            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
293            does not necessarily have a filename).
294    
295    2003-05-28  Jan-Oliver Wagner <[email protected]>
296    
297            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
298            sort the selection list for the dialog.
299    
300    2003-05-28  Frank Koormann  <[email protected]>
301    
302            * extensions/thuban/wxproj.cpp
303            (project_point): Removed cast to int for projected point coordinates.
304            (shape_centroid): Return last point if all polygon vertices fall
305            to one point.
306    
307    2003-05-28  Bernhard Herzog  <[email protected]>
308    
309            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
310            with layers that don't have shapestores, i.e. raster layers.
311    
312    2003-05-28  Bernhard Herzog  <[email protected]>
313    
314            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
315            when determining the title from the filename.
316    
317            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
318            reflect changes in the way the title is derived from the filename
319    
320    2003-05-28  Frank Koormann  <[email protected]>
321    
322            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
323            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
324    
325    2003-05-27  Bernhard Herzog  <[email protected]>
326    
327            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
328            delegate SelectedLayer.
329            (MainWindow.LayerUnjoinTable): Implement.
330            (_can_unjoin): New. Helper function for the sensitivity of the
331            layer/unjoin command.
332    
333            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
334            (DerivedShapeStore.OrigShapeStore): New. Return the original
335            shapestore. Used to figure out how to unjoin.
336            (DerivedShapeStore.Shapefile): Fix a typo.
337    
338    2003-05-27  Bernhard Herzog  <[email protected]>
339    
340            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
341            well
342            (JoinDialog.__init__): Use the layer parameter and only build the
343            left choice when a layer is given
344            (JoinDialog.OnJoin): Handle layer joins as well
345            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
346            that the user selects the "Select..." item. The sensitivitly
347            updating is now in update_sensitivity
348            (JoinDialog.y): New method to refactor the sensitivity update of
349            the join button into its own method.
350    
351            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
352    
353    2003-05-27  Bernhard Herzog  <[email protected]>
354    
355            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
356            iff there are unreferenced tables in the session
357    
358    2003-05-27  Bernhard Herzog  <[email protected]>
359    
360            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
361    
362            * Thuban/Model/session.py (Session.UnreferencedTables): New method
363            to return tables that are not referenced by other tables or shape
364            stores and can be removed.
365            (Session.RemoveTable): Issue a TABLE_REMOVED message after
366            removing the table
367    
368            * Thuban/UI/mainwindow.py: Remove unused imports
369            (MainWindow.TableClose): Implement.
370    
371            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
372            messages so that the frame will be automatically closed when a new
373            session is opened or the table is removed.
374            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
375            __init__
376            (TableFrame.close_on_session_replaced)
377            (TableFrame.close_on_table_removed): New. Subscribers that close
378            the window
379    
380            * test/test_session.py (TestSessionMessages.test_remove_table)
381            (TestSessionSimple.test_remove_table): Move the test to
382            TestSessionSimple and add test for the TABLE_REMOVED message
383            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
384            (TestSessionSimple.test_unreferenced_tables) New. Test for the
385            UnreferencedTables method.
386            (UnreferencedTablesTests): New. Class with some more sophisticated
387            tests for UnreferencedTables.
388    
389    2003-05-27  Frank Koormann  <[email protected]>
390    
391            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
392            display has some unwanted side effects. Removed again.
393    
394    2003-05-27  Frank Koormann  <[email protected]>
395    
396            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
397    
398            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
399    
400    2003-05-27  Jan-Oliver Wagner <[email protected]>
401    
402            * test/test_menu.py (MenuTest.test): Added test for
403            Menu.RemoveItem().
404    
405            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
406            the menu.
407    
408    2003-05-27  Frank Koormann  <[email protected]>
409            
410            Nonmodal dialogs without parent (i.e. they can fall behind the main
411            window)
412    
413            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
414            all dialogs in the dialogs dictionary and the canvas.
415    
416            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
417            parent, i.e. can fall behind other windows.
418            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
419            dictionary before removing it.
420    
421            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
422    
423            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
424            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
425            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
426    
427    2003-05-27  Bernhard Herzog  <[email protected]>
428    
429            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
430            tableview dialog
431            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
432            Also, don't use the table's titles as the dialog names. The titles
433            aren't guaranteed to be unique.
434            (MainWindow.TableOpen): Open a table view dialog after opening the
435            table
436    
437    2003-05-27  Bernhard Herzog  <[email protected]>
438    
439            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
440            effect can be achieved by simply closing the window showing the
441            table.
442            (MainWindow.TableHide): Removed.
443            (main_menu): Removed "table_hide"
444    
445    2003-05-27  Frank Koormann  <[email protected]>
446    
447            Fix legend tree display problems under Win32
448    
449            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
450            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
451            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
452    
453            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
454    
455    2003-05-27  Jan-Oliver Wagner <[email protected]>
456    
457            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
458            'after' now allows to insert separators almost anywhere in the menu.
459    
460    2003-05-27  Frank Koormann  <[email protected]>
461    
462            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
463            "S" of selection box label to hint on hot key (Alt-S). Works under
464            Win32 but is ignored under GTK.
465    
466    2003-05-26  Frank Koormann  <[email protected]>
467    
468            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
469            Center Choices.
470    
471  2003-05-26  Bernhard Herzog  <[email protected]>  2003-05-26  Bernhard Herzog  <[email protected]>
472    
473          Remove the Precision methods again. They're too DBF specific to be          Remove the Precision methods again. They're too DBF specific to be

Legend:
Removed from v.1044  
changed lines
  Added in v.1152

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26