/[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 952 by frank, Wed May 21 14:21:23 2003 UTC revision 1065 by frank, Tue May 27 14:10:33 2003 UTC
# Line 1  Line 1 
1    2003-05-27  Frank Koormann  <[email protected]>
2    
3            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
4    
5            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
6    
7    2003-05-27  Jan-Oliver Wagner <[email protected]>
8    
9            * test/test_menu.py (MenuTest.test): Added test for Menu.RemoveItem().
10    
11            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from the menu.
12    
13    2003-05-27  Frank Koormann  <[email protected]>
14            
15            Nonmodal dialogs without parent (i.e. they can fall behind the main
16            window)
17    
18            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
19            all dialogs in the dialogs dictionary and the canvas.
20    
21            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
22            parent, i.e. can fall behind other windows.
23            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
24            dictionary before removing it.
25    
26            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
27    
28            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
29            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
30            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
31    
32    2003-05-27  Bernhard Herzog  <[email protected]>
33    
34            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
35            tableview dialog
36            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
37            Also, don't use the table's titles as the dialog names. The titles
38            aren't guaranteed to be unique.
39            (MainWindow.TableOpen): Open a table view dialog after opening the
40            table
41    
42    2003-05-27  Bernhard Herzog  <[email protected]>
43    
44            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
45            effect can be achieved by simply closing the window showing the
46            table.
47            (MainWindow.TableHide): Removed.
48            (main_menu): Removed "table_hide"
49    
50    2003-05-27  Frank Koormann  <[email protected]>
51    
52            Fix legend tree display problems under Win32
53    
54            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
55            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
56            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
57    
58            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
59    
60    2003-05-27  Jan-Oliver Wagner <[email protected]>
61    
62            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
63            'after' now allows to insert separators almost anywhere in the menu.
64    
65    2003-05-27  Frank Koormann  <[email protected]>
66    
67            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
68            "S" of selection box label to hint on hot key (Alt-S). Works under
69            Win32 but is ignored under GTK.
70    
71    2003-05-26  Frank Koormann  <[email protected]>
72    
73            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
74            Center Choices.
75    
76    2003-05-26  Bernhard Herzog  <[email protected]>
77    
78            Remove the Precision methods again. They're too DBF specific to be
79            part of the table interface and they're only used in table_to_dbf
80            anyway.
81            
82            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
83            fixed precision of 12 for doubles.
84            (TransientTableBase.Precision): Removed
85            (AutoTransientTable.Width): Delegate to self.table.
86    
87            * Thuban/Model/table.py (DBFTable.Precision)
88            (MemoryTable.Precision): Removed.
89            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
90            (table_to_dbf): Use a fixed precision of 12 for floats unless the
91            column object specifies something else.
92    
93            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
94            test for table_to_dbf
95    
96    2003-05-26  Bernhard Herzog  <[email protected]>
97    
98            * test/test_transientdb.py
99            (TestTransientTable.run_iceland_political_tests): Fix a comment.
100    
101    2003-05-26  Bernhard Herzog  <[email protected]>
102    
103            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
104            implementation. Mark parts of the file format strings for
105            localization.
106    
107            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
108            file and add the table to the tables managed by the session
109    
110            * test/test_session.py (TestSessionSimple.test_open_table_file):
111            New. test case for OpenTableFile
112    
113    2003-05-26  Jan-Oliver Wagner <[email protected]>
114    
115            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
116            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
117            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
118            Replace the true/false of wxWindows by True/False of Python 2.2.1.
119    
120    2003-05-26  Jan-Oliver Wagner <[email protected]>
121    
122            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
123            already a selection present, update the grid accordingly.
124    
125            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
126            resizeable and increase its initial size.
127    
128    2003-05-26  Frank Koormann  <[email protected]>
129    
130            Table export functionality
131    
132            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
133            Return width (in characters) for a column.
134            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
135            (table_to_dbf): Write table to dbf file.
136            (table_to_csv): Write table to csv file.
137    
138            * Thuban/Model/transientdb.py (TransientTableBase.Width,
139            TransientTableBase.Precision): Return column width and precision.
140    
141            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
142            or table_to_csv depending on file selection.
143    
144            * test/test_dbf_table.py:
145            Test table_to_dbf (extension of former part of test).
146    
147            * test/test_csv_table.py:
148            Test table_to_csv.
149    
150    2003-05-23  Jan-Oliver Wagner <[email protected]>
151    
152            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
153            Use QueryTableFrame instead of TableFrame.
154    
155            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
156            table window with 'Layer Table:' instead of 'Table:'.
157    
158    2003-05-23  Jan-Oliver Wagner <[email protected]>
159    
160            Give all tables a title via mix-in TitledObject.LayerShowTable
161    
162            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
163            only if it exists.
164    
165            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
166            and call its init-method with a default title. Remove Title() method.
167    
168            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
169            AutoTransientTable): mix-in TitledObject and call its init-method with
170            a default title. Remove Title() method.
171    
172    2003-05-23  Bernhard Herzog  <[email protected]>
173    
174            * Thuban/Model/session.py (Session.AddShapeStore): Define
175            AddShapeStore analogously to AddTable.
176    
177            * test/test_session.py (TestSessionSimple.test_add_shapestore):
178            New. Test for AddShapeStore
179    
180    2003-05-23  Jan-Oliver Wagner <[email protected]>
181    
182            Introducing QueryTableFrame and a very coarse ShowTable implementation.
183    
184            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
185            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
186            The latter implements the selection GUI without dependency on a layer.
187            LayerTableFrame now is derived from QueryTableFrame and connects
188            to a layer.
189    
190            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
191            implementation that still needs work.
192    
193            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
194    
195    2003-05-22  Frank Koormann  <[email protected]>
196    
197            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
198            Added "outer_join = False" as optional parameter.
199            (TransientJoinedTable.create): If outer join is true, perform a
200            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
201            the left table. Records not matching are filled with 0 / None.
202    
203            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
204            (JoinDialog.OnJoin): Consider outer join check box.
205    
206    2003-05-22  Bernhard Herzog  <[email protected]>
207    
208            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
209            somewhat safer way. Storing the traceback in a local variable can
210            lead to memory leaks
211    
212    2003-05-22  Bernhard Herzog  <[email protected]>
213    
214            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
215            the wxMessageDialog's Destroy() method.
216    
217    2003-05-22  Frank Koormann  <[email protected]>
218    
219            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
220            TransientTable.Title()
221    
222    2003-05-22  Frank Koormann  <[email protected]>
223    
224            Join Dialog, initial version.
225    
226            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
227    
228            * Thuban/UI/join.py (JoinDialog): Functional implementation of
229            former framework. Renamed Table1/Table2 to LeftTable/RightTable
230            in all occurences.
231    
232            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
233            Typo fixed.
234    
235    2003-05-22  Bernhard Herzog  <[email protected]>
236    
237            Give the tables titles so that the GUI can display more meaningful
238            names. For now the titles are fixed but depend on e.g. filenames
239            or the titles of the joined tables.
240    
241            * Thuban/Model/transientdb.py (TransientTable.Title)
242            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
243    
244            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
245    
246            * test/test_transientdb.py
247            (TestTransientTable.test_auto_transient_table_title): New. Test
248            for the Title method
249            (TestTransientTable.test_transient_joined_table)
250            (TestTransientTable.test_transient_table): Add test for the Title
251            methods
252    
253            * test/test_memory_table.py (TestMemoryTable.test_title): New.
254            Test for the Title method
255    
256            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
257            the Title method
258    
259    2003-05-22  Bernhard Herzog  <[email protected]>
260    
261            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
262            Provide a better way to destroy the layers
263            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
264            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
265            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
266            the new way to destroy the layers.
267            (TestLayer.test_derived_store): New. Test for using a layer with a
268            DerivedShapeStore
269    
270            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
271            filename if the shape store actually has one.
272    
273    2003-05-22  Bernhard Herzog  <[email protected]>
274    
275            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
276            for the filename
277    
278            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
279            for the FileName method
280            (TestDBFTableWriting.test_write): Fix spelling of filename
281    
282    2003-05-22  Thomas Koester  <[email protected]>
283    
284            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
285            from SciParam that now really is immutable.
286    
287    2003-05-22  Frank Koormann  <[email protected]>
288    
289            Layer Top/Bottom placement added to legend.
290    
291            * Thuban/UI/legend.py
292            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
293            bound to tool events.
294            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
295            New, methods binding the event methods with the map methods.
296    
297            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
298            layer at top/bottom of layer stack.
299    
300            * Resources/Bitmaps/top_layer.xpm: New button icon.
301    
302            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
303    
304    2003-05-22  Bernhard Herzog  <[email protected]>
305    
306            * Thuban/Model/session.py (Session.RemoveTable): New method to
307            remove tables
308    
309            * test/test_session.py (TestSessionSimple.test_remove_table): New.
310            Test for RemoveTable
311    
312    2003-05-22  Thomas Koester  <[email protected]>
313    
314            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
315            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
316    
317    2003-05-22  Bernhard Herzog  <[email protected]>
318    
319            Implement a way to discover dependencies between tables and
320            shapestores.
321    
322            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
323            (TransientJoinedTable.Dependencies)
324            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
325            interface
326            (TransientJoinedTable.__init__): Keep tack of the original table
327            objects in addition to the corresponding transient tables.
328    
329            * Thuban/Model/table.py (DBFTable.Dependencies)
330            (MemoryTable.Dependencies): New. Implement the dependencies
331            interface
332    
333            * Thuban/Model/data.py (ShapeTable): New. Helper class for
334            ShapefileStore
335            (ShapefileStore.__init__): Use ShapeTable instead of
336            AutoTransientTable
337            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
338            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
339            methods for filename and type
340            (ShapefileStore.Dependencies): New. Implement the dependencies
341            interface
342            (DerivedShapeStore): New class to replace SimpleStore. The main
343            difference to SimpleStore is that it depends not on a shapefile
344            but another shapestore which expresses the dependencies a bit
345            better
346            (SimpleStore.__init__): Add deprecation warning.
347    
348            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
349            Test for the Dependencies method.
350    
351            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
352            New. Test for the Dependencies method.
353    
354            * test/test_transientdb.py
355            (TestTransientTable.test_auto_transient_table_dependencies): New.
356            Test for the Dependencies method.
357            (TestTransientTable.test_transient_joined_table): Add test for the
358            Dependencies method.
359    
360            * test/test_session.py (TestSessionSimple.setUp)
361            (TestSessionSimple.tearDown): New. Implement a better way to
362            destroy the sessions.
363            (TestSessionSimple.test_initial_state)
364            (TestSessionSimple.test_add_table): Bind session to self.session
365            so that it's destroyed by tearDown
366            (TestSessionSimple.test_open_shapefile): New. Test for
367            OpenShapefile and the object it returns
368    
369    2003-05-22  Bernhard Herzog  <[email protected]>
370    
371            * Thuban/Model/session.py (Session.AddTable): New method to
372            register tables with the session.
373            (Session.Tables): Return the tables registered with AddTable too.
374    
375            * test/test_session.py (TestSessionSimple.test_add_table): New.
376            Test case for the AddTable method
377    
378    2003-05-22  Frank Koormann  <[email protected]>
379    
380            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
381            lower right corner, center labels for selections, initialize controls
382            in reasonable order for keyboard navigation.
383    
384            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
385            (ProjFrame.__DoOnProjAvail): Determine position of current projection
386            using the wxListBox.FindString() method. Still a problem (#1886)
387    
388            * Thuban/UI/classifier.py
389            (Classifier.__init__, SelectPropertiesDialog.__init__)
390    
391            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
392            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
393            different classification types from here to __init__.
394            (GenUniquePanel.__init__): Set the column width of the first field
395            in the Field ListCtrl to the full width.
396    
397            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
398            Button to 'Export'. Center Buttons in Selection Box, set Focus to
399            Grid.
400            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
401            changes focus to the Selection when pressing "Alt-S".
402    
403            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
404            the text if not visible. The italic font sometimes exceeds the
405            rendering area.
406    
407    2003-05-21  Jonathan Coles   <[email protected]>
408    
409            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
410            to OnClose so that Thuban closes correctly.
411    
412            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
413            DockFrame.OnClose, not DockFrame._OnClose.
414    
415    2003-05-21  Jonathan Coles   <[email protected]>
416    
417            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
418            references to 'inf' and use new Range __init__ to pass floats
419            directly rather than converting them to strings first.
420            Fixes RTBug #1876.
421    
422            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
423            Use new Range ___init__ to pass floats.
424    
425            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
426            filename is a valid image file. Throw IOError otherwise.
427    
428            * Thuban/Model/range.py: Brought over new Range from SciParam that
429            is immutable and has an __init__ which can accept floats.
430    
431            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
432            into try block. AddLayer doesn't throw any exceptions anymore.
433            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
434            try block.
435    
436            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
437            the first item in choices. Fixes RTBug #1882.
438    
439            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
440            has gone to 0 which is a serious problem. abort.
441            (MapRenderer.draw_raster_layer): Catch IOError seperately and
442            print the error from GDAL.
443    
444            * Thuban/UI/tableview.py (TableGrid.__init__): Call
445            ToggleEventListeners to turn on listening.
446            (TableGrid.ToggleEventListeners): New. Turns event listening on
447            and off so as to prevent excessive messages.
448            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
449            to suppress excessive messages when selecting many rows.
450            Fixes RTBug #1880.
451    
452            * Thuban/UI/view.py: Added checks against if scale == 0. This
453            is a serious problem that can occur when an image without
454            geo data is loading and causes the map projection bounds to
455            go to infinity. Right now, the solution is to simply try
456            to recover.
457    
458            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
459            to set the MFILEReceiver attributes even if the data is NULL.
460    
461            * extensions/thuban/gdalwarp.cpp: Improved the error handling
462            and passed GDAL messages back up to the Python layer. Also
463            tried to fix some memory leaks that were present in the original
464            utility but didn't matter because the program aborted.
465    
466            * test/test_range.py: Copied over tests from SciParam. Removed
467            tests against importing. Fixes RTBug #1867.
468    
469    2003-05-21  Bernhard Herzog  <[email protected]>
470    
471            * test/test_load.py: Remove unused imports and restructure the
472            test code
473            (LoadSessionTest): Split into one class for each test and turn
474            LoadSessionTest itself into the base class for all such session
475            tests.
476            (ClassificationTest): New base class for load tests that test
477            classifications
478            (TestSingleLayer, TestLayerVisibility, TestClassification)
479            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
480            for the individual tests
481    
482            * test/support.py (FileLoadTestCase.filename): New base class for
483            file loading tests
484    
485    2003-05-21  Jan-Oliver Wagner <[email protected]>
486    
487            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
488            Mercator' to 'UTM Zone 32' as a more convenient example.
489            Added 'Gauss Krueger Zone 6'.
490    
491            * Data/iceland_sample_raster.thuban: political polygon now
492            filled transparent to have the raster image visible at once.
493    
494  2003-05-21  Frank Koormann  <[email protected]>  2003-05-21  Frank Koormann  <[email protected]>
495    
496          * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to          * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26