/[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 958 by bh, Wed May 21 17:12:30 2003 UTC revision 1134 by frank, Thu Jun 5 13:28:04 2003 UTC
# Line 1  Line 1 
1    2003-06-05  Frank Koormann  <[email protected]>
2    
3            * Thuban/UI/identifyview.py (IdentifyView.__init__):
4            Use ListCtrl instead of GridCtrl
5    
6            * Thuban/Model/resource.py:
7            Guess location of .thuban directory from tempdir parent directory.
8    
9            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
10            Guess location of .thuban directory from tempdir parent directory.
11    
12    2003-06-04  Bernhard Herzog  <[email protected]>
13    
14            Do not cache the values returned by the tree widget's
15            GetFirstChild and GetNextChild methods because it led to lots of
16            segfaults. The new way requires more brute force but is more
17            reliable.
18    
19            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
20            variable layer2id
21            (LegendTree.find_layer): New method to do with brute force what
22            layer2id tried to accomplish
23            (LegendTree._OnMsgLayerChanged)
24            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
25            Use find_layer instead of layer2id
26            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
27            update layer2id anymore
28            (LegendTree._OnMsgMapLayersRemoved)
29            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
30    
31    2003-06-03  Thomas Koester  <[email protected]>
32    
33            * Thuban/Model/classgen.py (GenQuantiles0): New function.
34    
35    2003-06-02  Bernhard Herzog  <[email protected]>
36    
37            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
38            New commands.
39            (main_menu): Add the new commands.
40            (MainWindow.TableRename): New. Implementation of the table_rename
41            command.
42            (MainWindow.RenameLayer): New. Implementation of the layer_rename
43            command.
44    
45            * Thuban/Model/session.py (Session.AddTable): call self.changed to
46            set the modified flag
47    
48            * test/test_session.py (TestSessionSimple.test_add_table): Test
49            whether the modified flag is set properly
50    
51            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
52            instead of issue so that the modified flags get updated.
53    
54            * test/test_base.py (SomeTitledObject): Derive from Modifiable
55            instead of Publisher to reflect reality better and to accomodate
56            the fact that SetTitle now calls changed instead of issue
57    
58    2003-06-02  Bernhard Herzog  <[email protected]>
59    
60            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
61            acquisition has to happen before the try in a try-finally.
62    
63    2003-06-02  Bernhard Herzog  <[email protected]>
64    
65            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
66            possible that a layer is removed that is not currently selected in
67            the legend so don't check for this.
68    
69    2003-05-30  Bernhard Herzog  <[email protected]>
70    
71            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
72            variables to None that have direct or indirect references to
73            shapefiles or dbf files to make sure that they do go away and the
74            files are closed.
75    
76    2003-05-30  Bernhard Herzog  <[email protected]>
77    
78            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
79            availImgListIndices when a new image list is created
80            
81    2003-05-30  Bernhard Herzog  <[email protected]>
82    
83            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
84            changing_selection to indicate whether the LegendTree code itself
85            is currently changing the selection
86            (LegendTree.normalize_selection): New method to normalize the
87            selection by selecting the layer item even if the user clicked on
88            the classification.
89            (LegendTree._OnSelChanged): normalize the selection. This works
90            around a bug in wx which doesn't keep track of the selection
91            properly when subtrees are deleted.
92    
93    2003-05-30  Bernhard Herzog  <[email protected]>
94    
95            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
96            maximum and minimum scale factors.
97    
98            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
99            changes in classgen.py
100    
101    2003-05-30  Jonathan Coles   <[email protected]>
102    
103            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
104            all the methods functions. Fixes RTBug #1903.
105    
106            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
107            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
108            RTBug #1907.
109    
110            * Thuban/UI/classgen.py: Use classgen functions that were part
111            of the ClassGenerator class. Put try/finally blocks around
112            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
113            RTBug #1904.
114    
115            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
116    
117            * Thuban/UI/legend.py: The legend was cleared and repopulated any
118            time something changed which caused some state to be lost such
119            as which children were expanded or collapsed. Fixes RTBug #1901.
120            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
121            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
122            the legend but not in the map.
123            (LegendTree.__FillTree): Move main functionality out into smaller
124            methods that can be used by other methods.
125            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
126            if they are available.
127            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
128            that we override the wxTreeCtrl method. Iterate over children
129            and call __RemoveLayer.
130            (LegendTree.__AddLayer): New. Add a new layer to the legend.
131            (LegendTree.__RemoveLayer): Remove a layer from the legend.
132            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
133            Should only be called with the id of a layer branch.
134            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
135            Returns the root item or creates one if necessary.
136    
137            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
138            ProjectRasterFile with tuple arguments instead of strings.
139    
140            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
141            with try/finally. Fixes RTBug #1904.
142    
143            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
144            with try/finally. Fixes RTBug #1904.
145            (MapCanvas.FitSelectedToWindow): If a single point is selected
146            simply center it on the display. Fixes RTBug #1849.
147    
148            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
149            to be compiled as a standalone app. Now the code can only be
150            called from Python which simplifies the parameter passing.
151            (ProjectRasterFile): Handle Python arguments. Remove code that
152            checks for a destination dataset. Add more clean up code.
153    
154            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
155            TestMapWithContents.test_lower_layer_bottom):
156            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
157            Fixes RTBug #1907.
158    
159            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
160            extent to the map when the legend is toggled. Fixes RTBug #1881.
161    
162    2003-05-29  Jan-Oliver Wagner <[email protected]>
163    
164            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
165            unsubscribes all that is subcribed in __init__.
166    
167    2003-05-28  Bernhard Herzog  <[email protected]>
168    
169            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
170            (MainWindow.CanDuplicateLayer): New methods to implement the
171            Layer/Duplicate command.
172            (layer_duplicate command): New.
173            (main_menu): Add layer_duplicate to the Layer menu.
174    
175    2003-05-28  Bernhard Herzog  <[email protected]>
176    
177            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
178            renderer so that NULL/None values get displayed differently (by a
179            gray rectangle).
180            (TableGrid.__init__): Override the default renderers
181    
182    2003-05-28  Bernhard Herzog  <[email protected]>
183    
184            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
185            classification to "None" if the type of the field has changed.
186    
187            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
188            test for the Layer.SetShapeStore method
189    
190    2003-05-28  Jan-Oliver Wagner <[email protected]>
191    
192            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
193            does not necessarily have a filename).
194    
195    2003-05-28  Jan-Oliver Wagner <[email protected]>
196    
197            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
198            sort the selection list for the dialog.
199    
200    2003-05-28  Frank Koormann  <[email protected]>
201    
202            * extensions/thuban/wxproj.cpp
203            (project_point): Removed cast to int for projected point coordinates.
204            (shape_centroid): Return last point if all polygon vertices fall
205            to one point.
206    
207    2003-05-28  Bernhard Herzog  <[email protected]>
208    
209            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
210            with layers that don't have shapestores, i.e. raster layers.
211    
212    2003-05-28  Bernhard Herzog  <[email protected]>
213    
214            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
215            when determining the title from the filename.
216    
217            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
218            reflect changes in the way the title is derived from the filename
219    
220    2003-05-28  Frank Koormann  <[email protected]>
221    
222            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
223            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
224    
225    2003-05-27  Bernhard Herzog  <[email protected]>
226    
227            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
228            delegate SelectedLayer.
229            (MainWindow.LayerUnjoinTable): Implement.
230            (_can_unjoin): New. Helper function for the sensitivity of the
231            layer/unjoin command.
232    
233            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
234            (DerivedShapeStore.OrigShapeStore): New. Return the original
235            shapestore. Used to figure out how to unjoin.
236            (DerivedShapeStore.Shapefile): Fix a typo.
237    
238    2003-05-27  Bernhard Herzog  <[email protected]>
239    
240            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
241            well
242            (JoinDialog.__init__): Use the layer parameter and only build the
243            left choice when a layer is given
244            (JoinDialog.OnJoin): Handle layer joins as well
245            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
246            that the user selects the "Select..." item. The sensitivitly
247            updating is now in update_sensitivity
248            (JoinDialog.y): New method to refactor the sensitivity update of
249            the join button into its own method.
250    
251            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
252    
253    2003-05-27  Bernhard Herzog  <[email protected]>
254    
255            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
256            iff there are unreferenced tables in the session
257    
258    2003-05-27  Bernhard Herzog  <[email protected]>
259    
260            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
261    
262            * Thuban/Model/session.py (Session.UnreferencedTables): New method
263            to return tables that are not referenced by other tables or shape
264            stores and can be removed.
265            (Session.RemoveTable): Issue a TABLE_REMOVED message after
266            removing the table
267    
268            * Thuban/UI/mainwindow.py: Remove unused imports
269            (MainWindow.TableClose): Implement.
270    
271            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
272            messages so that the frame will be automatically closed when a new
273            session is opened or the table is removed.
274            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
275            __init__
276            (TableFrame.close_on_session_replaced)
277            (TableFrame.close_on_table_removed): New. Subscribers that close
278            the window
279    
280            * test/test_session.py (TestSessionMessages.test_remove_table)
281            (TestSessionSimple.test_remove_table): Move the test to
282            TestSessionSimple and add test for the TABLE_REMOVED message
283            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
284            (TestSessionSimple.test_unreferenced_tables) New. Test for the
285            UnreferencedTables method.
286            (UnreferencedTablesTests): New. Class with some more sophisticated
287            tests for UnreferencedTables.
288    
289    2003-05-27  Frank Koormann  <[email protected]>
290    
291            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
292            display has some unwanted side effects. Removed again.
293    
294    2003-05-27  Frank Koormann  <[email protected]>
295    
296            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
297    
298            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
299    
300    2003-05-27  Jan-Oliver Wagner <[email protected]>
301    
302            * test/test_menu.py (MenuTest.test): Added test for
303            Menu.RemoveItem().
304    
305            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
306            the menu.
307    
308    2003-05-27  Frank Koormann  <[email protected]>
309            
310            Nonmodal dialogs without parent (i.e. they can fall behind the main
311            window)
312    
313            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
314            all dialogs in the dialogs dictionary and the canvas.
315    
316            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
317            parent, i.e. can fall behind other windows.
318            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
319            dictionary before removing it.
320    
321            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
322    
323            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
324            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
325            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
326    
327    2003-05-27  Bernhard Herzog  <[email protected]>
328    
329            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
330            tableview dialog
331            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
332            Also, don't use the table's titles as the dialog names. The titles
333            aren't guaranteed to be unique.
334            (MainWindow.TableOpen): Open a table view dialog after opening the
335            table
336    
337    2003-05-27  Bernhard Herzog  <[email protected]>
338    
339            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
340            effect can be achieved by simply closing the window showing the
341            table.
342            (MainWindow.TableHide): Removed.
343            (main_menu): Removed "table_hide"
344    
345    2003-05-27  Frank Koormann  <[email protected]>
346    
347            Fix legend tree display problems under Win32
348    
349            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
350            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
351            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
352    
353            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
354    
355    2003-05-27  Jan-Oliver Wagner <[email protected]>
356    
357            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
358            'after' now allows to insert separators almost anywhere in the menu.
359    
360    2003-05-27  Frank Koormann  <[email protected]>
361    
362            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
363            "S" of selection box label to hint on hot key (Alt-S). Works under
364            Win32 but is ignored under GTK.
365    
366    2003-05-26  Frank Koormann  <[email protected]>
367    
368            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
369            Center Choices.
370    
371    2003-05-26  Bernhard Herzog  <[email protected]>
372    
373            Remove the Precision methods again. They're too DBF specific to be
374            part of the table interface and they're only used in table_to_dbf
375            anyway.
376            
377            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
378            fixed precision of 12 for doubles.
379            (TransientTableBase.Precision): Removed
380            (AutoTransientTable.Width): Delegate to self.table.
381    
382            * Thuban/Model/table.py (DBFTable.Precision)
383            (MemoryTable.Precision): Removed.
384            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
385            (table_to_dbf): Use a fixed precision of 12 for floats unless the
386            column object specifies something else.
387    
388            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
389            test for table_to_dbf
390    
391    2003-05-26  Bernhard Herzog  <[email protected]>
392    
393            * test/test_transientdb.py
394            (TestTransientTable.run_iceland_political_tests): Fix a comment.
395    
396    2003-05-26  Bernhard Herzog  <[email protected]>
397    
398            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
399            implementation. Mark parts of the file format strings for
400            localization.
401    
402            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
403            file and add the table to the tables managed by the session
404    
405            * test/test_session.py (TestSessionSimple.test_open_table_file):
406            New. test case for OpenTableFile
407    
408    2003-05-26  Jan-Oliver Wagner <[email protected]>
409    
410            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
411            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
412            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
413            Replace the true/false of wxWindows by True/False of Python 2.2.1.
414    
415    2003-05-26  Jan-Oliver Wagner <[email protected]>
416    
417            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
418            already a selection present, update the grid accordingly.
419    
420            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
421            resizeable and increase its initial size.
422    
423    2003-05-26  Frank Koormann  <[email protected]>
424    
425            Table export functionality
426    
427            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
428            Return width (in characters) for a column.
429            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
430            (table_to_dbf): Write table to dbf file.
431            (table_to_csv): Write table to csv file.
432    
433            * Thuban/Model/transientdb.py (TransientTableBase.Width,
434            TransientTableBase.Precision): Return column width and precision.
435    
436            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
437            or table_to_csv depending on file selection.
438    
439            * test/test_dbf_table.py:
440            Test table_to_dbf (extension of former part of test).
441    
442            * test/test_csv_table.py:
443            Test table_to_csv.
444    
445    2003-05-23  Jan-Oliver Wagner <[email protected]>
446    
447            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
448            Use QueryTableFrame instead of TableFrame.
449    
450            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
451            table window with 'Layer Table:' instead of 'Table:'.
452    
453    2003-05-23  Jan-Oliver Wagner <[email protected]>
454    
455            Give all tables a title via mix-in TitledObject.LayerShowTable
456    
457            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
458            only if it exists.
459    
460            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
461            and call its init-method with a default title. Remove Title() method.
462    
463            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
464            AutoTransientTable): mix-in TitledObject and call its init-method with
465            a default title. Remove Title() method.
466    
467    2003-05-23  Bernhard Herzog  <[email protected]>
468    
469            * Thuban/Model/session.py (Session.AddShapeStore): Define
470            AddShapeStore analogously to AddTable.
471    
472            * test/test_session.py (TestSessionSimple.test_add_shapestore):
473            New. Test for AddShapeStore
474    
475    2003-05-23  Jan-Oliver Wagner <[email protected]>
476    
477            Introducing QueryTableFrame and a very coarse ShowTable implementation.
478    
479            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
480            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
481            The latter implements the selection GUI without dependency on a layer.
482            LayerTableFrame now is derived from QueryTableFrame and connects
483            to a layer.
484    
485            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
486            implementation that still needs work.
487    
488            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
489    
490    2003-05-22  Frank Koormann  <[email protected]>
491    
492            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
493            Added "outer_join = False" as optional parameter.
494            (TransientJoinedTable.create): If outer join is true, perform a
495            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
496            the left table. Records not matching are filled with 0 / None.
497    
498            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
499            (JoinDialog.OnJoin): Consider outer join check box.
500    
501    2003-05-22  Bernhard Herzog  <[email protected]>
502    
503            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
504            somewhat safer way. Storing the traceback in a local variable can
505            lead to memory leaks
506    
507    2003-05-22  Bernhard Herzog  <[email protected]>
508    
509            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
510            the wxMessageDialog's Destroy() method.
511    
512    2003-05-22  Frank Koormann  <[email protected]>
513    
514            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
515            TransientTable.Title()
516    
517    2003-05-22  Frank Koormann  <[email protected]>
518    
519            Join Dialog, initial version.
520    
521            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
522    
523            * Thuban/UI/join.py (JoinDialog): Functional implementation of
524            former framework. Renamed Table1/Table2 to LeftTable/RightTable
525            in all occurences.
526    
527            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
528            Typo fixed.
529    
530    2003-05-22  Bernhard Herzog  <[email protected]>
531    
532            Give the tables titles so that the GUI can display more meaningful
533            names. For now the titles are fixed but depend on e.g. filenames
534            or the titles of the joined tables.
535    
536            * Thuban/Model/transientdb.py (TransientTable.Title)
537            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
538    
539            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
540    
541            * test/test_transientdb.py
542            (TestTransientTable.test_auto_transient_table_title): New. Test
543            for the Title method
544            (TestTransientTable.test_transient_joined_table)
545            (TestTransientTable.test_transient_table): Add test for the Title
546            methods
547    
548            * test/test_memory_table.py (TestMemoryTable.test_title): New.
549            Test for the Title method
550    
551            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
552            the Title method
553    
554    2003-05-22  Bernhard Herzog  <[email protected]>
555    
556            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
557            Provide a better way to destroy the layers
558            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
559            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
560            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
561            the new way to destroy the layers.
562            (TestLayer.test_derived_store): New. Test for using a layer with a
563            DerivedShapeStore
564    
565            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
566            filename if the shape store actually has one.
567    
568    2003-05-22  Bernhard Herzog  <[email protected]>
569    
570            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
571            for the filename
572    
573            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
574            for the FileName method
575            (TestDBFTableWriting.test_write): Fix spelling of filename
576    
577    2003-05-22  Thomas Koester  <[email protected]>
578    
579            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
580            from SciParam that now really is immutable.
581    
582    2003-05-22  Frank Koormann  <[email protected]>
583    
584            Layer Top/Bottom placement added to legend.
585    
586            * Thuban/UI/legend.py
587            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
588            bound to tool events.
589            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
590            New, methods binding the event methods with the map methods.
591    
592            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
593            layer at top/bottom of layer stack.
594    
595            * Resources/Bitmaps/top_layer.xpm: New button icon.
596    
597            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
598    
599    2003-05-22  Bernhard Herzog  <[email protected]>
600    
601            * Thuban/Model/session.py (Session.RemoveTable): New method to
602            remove tables
603    
604            * test/test_session.py (TestSessionSimple.test_remove_table): New.
605            Test for RemoveTable
606    
607    2003-05-22  Thomas Koester  <[email protected]>
608    
609            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
610            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
611    
612    2003-05-22  Bernhard Herzog  <[email protected]>
613    
614            Implement a way to discover dependencies between tables and
615            shapestores.
616    
617            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
618            (TransientJoinedTable.Dependencies)
619            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
620            interface
621            (TransientJoinedTable.__init__): Keep tack of the original table
622            objects in addition to the corresponding transient tables.
623    
624            * Thuban/Model/table.py (DBFTable.Dependencies)
625            (MemoryTable.Dependencies): New. Implement the dependencies
626            interface
627    
628            * Thuban/Model/data.py (ShapeTable): New. Helper class for
629            ShapefileStore
630            (ShapefileStore.__init__): Use ShapeTable instead of
631            AutoTransientTable
632            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
633            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
634            methods for filename and type
635            (ShapefileStore.Dependencies): New. Implement the dependencies
636            interface
637            (DerivedShapeStore): New class to replace SimpleStore. The main
638            difference to SimpleStore is that it depends not on a shapefile
639            but another shapestore which expresses the dependencies a bit
640            better
641            (SimpleStore.__init__): Add deprecation warning.
642    
643            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
644            Test for the Dependencies method.
645    
646            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
647            New. Test for the Dependencies method.
648    
649            * test/test_transientdb.py
650            (TestTransientTable.test_auto_transient_table_dependencies): New.
651            Test for the Dependencies method.
652            (TestTransientTable.test_transient_joined_table): Add test for the
653            Dependencies method.
654    
655            * test/test_session.py (TestSessionSimple.setUp)
656            (TestSessionSimple.tearDown): New. Implement a better way to
657            destroy the sessions.
658            (TestSessionSimple.test_initial_state)
659            (TestSessionSimple.test_add_table): Bind session to self.session
660            so that it's destroyed by tearDown
661            (TestSessionSimple.test_open_shapefile): New. Test for
662            OpenShapefile and the object it returns
663    
664    2003-05-22  Bernhard Herzog  <[email protected]>
665    
666            * Thuban/Model/session.py (Session.AddTable): New method to
667            register tables with the session.
668            (Session.Tables): Return the tables registered with AddTable too.
669    
670            * test/test_session.py (TestSessionSimple.test_add_table): New.
671            Test case for the AddTable method
672    
673    2003-05-22  Frank Koormann  <[email protected]>
674    
675            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
676            lower right corner, center labels for selections, initialize controls
677            in reasonable order for keyboard navigation.
678    
679            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
680            (ProjFrame.__DoOnProjAvail): Determine position of current projection
681            using the wxListBox.FindString() method. Still a problem (#1886)
682    
683            * Thuban/UI/classifier.py
684            (Classifier.__init__, SelectPropertiesDialog.__init__)
685    
686            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
687            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
688            different classification types from here to __init__.
689            (GenUniquePanel.__init__): Set the column width of the first field
690            in the Field ListCtrl to the full width.
691    
692            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
693            Button to 'Export'. Center Buttons in Selection Box, set Focus to
694            Grid.
695            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
696            changes focus to the Selection when pressing "Alt-S".
697    
698            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
699            the text if not visible. The italic font sometimes exceeds the
700            rendering area.
701    
702    2003-05-21  Jonathan Coles   <[email protected]>
703    
704            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
705            to OnClose so that Thuban closes correctly.
706    
707            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
708            DockFrame.OnClose, not DockFrame._OnClose.
709    
710    2003-05-21  Jonathan Coles   <[email protected]>
711    
712            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
713            references to 'inf' and use new Range __init__ to pass floats
714            directly rather than converting them to strings first.
715            Fixes RTBug #1876.
716    
717            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
718            Use new Range ___init__ to pass floats.
719    
720            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
721            filename is a valid image file. Throw IOError otherwise.
722    
723            * Thuban/Model/range.py: Brought over new Range from SciParam that
724            is immutable and has an __init__ which can accept floats.
725    
726            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
727            into try block. AddLayer doesn't throw any exceptions anymore.
728            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
729            try block.
730    
731            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
732            the first item in choices. Fixes RTBug #1882.
733    
734            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
735            has gone to 0 which is a serious problem. abort.
736            (MapRenderer.draw_raster_layer): Catch IOError seperately and
737            print the error from GDAL.
738    
739            * Thuban/UI/tableview.py (TableGrid.__init__): Call
740            ToggleEventListeners to turn on listening.
741            (TableGrid.ToggleEventListeners): New. Turns event listening on
742            and off so as to prevent excessive messages.
743            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
744            to suppress excessive messages when selecting many rows.
745            Fixes RTBug #1880.
746    
747            * Thuban/UI/view.py: Added checks against if scale == 0. This
748            is a serious problem that can occur when an image without
749            geo data is loading and causes the map projection bounds to
750            go to infinity. Right now, the solution is to simply try
751            to recover.
752    
753            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
754            to set the MFILEReceiver attributes even if the data is NULL.
755    
756            * extensions/thuban/gdalwarp.cpp: Improved the error handling
757            and passed GDAL messages back up to the Python layer. Also
758            tried to fix some memory leaks that were present in the original
759            utility but didn't matter because the program aborted.
760    
761            * test/test_range.py: Copied over tests from SciParam. Removed
762            tests against importing. Fixes RTBug #1867.
763    
764  2003-05-21  Bernhard Herzog  <[email protected]>  2003-05-21  Bernhard Herzog  <[email protected]>
765    
766          * test/test_load.py: Remove unused imports and restructure the          * test/test_load.py: Remove unused imports and restructure the

Legend:
Removed from v.958  
changed lines
  Added in v.1134

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26