/[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 995 by bh, Thu May 22 18:05:25 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]>
312    
313            Fix legend tree display problems under Win32
314    
315            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
316            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
317            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
318    
319            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
320    
321    2003-05-27  Jan-Oliver Wagner <[email protected]>
322    
323            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
324            'after' now allows to insert separators almost anywhere in the menu.
325    
326    2003-05-27  Frank Koormann  <[email protected]>
327    
328            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
329            "S" of selection box label to hint on hot key (Alt-S). Works under
330            Win32 but is ignored under GTK.
331    
332    2003-05-26  Frank Koormann  <[email protected]>
333    
334            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
335            Center Choices.
336    
337    2003-05-26  Bernhard Herzog  <[email protected]>
338    
339            Remove the Precision methods again. They're too DBF specific to be
340            part of the table interface and they're only used in table_to_dbf
341            anyway.
342            
343            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
344            fixed precision of 12 for doubles.
345            (TransientTableBase.Precision): Removed
346            (AutoTransientTable.Width): Delegate to self.table.
347    
348            * Thuban/Model/table.py (DBFTable.Precision)
349            (MemoryTable.Precision): Removed.
350            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
351            (table_to_dbf): Use a fixed precision of 12 for floats unless the
352            column object specifies something else.
353    
354            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
355            test for table_to_dbf
356    
357    2003-05-26  Bernhard Herzog  <[email protected]>
358    
359            * test/test_transientdb.py
360            (TestTransientTable.run_iceland_political_tests): Fix a comment.
361    
362    2003-05-26  Bernhard Herzog  <[email protected]>
363    
364            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
365            implementation. Mark parts of the file format strings for
366            localization.
367    
368            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
369            file and add the table to the tables managed by the session
370    
371            * test/test_session.py (TestSessionSimple.test_open_table_file):
372            New. test case for OpenTableFile
373    
374    2003-05-26  Jan-Oliver Wagner <[email protected]>
375    
376            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
377            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
378            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
379            Replace the true/false of wxWindows by True/False of Python 2.2.1.
380    
381    2003-05-26  Jan-Oliver Wagner <[email protected]>
382    
383            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
384            already a selection present, update the grid accordingly.
385    
386            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
387            resizeable and increase its initial size.
388    
389    2003-05-26  Frank Koormann  <[email protected]>
390    
391            Table export functionality
392    
393            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
394            Return width (in characters) for a column.
395            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
396            (table_to_dbf): Write table to dbf file.
397            (table_to_csv): Write table to csv file.
398    
399            * Thuban/Model/transientdb.py (TransientTableBase.Width,
400            TransientTableBase.Precision): Return column width and precision.
401    
402            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
403            or table_to_csv depending on file selection.
404    
405            * test/test_dbf_table.py:
406            Test table_to_dbf (extension of former part of test).
407    
408            * test/test_csv_table.py:
409            Test table_to_csv.
410    
411    2003-05-23  Jan-Oliver Wagner <[email protected]>
412    
413            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
414            Use QueryTableFrame instead of TableFrame.
415    
416            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
417            table window with 'Layer Table:' instead of 'Table:'.
418    
419    2003-05-23  Jan-Oliver Wagner <[email protected]>
420    
421            Give all tables a title via mix-in TitledObject.LayerShowTable
422    
423            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
424            only if it exists.
425    
426            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
427            and call its init-method with a default title. Remove Title() method.
428    
429            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
430            AutoTransientTable): mix-in TitledObject and call its init-method with
431            a default title. Remove Title() method.
432    
433    2003-05-23  Bernhard Herzog  <[email protected]>
434    
435            * Thuban/Model/session.py (Session.AddShapeStore): Define
436            AddShapeStore analogously to AddTable.
437    
438            * test/test_session.py (TestSessionSimple.test_add_shapestore):
439            New. Test for AddShapeStore
440    
441    2003-05-23  Jan-Oliver Wagner <[email protected]>
442    
443            Introducing QueryTableFrame and a very coarse ShowTable implementation.
444    
445            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
446            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
447            The latter implements the selection GUI without dependency on a layer.
448            LayerTableFrame now is derived from QueryTableFrame and connects
449            to a layer.
450    
451            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
452            implementation that still needs work.
453    
454            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
455    
456    2003-05-22  Frank Koormann  <[email protected]>
457    
458            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
459            Added "outer_join = False" as optional parameter.
460            (TransientJoinedTable.create): If outer join is true, perform a
461            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
462            the left table. Records not matching are filled with 0 / None.
463    
464            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
465            (JoinDialog.OnJoin): Consider outer join check box.
466    
467    2003-05-22  Bernhard Herzog  <[email protected]>
468    
469            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
470            somewhat safer way. Storing the traceback in a local variable can
471            lead to memory leaks
472    
473    2003-05-22  Bernhard Herzog  <[email protected]>
474    
475            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
476            the wxMessageDialog's Destroy() method.
477    
478    2003-05-22  Frank Koormann  <[email protected]>
479    
480            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
481            TransientTable.Title()
482    
483    2003-05-22  Frank Koormann  <[email protected]>
484    
485            Join Dialog, initial version.
486    
487            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
488    
489            * Thuban/UI/join.py (JoinDialog): Functional implementation of
490            former framework. Renamed Table1/Table2 to LeftTable/RightTable
491            in all occurences.
492    
493            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
494            Typo fixed.
495    
496    2003-05-22  Bernhard Herzog  <[email protected]>
497    
498            Give the tables titles so that the GUI can display more meaningful
499            names. For now the titles are fixed but depend on e.g. filenames
500            or the titles of the joined tables.
501    
502            * Thuban/Model/transientdb.py (TransientTable.Title)
503            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
504    
505            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
506    
507            * test/test_transientdb.py
508            (TestTransientTable.test_auto_transient_table_title): New. Test
509            for the Title method
510            (TestTransientTable.test_transient_joined_table)
511            (TestTransientTable.test_transient_table): Add test for the Title
512            methods
513    
514            * test/test_memory_table.py (TestMemoryTable.test_title): New.
515            Test for the Title method
516    
517            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
518            the Title method
519    
520    2003-05-22  Bernhard Herzog  <[email protected]>
521    
522            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
523            Provide a better way to destroy the layers
524            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
525            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
526            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
527            the new way to destroy the layers.
528            (TestLayer.test_derived_store): New. Test for using a layer with a
529            DerivedShapeStore
530    
531            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
532            filename if the shape store actually has one.
533    
534  2003-05-22  Bernhard Herzog  <[email protected]>  2003-05-22  Bernhard Herzog  <[email protected]>
535    
536          * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method          * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26