/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 766 by bh, Tue Apr 29 12:42:27 2003 UTC revision 1147 by bh, Tue Jun 10 12:00:45 2003 UTC
# Line 1  Line 1 
1    2003-06-10  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
4            the messages MAP_LAYERS_REMOVED messages
5            (LayerTableFrame.OnClose): Unsubscribe from it.
6            (LayerTableFrame.map_layers_removed): New. Receiver for
7            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
8            dialog is showing is removed.
9    
10    2003-06-10  Bernhard Herzog  <[email protected]>
11    
12            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
13            of the receivers list so that unsubscribing in a receiver doesn't
14            modify it while iterating over it.
15    
16            * test/test_connector.py
17            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
18            unsubscribing in a receiver works correctly. See docstring for
19            details
20    
21    2003-06-10  Bernhard Herzog  <[email protected]>
22    
23            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
24            message.
25    
26            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
27            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
28            LAYER_CHANGED will still be sent if the classification changes.
29    
30            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
31            parameter so we can subscribe to some of its messages
32            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
33            and the layer's LAYER_SHAPESTORE_REPLACED
34            (Classifier.unsubscribe_messages): New. Unsubscribe from message
35            subscribed to in __init__
36            (Classifier.map_layers_removed)
37            (Classifier.layer_shapestore_replaced): receivers for the messages
38            subscribed to in __init__. Unsubscribe and close the dialog
39    
40            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
41            the map to the Classifier dialog
42    
43            * test/test_layer.py (SetShapeStoreTests): Derive from
44            SubscriberMixin as well so we can test messages
45            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
46            messages
47            (SetShapeStoreTests.tearDown): Clear the messages again
48            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
49            for the modified flag too
50            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
51            to check whether SetShapeStore sets the modified flag
52            (SetShapeStoreTests.test_set_shape_store_different_field_name)
53            (SetShapeStoreTests.test_set_shape_store_same_field)
54            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
55            Add tests for the messages. This checks both the new
56            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
57    
58    2003-06-06  Jan-Oliver Wagner <[email protected]>
59    
60            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
61            the menu items.
62    
63    2003-06-05  Frank Koormann  <[email protected]>
64    
65            * Thuban/UI/identifyview.py (IdentifyView.__init__):
66            Layout reimplemented without panel. Make life easier to fit the list
67            in the dialog.
68    
69    2003-06-05  Frank Koormann  <[email protected]>
70    
71            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
72            once on initialisation (Former implementation resulted in multiple
73            entries for each projection).
74            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
75            if set, select the projection found under the specified name. This
76            overwrites any other selection estimate.
77            Removed projchoice filling from this method.
78            (ProjFrame._OnSave, ProjFrame._OnAddToList):
79            Updated call of ProjFrame.__FillAvailList
80            (LCCPanel._DoLayout): Moved parameter controls in more common order.
81    
82            * Resources/Projections/defaults.proj: Extended defaults representing
83            various common European projections.
84    
85    2003-06-05  Frank Koormann  <[email protected]>
86    
87            * Thuban/UI/identifyview.py (IdentifyView.__init__):
88            Use ListCtrl instead of GridCtrl
89    
90            * Thuban/Model/resource.py:
91            Guess location of .thuban directory from tempdir parent directory.
92    
93            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
94            Guess location of .thuban directory from tempdir parent directory.
95    
96    2003-06-04  Bernhard Herzog  <[email protected]>
97    
98            Do not cache the values returned by the tree widget's
99            GetFirstChild and GetNextChild methods because it led to lots of
100            segfaults. The new way requires more brute force but is more
101            reliable.
102    
103            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
104            variable layer2id
105            (LegendTree.find_layer): New method to do with brute force what
106            layer2id tried to accomplish
107            (LegendTree._OnMsgLayerChanged)
108            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
109            Use find_layer instead of layer2id
110            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
111            update layer2id anymore
112            (LegendTree._OnMsgMapLayersRemoved)
113            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
114    
115    2003-06-03  Thomas Koester  <[email protected]>
116    
117            * Thuban/Model/classgen.py (GenQuantiles0): New function.
118    
119    2003-06-02  Bernhard Herzog  <[email protected]>
120    
121            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
122            New commands.
123            (main_menu): Add the new commands.
124            (MainWindow.TableRename): New. Implementation of the table_rename
125            command.
126            (MainWindow.RenameLayer): New. Implementation of the layer_rename
127            command.
128    
129            * Thuban/Model/session.py (Session.AddTable): call self.changed to
130            set the modified flag
131    
132            * test/test_session.py (TestSessionSimple.test_add_table): Test
133            whether the modified flag is set properly
134    
135            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
136            instead of issue so that the modified flags get updated.
137    
138            * test/test_base.py (SomeTitledObject): Derive from Modifiable
139            instead of Publisher to reflect reality better and to accomodate
140            the fact that SetTitle now calls changed instead of issue
141    
142    2003-06-02  Bernhard Herzog  <[email protected]>
143    
144            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
145            acquisition has to happen before the try in a try-finally.
146    
147    2003-06-02  Bernhard Herzog  <[email protected]>
148    
149            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
150            possible that a layer is removed that is not currently selected in
151            the legend so don't check for this.
152    
153    2003-05-30  Bernhard Herzog  <[email protected]>
154    
155            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
156            variables to None that have direct or indirect references to
157            shapefiles or dbf files to make sure that they do go away and the
158            files are closed.
159    
160    2003-05-30  Bernhard Herzog  <[email protected]>
161    
162            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
163            availImgListIndices when a new image list is created
164            
165    2003-05-30  Bernhard Herzog  <[email protected]>
166    
167            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
168            changing_selection to indicate whether the LegendTree code itself
169            is currently changing the selection
170            (LegendTree.normalize_selection): New method to normalize the
171            selection by selecting the layer item even if the user clicked on
172            the classification.
173            (LegendTree._OnSelChanged): normalize the selection. This works
174            around a bug in wx which doesn't keep track of the selection
175            properly when subtrees are deleted.
176    
177    2003-05-30  Bernhard Herzog  <[email protected]>
178    
179            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
180            maximum and minimum scale factors.
181    
182            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
183            changes in classgen.py
184    
185    2003-05-30  Jonathan Coles   <[email protected]>
186    
187            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
188            all the methods functions. Fixes RTBug #1903.
189    
190            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
191            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
192            RTBug #1907.
193    
194            * Thuban/UI/classgen.py: Use classgen functions that were part
195            of the ClassGenerator class. Put try/finally blocks around
196            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
197            RTBug #1904.
198    
199            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
200    
201            * Thuban/UI/legend.py: The legend was cleared and repopulated any
202            time something changed which caused some state to be lost such
203            as which children were expanded or collapsed. Fixes RTBug #1901.
204            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
205            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
206            the legend but not in the map.
207            (LegendTree.__FillTree): Move main functionality out into smaller
208            methods that can be used by other methods.
209            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
210            if they are available.
211            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
212            that we override the wxTreeCtrl method. Iterate over children
213            and call __RemoveLayer.
214            (LegendTree.__AddLayer): New. Add a new layer to the legend.
215            (LegendTree.__RemoveLayer): Remove a layer from the legend.
216            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
217            Should only be called with the id of a layer branch.
218            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
219            Returns the root item or creates one if necessary.
220    
221            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
222            ProjectRasterFile with tuple arguments instead of strings.
223    
224            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
225            with try/finally. Fixes RTBug #1904.
226    
227            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
228            with try/finally. Fixes RTBug #1904.
229            (MapCanvas.FitSelectedToWindow): If a single point is selected
230            simply center it on the display. Fixes RTBug #1849.
231    
232            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
233            to be compiled as a standalone app. Now the code can only be
234            called from Python which simplifies the parameter passing.
235            (ProjectRasterFile): Handle Python arguments. Remove code that
236            checks for a destination dataset. Add more clean up code.
237    
238            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
239            TestMapWithContents.test_lower_layer_bottom):
240            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
241            Fixes RTBug #1907.
242    
243            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
244            extent to the map when the legend is toggled. Fixes RTBug #1881.
245    
246    2003-05-29  Jan-Oliver Wagner <[email protected]>
247    
248            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
249            unsubscribes all that is subcribed in __init__.
250    
251    2003-05-28  Bernhard Herzog  <[email protected]>
252    
253            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
254            (MainWindow.CanDuplicateLayer): New methods to implement the
255            Layer/Duplicate command.
256            (layer_duplicate command): New.
257            (main_menu): Add layer_duplicate to the Layer menu.
258    
259    2003-05-28  Bernhard Herzog  <[email protected]>
260    
261            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
262            renderer so that NULL/None values get displayed differently (by a
263            gray rectangle).
264            (TableGrid.__init__): Override the default renderers
265    
266    2003-05-28  Bernhard Herzog  <[email protected]>
267    
268            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
269            classification to "None" if the type of the field has changed.
270    
271            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
272            test for the Layer.SetShapeStore method
273    
274    2003-05-28  Jan-Oliver Wagner <[email protected]>
275    
276            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
277            does not necessarily have a filename).
278    
279    2003-05-28  Jan-Oliver Wagner <[email protected]>
280    
281            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
282            sort the selection list for the dialog.
283    
284    2003-05-28  Frank Koormann  <[email protected]>
285    
286            * extensions/thuban/wxproj.cpp
287            (project_point): Removed cast to int for projected point coordinates.
288            (shape_centroid): Return last point if all polygon vertices fall
289            to one point.
290    
291    2003-05-28  Bernhard Herzog  <[email protected]>
292    
293            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
294            with layers that don't have shapestores, i.e. raster layers.
295    
296    2003-05-28  Bernhard Herzog  <[email protected]>
297    
298            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
299            when determining the title from the filename.
300    
301            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
302            reflect changes in the way the title is derived from the filename
303    
304    2003-05-28  Frank Koormann  <[email protected]>
305    
306            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
307            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
308    
309    2003-05-27  Bernhard Herzog  <[email protected]>
310    
311            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
312            delegate SelectedLayer.
313            (MainWindow.LayerUnjoinTable): Implement.
314            (_can_unjoin): New. Helper function for the sensitivity of the
315            layer/unjoin command.
316    
317            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
318            (DerivedShapeStore.OrigShapeStore): New. Return the original
319            shapestore. Used to figure out how to unjoin.
320            (DerivedShapeStore.Shapefile): Fix a typo.
321    
322    2003-05-27  Bernhard Herzog  <[email protected]>
323    
324            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
325            well
326            (JoinDialog.__init__): Use the layer parameter and only build the
327            left choice when a layer is given
328            (JoinDialog.OnJoin): Handle layer joins as well
329            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
330            that the user selects the "Select..." item. The sensitivitly
331            updating is now in update_sensitivity
332            (JoinDialog.y): New method to refactor the sensitivity update of
333            the join button into its own method.
334    
335            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
336    
337    2003-05-27  Bernhard Herzog  <[email protected]>
338    
339            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
340            iff there are unreferenced tables in the session
341    
342    2003-05-27  Bernhard Herzog  <[email protected]>
343    
344            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
345    
346            * Thuban/Model/session.py (Session.UnreferencedTables): New method
347            to return tables that are not referenced by other tables or shape
348            stores and can be removed.
349            (Session.RemoveTable): Issue a TABLE_REMOVED message after
350            removing the table
351    
352            * Thuban/UI/mainwindow.py: Remove unused imports
353            (MainWindow.TableClose): Implement.
354    
355            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
356            messages so that the frame will be automatically closed when a new
357            session is opened or the table is removed.
358            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
359            __init__
360            (TableFrame.close_on_session_replaced)
361            (TableFrame.close_on_table_removed): New. Subscribers that close
362            the window
363    
364            * test/test_session.py (TestSessionMessages.test_remove_table)
365            (TestSessionSimple.test_remove_table): Move the test to
366            TestSessionSimple and add test for the TABLE_REMOVED message
367            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
368            (TestSessionSimple.test_unreferenced_tables) New. Test for the
369            UnreferencedTables method.
370            (UnreferencedTablesTests): New. Class with some more sophisticated
371            tests for UnreferencedTables.
372    
373    2003-05-27  Frank Koormann  <[email protected]>
374    
375            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
376            display has some unwanted side effects. Removed again.
377    
378    2003-05-27  Frank Koormann  <[email protected]>
379    
380            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
381    
382            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
383    
384    2003-05-27  Jan-Oliver Wagner <[email protected]>
385    
386            * test/test_menu.py (MenuTest.test): Added test for
387            Menu.RemoveItem().
388    
389            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
390            the menu.
391    
392    2003-05-27  Frank Koormann  <[email protected]>
393            
394            Nonmodal dialogs without parent (i.e. they can fall behind the main
395            window)
396    
397            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
398            all dialogs in the dialogs dictionary and the canvas.
399    
400            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
401            parent, i.e. can fall behind other windows.
402            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
403            dictionary before removing it.
404    
405            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
406    
407            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
408            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
409            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
410    
411    2003-05-27  Bernhard Herzog  <[email protected]>
412    
413            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
414            tableview dialog
415            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
416            Also, don't use the table's titles as the dialog names. The titles
417            aren't guaranteed to be unique.
418            (MainWindow.TableOpen): Open a table view dialog after opening the
419            table
420    
421    2003-05-27  Bernhard Herzog  <[email protected]>
422    
423            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
424            effect can be achieved by simply closing the window showing the
425            table.
426            (MainWindow.TableHide): Removed.
427            (main_menu): Removed "table_hide"
428    
429    2003-05-27  Frank Koormann  <[email protected]>
430    
431            Fix legend tree display problems under Win32
432    
433            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
434            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
435            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
436    
437            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
438    
439    2003-05-27  Jan-Oliver Wagner <[email protected]>
440    
441            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
442            'after' now allows to insert separators almost anywhere in the menu.
443    
444    2003-05-27  Frank Koormann  <[email protected]>
445    
446            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
447            "S" of selection box label to hint on hot key (Alt-S). Works under
448            Win32 but is ignored under GTK.
449    
450    2003-05-26  Frank Koormann  <[email protected]>
451    
452            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
453            Center Choices.
454    
455    2003-05-26  Bernhard Herzog  <[email protected]>
456    
457            Remove the Precision methods again. They're too DBF specific to be
458            part of the table interface and they're only used in table_to_dbf
459            anyway.
460            
461            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
462            fixed precision of 12 for doubles.
463            (TransientTableBase.Precision): Removed
464            (AutoTransientTable.Width): Delegate to self.table.
465    
466            * Thuban/Model/table.py (DBFTable.Precision)
467            (MemoryTable.Precision): Removed.
468            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
469            (table_to_dbf): Use a fixed precision of 12 for floats unless the
470            column object specifies something else.
471    
472            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
473            test for table_to_dbf
474    
475    2003-05-26  Bernhard Herzog  <[email protected]>
476    
477            * test/test_transientdb.py
478            (TestTransientTable.run_iceland_political_tests): Fix a comment.
479    
480    2003-05-26  Bernhard Herzog  <[email protected]>
481    
482            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
483            implementation. Mark parts of the file format strings for
484            localization.
485    
486            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
487            file and add the table to the tables managed by the session
488    
489            * test/test_session.py (TestSessionSimple.test_open_table_file):
490            New. test case for OpenTableFile
491    
492    2003-05-26  Jan-Oliver Wagner <[email protected]>
493    
494            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
495            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
496            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
497            Replace the true/false of wxWindows by True/False of Python 2.2.1.
498    
499    2003-05-26  Jan-Oliver Wagner <[email protected]>
500    
501            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
502            already a selection present, update the grid accordingly.
503    
504            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
505            resizeable and increase its initial size.
506    
507    2003-05-26  Frank Koormann  <[email protected]>
508    
509            Table export functionality
510    
511            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
512            Return width (in characters) for a column.
513            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
514            (table_to_dbf): Write table to dbf file.
515            (table_to_csv): Write table to csv file.
516    
517            * Thuban/Model/transientdb.py (TransientTableBase.Width,
518            TransientTableBase.Precision): Return column width and precision.
519    
520            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
521            or table_to_csv depending on file selection.
522    
523            * test/test_dbf_table.py:
524            Test table_to_dbf (extension of former part of test).
525    
526            * test/test_csv_table.py:
527            Test table_to_csv.
528    
529    2003-05-23  Jan-Oliver Wagner <[email protected]>
530    
531            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
532            Use QueryTableFrame instead of TableFrame.
533    
534            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
535            table window with 'Layer Table:' instead of 'Table:'.
536    
537    2003-05-23  Jan-Oliver Wagner <[email protected]>
538    
539            Give all tables a title via mix-in TitledObject.LayerShowTable
540    
541            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
542            only if it exists.
543    
544            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
545            and call its init-method with a default title. Remove Title() method.
546    
547            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
548            AutoTransientTable): mix-in TitledObject and call its init-method with
549            a default title. Remove Title() method.
550    
551    2003-05-23  Bernhard Herzog  <[email protected]>
552    
553            * Thuban/Model/session.py (Session.AddShapeStore): Define
554            AddShapeStore analogously to AddTable.
555    
556            * test/test_session.py (TestSessionSimple.test_add_shapestore):
557            New. Test for AddShapeStore
558    
559    2003-05-23  Jan-Oliver Wagner <[email protected]>
560    
561            Introducing QueryTableFrame and a very coarse ShowTable implementation.
562    
563            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
564            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
565            The latter implements the selection GUI without dependency on a layer.
566            LayerTableFrame now is derived from QueryTableFrame and connects
567            to a layer.
568    
569            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
570            implementation that still needs work.
571    
572            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
573    
574    2003-05-22  Frank Koormann  <[email protected]>
575    
576            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
577            Added "outer_join = False" as optional parameter.
578            (TransientJoinedTable.create): If outer join is true, perform a
579            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
580            the left table. Records not matching are filled with 0 / None.
581    
582            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
583            (JoinDialog.OnJoin): Consider outer join check box.
584    
585    2003-05-22  Bernhard Herzog  <[email protected]>
586    
587            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
588            somewhat safer way. Storing the traceback in a local variable can
589            lead to memory leaks
590    
591    2003-05-22  Bernhard Herzog  <[email protected]>
592    
593            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
594            the wxMessageDialog's Destroy() method.
595    
596    2003-05-22  Frank Koormann  <[email protected]>
597    
598            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
599            TransientTable.Title()
600    
601    2003-05-22  Frank Koormann  <[email protected]>
602    
603            Join Dialog, initial version.
604    
605            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
606    
607            * Thuban/UI/join.py (JoinDialog): Functional implementation of
608            former framework. Renamed Table1/Table2 to LeftTable/RightTable
609            in all occurences.
610    
611            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
612            Typo fixed.
613    
614    2003-05-22  Bernhard Herzog  <[email protected]>
615    
616            Give the tables titles so that the GUI can display more meaningful
617            names. For now the titles are fixed but depend on e.g. filenames
618            or the titles of the joined tables.
619    
620            * Thuban/Model/transientdb.py (TransientTable.Title)
621            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
622    
623            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
624    
625            * test/test_transientdb.py
626            (TestTransientTable.test_auto_transient_table_title): New. Test
627            for the Title method
628            (TestTransientTable.test_transient_joined_table)
629            (TestTransientTable.test_transient_table): Add test for the Title
630            methods
631    
632            * test/test_memory_table.py (TestMemoryTable.test_title): New.
633            Test for the Title method
634    
635            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
636            the Title method
637    
638    2003-05-22  Bernhard Herzog  <[email protected]>
639    
640            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
641            Provide a better way to destroy the layers
642            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
643            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
644            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
645            the new way to destroy the layers.
646            (TestLayer.test_derived_store): New. Test for using a layer with a
647            DerivedShapeStore
648    
649            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
650            filename if the shape store actually has one.
651    
652    2003-05-22  Bernhard Herzog  <[email protected]>
653    
654            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
655            for the filename
656    
657            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
658            for the FileName method
659            (TestDBFTableWriting.test_write): Fix spelling of filename
660    
661    2003-05-22  Thomas Koester  <[email protected]>
662    
663            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
664            from SciParam that now really is immutable.
665    
666    2003-05-22  Frank Koormann  <[email protected]>
667    
668            Layer Top/Bottom placement added to legend.
669    
670            * Thuban/UI/legend.py
671            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
672            bound to tool events.
673            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
674            New, methods binding the event methods with the map methods.
675    
676            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
677            layer at top/bottom of layer stack.
678    
679            * Resources/Bitmaps/top_layer.xpm: New button icon.
680    
681            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
682    
683    2003-05-22  Bernhard Herzog  <[email protected]>
684    
685            * Thuban/Model/session.py (Session.RemoveTable): New method to
686            remove tables
687    
688            * test/test_session.py (TestSessionSimple.test_remove_table): New.
689            Test for RemoveTable
690    
691    2003-05-22  Thomas Koester  <[email protected]>
692    
693            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
694            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
695    
696    2003-05-22  Bernhard Herzog  <[email protected]>
697    
698            Implement a way to discover dependencies between tables and
699            shapestores.
700    
701            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
702            (TransientJoinedTable.Dependencies)
703            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
704            interface
705            (TransientJoinedTable.__init__): Keep tack of the original table
706            objects in addition to the corresponding transient tables.
707    
708            * Thuban/Model/table.py (DBFTable.Dependencies)
709            (MemoryTable.Dependencies): New. Implement the dependencies
710            interface
711    
712            * Thuban/Model/data.py (ShapeTable): New. Helper class for
713            ShapefileStore
714            (ShapefileStore.__init__): Use ShapeTable instead of
715            AutoTransientTable
716            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
717            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
718            methods for filename and type
719            (ShapefileStore.Dependencies): New. Implement the dependencies
720            interface
721            (DerivedShapeStore): New class to replace SimpleStore. The main
722            difference to SimpleStore is that it depends not on a shapefile
723            but another shapestore which expresses the dependencies a bit
724            better
725            (SimpleStore.__init__): Add deprecation warning.
726    
727            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
728            Test for the Dependencies method.
729    
730            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
731            New. Test for the Dependencies method.
732    
733            * test/test_transientdb.py
734            (TestTransientTable.test_auto_transient_table_dependencies): New.
735            Test for the Dependencies method.
736            (TestTransientTable.test_transient_joined_table): Add test for the
737            Dependencies method.
738    
739            * test/test_session.py (TestSessionSimple.setUp)
740            (TestSessionSimple.tearDown): New. Implement a better way to
741            destroy the sessions.
742            (TestSessionSimple.test_initial_state)
743            (TestSessionSimple.test_add_table): Bind session to self.session
744            so that it's destroyed by tearDown
745            (TestSessionSimple.test_open_shapefile): New. Test for
746            OpenShapefile and the object it returns
747    
748    2003-05-22  Bernhard Herzog  <[email protected]>
749    
750            * Thuban/Model/session.py (Session.AddTable): New method to
751            register tables with the session.
752            (Session.Tables): Return the tables registered with AddTable too.
753    
754            * test/test_session.py (TestSessionSimple.test_add_table): New.
755            Test case for the AddTable method
756    
757    2003-05-22  Frank Koormann  <[email protected]>
758    
759            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
760            lower right corner, center labels for selections, initialize controls
761            in reasonable order for keyboard navigation.
762    
763            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
764            (ProjFrame.__DoOnProjAvail): Determine position of current projection
765            using the wxListBox.FindString() method. Still a problem (#1886)
766    
767            * Thuban/UI/classifier.py
768            (Classifier.__init__, SelectPropertiesDialog.__init__)
769    
770            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
771            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
772            different classification types from here to __init__.
773            (GenUniquePanel.__init__): Set the column width of the first field
774            in the Field ListCtrl to the full width.
775    
776            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
777            Button to 'Export'. Center Buttons in Selection Box, set Focus to
778            Grid.
779            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
780            changes focus to the Selection when pressing "Alt-S".
781    
782            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
783            the text if not visible. The italic font sometimes exceeds the
784            rendering area.
785    
786    2003-05-21  Jonathan Coles   <[email protected]>
787    
788            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
789            to OnClose so that Thuban closes correctly.
790    
791            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
792            DockFrame.OnClose, not DockFrame._OnClose.
793    
794    2003-05-21  Jonathan Coles   <[email protected]>
795    
796            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
797            references to 'inf' and use new Range __init__ to pass floats
798            directly rather than converting them to strings first.
799            Fixes RTBug #1876.
800    
801            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
802            Use new Range ___init__ to pass floats.
803    
804            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
805            filename is a valid image file. Throw IOError otherwise.
806    
807            * Thuban/Model/range.py: Brought over new Range from SciParam that
808            is immutable and has an __init__ which can accept floats.
809    
810            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
811            into try block. AddLayer doesn't throw any exceptions anymore.
812            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
813            try block.
814    
815            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
816            the first item in choices. Fixes RTBug #1882.
817    
818            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
819            has gone to 0 which is a serious problem. abort.
820            (MapRenderer.draw_raster_layer): Catch IOError seperately and
821            print the error from GDAL.
822    
823            * Thuban/UI/tableview.py (TableGrid.__init__): Call
824            ToggleEventListeners to turn on listening.
825            (TableGrid.ToggleEventListeners): New. Turns event listening on
826            and off so as to prevent excessive messages.
827            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
828            to suppress excessive messages when selecting many rows.
829            Fixes RTBug #1880.
830    
831            * Thuban/UI/view.py: Added checks against if scale == 0. This
832            is a serious problem that can occur when an image without
833            geo data is loading and causes the map projection bounds to
834            go to infinity. Right now, the solution is to simply try
835            to recover.
836    
837            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
838            to set the MFILEReceiver attributes even if the data is NULL.
839    
840            * extensions/thuban/gdalwarp.cpp: Improved the error handling
841            and passed GDAL messages back up to the Python layer. Also
842            tried to fix some memory leaks that were present in the original
843            utility but didn't matter because the program aborted.
844    
845            * test/test_range.py: Copied over tests from SciParam. Removed
846            tests against importing. Fixes RTBug #1867.
847    
848    2003-05-21  Bernhard Herzog  <[email protected]>
849    
850            * test/test_load.py: Remove unused imports and restructure the
851            test code
852            (LoadSessionTest): Split into one class for each test and turn
853            LoadSessionTest itself into the base class for all such session
854            tests.
855            (ClassificationTest): New base class for load tests that test
856            classifications
857            (TestSingleLayer, TestLayerVisibility, TestClassification)
858            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
859            for the individual tests
860    
861            * test/support.py (FileLoadTestCase.filename): New base class for
862            file loading tests
863    
864    2003-05-21  Jan-Oliver Wagner <[email protected]>
865    
866            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
867            Mercator' to 'UTM Zone 32' as a more convenient example.
868            Added 'Gauss Krueger Zone 6'.
869    
870            * Data/iceland_sample_raster.thuban: political polygon now
871            filled transparent to have the raster image visible at once.
872    
873    2003-05-21  Frank Koormann  <[email protected]>
874    
875            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
876            OnClose() to keep in sync with extensions. Internally Thuban
877            still uses "underscored" names.
878    
879    2003-05-20  Jonathan Coles   <[email protected]>
880    
881            This puts back Raster layer support. These layers support projections
882            through the GDAL library. Currently, the CVS version is being used.
883            There are no Debian packages available although this may change soon.
884            A GDAL driver was extended to support writing to memory rather to
885            files.
886    
887            There is still some work that needs to be done, such as some error
888            handling when loading invalid images or when there is a problem
889            projecting the image. This putback simply checks in the majority
890            of the work.
891    
892            * setup.py: Add gdalwarp library extension.
893    
894            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
895            Defaults to False, but can be overridden by subclasses if they
896            support classification.
897            (RasterLayer): New. Defines a new layer that represents an
898            image.
899    
900            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
901            tag handler.
902            (SessionLoader.start_layer): Encode the filename.
903            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
904            New. Supports reading a rasterlayer tag.
905    
906            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
907    
908            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
909            get a string in Latin1. If we get such as string convert it to
910            unicode first, otherwise leave if alone before encoding.
911            (SessionSaver.write_layer): Add support for writing both Layers
912            and RasterLayers.
913    
914            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
915            The right argument may not be a string, it could also be a Column.
916    
917            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
918            Make initial window size 600x400. Fixes RTBug #1872.
919    
920            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
921            the dialog is constructed so that we can support layers that
922            do not have classifications.
923            (Classifier._OnTry): Only build a classification if the layer
924            supports one.
925    
926            * Thuban/UI/legend.py: Change all checks that a layer is an
927            instance of Layer into checks against BaseLayer.
928            (LegendTree.__FillTreeLayer): Only add children to a branch if
929            the layer supports classification.
930    
931            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
932            MainWindow.OpenSession): Don't proceed with an action if the
933            user chooses Cancel when they are asked to save changes.
934            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
935            user to select an image file. Create a new RasterLayer and add
936            it to the map.
937    
938            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
939            for rendering RasterLayer layers.
940            (MapRenderer.draw_raster_layer): Actually method that calls
941            the GDALWarp python wrapper and constructs an image from the
942            data returned.
943    
944            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
945            Choices symbols to match those used in the table query method.
946            Replace deprecated method calls on table with new method names.
947    
948            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
949            how small the scale can get. This still needs more testing.
950    
951            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
952            Provides a driver to output in .bmp format.
953    
954            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
955            New. Provides IO routines which write to memory, rather than a file.
956    
957            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
958            of the gdalwarp utility provided in GDAL. Added function calls
959            that can be accessed from python.
960    
961            * Data/iceland_sample_raster.thuban: New. Sample file that uses
962            a raster layer.
963    
964            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
965            layer image data.
966    
967            * Doc/thuban.dtd: Added rasterlayer attribute definition.
968    
969            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
970            tests associated with the raster layer code.
971    
972            * test/test_transientdb.py
973            (TestTransientTable.test_auto_transient_table_query): Added a test
974            for using a Column object as the "right" parameter to a query.
975    
976    2003-05-19  Frank Koormann  <[email protected]>
977    
978            * Thuban/version.py (get_changelog_date):
979            Catch exceptions if ChangeLog does not exist.
980    
981            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
982    
983    2003-05-19  Frank Koormann  <[email protected]>
984    
985            Extended version information for Thuban
986    
987            * Thuban/version.py: New, version information for Thuban: Last
988            modification date and last ChangeLog entry date.
989    
990            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
991            information: Display Thuban, wxPython and Python version.
992    
993    2003-05-16  Bernhard Herzog  <[email protected]>
994    
995            * Thuban/Model/save.py: Remove some unused imports including the
996            __future__ import for nested_scopes as Thuban relies on Python 2.2
997            now.
998            (XMLWriter.encode): Remove the special case for a None argument.
999            In the saver encode is always called with a string argument.
1000    
1001    2003-05-16  Bernhard Herzog  <[email protected]>
1002    
1003            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
1004            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
1005            of the bug was that e.g. float("1.2") would fail. Thuban now
1006            requires 2.4.x.
1007            
1008    2003-05-16  Frank Koormann   <[email protected]>
1009    
1010            Printing enhancement and WMF export (under Win32)
1011    
1012            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
1013            ScreenRenderer. Renders Map, Legend and Scalebar for export.
1014            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
1015            PrintRender.
1016    
1017            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
1018            to fullfil information needed for PrinterRenderer.
1019            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
1020            (MapCanvas.Print): Adapted to new MapPrintout.
1021            (OutputTransform): General calculations to transform from canvas
1022            coordinates to export/printing devices.
1023    
1024            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
1025            new method_command to call ExportMap, with platform dependency (only
1026            __WXMSW__)
1027      
1028            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
1029            of scalebar drawing area as new parameters.
1030            
1031            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
1032    
1033            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
1034            Update to extended scalebar.DrawScalebar header.
1035    
1036            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
1037    
1038            * test/test_scalebar.py: Made test executable as standalone.
1039    
1040    2003-05-16  Bernhard Herzog  <[email protected]>
1041    
1042            * Thuban/Model/table.py (Table): Remove this compatibility alias
1043            for DBFTable.
1044    
1045            * test/test_table.py: Import DBFTable as Table because that alias
1046            doesn't exist anymore.
1047    
1048            * Thuban/UI/classgen.py: Remove some unused imports
1049    
1050    2003-05-14  Jonathan Coles   <[email protected]>
1051    
1052            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
1053            Fix docstring.
1054            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
1055            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
1056            values of the supplied range to determine the beginning and end
1057            bounds of the generated classes.
1058    
1059            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
1060            do not have a leading 0 (.5 is now accepted as well as 0.5).
1061    
1062            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
1063            call to ClassGenerator.GenUniformDistribution.
1064    
1065            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
1066            layout bug with the 'Projection' label.
1067    
1068            * test/support.py (FloatTestCase): New. Needed for the Range tests.
1069    
1070            * test/test_range.py: New. Imported from SciParam.
1071    
1072    2003-05-12  Jonathan Coles   <[email protected]>
1073    
1074            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
1075            to table.UniqueValues() with calls that retrieve all the values
1076            from the table. This will need to be replaced by a method on table
1077            which can simply return the list (perhaps more efficiently).
1078    
1079    2003-05-12  Jonathan Coles   <[email protected]>
1080    
1081            The return value of ClassGenerator.CalculateQuantiles has changed.
1082            Refer to the documentation for details.
1083    
1084            * test/test_classgen.py: Modified Quantile tests to use the
1085            new return values.
1086    
1087            * Thuban/Model/classgen.py
1088            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
1089            use new return values from CalculateQuantiles to produce the correct
1090            range bounds in the Classification.
1091            (ClassGenerator.CalculateQuantiles): Add more comments describing
1092            the return values and parameters. Make minor adjustments to improve
1093            the legibility of the code. Fix problem with adjusted not being set
1094            in most cases.
1095    
1096    2003-05-12  Frank Koormann <[email protected]>
1097            
1098            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
1099            and latin1. Fixes #1851 finally.
1100    
1101    2003-05-09  Jonathan Coles   <[email protected]>
1102    
1103            * test/test_classgen.py: New. Tests the Quantile algorithm.
1104    
1105            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
1106            Clean up debugging statement, add comments, fix a small bug in the
1107            returned adjusted percentiles.
1108            
1109    2003-05-09  Jonathan Coles   <[email protected]>
1110    
1111            Introduces Range class from SciParam into the ClassGroupRange class,
1112            and such ranges can now be saved and loaded from disk.
1113    
1114            Quantiles are now available in the Classification Generator.
1115    
1116            Initial support for building Queries on a table. Doesn't do anything
1117            but run some tests.
1118    
1119            * Thuban/Model/classification.py: Explicit imports.
1120            (ClassGroupRange): Use the Range class to store the underlying
1121            range information. The interface remains the same, except for
1122            GetRange(), and you can also supply a Range object as the min
1123            parameter to SetRange or __init__.
1124    
1125            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
1126            string appropriately for use in Thuban. Fixes RTbug #1851.
1127            (SessionLoader.end_projection): Handle the context of the
1128            projection tag a bit better by looking at what objects are not
1129            None. There was an assumption that a projection tag for a map
1130            could occur before any layers.
1131            (SessionLoader.start_clrange): Provide backward compatibility for
1132            reading min/max values as well as the new range parameter.
1133    
1134            * Thuban/Model/map.py: Explicit imports.
1135    
1136            * Thuban/Model/resource.py: Import _.
1137            (ProjFileSaver.write): write header using projfile.dtd.
1138    
1139            * Thuban/Model/save.py: Explicit imports.
1140            (XMLWriter.encode): New. Encode the given string from a format
1141            used by Thuban into UTF-8. Fixes RTbug #1851.
1142    
1143            * Thuban/UI/classgen.py: Explicit imports.
1144            (ClassGenDialog.__init__): Clean up the code and add support
1145            for Quantiles.
1146            (ClassGenDialog.OnOK): Add support for Quantiles.
1147            (GenQuantilesPanel): New. Input panel for Quantiles.
1148            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
1149            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
1150    
1151            * Thuban/Model/classgen.py: New. Contains all the classes named above.
1152    
1153            * Thuban/UI/classifier.py: Explicit imports.
1154            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
1155            ClassTable.SetValueAsCustom): Reworked to use new Range class.
1156    
1157            * Thuban/UI/legend.py: Explicit imports.
1158    
1159            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
1160            a Table menu and associated method calls.
1161            (MainWindow.choose_color): Removed. No longer needed.
1162    
1163            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
1164            should be disabled if no projection is selected in the available
1165            list.
1166    
1167            * Thuban/UI/renderer.py: Explicit imports.
1168    
1169            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
1170            with correctly selecting the rows and issuing the right events.
1171            Be sure to call Skip() to allow the grid to do some of its own
1172            handling which allows the rows to actually be selected.
1173            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
1174            selecting multiple shapes.
1175            (LayerTableFrame): Support for building Queries.
1176            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
1177    
1178            * Thuban/UI/tree.py: Explicit imports.
1179    
1180            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
1181            table view can call it.
1182    
1183            * test/test_classification.py: Explicit imports.
1184            (TestClassification.test_ClassGroupRange): Fix test for new
1185            Range class.
1186    
1187            * Doc/thuban.dtd: Add range parameter for clrange.
1188    
1189            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
1190            object in ClassGroupRange, and also uesd for inputting ranges in
1191            the classifer table and elsewhere.
1192    
1193            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
1194            yet.
1195    
1196    2003-05-09  Frank Koormann <[email protected]>
1197    
1198            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
1199    
1200    2003-05-08  Frank Koormann <[email protected]>
1201    
1202            Coding style updates
1203    
1204            * test/test_scalebar.py: Replaced tab indentation by spaces.
1205    
1206            * Thuban/UI/scalebar.py: Explicit imports.
1207    
1208    2003-05-08  Frank Koormann <[email protected]>
1209    
1210            * Thuban/UI/scalebar.py
1211            (ScaleBar.DrawScalebar): Format string bug fixed.
1212    
1213    2003-05-08  Frank Koormann <[email protected]>
1214    
1215            Reorganization of scalebar component (no wx in Thuban/Model)
1216    
1217            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
1218            (deriveInterval):
1219            Calculate scalebar interval and unit which fits in width for scale.
1220            (roundInterval): Round float.
1221    
1222            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
1223    
1224            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
1225    
1226            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
1227    
1228    2003-05-08  Frank Koormann <[email protected]>
1229    
1230            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
1231            Initialize ScaleBar with canvas.map
1232    
1233            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
1234            round intervals to display smarter lengths
1235            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
1236            layer. If the maps has no projection applied grey the scalebar.
1237    
1238    2003-05-07  Frank Koormann <[email protected]>
1239            
1240            Basic Scalebar features added.
1241    
1242            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
1243    
1244            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
1245            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
1246            and the renderer.
1247    
1248            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
1249    
1250            * Thuban/UI/messages.py: SCALE_CHANGED added.
1251    
1252    2003-05-07  Bernhard Herzog  <[email protected]>
1253    
1254            * Thuban/Model/session.py (Session.__init__): New instance
1255            variable shapestores to hold a list of all open shapestore objects
1256            (Session.ShapeStores): New. Accessor method for the shapestores
1257            list.
1258            (Session._add_shapestore, Session._clean_weak_store_refs): New.
1259            Internal methods to maintain the shapestores list.
1260            (Session.Tables): New. Return all tables open in the session.
1261            (Session.OpenShapefile): Insert the new ShapeStore into the
1262            shapestores list.
1263    
1264            * test/test_session.py (TestSessionSimple.test_initial_state): Add
1265            tests for ShapeStores and Tables
1266            (TestSessionWithContent.test_shape_stores)
1267            (TestSessionWithContent.test_tables): New. Test cases for
1268            ShapeStores and Tables
1269    
1270    2003-05-07  Bernhard Herzog  <[email protected]>
1271    
1272            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
1273            Add comments about the optimizations used.
1274            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
1275            Implement the ReadValue table interface method.
1276    
1277            * test/test_transientdb.py
1278            (TestTransientTable.run_iceland_political_tests)
1279            (TestTransientTable.test_transient_joined_table): Add tests for
1280            ReadValue
1281    
1282    2003-05-07  Frank Koormann <[email protected]>
1283    
1284            * Resources/Bitmaps/fulllayerextent.xpm,
1285            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
1286            new icons.
1287    
1288    2003-05-06  Bernhard Herzog  <[email protected]>
1289    
1290            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
1291            New. Simply delegate to the transient table's version.
1292    
1293            * test/test_transientdb.py
1294            (TestTransientTable.test_auto_transient_table_query): New. Test
1295            case for AutoTransientTable's SimpleQuery
1296    
1297    2003-05-06  Bernhard Herzog  <[email protected]>
1298    
1299            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
1300            Implement a simple query method for the query dialog
1301            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
1302            the row index or shapeid.
1303            (TransientTable.create): Insert the right value of the row index
1304            (TransientJoinedTable.create): Copy the row index of the left
1305            table to the joined result table
1306    
1307            * test/test_transientdb.py
1308            (TestTransientTable.test_transient_table_read_twice): Fix
1309            doc-string
1310            (TestTransientTable.test_transient_table_query): New. Test for the
1311            SimpleQuery method
1312    
1313    2003-05-06  Bernhard Herzog  <[email protected]>
1314    
1315            Convert all table users to use the new table interface. This only
1316            covers Thuban itself, not GREAT-ER or other applications built on
1317            Thuban yet, so the compatibility interface stays in place for the
1318            time being but it now issues DeprecationWarnings.
1319    
1320            Finally, the new Table interface has a new method, HasColumn.
1321    
1322            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
1323            issue deprecation warnings when they're. The warnings refer to the
1324            caller of the method.
1325            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
1326            for the deprecation warnings
1327    
1328            * test/test_table.py: Ignore the deprecation warnings for the old
1329            table in the tests in this module. The purpose of the tests is to
1330            test the old interface, after all.
1331    
1332            * test/test_transientdb.py
1333            (TestTransientTable.run_iceland_political_tests): Use the
1334            constants for the types. Add a test for HasColumn
1335            (TestTransientTable.test_transient_joined_table): Adapt to new
1336            table interface. Add a test for HasColumn
1337            (TestTransientTable.test_transient_table_read_twice): Adapt to new
1338            table interface
1339    
1340            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
1341            Adapt to new table interface
1342    
1343            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
1344            new table interface
1345    
1346            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
1347            (RecordTable.SetTable): Adapt to new table interface
1348    
1349            * Thuban/UI/classifier.py (Classifier.__init__)
1350            (Classifier.__init__): Adapt to new table interface
1351    
1352            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1353            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
1354            to new table interface
1355    
1356            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
1357            (AutoTransientTable.HasColumn): Implement the new table interface
1358            method
1359            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
1360            (AutoTransientTable.UniqueValues): Adapt to new table interface
1361    
1362            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
1363            Adapt to new table interface
1364    
1365            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
1366            simplify opening shapefiles a bit easier.
1367            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1368            (TestLayer.test_point_layer): Use the new helper method
1369            (TestLayer.test_get_field_type): New. Test for the GetFieldType
1370            method
1371    
1372            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
1373            the new table method
1374    
1375            * test/test_memory_table.py (TestMemoryTable.test_has_column):
1376            Test for the new table method HasColumn
1377    
1378    2003-05-06  Jonathan Coles   <[email protected]>
1379    
1380            Addresses the "Selection Extent" wish of RTbug #1787.
1381    
1382            * Resources/Bitmaps/fulllayerextent.xpm,
1383            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
1384            extent. These are just place holders for the real bitmaps.
1385    
1386            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
1387            calculate the bounding box once (the first time compute_bbox() is
1388            called).
1389            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
1390            the bounding box for the shapes in lat/long coordinates.
1391    
1392            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
1393            option.
1394            (MainWindow.has_selected_shapes): New. Returns true if there are
1395            any selected shapes.
1396            (MainWindow.FullSelectionExtent): New. Calls
1397            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
1398            (_has_selected_shapes): New. Returns true if there are any
1399            selected shapes.
1400    
1401            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
1402            true if there are any selected shapes.
1403    
1404            * Thuban/UI/view.py (MapCanvas): Added delegated method
1405            HasSelectedShapes.
1406            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
1407            shapes on the canvas using the map projection (if any).
1408    
1409            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
1410            for Layer.ShapesBoundingBox().
1411    
1412    2003-05-06  Bernhard Herzog  <[email protected]>
1413    
1414            * Resources/Projections/defaults.proj: Fix spelling of Mercator
1415    
1416    2003-05-05  Jonathan Coles   <[email protected]>
1417    
1418            Addresses the "Full Layer Extent" wish of RTbug #1787.
1419    
1420            * Resources/Projections/defaults.proj: Added UK National Grid.
1421    
1422            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
1423            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
1424            when the user selects the menu option.
1425    
1426            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
1427            scales the given layer on the canvas using the map projection.
1428    
1429    2003-05-05  Bernhard Herzog  <[email protected]>
1430    
1431            Convert the table implementations to a new table interface. All
1432            tables use a common mixin class to provide backwards compatibility
1433            until all table users have been updated.
1434    
1435            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
1436            provide backwards compatibility for table classes implementing the
1437            new interface
1438            (DBFTable, MemoryTable): Implement the new table interface. Use
1439            OldTableInterfaceMixin as base for compatibility
1440            (DBFColumn, MemoryColumn): New. Column description for DBFTable
1441            and MemoryTable resp.
1442    
1443            * test/test_dbf_table.py: New. Test cases for the DBFTable with
1444            the new table interface.
1445    
1446            * test/test_memory_table.py: New. Test cases for the MemoryTable
1447            with the new table interface.
1448    
1449            * test/test_table.py: Document the all tests in this file as only
1450            for backwards compatibility. The equivalent tests for the new
1451            interface are in test_memory_table.py and test_dbf_table.py
1452            (MemoryTableTest.test_read): field_info should be returning tuples
1453            with four items
1454            (MemoryTableTest.test_write): Make doc-string a more precise.
1455    
1456            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
1457            table interface. Derive from from OldTableInterfaceMixin for
1458            compatibility.
1459            (TransientTableBase.create): New intance variable column_map to
1460            map from names and indices to column objects
1461            (TransientTable.create): Use the new table interface of the input
1462            table
1463            (AutoTransientTable): Convert to new table interface. Derive from
1464            from OldTableInterfaceMixin for compatibility.
1465            (AutoTransientTable.write_record): Removed. It's not implemented
1466            yet and we still have to decide how to handle writing with the new
1467            table and data framework.
1468    
1469            * test/test_transientdb.py
1470            (TestTransientTable.run_iceland_political_tests)
1471            (TestTransientTable.test_transient_joined_table): Use the new
1472            table interface
1473    
1474    2003-05-05  Jonathan Coles   <[email protected]>
1475    
1476            This is namely a collection of UI updates to improve user interactivity.
1477            Tabbing between controls now exists and you can use ESC to close dialog
1478            boxes; ENTER will active the default button.
1479    
1480            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
1481            order that the controls are created so that tabbing works correctly.
1482            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
1483            wxDialog can handle the default button correctly.
1484            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
1485            same reasons as for OnOK.
1486            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
1487            when we ask the table for the maximum/minimum values of a field
1488            which could take a very long time.
1489    
1490            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
1491            order that the controls are created so that tabbing works correctly.
1492            (SelectPropertiesDialog.__init__): Rearrange the order that the
1493            controls are created so that tabbing works correctly.
1494    
1495            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
1496            to derive from a wxDialog but behave like the original implementation
1497            which was derived from a wxFrame. wxDialog provides useful key
1498            handling functionality like ESC calling OnCancel and ENTER calling
1499            OnOK which is lost with wxFrame.
1500    
1501            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
1502            new dialogs.
1503    
1504            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
1505            order that the controls are created so that tabbing works correctly.
1506            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
1507            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
1508            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
1509            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
1510            can provide the "UK National Grid" as a default projection.
1511            (UTMPanel.__init__): Rearrange the order that the controls are
1512            created so that tabbing works correctly.
1513    
1514    2003-05-05  Bernhard Herzog  <[email protected]>
1515    
1516            * extensions/thuban/wxproj.cpp: Fix some of the comments.
1517            (project_point): If a map projection but no layer projection is
1518            given, convert degrees to radians before applying the map
1519            projection.
1520    
1521            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
1522            (TableGrid.allow_messages): New methods to make it possible to
1523            inhibit message sending.
1524            (TableGrid.issue): Only send the message if not inhibited.
1525            (LayerTableGrid.select_shape): Use the new methods to make sure
1526            that no ROW_SELECTED message is sent while we're updating the
1527            selected rows to match the selected shapes.
1528    
1529    2003-05-02  Jan-Oliver Wagner <[email protected]>
1530    
1531            Implementation of MemoryTable.
1532    
1533            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
1534            implementation that operates on a list of tuples. All of the data
1535            are kept in the memory.
1536    
1537            * test/test_table.py (MemoryTableTest): New.
1538    
1539            * test/test_transientdb.py (SimpleTable): Removed.
1540            (TestTransientTable.test_transient_joined_table,
1541            (TestTransientTable.test_transient_table_read_twice): Replaced
1542            SimpleTable by MemoryTable.
1543    
1544    2003-04-30  Jonathan Coles   <[email protected]>
1545    
1546            * Data/iceland_sample.thuban: Now contains correct projections
1547            for each of the layers.
1548    
1549            * Resources/Projections/defaults.proj: Geographic projection
1550            contains unit conversion parameter.
1551    
1552    2003-04-30  Jonathan Coles   <[email protected]>
1553    
1554            The most important part of this putback is the projection changes.
1555            It should now be possible to specify the projection that a layer
1556            is in and then specify a different projection for the map. The
1557            projection dialog has an extra parameter for a geographic projection
1558            which lets the user select if the input is in degrees or radians.
1559    
1560            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
1561            to say that the parameter is a tuple of unprojected
1562            points (which is what the callers to this method were assuming).
1563            Also, since the points are unprojected we need to projected them.
1564    
1565            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
1566            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
1567            groups are selected, move the layer up/down. Fixes RTbug #1833.
1568    
1569            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
1570    
1571            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
1572            parameter in call to SetClientData.
1573            (GeoPanel): Add support for selecting the units that the
1574            source data is in (Radians or Degrees).
1575    
1576            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
1577            the rendering loop by reducing the number of if's, removing the
1578            unnecessary try/except block, and checking if the old group
1579            is the same as the new one (which happens a lot if there is
1580            no classification, or lots of shapes are in the same group).
1581    
1582            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
1583            around the redraw routine to try to catch problems that the user
1584            may create by selecting invalid projections for the data set and
1585            map. Clears the display if there are any problems and prints the
1586            error.
1587            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
1588            rectangle.
1589    
1590            * extensions/thuban/wxproj.cpp (project_point): First invert the
1591            supplied point (which should be in projected coordinates) using
1592            the layer's projection and then project the point using the
1593            map's projection.
1594            (project_points): Use project_point() to project each point.
1595    
1596    2003-04-30  Jan-Oliver Wagner <[email protected]>
1597    
1598            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
1599            don't set the Classification to None if the classfication field
1600            is None (ie only a DEFAULT).
1601    
1602    2003-04-30  Bernhard Herzog  <[email protected]>
1603    
1604            * Thuban/UI/view.py: Fix some typos.
1605    
1606            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
1607            not pop up the dialog if the selection becomes empty (this could
1608            happen if e.g. a new selection is opened while the identify tool
1609            is active and dialog had been closed)
1610    
1611    2003-04-30  Bernhard Herzog  <[email protected]>
1612    
1613            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
1614            instance variable read_record_last_result
1615            (TransientTableBase.read_record): Make sure reading the same
1616            record twice works. The implementation uses the new instance
1617            variable read_record_last_result
1618    
1619            * test/test_transientdb.py
1620            (TestTransientTable.test_transient_table_read_twice): New test
1621            case for the above bug-fix.
1622    
1623    2003-04-29  Jonathan Coles   <[email protected]>
1624    
1625            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
1626    
1627            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
1628    
1629            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
1630            (ClassTable.SetValueAsCustom): Rename keyword argument in
1631            ClassGroup* constructors to match argument name.
1632    
1633    2003-04-29  Bernhard Herzog  <[email protected]>
1634    
1635            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
1636            transient DB if it exists to make sure it doesn't leave a journal
1637            file in the temp directory.
1638    
1639            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
1640            self.conn to None after closing the connection to make sure it's
1641            not closed twice
1642    
1643    2003-04-29  Jonathan Coles   <[email protected]>
1644    
1645            Add a visible parameter in the layer XML tag. The default value is
1646            "true". If anything other than "false" is specified we also assume
1647            "true". Addresses RTbug #1025.
1648    
1649            * Doc/thuban.dtd: Add visible parameter to a layer.
1650    
1651            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
1652            of visible from 1 to True.
1653            (Layer.__init__): Change default value of visible from 1 to True.
1654    
1655            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
1656            parameter.
1657    
1658            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
1659            parameter.
1660    
1661            * test/test_load.py: Add new test data contents_test_visible.
1662            (LoadSessionTest.setUp): save test data.
1663            (LoadSessionTest.testLayerVisibility): Test if the visible flag
1664            is loaded correctly.
1665    
1666            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
1667            for saving an invisible layer.
1668    
1669    2003-04-29  Jonathan Coles   <[email protected]>
1670    
1671            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
1672            legend dialog box and tell it to change its map to the one
1673            supplied to SetMap(). Fixes RTbug #1770.
1674    
1675  2003-04-29  Bernhard Herzog  <[email protected]>  2003-04-29  Bernhard Herzog  <[email protected]>
1676    
1677          Next step of table implementation. Introduce a transient database          Next step of table implementation. Introduce a transient database
# Line 51  Line 1725 
1725          once. Plus it introduces a reference cycle that keeps can keep the          once. Plus it introduces a reference cycle that keeps can keep the
1726          session object alive for a long time.          session object alive for a long time.
1727    
1728  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-29  Jonathan Coles   <[email protected]>
1729    
1730          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
1731          Projection an immutable item. Fixes RTbug #1825.          Projection an immutable item. Fixes RTbug #1825.

Legend:
Removed from v.766  
changed lines
  Added in v.1147

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26