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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26