/[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

trunk/thuban/ChangeLog revision 423 by frank, Thu Feb 20 16:23:59 2003 UTC branches/greater-ms3/thuban/ChangeLog revision 1407 by frank, Mon Jul 14 08:41:23 2003 UTC
# Line 1  Line 1 
1    2003-07-08  Bernhard Herzog  <[email protected]>
2    
3            Backport from HEAD
4    
5            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
6            constants in the column objects are the standard ones defined in
7            the table module.
8    
9            * test/test_transientdb.py
10            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
11            exporting transient tables as DBF works. This should catch the bug
12            just fixed in TransientTableBase.Width.
13    
14    2003-07-04  Bernhard Herzog  <[email protected]>
15    
16            Backport from HEAD
17    
18            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
19            function for table_to_dbf
20            (table_to_dbf): Deal with names longer than the 10 character limit
21    
22            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
23            doc-string
24            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
25            long column names
26    
27    2003-07-03  Bernhard Herzog  <[email protected]>
28    
29            Backport from HEAD
30    
31            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
32            Update doc-string
33            (TransientJoinedTable.create): Do not modify the column objects of
34            the input tables in place and copy all columns of the input tables
35            into the joined table after all.
36    
37            * test/test_transientdb.py
38            (TestTransientTable.test_transient_joined_table_same_column_name):
39            Update to reflect the new behavior
40            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
41            Update to reflect the new behavior
42            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
43            New test case for a bug which modified the column objects in place
44    
45    2003-07-01  Frank Koormann   <[email protected]>
46    
47            Partly backport from HEAD
48    
49            * test/test_transientdb.py
50            (TestTransientTable.test_transient_joined_table_same_column_name):
51            New. Test whether joining on columns with the same names in both
52            tables works.
53            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
54            New. Test join of two tables with partly equal column names.
55    
56            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
57            sure to use the right internal names even when joining on field
58            with the same names in both tables. Also, detect duplicate names
59            in the joined table correctly.
60            If duplicates are found, append '_' (underscores) to the name
61            until it is unique.
62            Create always new internal names for the resulting table and reference
63            columns in the join statement with <table>.<column>
64    
65    2003-07-01  Frank Koormann   <[email protected]>
66    
67            Backport from HEAD
68    
69            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
70            Reverse List of layers to render in same order as in desktop legend.
71    
72    2003-06-25  Jonathan Coles   <[email protected]>
73    
74            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
75            of the SelectPropertiesDialog should be self so the window
76            appears on top.
77            (ClassGroupPropertiesCtrl.DoEdit): The parent
78            of the SelectPropertiesDialog should be self so the window
79            appears on top.
80    
81    2003-06-18  Frank Koormann  <[email protected]>
82    
83            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
84            scale if projection is latlong to get better estimate.
85    
86    2003-06-17  Jonathan Coles   <[email protected]>
87                                                                                    
88            Backport from HEAD.
89    
90            The view should respond to layer projection
91            changed events to update the display. Changes to a projection
92            should not cause the map to be set to full extent.
93    
94            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
95            current_map_proj to remember the current map projection so that
96            when the projection changes we know what the previous projection
97            was.
98            (MapCanvas.SetMap): Unsubscribe and subscribe to
99            LAYER_PROJECTION_CHANGED events.
100            (MapCanvas.projection_changed): Split into two methods that respond
101            to map and layer projection changes.
102            (MapCanvas.map_projection_changed): New. Takes the current view and
103            projects it using the new projection. This does not cause the
104            map to be redrawn at full extent.
105            (MapCanvas.layer_projection_changed): New. Cause a redraw which
106            will draw each layer in its new projection.
107    
108    2003-06-16  Frank Koormann  <[email protected]>
109    
110            Fix problem of hidden properties dialog under windows after double
111            click on layer tree:
112            The tree control always gets an Expanded / Collapsed event after
113            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
114            raises the already displayed window.
115    
116            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
117            raiseProperties initialized to prevent endless loops
118            (LegendTree._OnItemActivated): Depending on self.raiseProperties
119            simply raise the properties or open the dialog and issue a second
120            event.
121    
122    2003-06-16  Frank Koormann  <[email protected]>
123    
124            * Thuban/UI/view.py (MapCanvas.set_view_transform): Set max_scale to
125            2147483648.0 / max_len (which is sufficient for GREAT-ER).
126            For HEAD in the future a more flexible concept has to be developed
127            determining the rendering of "large" objects.
128    
129    2003-06-16  Jonathan Coles   <[email protected]>
130    
131            Backport from HEAD.
132    
133        Fix a problem under Windows whereby if the user double-clicks on a
134        layer in the legend that tree item will expand or collapse as well
135        as open the layer properties dialog. The state of the tree item
136        should not be affected.
137    
138        * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
139        preventExpandCollapse and subscribe to expanding and collapsing
140        events.
141        (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
142        collapsing events and will veto the event if it has been triggered
143        by the user double clicking on a layer.
144        (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
145        that an expanding/collapsing event should be vetoed.
146            
147    2003-06-13  Bernhard Herzog  <[email protected]>
148    
149            Backport from HEAD.
150    
151            * Thuban/UI/classifier.py (Classifier.map_layers_removed)
152            (Classifier.layer_shapestore_replaced, Classifier.OnClose):
153            Unsubscribe the messages in OnClose and not in map_layers_removed
154            or layer_shapestore_replaced to make sure it always happens when
155            the dialog is closed.
156    
157    2003-06-13  Jonathan Coles   <[email protected]>
158    
159            [NOTE: This is a back-port from the current CVS head]
160    
161            This puts back a fix for Windows where a panel is needed so that
162            the background of the table view appears correctly.
163    
164            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
165            object that can be used by derived classes to place any
166            controls (including the grid) onto.
167            (QueryTableFrame.__init__): Use the panel as the parent window
168            for all the controls. Reparent the grid so that the panel is
169            the parent. Call UpdateStatusText() to correctly initialize
170            the status bar.
171    
172            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
173            from wxFrame (as opposed to wxDialog like the other classes)
174            but otherwise behaves like the other classes. This is needed
175            for the TableView which isn't really a dialog and needs to
176            have a status bar and control buttons.
177    
178            [NOTE: This is a back-port from the current CVS head]
179    
180            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
181            instance variable to keep track of how many rows are selected.
182            Subscribe once to the the events we are interested in.
183            (ThubanGrid.OnRangeSelect): Only handle event if event handling
184            hasn't been turned off.
185            (ThubanGrid.OnSelectCell): Only handle event if event handling
186            hasn't been turned off.
187            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
188            as an event listener (which changes the event handler stack)
189            simply set an instance variable to False. This is checked in
190            the event handlers.
191            (ThubanGrid.GetNumberSelected): Return the number of currently
192            selected rows.
193            (TableFrame): Inherit from ThubanFrame so we can have a
194            status bar and control buttons.
195            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
196            Explicitly set which items are selected in the operator choice and
197            action choice so there is always a valid selection. Fixes RTbug #1941.
198            Subscribe to grid cell selection events so we can update the
199            status bar.
200            (QueryTableFrame.UpdateStatusText): Update the status bar with
201            how many rows are in the grid, how many columns, and how many
202            rows are selected.
203            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
204            Call UpdateStatusText when cells are (de)selected.
205            (QueryTableFrame.OnQuery): Use the string value in the value
206            combo if either the selected item index is 0 or if the string
207            cannot be found in the predefined list (this happens if the
208            user changes the text). Fixes RTbug #1940.
209            Only turn off the grid event listeners if there a query comes
210            back with a none empty list of ids. in the case that the list
211            is empty this causes a grid.ClearSelection() call to actually
212            clear the grid selection which causes the selected items in
213            the map to be deselected. Fixes RTbug #1939.
214    
215    2003-06-13  Bernhard Herzog  <[email protected]>
216    
217            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
218            self.selected_shape with the current selection to make sure the
219            contents of the dialog are up to date when it's shown for the
220            first time.
221            The dialog used to work without this by luck. The recent fix to
222            the connector module 'broke' a 'feature' the identify view was
223            relying on, i.e that subscribing to a message in response to
224            receiving a message of that type would mean that the new
225            subscriber would also be called for the same message.
226    
227    2003-06-12  Jonathan Coles   <[email protected]>
228    
229            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
230            the scalebar if the current map has no projection set.
231    
232            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
233            projfilepath label to just the basename of the projection file
234            rather than include the entire path.
235    
236    2003-06-11  Frank Koormann  <[email protected]>
237    
238            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
239            update.
240    
241    2003-06-11  Frank Koormann  <[email protected]>
242    
243            * Thuban/Lib/fileutil.py (get_application_dir): New function to
244            determine the absolute .thuban/thuban directory under
245            "posix" (os.expanduser) and "nt" (read AppData registry key).
246    
247            * Thuban/Model/resource.py: Use get_application_dir
248    
249            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
250            Use get_application_dir.
251    
252    2003-06-10  Bernhard Herzog  <[email protected]>
253    
254            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
255            the messages MAP_LAYERS_REMOVED messages
256            (LayerTableFrame.OnClose): Unsubscribe from it.
257            (LayerTableFrame.map_layers_removed): New. Receiver for
258            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
259            dialog is showing is removed.
260    
261    2003-06-10  Bernhard Herzog  <[email protected]>
262    
263            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
264            of the receivers list so that unsubscribing in a receiver doesn't
265            modify it while iterating over it.
266    
267            * test/test_connector.py
268            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
269            unsubscribing in a receiver works correctly. See docstring for
270            details
271    
272    2003-06-10  Bernhard Herzog  <[email protected]>
273    
274            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
275            message.
276    
277            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
278            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
279            LAYER_CHANGED will still be sent if the classification changes.
280    
281            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
282            parameter so we can subscribe to some of its messages
283            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
284            and the layer's LAYER_SHAPESTORE_REPLACED
285            (Classifier.unsubscribe_messages): New. Unsubscribe from message
286            subscribed to in __init__
287            (Classifier.map_layers_removed)
288            (Classifier.layer_shapestore_replaced): receivers for the messages
289            subscribed to in __init__. Unsubscribe and close the dialog
290    
291            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
292            the map to the Classifier dialog
293    
294            * test/test_layer.py (SetShapeStoreTests): Derive from
295            SubscriberMixin as well so we can test messages
296            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
297            messages
298            (SetShapeStoreTests.tearDown): Clear the messages again
299            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
300            for the modified flag too
301            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
302            to check whether SetShapeStore sets the modified flag
303            (SetShapeStoreTests.test_set_shape_store_different_field_name)
304            (SetShapeStoreTests.test_set_shape_store_same_field)
305            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
306            Add tests for the messages. This checks both the new
307            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
308    
309    2003-06-06  Jan-Oliver Wagner <[email protected]>
310    
311            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
312            the menu items.
313    
314    2003-06-05  Frank Koormann  <[email protected]>
315    
316            * Thuban/UI/identifyview.py (IdentifyView.__init__):
317            Layout reimplemented without panel. Make life easier to fit the list
318            in the dialog.
319    
320    2003-06-05  Frank Koormann  <[email protected]>
321    
322            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
323            once on initialisation (Former implementation resulted in multiple
324            entries for each projection).
325            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
326            if set, select the projection found under the specified name. This
327            overwrites any other selection estimate.
328            Removed projchoice filling from this method.
329            (ProjFrame._OnSave, ProjFrame._OnAddToList):
330            Updated call of ProjFrame.__FillAvailList
331            (LCCPanel._DoLayout): Moved parameter controls in more common order.
332    
333            * Resources/Projections/defaults.proj: Extended defaults representing
334            various common European projections.
335    
336    2003-06-05  Frank Koormann  <[email protected]>
337    
338            * Thuban/UI/identifyview.py (IdentifyView.__init__):
339            Use ListCtrl instead of GridCtrl
340    
341            * Thuban/Model/resource.py:
342            Guess location of .thuban directory from tempdir parent directory.
343    
344            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
345            Guess location of .thuban directory from tempdir parent directory.
346    
347    2003-06-04  Bernhard Herzog  <[email protected]>
348    
349            Do not cache the values returned by the tree widget's
350            GetFirstChild and GetNextChild methods because it led to lots of
351            segfaults. The new way requires more brute force but is more
352            reliable.
353    
354            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
355            variable layer2id
356            (LegendTree.find_layer): New method to do with brute force what
357            layer2id tried to accomplish
358            (LegendTree._OnMsgLayerChanged)
359            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
360            Use find_layer instead of layer2id
361            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
362            update layer2id anymore
363            (LegendTree._OnMsgMapLayersRemoved)
364            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
365    
366    2003-06-03  Thomas Koester  <[email protected]>
367    
368            * Thuban/Model/classgen.py (GenQuantiles0): New function.
369    
370    2003-06-02  Bernhard Herzog  <[email protected]>
371    
372            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
373            New commands.
374            (main_menu): Add the new commands.
375            (MainWindow.TableRename): New. Implementation of the table_rename
376            command.
377            (MainWindow.RenameLayer): New. Implementation of the layer_rename
378            command.
379    
380            * Thuban/Model/session.py (Session.AddTable): call self.changed to
381            set the modified flag
382    
383            * test/test_session.py (TestSessionSimple.test_add_table): Test
384            whether the modified flag is set properly
385    
386            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
387            instead of issue so that the modified flags get updated.
388    
389            * test/test_base.py (SomeTitledObject): Derive from Modifiable
390            instead of Publisher to reflect reality better and to accomodate
391            the fact that SetTitle now calls changed instead of issue
392    
393    2003-06-02  Bernhard Herzog  <[email protected]>
394    
395            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
396            acquisition has to happen before the try in a try-finally.
397    
398    2003-06-02  Bernhard Herzog  <[email protected]>
399    
400            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
401            possible that a layer is removed that is not currently selected in
402            the legend so don't check for this.
403    
404    2003-05-30  Bernhard Herzog  <[email protected]>
405    
406            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
407            variables to None that have direct or indirect references to
408            shapefiles or dbf files to make sure that they do go away and the
409            files are closed.
410    
411    2003-05-30  Bernhard Herzog  <[email protected]>
412    
413            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
414            availImgListIndices when a new image list is created
415            
416    2003-05-30  Bernhard Herzog  <[email protected]>
417    
418            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
419            changing_selection to indicate whether the LegendTree code itself
420            is currently changing the selection
421            (LegendTree.normalize_selection): New method to normalize the
422            selection by selecting the layer item even if the user clicked on
423            the classification.
424            (LegendTree._OnSelChanged): normalize the selection. This works
425            around a bug in wx which doesn't keep track of the selection
426            properly when subtrees are deleted.
427    
428    2003-05-30  Bernhard Herzog  <[email protected]>
429    
430            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
431            maximum and minimum scale factors.
432    
433            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
434            changes in classgen.py
435    
436    2003-05-30  Jonathan Coles   <[email protected]>
437    
438            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
439            all the methods functions. Fixes RTBug #1903.
440    
441            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
442            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
443            RTBug #1907.
444    
445            * Thuban/UI/classgen.py: Use classgen functions that were part
446            of the ClassGenerator class. Put try/finally blocks around
447            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
448            RTBug #1904.
449    
450            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
451    
452            * Thuban/UI/legend.py: The legend was cleared and repopulated any
453            time something changed which caused some state to be lost such
454            as which children were expanded or collapsed. Fixes RTBug #1901.
455            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
456            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
457            the legend but not in the map.
458            (LegendTree.__FillTree): Move main functionality out into smaller
459            methods that can be used by other methods.
460            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
461            if they are available.
462            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
463            that we override the wxTreeCtrl method. Iterate over children
464            and call __RemoveLayer.
465            (LegendTree.__AddLayer): New. Add a new layer to the legend.
466            (LegendTree.__RemoveLayer): Remove a layer from the legend.
467            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
468            Should only be called with the id of a layer branch.
469            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
470            Returns the root item or creates one if necessary.
471    
472            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
473            ProjectRasterFile with tuple arguments instead of strings.
474    
475            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
476            with try/finally. Fixes RTBug #1904.
477    
478            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
479            with try/finally. Fixes RTBug #1904.
480            (MapCanvas.FitSelectedToWindow): If a single point is selected
481            simply center it on the display. Fixes RTBug #1849.
482    
483            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
484            to be compiled as a standalone app. Now the code can only be
485            called from Python which simplifies the parameter passing.
486            (ProjectRasterFile): Handle Python arguments. Remove code that
487            checks for a destination dataset. Add more clean up code.
488    
489            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
490            TestMapWithContents.test_lower_layer_bottom):
491            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
492            Fixes RTBug #1907.
493    
494            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
495            extent to the map when the legend is toggled. Fixes RTBug #1881.
496    
497    2003-05-29  Jan-Oliver Wagner <[email protected]>
498    
499            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
500            unsubscribes all that is subcribed in __init__.
501    
502    2003-05-28  Bernhard Herzog  <[email protected]>
503    
504            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
505            (MainWindow.CanDuplicateLayer): New methods to implement the
506            Layer/Duplicate command.
507            (layer_duplicate command): New.
508            (main_menu): Add layer_duplicate to the Layer menu.
509    
510    2003-05-28  Bernhard Herzog  <[email protected]>
511    
512            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
513            renderer so that NULL/None values get displayed differently (by a
514            gray rectangle).
515            (TableGrid.__init__): Override the default renderers
516    
517    2003-05-28  Bernhard Herzog  <[email protected]>
518    
519            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
520            classification to "None" if the type of the field has changed.
521    
522            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
523            test for the Layer.SetShapeStore method
524    
525    2003-05-28  Jan-Oliver Wagner <[email protected]>
526    
527            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
528            does not necessarily have a filename).
529    
530    2003-05-28  Jan-Oliver Wagner <[email protected]>
531    
532            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
533            sort the selection list for the dialog.
534    
535    2003-05-28  Frank Koormann  <[email protected]>
536    
537            * extensions/thuban/wxproj.cpp
538            (project_point): Removed cast to int for projected point coordinates.
539            (shape_centroid): Return last point if all polygon vertices fall
540            to one point.
541    
542    2003-05-28  Bernhard Herzog  <[email protected]>
543    
544            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
545            with layers that don't have shapestores, i.e. raster layers.
546    
547    2003-05-28  Bernhard Herzog  <[email protected]>
548    
549            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
550            when determining the title from the filename.
551    
552            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
553            reflect changes in the way the title is derived from the filename
554    
555    2003-05-28  Frank Koormann  <[email protected]>
556    
557            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
558            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
559    
560    2003-05-27  Bernhard Herzog  <[email protected]>
561    
562            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
563            delegate SelectedLayer.
564            (MainWindow.LayerUnjoinTable): Implement.
565            (_can_unjoin): New. Helper function for the sensitivity of the
566            layer/unjoin command.
567    
568            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
569            (DerivedShapeStore.OrigShapeStore): New. Return the original
570            shapestore. Used to figure out how to unjoin.
571            (DerivedShapeStore.Shapefile): Fix a typo.
572    
573    2003-05-27  Bernhard Herzog  <[email protected]>
574    
575            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
576            well
577            (JoinDialog.__init__): Use the layer parameter and only build the
578            left choice when a layer is given
579            (JoinDialog.OnJoin): Handle layer joins as well
580            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
581            that the user selects the "Select..." item. The sensitivitly
582            updating is now in update_sensitivity
583            (JoinDialog.y): New method to refactor the sensitivity update of
584            the join button into its own method.
585    
586            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
587    
588    2003-05-27  Bernhard Herzog  <[email protected]>
589    
590            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
591            iff there are unreferenced tables in the session
592    
593    2003-05-27  Bernhard Herzog  <[email protected]>
594    
595            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
596    
597            * Thuban/Model/session.py (Session.UnreferencedTables): New method
598            to return tables that are not referenced by other tables or shape
599            stores and can be removed.
600            (Session.RemoveTable): Issue a TABLE_REMOVED message after
601            removing the table
602    
603            * Thuban/UI/mainwindow.py: Remove unused imports
604            (MainWindow.TableClose): Implement.
605    
606            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
607            messages so that the frame will be automatically closed when a new
608            session is opened or the table is removed.
609            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
610            __init__
611            (TableFrame.close_on_session_replaced)
612            (TableFrame.close_on_table_removed): New. Subscribers that close
613            the window
614    
615            * test/test_session.py (TestSessionMessages.test_remove_table)
616            (TestSessionSimple.test_remove_table): Move the test to
617            TestSessionSimple and add test for the TABLE_REMOVED message
618            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
619            (TestSessionSimple.test_unreferenced_tables) New. Test for the
620            UnreferencedTables method.
621            (UnreferencedTablesTests): New. Class with some more sophisticated
622            tests for UnreferencedTables.
623    
624    2003-05-27  Frank Koormann  <[email protected]>
625    
626            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
627            display has some unwanted side effects. Removed again.
628    
629    2003-05-27  Frank Koormann  <[email protected]>
630    
631            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
632    
633            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
634    
635    2003-05-27  Jan-Oliver Wagner <[email protected]>
636    
637            * test/test_menu.py (MenuTest.test): Added test for
638            Menu.RemoveItem().
639    
640            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
641            the menu.
642    
643    2003-05-27  Frank Koormann  <[email protected]>
644            
645            Nonmodal dialogs without parent (i.e. they can fall behind the main
646            window)
647    
648            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
649            all dialogs in the dialogs dictionary and the canvas.
650    
651            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
652            parent, i.e. can fall behind other windows.
653            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
654            dictionary before removing it.
655    
656            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
657    
658            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
659            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
660            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
661    
662    2003-05-27  Bernhard Herzog  <[email protected]>
663    
664            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
665            tableview dialog
666            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
667            Also, don't use the table's titles as the dialog names. The titles
668            aren't guaranteed to be unique.
669            (MainWindow.TableOpen): Open a table view dialog after opening the
670            table
671    
672    2003-05-27  Bernhard Herzog  <[email protected]>
673    
674            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
675            effect can be achieved by simply closing the window showing the
676            table.
677            (MainWindow.TableHide): Removed.
678            (main_menu): Removed "table_hide"
679    
680    2003-05-27  Frank Koormann  <[email protected]>
681    
682            Fix legend tree display problems under Win32
683    
684            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
685            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
686            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
687    
688            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
689    
690    2003-05-27  Jan-Oliver Wagner <[email protected]>
691    
692            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
693            'after' now allows to insert separators almost anywhere in the menu.
694    
695    2003-05-27  Frank Koormann  <[email protected]>
696    
697            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
698            "S" of selection box label to hint on hot key (Alt-S). Works under
699            Win32 but is ignored under GTK.
700    
701    2003-05-26  Frank Koormann  <[email protected]>
702    
703            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
704            Center Choices.
705    
706    2003-05-26  Bernhard Herzog  <[email protected]>
707    
708            Remove the Precision methods again. They're too DBF specific to be
709            part of the table interface and they're only used in table_to_dbf
710            anyway.
711            
712            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
713            fixed precision of 12 for doubles.
714            (TransientTableBase.Precision): Removed
715            (AutoTransientTable.Width): Delegate to self.table.
716    
717            * Thuban/Model/table.py (DBFTable.Precision)
718            (MemoryTable.Precision): Removed.
719            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
720            (table_to_dbf): Use a fixed precision of 12 for floats unless the
721            column object specifies something else.
722    
723            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
724            test for table_to_dbf
725    
726    2003-05-26  Bernhard Herzog  <[email protected]>
727    
728            * test/test_transientdb.py
729            (TestTransientTable.run_iceland_political_tests): Fix a comment.
730    
731    2003-05-26  Bernhard Herzog  <[email protected]>
732    
733            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
734            implementation. Mark parts of the file format strings for
735            localization.
736    
737            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
738            file and add the table to the tables managed by the session
739    
740            * test/test_session.py (TestSessionSimple.test_open_table_file):
741            New. test case for OpenTableFile
742    
743    2003-05-26  Jan-Oliver Wagner <[email protected]>
744    
745            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
746            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
747            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
748            Replace the true/false of wxWindows by True/False of Python 2.2.1.
749    
750    2003-05-26  Jan-Oliver Wagner <[email protected]>
751    
752            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
753            already a selection present, update the grid accordingly.
754    
755            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
756            resizeable and increase its initial size.
757    
758    2003-05-26  Frank Koormann  <[email protected]>
759    
760            Table export functionality
761    
762            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
763            Return width (in characters) for a column.
764            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
765            (table_to_dbf): Write table to dbf file.
766            (table_to_csv): Write table to csv file.
767    
768            * Thuban/Model/transientdb.py (TransientTableBase.Width,
769            TransientTableBase.Precision): Return column width and precision.
770    
771            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
772            or table_to_csv depending on file selection.
773    
774            * test/test_dbf_table.py:
775            Test table_to_dbf (extension of former part of test).
776    
777            * test/test_csv_table.py:
778            Test table_to_csv.
779    
780    2003-05-23  Jan-Oliver Wagner <[email protected]>
781    
782            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
783            Use QueryTableFrame instead of TableFrame.
784    
785            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
786            table window with 'Layer Table:' instead of 'Table:'.
787    
788    2003-05-23  Jan-Oliver Wagner <[email protected]>
789    
790            Give all tables a title via mix-in TitledObject.LayerShowTable
791    
792            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
793            only if it exists.
794    
795            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
796            and call its init-method with a default title. Remove Title() method.
797    
798            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
799            AutoTransientTable): mix-in TitledObject and call its init-method with
800            a default title. Remove Title() method.
801    
802    2003-05-23  Bernhard Herzog  <[email protected]>
803    
804            * Thuban/Model/session.py (Session.AddShapeStore): Define
805            AddShapeStore analogously to AddTable.
806    
807            * test/test_session.py (TestSessionSimple.test_add_shapestore):
808            New. Test for AddShapeStore
809    
810    2003-05-23  Jan-Oliver Wagner <[email protected]>
811    
812            Introducing QueryTableFrame and a very coarse ShowTable implementation.
813    
814            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
815            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
816            The latter implements the selection GUI without dependency on a layer.
817            LayerTableFrame now is derived from QueryTableFrame and connects
818            to a layer.
819    
820            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
821            implementation that still needs work.
822    
823            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
824    
825    2003-05-22  Frank Koormann  <[email protected]>
826    
827            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
828            Added "outer_join = False" as optional parameter.
829            (TransientJoinedTable.create): If outer join is true, perform a
830            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
831            the left table. Records not matching are filled with 0 / None.
832    
833            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
834            (JoinDialog.OnJoin): Consider outer join check box.
835    
836    2003-05-22  Bernhard Herzog  <[email protected]>
837    
838            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
839            somewhat safer way. Storing the traceback in a local variable can
840            lead to memory leaks
841    
842    2003-05-22  Bernhard Herzog  <[email protected]>
843    
844            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
845            the wxMessageDialog's Destroy() method.
846    
847    2003-05-22  Frank Koormann  <[email protected]>
848    
849            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
850            TransientTable.Title()
851    
852    2003-05-22  Frank Koormann  <[email protected]>
853    
854            Join Dialog, initial version.
855    
856            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
857    
858            * Thuban/UI/join.py (JoinDialog): Functional implementation of
859            former framework. Renamed Table1/Table2 to LeftTable/RightTable
860            in all occurences.
861    
862            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
863            Typo fixed.
864    
865    2003-05-22  Bernhard Herzog  <[email protected]>
866    
867            Give the tables titles so that the GUI can display more meaningful
868            names. For now the titles are fixed but depend on e.g. filenames
869            or the titles of the joined tables.
870    
871            * Thuban/Model/transientdb.py (TransientTable.Title)
872            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
873    
874            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
875    
876            * test/test_transientdb.py
877            (TestTransientTable.test_auto_transient_table_title): New. Test
878            for the Title method
879            (TestTransientTable.test_transient_joined_table)
880            (TestTransientTable.test_transient_table): Add test for the Title
881            methods
882    
883            * test/test_memory_table.py (TestMemoryTable.test_title): New.
884            Test for the Title method
885    
886            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
887            the Title method
888    
889    2003-05-22  Bernhard Herzog  <[email protected]>
890    
891            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
892            Provide a better way to destroy the layers
893            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
894            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
895            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
896            the new way to destroy the layers.
897            (TestLayer.test_derived_store): New. Test for using a layer with a
898            DerivedShapeStore
899    
900            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
901            filename if the shape store actually has one.
902    
903    2003-05-22  Bernhard Herzog  <[email protected]>
904    
905            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
906            for the filename
907    
908            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
909            for the FileName method
910            (TestDBFTableWriting.test_write): Fix spelling of filename
911    
912    2003-05-22  Thomas Koester  <[email protected]>
913    
914            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
915            from SciParam that now really is immutable.
916    
917    2003-05-22  Frank Koormann  <[email protected]>
918    
919            Layer Top/Bottom placement added to legend.
920    
921            * Thuban/UI/legend.py
922            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
923            bound to tool events.
924            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
925            New, methods binding the event methods with the map methods.
926    
927            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
928            layer at top/bottom of layer stack.
929    
930            * Resources/Bitmaps/top_layer.xpm: New button icon.
931    
932            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
933    
934    2003-05-22  Bernhard Herzog  <[email protected]>
935    
936            * Thuban/Model/session.py (Session.RemoveTable): New method to
937            remove tables
938    
939            * test/test_session.py (TestSessionSimple.test_remove_table): New.
940            Test for RemoveTable
941    
942    2003-05-22  Thomas Koester  <[email protected]>
943    
944            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
945            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
946    
947    2003-05-22  Bernhard Herzog  <[email protected]>
948    
949            Implement a way to discover dependencies between tables and
950            shapestores.
951    
952            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
953            (TransientJoinedTable.Dependencies)
954            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
955            interface
956            (TransientJoinedTable.__init__): Keep tack of the original table
957            objects in addition to the corresponding transient tables.
958    
959            * Thuban/Model/table.py (DBFTable.Dependencies)
960            (MemoryTable.Dependencies): New. Implement the dependencies
961            interface
962    
963            * Thuban/Model/data.py (ShapeTable): New. Helper class for
964            ShapefileStore
965            (ShapefileStore.__init__): Use ShapeTable instead of
966            AutoTransientTable
967            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
968            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
969            methods for filename and type
970            (ShapefileStore.Dependencies): New. Implement the dependencies
971            interface
972            (DerivedShapeStore): New class to replace SimpleStore. The main
973            difference to SimpleStore is that it depends not on a shapefile
974            but another shapestore which expresses the dependencies a bit
975            better
976            (SimpleStore.__init__): Add deprecation warning.
977    
978            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
979            Test for the Dependencies method.
980    
981            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
982            New. Test for the Dependencies method.
983    
984            * test/test_transientdb.py
985            (TestTransientTable.test_auto_transient_table_dependencies): New.
986            Test for the Dependencies method.
987            (TestTransientTable.test_transient_joined_table): Add test for the
988            Dependencies method.
989    
990            * test/test_session.py (TestSessionSimple.setUp)
991            (TestSessionSimple.tearDown): New. Implement a better way to
992            destroy the sessions.
993            (TestSessionSimple.test_initial_state)
994            (TestSessionSimple.test_add_table): Bind session to self.session
995            so that it's destroyed by tearDown
996            (TestSessionSimple.test_open_shapefile): New. Test for
997            OpenShapefile and the object it returns
998    
999    2003-05-22  Bernhard Herzog  <[email protected]>
1000    
1001            * Thuban/Model/session.py (Session.AddTable): New method to
1002            register tables with the session.
1003            (Session.Tables): Return the tables registered with AddTable too.
1004    
1005            * test/test_session.py (TestSessionSimple.test_add_table): New.
1006            Test case for the AddTable method
1007    
1008    2003-05-22  Frank Koormann  <[email protected]>
1009    
1010            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
1011            lower right corner, center labels for selections, initialize controls
1012            in reasonable order for keyboard navigation.
1013    
1014            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
1015            (ProjFrame.__DoOnProjAvail): Determine position of current projection
1016            using the wxListBox.FindString() method. Still a problem (#1886)
1017    
1018            * Thuban/UI/classifier.py
1019            (Classifier.__init__, SelectPropertiesDialog.__init__)
1020    
1021            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
1022            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
1023            different classification types from here to __init__.
1024            (GenUniquePanel.__init__): Set the column width of the first field
1025            in the Field ListCtrl to the full width.
1026    
1027            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
1028            Button to 'Export'. Center Buttons in Selection Box, set Focus to
1029            Grid.
1030            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
1031            changes focus to the Selection when pressing "Alt-S".
1032    
1033            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
1034            the text if not visible. The italic font sometimes exceeds the
1035            rendering area.
1036    
1037    2003-05-21  Jonathan Coles   <[email protected]>
1038    
1039            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
1040            to OnClose so that Thuban closes correctly.
1041    
1042            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
1043            DockFrame.OnClose, not DockFrame._OnClose.
1044    
1045    2003-05-21  Jonathan Coles   <[email protected]>
1046    
1047            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
1048            references to 'inf' and use new Range __init__ to pass floats
1049            directly rather than converting them to strings first.
1050            Fixes RTBug #1876.
1051    
1052            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
1053            Use new Range ___init__ to pass floats.
1054    
1055            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
1056            filename is a valid image file. Throw IOError otherwise.
1057    
1058            * Thuban/Model/range.py: Brought over new Range from SciParam that
1059            is immutable and has an __init__ which can accept floats.
1060    
1061            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
1062            into try block. AddLayer doesn't throw any exceptions anymore.
1063            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
1064            try block.
1065    
1066            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
1067            the first item in choices. Fixes RTBug #1882.
1068    
1069            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
1070            has gone to 0 which is a serious problem. abort.
1071            (MapRenderer.draw_raster_layer): Catch IOError seperately and
1072            print the error from GDAL.
1073    
1074            * Thuban/UI/tableview.py (TableGrid.__init__): Call
1075            ToggleEventListeners to turn on listening.
1076            (TableGrid.ToggleEventListeners): New. Turns event listening on
1077            and off so as to prevent excessive messages.
1078            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
1079            to suppress excessive messages when selecting many rows.
1080            Fixes RTBug #1880.
1081    
1082            * Thuban/UI/view.py: Added checks against if scale == 0. This
1083            is a serious problem that can occur when an image without
1084            geo data is loading and causes the map projection bounds to
1085            go to infinity. Right now, the solution is to simply try
1086            to recover.
1087    
1088            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
1089            to set the MFILEReceiver attributes even if the data is NULL.
1090    
1091            * extensions/thuban/gdalwarp.cpp: Improved the error handling
1092            and passed GDAL messages back up to the Python layer. Also
1093            tried to fix some memory leaks that were present in the original
1094            utility but didn't matter because the program aborted.
1095    
1096            * test/test_range.py: Copied over tests from SciParam. Removed
1097            tests against importing. Fixes RTBug #1867.
1098    
1099    2003-05-21  Bernhard Herzog  <[email protected]>
1100    
1101            * test/test_load.py: Remove unused imports and restructure the
1102            test code
1103            (LoadSessionTest): Split into one class for each test and turn
1104            LoadSessionTest itself into the base class for all such session
1105            tests.
1106            (ClassificationTest): New base class for load tests that test
1107            classifications
1108            (TestSingleLayer, TestLayerVisibility, TestClassification)
1109            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
1110            for the individual tests
1111    
1112            * test/support.py (FileLoadTestCase.filename): New base class for
1113            file loading tests
1114    
1115    2003-05-21  Jan-Oliver Wagner <[email protected]>
1116    
1117            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
1118            Mercator' to 'UTM Zone 32' as a more convenient example.
1119            Added 'Gauss Krueger Zone 6'.
1120    
1121            * Data/iceland_sample_raster.thuban: political polygon now
1122            filled transparent to have the raster image visible at once.
1123    
1124    2003-05-21  Frank Koormann  <[email protected]>
1125    
1126            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
1127            OnClose() to keep in sync with extensions. Internally Thuban
1128            still uses "underscored" names.
1129    
1130    2003-05-20  Jonathan Coles   <[email protected]>
1131    
1132            This puts back Raster layer support. These layers support projections
1133            through the GDAL library. Currently, the CVS version is being used.
1134            There are no Debian packages available although this may change soon.
1135            A GDAL driver was extended to support writing to memory rather to
1136            files.
1137    
1138            There is still some work that needs to be done, such as some error
1139            handling when loading invalid images or when there is a problem
1140            projecting the image. This putback simply checks in the majority
1141            of the work.
1142    
1143            * setup.py: Add gdalwarp library extension.
1144    
1145            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
1146            Defaults to False, but can be overridden by subclasses if they
1147            support classification.
1148            (RasterLayer): New. Defines a new layer that represents an
1149            image.
1150    
1151            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
1152            tag handler.
1153            (SessionLoader.start_layer): Encode the filename.
1154            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
1155            New. Supports reading a rasterlayer tag.
1156    
1157            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
1158    
1159            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
1160            get a string in Latin1. If we get such as string convert it to
1161            unicode first, otherwise leave if alone before encoding.
1162            (SessionSaver.write_layer): Add support for writing both Layers
1163            and RasterLayers.
1164    
1165            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
1166            The right argument may not be a string, it could also be a Column.
1167    
1168            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
1169            Make initial window size 600x400. Fixes RTBug #1872.
1170    
1171            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
1172            the dialog is constructed so that we can support layers that
1173            do not have classifications.
1174            (Classifier._OnTry): Only build a classification if the layer
1175            supports one.
1176    
1177            * Thuban/UI/legend.py: Change all checks that a layer is an
1178            instance of Layer into checks against BaseLayer.
1179            (LegendTree.__FillTreeLayer): Only add children to a branch if
1180            the layer supports classification.
1181    
1182            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
1183            MainWindow.OpenSession): Don't proceed with an action if the
1184            user chooses Cancel when they are asked to save changes.
1185            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
1186            user to select an image file. Create a new RasterLayer and add
1187            it to the map.
1188    
1189            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
1190            for rendering RasterLayer layers.
1191            (MapRenderer.draw_raster_layer): Actually method that calls
1192            the GDALWarp python wrapper and constructs an image from the
1193            data returned.
1194    
1195            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
1196            Choices symbols to match those used in the table query method.
1197            Replace deprecated method calls on table with new method names.
1198    
1199            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
1200            how small the scale can get. This still needs more testing.
1201    
1202            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
1203            Provides a driver to output in .bmp format.
1204    
1205            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
1206            New. Provides IO routines which write to memory, rather than a file.
1207    
1208            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
1209            of the gdalwarp utility provided in GDAL. Added function calls
1210            that can be accessed from python.
1211    
1212            * Data/iceland_sample_raster.thuban: New. Sample file that uses
1213            a raster layer.
1214    
1215            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
1216            layer image data.
1217    
1218            * Doc/thuban.dtd: Added rasterlayer attribute definition.
1219    
1220            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
1221            tests associated with the raster layer code.
1222    
1223            * test/test_transientdb.py
1224            (TestTransientTable.test_auto_transient_table_query): Added a test
1225            for using a Column object as the "right" parameter to a query.
1226    
1227    2003-05-19  Frank Koormann  <[email protected]>
1228    
1229            * Thuban/version.py (get_changelog_date):
1230            Catch exceptions if ChangeLog does not exist.
1231    
1232            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
1233    
1234    2003-05-19  Frank Koormann  <[email protected]>
1235    
1236            Extended version information for Thuban
1237    
1238            * Thuban/version.py: New, version information for Thuban: Last
1239            modification date and last ChangeLog entry date.
1240    
1241            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
1242            information: Display Thuban, wxPython and Python version.
1243    
1244    2003-05-16  Bernhard Herzog  <[email protected]>
1245    
1246            * Thuban/Model/save.py: Remove some unused imports including the
1247            __future__ import for nested_scopes as Thuban relies on Python 2.2
1248            now.
1249            (XMLWriter.encode): Remove the special case for a None argument.
1250            In the saver encode is always called with a string argument.
1251    
1252    2003-05-16  Bernhard Herzog  <[email protected]>
1253    
1254            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
1255            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
1256            of the bug was that e.g. float("1.2") would fail. Thuban now
1257            requires 2.4.x.
1258            
1259    2003-05-16  Frank Koormann   <[email protected]>
1260    
1261            Printing enhancement and WMF export (under Win32)
1262    
1263            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
1264            ScreenRenderer. Renders Map, Legend and Scalebar for export.
1265            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
1266            PrintRender.
1267    
1268            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
1269            to fullfil information needed for PrinterRenderer.
1270            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
1271            (MapCanvas.Print): Adapted to new MapPrintout.
1272            (OutputTransform): General calculations to transform from canvas
1273            coordinates to export/printing devices.
1274    
1275            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
1276            new method_command to call ExportMap, with platform dependency (only
1277            __WXMSW__)
1278      
1279            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
1280            of scalebar drawing area as new parameters.
1281            
1282            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
1283    
1284            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
1285            Update to extended scalebar.DrawScalebar header.
1286    
1287            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
1288    
1289            * test/test_scalebar.py: Made test executable as standalone.
1290    
1291    2003-05-16  Bernhard Herzog  <[email protected]>
1292    
1293            * Thuban/Model/table.py (Table): Remove this compatibility alias
1294            for DBFTable.
1295    
1296            * test/test_table.py: Import DBFTable as Table because that alias
1297            doesn't exist anymore.
1298    
1299            * Thuban/UI/classgen.py: Remove some unused imports
1300    
1301    2003-05-14  Jonathan Coles   <[email protected]>
1302    
1303            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
1304            Fix docstring.
1305            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
1306            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
1307            values of the supplied range to determine the beginning and end
1308            bounds of the generated classes.
1309    
1310            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
1311            do not have a leading 0 (.5 is now accepted as well as 0.5).
1312    
1313            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
1314            call to ClassGenerator.GenUniformDistribution.
1315    
1316            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
1317            layout bug with the 'Projection' label.
1318    
1319            * test/support.py (FloatTestCase): New. Needed for the Range tests.
1320    
1321            * test/test_range.py: New. Imported from SciParam.
1322    
1323    2003-05-12  Jonathan Coles   <[email protected]>
1324    
1325            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
1326            to table.UniqueValues() with calls that retrieve all the values
1327            from the table. This will need to be replaced by a method on table
1328            which can simply return the list (perhaps more efficiently).
1329    
1330    2003-05-12  Jonathan Coles   <[email protected]>
1331    
1332            The return value of ClassGenerator.CalculateQuantiles has changed.
1333            Refer to the documentation for details.
1334    
1335            * test/test_classgen.py: Modified Quantile tests to use the
1336            new return values.
1337    
1338            * Thuban/Model/classgen.py
1339            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
1340            use new return values from CalculateQuantiles to produce the correct
1341            range bounds in the Classification.
1342            (ClassGenerator.CalculateQuantiles): Add more comments describing
1343            the return values and parameters. Make minor adjustments to improve
1344            the legibility of the code. Fix problem with adjusted not being set
1345            in most cases.
1346    
1347    2003-05-12  Frank Koormann <[email protected]>
1348            
1349            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
1350            and latin1. Fixes #1851 finally.
1351    
1352    2003-05-09  Jonathan Coles   <[email protected]>
1353    
1354            * test/test_classgen.py: New. Tests the Quantile algorithm.
1355    
1356            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
1357            Clean up debugging statement, add comments, fix a small bug in the
1358            returned adjusted percentiles.
1359            
1360    2003-05-09  Jonathan Coles   <[email protected]>
1361    
1362            Introduces Range class from SciParam into the ClassGroupRange class,
1363            and such ranges can now be saved and loaded from disk.
1364    
1365            Quantiles are now available in the Classification Generator.
1366    
1367            Initial support for building Queries on a table. Doesn't do anything
1368            but run some tests.
1369    
1370            * Thuban/Model/classification.py: Explicit imports.
1371            (ClassGroupRange): Use the Range class to store the underlying
1372            range information. The interface remains the same, except for
1373            GetRange(), and you can also supply a Range object as the min
1374            parameter to SetRange or __init__.
1375    
1376            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
1377            string appropriately for use in Thuban. Fixes RTbug #1851.
1378            (SessionLoader.end_projection): Handle the context of the
1379            projection tag a bit better by looking at what objects are not
1380            None. There was an assumption that a projection tag for a map
1381            could occur before any layers.
1382            (SessionLoader.start_clrange): Provide backward compatibility for
1383            reading min/max values as well as the new range parameter.
1384    
1385            * Thuban/Model/map.py: Explicit imports.
1386    
1387            * Thuban/Model/resource.py: Import _.
1388            (ProjFileSaver.write): write header using projfile.dtd.
1389    
1390            * Thuban/Model/save.py: Explicit imports.
1391            (XMLWriter.encode): New. Encode the given string from a format
1392            used by Thuban into UTF-8. Fixes RTbug #1851.
1393    
1394            * Thuban/UI/classgen.py: Explicit imports.
1395            (ClassGenDialog.__init__): Clean up the code and add support
1396            for Quantiles.
1397            (ClassGenDialog.OnOK): Add support for Quantiles.
1398            (GenQuantilesPanel): New. Input panel for Quantiles.
1399            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
1400            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
1401    
1402            * Thuban/Model/classgen.py: New. Contains all the classes named above.
1403    
1404            * Thuban/UI/classifier.py: Explicit imports.
1405            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
1406            ClassTable.SetValueAsCustom): Reworked to use new Range class.
1407    
1408            * Thuban/UI/legend.py: Explicit imports.
1409    
1410            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
1411            a Table menu and associated method calls.
1412            (MainWindow.choose_color): Removed. No longer needed.
1413    
1414            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
1415            should be disabled if no projection is selected in the available
1416            list.
1417    
1418            * Thuban/UI/renderer.py: Explicit imports.
1419    
1420            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
1421            with correctly selecting the rows and issuing the right events.
1422            Be sure to call Skip() to allow the grid to do some of its own
1423            handling which allows the rows to actually be selected.
1424            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
1425            selecting multiple shapes.
1426            (LayerTableFrame): Support for building Queries.
1427            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
1428    
1429            * Thuban/UI/tree.py: Explicit imports.
1430    
1431            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
1432            table view can call it.
1433    
1434            * test/test_classification.py: Explicit imports.
1435            (TestClassification.test_ClassGroupRange): Fix test for new
1436            Range class.
1437    
1438            * Doc/thuban.dtd: Add range parameter for clrange.
1439    
1440            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
1441            object in ClassGroupRange, and also uesd for inputting ranges in
1442            the classifer table and elsewhere.
1443    
1444            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
1445            yet.
1446    
1447    2003-05-09  Frank Koormann <[email protected]>
1448    
1449            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
1450    
1451    2003-05-08  Frank Koormann <[email protected]>
1452    
1453            Coding style updates
1454    
1455            * test/test_scalebar.py: Replaced tab indentation by spaces.
1456    
1457            * Thuban/UI/scalebar.py: Explicit imports.
1458    
1459    2003-05-08  Frank Koormann <[email protected]>
1460    
1461            * Thuban/UI/scalebar.py
1462            (ScaleBar.DrawScalebar): Format string bug fixed.
1463    
1464    2003-05-08  Frank Koormann <[email protected]>
1465    
1466            Reorganization of scalebar component (no wx in Thuban/Model)
1467    
1468            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
1469            (deriveInterval):
1470            Calculate scalebar interval and unit which fits in width for scale.
1471            (roundInterval): Round float.
1472    
1473            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
1474    
1475            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
1476    
1477            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
1478    
1479    2003-05-08  Frank Koormann <[email protected]>
1480    
1481            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
1482            Initialize ScaleBar with canvas.map
1483    
1484            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
1485            round intervals to display smarter lengths
1486            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
1487            layer. If the maps has no projection applied grey the scalebar.
1488    
1489    2003-05-07  Frank Koormann <[email protected]>
1490            
1491            Basic Scalebar features added.
1492    
1493            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
1494    
1495            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
1496            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
1497            and the renderer.
1498    
1499            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
1500    
1501            * Thuban/UI/messages.py: SCALE_CHANGED added.
1502    
1503    2003-05-07  Bernhard Herzog  <[email protected]>
1504    
1505            * Thuban/Model/session.py (Session.__init__): New instance
1506            variable shapestores to hold a list of all open shapestore objects
1507            (Session.ShapeStores): New. Accessor method for the shapestores
1508            list.
1509            (Session._add_shapestore, Session._clean_weak_store_refs): New.
1510            Internal methods to maintain the shapestores list.
1511            (Session.Tables): New. Return all tables open in the session.
1512            (Session.OpenShapefile): Insert the new ShapeStore into the
1513            shapestores list.
1514    
1515            * test/test_session.py (TestSessionSimple.test_initial_state): Add
1516            tests for ShapeStores and Tables
1517            (TestSessionWithContent.test_shape_stores)
1518            (TestSessionWithContent.test_tables): New. Test cases for
1519            ShapeStores and Tables
1520    
1521    2003-05-07  Bernhard Herzog  <[email protected]>
1522    
1523            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
1524            Add comments about the optimizations used.
1525            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
1526            Implement the ReadValue table interface method.
1527    
1528            * test/test_transientdb.py
1529            (TestTransientTable.run_iceland_political_tests)
1530            (TestTransientTable.test_transient_joined_table): Add tests for
1531            ReadValue
1532    
1533    2003-05-07  Frank Koormann <[email protected]>
1534    
1535            * Resources/Bitmaps/fulllayerextent.xpm,
1536            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
1537            new icons.
1538    
1539    2003-05-06  Bernhard Herzog  <[email protected]>
1540    
1541            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
1542            New. Simply delegate to the transient table's version.
1543    
1544            * test/test_transientdb.py
1545            (TestTransientTable.test_auto_transient_table_query): New. Test
1546            case for AutoTransientTable's SimpleQuery
1547    
1548    2003-05-06  Bernhard Herzog  <[email protected]>
1549    
1550            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
1551            Implement a simple query method for the query dialog
1552            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
1553            the row index or shapeid.
1554            (TransientTable.create): Insert the right value of the row index
1555            (TransientJoinedTable.create): Copy the row index of the left
1556            table to the joined result table
1557    
1558            * test/test_transientdb.py
1559            (TestTransientTable.test_transient_table_read_twice): Fix
1560            doc-string
1561            (TestTransientTable.test_transient_table_query): New. Test for the
1562            SimpleQuery method
1563    
1564    2003-05-06  Bernhard Herzog  <[email protected]>
1565    
1566            Convert all table users to use the new table interface. This only
1567            covers Thuban itself, not GREAT-ER or other applications built on
1568            Thuban yet, so the compatibility interface stays in place for the
1569            time being but it now issues DeprecationWarnings.
1570    
1571            Finally, the new Table interface has a new method, HasColumn.
1572    
1573            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
1574            issue deprecation warnings when they're. The warnings refer to the
1575            caller of the method.
1576            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
1577            for the deprecation warnings
1578    
1579            * test/test_table.py: Ignore the deprecation warnings for the old
1580            table in the tests in this module. The purpose of the tests is to
1581            test the old interface, after all.
1582    
1583            * test/test_transientdb.py
1584            (TestTransientTable.run_iceland_political_tests): Use the
1585            constants for the types. Add a test for HasColumn
1586            (TestTransientTable.test_transient_joined_table): Adapt to new
1587            table interface. Add a test for HasColumn
1588            (TestTransientTable.test_transient_table_read_twice): Adapt to new
1589            table interface
1590    
1591            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
1592            Adapt to new table interface
1593    
1594            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
1595            new table interface
1596    
1597            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
1598            (RecordTable.SetTable): Adapt to new table interface
1599    
1600            * Thuban/UI/classifier.py (Classifier.__init__)
1601            (Classifier.__init__): Adapt to new table interface
1602    
1603            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1604            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
1605            to new table interface
1606    
1607            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
1608            (AutoTransientTable.HasColumn): Implement the new table interface
1609            method
1610            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
1611            (AutoTransientTable.UniqueValues): Adapt to new table interface
1612    
1613            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
1614            Adapt to new table interface
1615    
1616            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
1617            simplify opening shapefiles a bit easier.
1618            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1619            (TestLayer.test_point_layer): Use the new helper method
1620            (TestLayer.test_get_field_type): New. Test for the GetFieldType
1621            method
1622    
1623            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
1624            the new table method
1625    
1626            * test/test_memory_table.py (TestMemoryTable.test_has_column):
1627            Test for the new table method HasColumn
1628    
1629    2003-05-06  Jonathan Coles   <[email protected]>
1630    
1631            Addresses the "Selection Extent" wish of RTbug #1787.
1632    
1633            * Resources/Bitmaps/fulllayerextent.xpm,
1634            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
1635            extent. These are just place holders for the real bitmaps.
1636    
1637            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
1638            calculate the bounding box once (the first time compute_bbox() is
1639            called).
1640            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
1641            the bounding box for the shapes in lat/long coordinates.
1642    
1643            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
1644            option.
1645            (MainWindow.has_selected_shapes): New. Returns true if there are
1646            any selected shapes.
1647            (MainWindow.FullSelectionExtent): New. Calls
1648            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
1649            (_has_selected_shapes): New. Returns true if there are any
1650            selected shapes.
1651    
1652            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
1653            true if there are any selected shapes.
1654    
1655            * Thuban/UI/view.py (MapCanvas): Added delegated method
1656            HasSelectedShapes.
1657            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
1658            shapes on the canvas using the map projection (if any).
1659    
1660            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
1661            for Layer.ShapesBoundingBox().
1662    
1663    2003-05-06  Bernhard Herzog  <[email protected]>
1664    
1665            * Resources/Projections/defaults.proj: Fix spelling of Mercator
1666    
1667    2003-05-05  Jonathan Coles   <[email protected]>
1668    
1669            Addresses the "Full Layer Extent" wish of RTbug #1787.
1670    
1671            * Resources/Projections/defaults.proj: Added UK National Grid.
1672    
1673            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
1674            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
1675            when the user selects the menu option.
1676    
1677            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
1678            scales the given layer on the canvas using the map projection.
1679    
1680    2003-05-05  Bernhard Herzog  <[email protected]>
1681    
1682            Convert the table implementations to a new table interface. All
1683            tables use a common mixin class to provide backwards compatibility
1684            until all table users have been updated.
1685    
1686            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
1687            provide backwards compatibility for table classes implementing the
1688            new interface
1689            (DBFTable, MemoryTable): Implement the new table interface. Use
1690            OldTableInterfaceMixin as base for compatibility
1691            (DBFColumn, MemoryColumn): New. Column description for DBFTable
1692            and MemoryTable resp.
1693    
1694            * test/test_dbf_table.py: New. Test cases for the DBFTable with
1695            the new table interface.
1696    
1697            * test/test_memory_table.py: New. Test cases for the MemoryTable
1698            with the new table interface.
1699    
1700            * test/test_table.py: Document the all tests in this file as only
1701            for backwards compatibility. The equivalent tests for the new
1702            interface are in test_memory_table.py and test_dbf_table.py
1703            (MemoryTableTest.test_read): field_info should be returning tuples
1704            with four items
1705            (MemoryTableTest.test_write): Make doc-string a more precise.
1706    
1707            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
1708            table interface. Derive from from OldTableInterfaceMixin for
1709            compatibility.
1710            (TransientTableBase.create): New intance variable column_map to
1711            map from names and indices to column objects
1712            (TransientTable.create): Use the new table interface of the input
1713            table
1714            (AutoTransientTable): Convert to new table interface. Derive from
1715            from OldTableInterfaceMixin for compatibility.
1716            (AutoTransientTable.write_record): Removed. It's not implemented
1717            yet and we still have to decide how to handle writing with the new
1718            table and data framework.
1719    
1720            * test/test_transientdb.py
1721            (TestTransientTable.run_iceland_political_tests)
1722            (TestTransientTable.test_transient_joined_table): Use the new
1723            table interface
1724    
1725    2003-05-05  Jonathan Coles   <[email protected]>
1726    
1727            This is namely a collection of UI updates to improve user interactivity.
1728            Tabbing between controls now exists and you can use ESC to close dialog
1729            boxes; ENTER will active the default button.
1730    
1731            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
1732            order that the controls are created so that tabbing works correctly.
1733            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
1734            wxDialog can handle the default button correctly.
1735            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
1736            same reasons as for OnOK.
1737            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
1738            when we ask the table for the maximum/minimum values of a field
1739            which could take a very long time.
1740    
1741            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
1742            order that the controls are created so that tabbing works correctly.
1743            (SelectPropertiesDialog.__init__): Rearrange the order that the
1744            controls are created so that tabbing works correctly.
1745    
1746            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
1747            to derive from a wxDialog but behave like the original implementation
1748            which was derived from a wxFrame. wxDialog provides useful key
1749            handling functionality like ESC calling OnCancel and ENTER calling
1750            OnOK which is lost with wxFrame.
1751    
1752            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
1753            new dialogs.
1754    
1755            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
1756            order that the controls are created so that tabbing works correctly.
1757            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
1758            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
1759            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
1760            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
1761            can provide the "UK National Grid" as a default projection.
1762            (UTMPanel.__init__): Rearrange the order that the controls are
1763            created so that tabbing works correctly.
1764    
1765    2003-05-05  Bernhard Herzog  <[email protected]>
1766    
1767            * extensions/thuban/wxproj.cpp: Fix some of the comments.
1768            (project_point): If a map projection but no layer projection is
1769            given, convert degrees to radians before applying the map
1770            projection.
1771    
1772            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
1773            (TableGrid.allow_messages): New methods to make it possible to
1774            inhibit message sending.
1775            (TableGrid.issue): Only send the message if not inhibited.
1776            (LayerTableGrid.select_shape): Use the new methods to make sure
1777            that no ROW_SELECTED message is sent while we're updating the
1778            selected rows to match the selected shapes.
1779    
1780    2003-05-02  Jan-Oliver Wagner <[email protected]>
1781    
1782            Implementation of MemoryTable.
1783    
1784            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
1785            implementation that operates on a list of tuples. All of the data
1786            are kept in the memory.
1787    
1788            * test/test_table.py (MemoryTableTest): New.
1789    
1790            * test/test_transientdb.py (SimpleTable): Removed.
1791            (TestTransientTable.test_transient_joined_table,
1792            (TestTransientTable.test_transient_table_read_twice): Replaced
1793            SimpleTable by MemoryTable.
1794    
1795    2003-04-30  Jonathan Coles   <[email protected]>
1796    
1797            * Data/iceland_sample.thuban: Now contains correct projections
1798            for each of the layers.
1799    
1800            * Resources/Projections/defaults.proj: Geographic projection
1801            contains unit conversion parameter.
1802    
1803    2003-04-30  Jonathan Coles   <[email protected]>
1804    
1805            The most important part of this putback is the projection changes.
1806            It should now be possible to specify the projection that a layer
1807            is in and then specify a different projection for the map. The
1808            projection dialog has an extra parameter for a geographic projection
1809            which lets the user select if the input is in degrees or radians.
1810    
1811            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
1812            to say that the parameter is a tuple of unprojected
1813            points (which is what the callers to this method were assuming).
1814            Also, since the points are unprojected we need to projected them.
1815    
1816            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
1817            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
1818            groups are selected, move the layer up/down. Fixes RTbug #1833.
1819    
1820            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
1821    
1822            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
1823            parameter in call to SetClientData.
1824            (GeoPanel): Add support for selecting the units that the
1825            source data is in (Radians or Degrees).
1826    
1827            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
1828            the rendering loop by reducing the number of if's, removing the
1829            unnecessary try/except block, and checking if the old group
1830            is the same as the new one (which happens a lot if there is
1831            no classification, or lots of shapes are in the same group).
1832    
1833            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
1834            around the redraw routine to try to catch problems that the user
1835            may create by selecting invalid projections for the data set and
1836            map. Clears the display if there are any problems and prints the
1837            error.
1838            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
1839            rectangle.
1840    
1841            * extensions/thuban/wxproj.cpp (project_point): First invert the
1842            supplied point (which should be in projected coordinates) using
1843            the layer's projection and then project the point using the
1844            map's projection.
1845            (project_points): Use project_point() to project each point.
1846    
1847    2003-04-30  Jan-Oliver Wagner <[email protected]>
1848    
1849            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
1850            don't set the Classification to None if the classfication field
1851            is None (ie only a DEFAULT).
1852    
1853    2003-04-30  Bernhard Herzog  <[email protected]>
1854    
1855            * Thuban/UI/view.py: Fix some typos.
1856    
1857            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
1858            not pop up the dialog if the selection becomes empty (this could
1859            happen if e.g. a new selection is opened while the identify tool
1860            is active and dialog had been closed)
1861    
1862    2003-04-30  Bernhard Herzog  <[email protected]>
1863    
1864            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
1865            instance variable read_record_last_result
1866            (TransientTableBase.read_record): Make sure reading the same
1867            record twice works. The implementation uses the new instance
1868            variable read_record_last_result
1869    
1870            * test/test_transientdb.py
1871            (TestTransientTable.test_transient_table_read_twice): New test
1872            case for the above bug-fix.
1873    
1874    2003-04-29  Jonathan Coles   <[email protected]>
1875    
1876            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
1877    
1878            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
1879    
1880            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
1881            (ClassTable.SetValueAsCustom): Rename keyword argument in
1882            ClassGroup* constructors to match argument name.
1883    
1884    2003-04-29  Bernhard Herzog  <[email protected]>
1885    
1886            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
1887            transient DB if it exists to make sure it doesn't leave a journal
1888            file in the temp directory.
1889    
1890            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
1891            self.conn to None after closing the connection to make sure it's
1892            not closed twice
1893    
1894    2003-04-29  Jonathan Coles   <[email protected]>
1895    
1896            Add a visible parameter in the layer XML tag. The default value is
1897            "true". If anything other than "false" is specified we also assume
1898            "true". Addresses RTbug #1025.
1899    
1900            * Doc/thuban.dtd: Add visible parameter to a layer.
1901    
1902            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
1903            of visible from 1 to True.
1904            (Layer.__init__): Change default value of visible from 1 to True.
1905    
1906            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
1907            parameter.
1908    
1909            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
1910            parameter.
1911    
1912            * test/test_load.py: Add new test data contents_test_visible.
1913            (LoadSessionTest.setUp): save test data.
1914            (LoadSessionTest.testLayerVisibility): Test if the visible flag
1915            is loaded correctly.
1916    
1917            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
1918            for saving an invisible layer.
1919    
1920    2003-04-29  Jonathan Coles   <[email protected]>
1921    
1922            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
1923            legend dialog box and tell it to change its map to the one
1924            supplied to SetMap(). Fixes RTbug #1770.
1925    
1926    2003-04-29  Bernhard Herzog  <[email protected]>
1927    
1928            Next step of table implementation. Introduce a transient database
1929            using SQLite that some of the data is copied to on demand. This
1930            allows us to do joins and other operations that require an index
1931            for good performance with reasonable efficiency. Thuban now needs
1932            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
1933            haven't tested that.
1934            
1935            * Thuban/Model/transientdb.py: New. Transient database
1936            implementation.
1937    
1938            * test/test_transientdb.py: New. Tests for the transient DB
1939            classes.
1940    
1941            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
1942            classes to help automatically remove temporary files and
1943            directories.
1944            (Session.__init__): New instance variables temp_dir for the
1945            temporary directory and transient_db for the SQLite database
1946            (Session.temp_directory): New. Create a temporary directory if not
1947            yet done and return its name. Use AutoRemoveDir to have it
1948            automatically deleted
1949            (Session.TransientDB): Instantiate the transient database if not
1950            done yet and return it.
1951    
1952            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
1953            AutoTransientTable so that data is copied to the transient DB on
1954            demand.
1955            (SimpleStore): New class that simply combines a table and a
1956            shapefile
1957    
1958            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
1959            DBFTable and update its doc-string to reflect the fact that this
1960            is only the table interface to a DBF file. Table is now an alias
1961            for DBFTable for temporary backwards compatibility.
1962    
1963            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
1964            the last reference to the session goes away so that the temporary
1965            files are removed properly.
1966    
1967            * test/test_load.py (LoadSessionTest.tearDown): Remove the
1968            reference to the session to make sure the temporary files are
1969            removed.
1970    
1971    2003-04-29  Bernhard Herzog  <[email protected]>
1972    
1973            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
1974            the __parser instance variable into a normal local variable in
1975            read. It's only used there and read will never be called more than
1976            once. Plus it introduces a reference cycle that keeps can keep the
1977            session object alive for a long time.
1978    
1979    2003-04-29  Jonathan Coles   <[email protected]>
1980    
1981            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
1982            Projection an immutable item. Fixes RTbug #1825.
1983            (Projection.__init__): Initialize instance variables here.
1984            (ProjFile.Replace): New. Replace the given projection object with
1985            the new projection object. This solves the problem of needing the
1986            mutator Projection.SetProjection() in the ProjFrame class and
1987            allows a projection to change parameters without changing its
1988            location in the file.
1989    
1990            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
1991            be of type wxSAVE and should verify overwriting a file.
1992    
1993            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
1994            ProjFile.Replace() method instead of the mutator
1995            Projection.SetProjection(). Also requires that we reassign the
1996            client data to the new projection.
1997    
1998            * test/test_proj.py (TestProjection.test): Test GetName() and
1999            GetAllParameters()
2000            (TestProjFile.test): Remove tests for Set*() methods. Add tests
2001            for Replace().
2002    
2003    2003-04-25  Jonathan Coles   <[email protected]>
2004    
2005            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
2006            to save the name of the projection.
2007    
2008            * test/test_save.py (SaveSessionTest.testLayerProjection): New
2009            test to verify layer projections are saved correctly.
2010    
2011    2003-04-25  Jonathan Coles   <[email protected]>
2012    
2013            * Thuban/Model/proj.py (Projection.SetName): Set the name
2014            to "Unknown" if name is None.
2015            (Projection.SetAllParameters): New. Set the projection's
2016            parameter list to the one supplied.
2017            (Projection.SetProjection): New. Set the projection's
2018            properties to those of the supplied Projection.
2019    
2020            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
2021            the dialog title to include the map's title.
2022            (MainWindow.LayerProjection): Set the dialog title to include
2023            the layer's title.
2024    
2025            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
2026            error dialogs into a single method call.
2027            (ProjFrame.__VerifyButtons): Add more states to check.
2028            (ProjFrame.__GetProjection): Return the current state of an
2029            edited projection or None.
2030            (ProjFrame.__FillAvailList): Remove checks for states that
2031            shouldn't exist.
2032            (ProjFrame._OnNew): Clear all selected items and supply
2033            a projection panel if necessary.
2034    
2035            * test/test_proj.py (TestProjFile.test): Add tests for
2036            ProjFile.SetAllParameters, ProjFile.SetProjection,
2037            ProjFile.SetName.
2038    
2039    2003-04-25  Jonathan Coles   <[email protected]>
2040    
2041            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
2042            takes an optional argument to select the current projection.
2043            This does not guarantee that the item is visible due to
2044            limited wxWindows functionality. Fixes RTBug #1821.
2045    
2046    2003-04-25  Jonathan Coles   <[email protected]>
2047    
2048            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
2049            the projection name and use it when constructing the Projection
2050            object.
2051    
2052            * Thuban/Model/proj.py (Projection.__init__): Change the default
2053            value for 'name' to None and then test if name is equal to None
2054            in the body of the constructor. This way the caller doesn't have to
2055            know what the default value should be. Namely, useful in load.py
2056            where we have to pick a default value if the 'name' parameter
2057            doesn't exist in the XML file.
2058    
2059            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
2060            Tests a file where a layer has a projection.
2061    
2062    2003-04-25  Jonathan Coles   <[email protected]>
2063    
2064            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
2065            tree for projection information.
2066    
2067            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
2068            XMLReader.GetFileName.
2069            (SessionLoader): Added support for loading projection tags that
2070            appear inside a layer.
2071    
2072            * Thuban/Model/proj.py (ProjFile): Document the class. Move
2073            back to using a list because the order of the projections in
2074            the file is important to maintain. Fixes RTbug #1817.
2075    
2076            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
2077            to ProjFile.GetFilename.
2078    
2079            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
2080            information.
2081    
2082            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
2083            ProjFrame._OnSaveAs. Removed old dead code from previous
2084            implementation.
2085            (ProjFrame._OnExport): Add support for exporting more than one
2086            projection to a single file.
2087            (ProjFrame.__FillAvailList): use string formatting (% operator)
2088            to build strings that are (partly) translated. Fixes RTbug #1818.
2089    
2090            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
2091            class.
2092    
2093    2003-04-24  Bernhard Herzog  <[email protected]>
2094    
2095            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
2096    
2097            * po/fr.po: New. French translation by Daniel Calvelo Aros
2098    
2099            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
2100            empty strings.
2101    
2102    2003-04-24  Jonathan Coles   <[email protected]>
2103    
2104            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
2105            implement the interface that the ProjFrame dialog expects.
2106    
2107            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
2108            name of the projection to be changed.
2109            (ProjFile): Use a dictionary instead of a list so that removing
2110            projections is easier and we are sure about uniqueness.
2111            (ProjFile.Remove): Remove the given projection object.
2112    
2113            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
2114            Return a list with only one projection file instead of searching for
2115            any projection file. This simplifies many things if the user can
2116            only have one system file and one user file.
2117    
2118            * Thuban/UI/classgen.py: Change all references to
2119            genCombo to genChoice.
2120    
2121            * Thuban/UI/mainwindow.py: Add a Projection option under the
2122            layer menu.
2123            (MainWindow.LayerProjection): New. Open up a projection window
2124            for a layer.
2125    
2126            * Thuban/UI/projdialog.py: Large changes to how the dialog is
2127            laid out. Use three panels instead of one. One for the list of
2128            projections, one for the edit controls, and one for the buttons.
2129            Fixed resizing problems so that the dialog resizes correctly
2130            when the projection panel changes. Added import/export, save, and
2131            new buttons/functionality.
2132    
2133    2003-04-24  Bernhard Herzog  <[email protected]>
2134    
2135            First step towards table management. Introduce a simple data
2136            abstraction so that we replace the data a layer uses more easily
2137            in the next step.
2138    
2139            * Thuban/Model/data.py: New file with a simple data abstraction
2140            that bundles shapefile and dbffile into one object.
2141    
2142            * Thuban/Model/session.py (Session.OpenShapefile): New method to
2143            open shapefiles and return a shape store object
2144    
2145            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
2146            object instead of a shapefile filename. This introduces a new
2147            instance variable store holding the datastore. For intermediate
2148            backwards compatibility keep the old instance variables.
2149            (open_shapefile): Removed. No longer needed with the shape store.
2150            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
2151            get the shape store used by a layer.
2152            (Layer.Destroy): No need to explicitly destroy the shapefile or
2153            table anymore.
2154    
2155            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
2156            (MainWindow.AddLayer): Use the session's OpenShapefile method to
2157            open shapefiles
2158    
2159            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
2160            session's OpenShapefile method to open shapefiles
2161    
2162            * test/test_classification.py
2163            (TestClassification.test_classification): Use the session's
2164            OpenShapefile method to open shapefiles and build the filename in
2165            a more platform independed way
2166    
2167            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
2168            Implement to have a session to use in the tests
2169            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
2170            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
2171            session's OpenShapefile method to open shapefiles
2172            (TestLayerLegend.setUp): Instantiate a session so that we can use
2173            it to open shapefiles.
2174            (TestLayerLegend.tearDown): Make sure that all references to
2175            layers and session are removed otherwise we may get a resource
2176            leak
2177    
2178            * test/test_map.py (TestMapAddLayer.test_add_layer)
2179            (TestMapWithContents.setUp): Instantiate a session so that we can
2180            use it to open shapefiles.
2181            (TestMapWithContents.tearDown): Make sure that all references to
2182            layers, maps and sessions are removed otherwise we may get a
2183            resource leak
2184            ("__main__"): use support.run_tests() so that more info about
2185            uncollected garbage is printed
2186    
2187            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
2188            session's OpenShapefile method to open shapefiles
2189            ("__main__"): use support.run_tests() so that more info about
2190            uncollected garbage is printed
2191    
2192            * test/test_selection.py (TestSelection.tearDown): Make sure that
2193            all references to the session and the selection are removed
2194            otherwise we may get a resource leak
2195            (TestSelection.get_layer): Instantiate a session so that we can
2196            use it to open shapefiles.
2197            ("__main__"): use support.run_tests() so that more info about
2198            uncollected garbage is printed
2199    
2200            * test/test_session.py (TestSessionBase.tearDown)
2201            (TestSessionWithContent.tearDown): Make sure that all references
2202            to the session and layers are removed otherwise we may get a
2203            resource leak
2204            (TestSessionWithContent.setUp): Use the session's OpenShapefile
2205            method to open shapefiles
2206    
2207    2003-04-24  Jonathan Coles   <[email protected]>
2208    
2209            * Thuban/Model/load.py (XMLReader.read): Should have been checking
2210            if the file_or_filename object had the 'read' attribute.
2211    
2212    2003-04-23  Jonathan Coles   <[email protected]>
2213    
2214            * Thuban/Model/resource.py: Fixes RTbug #1813.
2215            (ReadProjFile): Add documentation about which exceptions are raised.
2216            Always pass the exceptions up to the caller.
2217            (GetProjFiles): If the directory can't be read return an empty list.
2218            If any of the proj files can't be read skip that file and go
2219            on to the next one.
2220    
2221            * test/test_proj.py: Added test cases to handle nonexistent files,
2222            unreadable files, and files that don't parse correctly.
2223    
2224    2003-04-23  Jonathan Coles   <[email protected]>
2225    
2226            Projection dialog. Allows the user to select from a list
2227            of projection templates and optionally edit them and save new ones.
2228    
2229            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
2230            (ProjPanel): Base class for projection specific panels.
2231            (TMPanel): Projection panel for Transverse Mercartor.
2232            (UTMPanel): Projection panel for Universal Transverse Mercartor.
2233            (LCCPanel): Projection panel for Lambert Conic Conformal.
2234            (GeoPanel): Projetion panel for Geographic Projection.
2235    
2236    2003-04-23  Jonathan Coles   <[email protected]>
2237    
2238            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
2239            promote symmetry. There now exists XMLReader and XMLWriter.
2240            (XMLReader.read): New. Call to read the given file descriptor or
2241            filename.
2242            (XMLReader.close): New. Make sure the file is closed.
2243            (XMLReader.GetFileName): New. Return just the file name that is being
2244            read from.
2245            (XMLReader.GetDirectory): New. Return just the directory of the file
2246            that is being read.
2247            (XMLReader.AddDispatchers): New. Take a dictionary which contains
2248            the names of functions to call as the XML tree is parsed.
2249            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
2250            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
2251            (SessionLoader): Removed class variables start_dispatcher and
2252            end_dispatcher since this functionality is now part of a class
2253            instance. Fixes RTbug #1808.
2254            (SessionLoader.__init__): Add dispatcher functions.
2255            (load_xmlfile): Code was moved into the XMLReader.read().
2256            (load_session): Use modified SessionLoader.
2257    
2258            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
2259            map's projection.
2260    
2261            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
2262            GetAllParameters.
2263            (Projection.GetParameter): Returns the value for the given parameter.
2264    
2265            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
2266            (GetProjFiles): Renamed from GetProjections. Now returns a list
2267            of ProjFile objects.
2268            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
2269            a list of ProjFile objects whose files are not user defined.
2270            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
2271            list of ProjFile objects whose files are user defined.
2272            (ProjFileReader): Extend new XMLReader.
2273    
2274            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
2275            promote symmetry.
2276    
2277            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
2278            control instead of a wxComboBox. wxChoice controls do not generate
2279            events as the uses highlights possible choices which fixes problems
2280            with resizing the dialog when the use selects an option.
2281    
2282            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
2283            control instead of a wxComboBox.
2284    
2285            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
2286            dialog.
2287    
2288            * test/test_proj.py (TestProjection.test): New tests for GetParameter
2289            method.
2290    
2291    2003-04-22  Bernhard Herzog  <[email protected]>
2292    
2293            * Thuban/UI/mainwindow.py: Remove some unused imports and global
2294            constants
2295    
2296            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
2297            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
2298    
2299    2003-04-17  Bernhard Herzog  <[email protected]>
2300    
2301            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
2302            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
2303            anymore.
2304            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
2305            (Layer.ShapeType, Layer.Shape): No need to call
2306            self.open_shapefile since it's always called in __init__
2307    
2308            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
2309            In wxPython 2.4 there's no need to extend MainLoop anymore since
2310            wxPython itself makes sure OnExit is called.
2311    
2312    2003-04-16  Jonathan Coles   <[email protected]>
2313    
2314            Initial putback of projection management code. Includes new
2315            classes to read and write projection files. The current load
2316            and save classes were abstracted a bit so they could be reused.
2317            The Projection class was extended to provide new methods and
2318            have a name.
2319    
2320            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
2321            general XML reading methods that were part of ProcessSession.
2322    
2323            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
2324            name.
2325            (ProjFile): New. Represents a file that contains projection
2326            information.
2327    
2328            * Thuban/Model/resource.py: New. Contains general utilities
2329            for read and writing projection files.
2330    
2331            * Thuban/Model/save.py (XMLSaver): New. Contains all the
2332            general XML writing methods that were part of SessionSaver.
2333            (SessionSaver): Renamed from Saver.
2334    
2335            * test/test_proj.py: New test cases for the projection
2336            file read and write functions.
2337    
2338    2003-04-16  Jonathan Coles   <[email protected]>
2339    
2340            * Thuban/Model/classification.py: Use repr() around values
2341            in the ClassGroup*.__repr__() methods so it is clearer when
2342            a value is a string and when it is a number.
2343    
2344            * test/test_load.py: Rework the classification test to test
2345            that we can load old files.
2346            (testLabels): Test a file where the groups have labels.
2347    
2348    2003-04-16  Bernhard Herzog  <[email protected]>
2349    
2350            Safer implementation of the performance enhancements of the
2351            low-level renderer:
2352            
2353            * extensions/thuban/wxproj.cpp (extract_projection)
2354            (extract_pointer): Rename extract_projection to extract_pointer
2355            and redefine its purpose to return the pointer stored in a CObject
2356            returned by the object's cobject method. Update all callers.
2357            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
2358            handling of these low-level parameters so that each s_draw_info
2359            instance is handled as a CObject at python level that also
2360            contains real references to the actual python objects which
2361            contain the values in the struct. Add free_draw_info as the
2362            destructor.
2363            (draw_polygon_shape): Add the py_draw_info parameter which must a
2364            cobject containing an s_draw_info pointer.
2365    
2366            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
2367            method to instantiat the low-level render parameter
2368            (MapRenderer.draw_shape_layer): Use the new method. Remove some
2369            commented out code.
2370            (MapRenderer.draw_polygon_shape): Make the first parameter not the
2371            layer but the low-level render parameter
2372            (ScreenRenderer.draw_shape_layer): Use the low-level render
2373            parameter.
2374    
2375    2003-04-15  Jonathan Coles   <[email protected]>
2376    
2377            * Thuban/Model/classification.py: Implemented __repr__ for
2378            the ClassGroup* classes to make debugging a bit easier.
2379            (ClassGroup.SetLabel): Check that the string is an instance
2380            of StringTypes not StringType. Accounts for Unicode strings.
2381    
2382            * Thuban/Model/color.py: Implemented __repr__ to make
2383            debugging a bit easier.
2384    
2385            * Thuban/Model/save.py (Saver.write_classification): Need to
2386            save the group label.
2387    
2388            * test/test_load.py (testClassification): New. Loads the
2389            iceland_sample_test.thuban file and checks if it was loaded
2390            correctly.
2391    
2392    2003-04-15  Jonathan Coles   <[email protected]>
2393    
2394            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
2395            to improve rendering performance by initializing the variables
2396            that are not change each time draw_polygon_shape() is called.
2397            The values are stored in a global struct draw_info.
2398            (draw_polygon_shape): Removed initialization code that is
2399            now in draw_polygon_init().
2400    
2401            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
2402            drawing initialization call to draw_polygon_init()
2403            (MapRenderer.draw_polygon_shape): Use new signature of
2404            draw_polygon_shape.
2405    
2406            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
2407            weirdness by setting the range to (1, maxint).
2408    
2409            * Thuban/Model/classification.py (ClassGroupProperties): Make
2410            instance variables private and optimize comparison operator
2411            by first checking if the color references are the same.
2412            (ClassGroupSingleton): Make instance variables private.
2413            (ClassGroupRange): Make instance variables private.
2414    
2415            * HOWTO-Release: Filled in missing steps for releasing packages.
2416    
2417    2003-04-15  Bernhard Herzog  <[email protected]>
2418    
2419            First stab at internationalized messages:
2420    
2421            * Thuban/__init__.py (_): Implement the translation function for
2422            real using the python gettext module.
2423    
2424            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
2425            translate empty strings.
2426    
2427            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
2428            Add a missing space to a warning message
2429    
2430            * po/README: New. Notes about the management of the translation
2431            files.
2432    
2433            * po/Makefile: New. Makefile to help manage the translation files.
2434    
2435            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
2436    
2437            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
2438            translations and support files in po/
2439    
2440            * setup.py (data_files): Add the *.mo files to the data_files too
2441    
2442            * README: Add note about the translations when building from CVS
2443    
2444    2003-04-14  Jonathan Coles   <[email protected]>
2445    
2446            * Thuban/UI/dock.py: Fixes some window resizing problems most
2447            noticable under windows. Always assume the button bitmaps will
2448            be there. Code clean up.
2449            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
2450            images for the dock/undock button to the same images.
2451            Work around for RTbug #1801.
2452    
2453            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
2454            be allowed to grow within the sizer. Fixes a bug under Windows
2455            where the toolbar wasn't being drawn.
2456    
2457    2003-04-14  Frank Koormann   <[email protected]>
2458    
2459            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
2460            Updated design to try to make the button functionality more
2461            transparent.
2462    
2463    2003-04-14  Jonathan Coles   <[email protected]>
2464    
2465            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
2466            finalize the intialization of the panel.
2467    
2468            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
2469            creation of the panel. Should be the last thing called in the
2470            initializer of a subclass.
2471    
2472            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
2473            set the current selections in the combo boxes. This is needed
2474            under Windows.
2475    
2476            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
2477            level panel to the dialog so that the background colors are
2478            consistent under Windows.
2479    
2480    2003-04-11  Jonathan Coles   <[email protected]>
2481    
2482            * Thuban/UI/classgen.py: Change color ramps to start at white
2483            not black.
2484    
2485            * Thuban/UI/legend.py: Enable/disable the legend buttons when
2486            the legend changes. Fixes RTbug #1793.
2487    
2488            * test/test_classification.py: Added test for copying of
2489            classifications.
2490    
2491    2003-04-11  Jonathan Coles   <[email protected]>
2492    
2493            * Thuban/UI/resource.py: New. Centralize the loading of resources
2494            such as bitmaps.
2495    
2496            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
2497            added images to the move buttons, added 'reverse' button.
2498            (CustomRampPanel.__init__): Added images to the move buttons.
2499            (GreyRamp): New. Generates a ramp from white to black.
2500            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
2501    
2502            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
2503            ID_PROPERTY_*.
2504            (Classifier.__init__): Minor changes to the layout.
2505            (Classifier._OnTitleChanged): Listen for when the user edits the
2506            title and update the dialog's title and the layer's title.
2507    
2508            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
2509    
2510            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
2511            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
2512            if the layer's title changes.
2513    
2514            * Thuban/UI/mainwindow.py: Added new menu item and associated code
2515            to open a dialog to rename the map.
2516            (MainWindow): Use new resource class to import bitmaps.
2517    
2518    2003-04-11  Jonathan Coles   <[email protected]>
2519    
2520            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
2521            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
2522            Resources/Bitmaps/group_use_none.xpm,
2523            Resources/Bitmaps/group_use_not.xpm,
2524            Resources/Bitmaps/hide_layer.xpm,
2525            Resources/Bitmaps/layer_properties.xpm,
2526            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
2527            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
2528            New.
2529    
2530    2003-04-10  Jonathan Coles   <[email protected]>
2531    
2532            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
2533            Should pass group to ClassGroup constructor.
2534    
2535    2003-04-10  Jonathan Coles   <[email protected]>
2536    
2537            * Thuban/Model/classification.py: (ClassGroup): Move all the common
2538            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
2539            here. Implement SetVisible(), IsVisible().
2540            (ClassGroup.__init__): Add group parameter which acts as a copy
2541            constructor.
2542    
2543            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
2544            "Visible" check boxes.
2545            (Classifier): Rename the buttons and refactor the code to match
2546            the new labels.
2547    
2548            * Thuban/UI/legend.py: Classify button is now called "Properties".
2549            Refactored the code to change variable names.
2550            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
2551    
2552            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
2553            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
2554            renamed to MainWindow.LayerEditProperties.
2555            (MainWindow.ToggleLegend): Don't include map name in legend title.
2556            (MainWindow.SetMap): Added the map name to the window title.
2557            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
2558            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
2559            Functionality is found in the layer properties dialog.
2560    
2561            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
2562            draw visible groups.
2563    
2564    2003-04-09  Jonathan Coles   <[email protected]>
2565    
2566            * Thuban/UI/classgen.py: Modifications to allow simple
2567            addition and selection of new color schemes.
2568            (MonochromaticRamp): New. Generates a ramp between two colors.
2569            (RedRamp): New. Generates a ramp of all red.
2570            (GreenRamp): New. Generates a ramp of all green.
2571            (BlueRamp): New. Generates a ramp of all blue.
2572    
2573    2003-04-09  Jonathan Coles   <[email protected]>
2574    
2575            * Thuban/Model/classification.py (Classification.__deepcopy__):
2576            Need to copy over field and fieldType attributes.
2577    
2578            * Thuban/Model/table.py (Table.field_range): New. Retrive the
2579            maximum and minimum values over the entire table for a given
2580            field.
2581            (Table.GetUniqueValues): New. Retrieve all the unique values
2582            in the table for a given field.
2583    
2584            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
2585            (GenUniquePanel): New. Controls to allow the user to select
2586            which unique field values they would like in the classification.
2587            (CustomRampPanel): Code that was in ClassGenDialog that allows
2588            the user to select the properties for a custom ramp.
2589            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
2590    
2591            * Thuban/UI/classifier.py: Removed a lot of debugging code.
2592            (Classifier._SetClassification): Callback method so that the
2593            class generator can set the classification in the grid.
2594            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
2595            editing of a group properties class into a wxWindows control.
2596    
2597            * Thuban/UI/dock.py: It was decided that if the user closes
2598            a dockable window the window should simply hide itself. That
2599            way if the user wants to show the dock again it appears in the
2600            same place as it was when it was closed.
2601            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
2602            (DockableWindow._OnButtonClose): Hide the window instead of
2603            destroying it.
2604            (DockableWindow._OnClose): Hide the window instead of
2605            destroying it.
2606    
2607            * Thuban/UI/legend.py (LegendTree): Use a private method to
2608            consistently set the font and style of the text. Fixes RTbug #1786.
2609    
2610            * Thuban/UI/mainwindow.py: Import just the Classifier class.
2611    
2612    2003-04-07  Bernhard Herzog  <[email protected]>
2613    
2614            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
2615            to the map module
2616    
2617    2003-04-07  Bernhard Herzog  <[email protected]>
2618    
2619            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
2620            favor of ToggleSessionTree
2621            (MainWindow.ToggleSessionTree): New method to toggle visibility of
2622            the session tree.
2623            (MainWindow.SessionTreeShown): New method to return whether the
2624            session tree is currently shown.
2625            (MainWindow.ToggleLegend): New method to toggle visibility of the
2626            legend
2627            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
2628            LegendShown
2629            (MainWindow.LegendShown): New method to return whether the legend
2630            is currently shown.
2631            (_method_command): Add checked parameter so we can define check
2632            menu items
2633            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
2634            mainwindow methods.
2635            (show_session_tree, show_legend commands): Removed.
2636            (toggle_session_tree, toggle_legend commands): New commands to
2637            toggle the visibility of the dialogs
2638    
2639    2003-04-07  Jonathan Coles   <[email protected]>
2640    
2641            * Thuban/UI/classgen.py: Fix Windows problem.
2642    
2643            * Thuban/UI/dock.py: Fix Windows problem.
2644    
2645            * Thuban/UI/mainwindow.py: Use False instead of false.
2646            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
2647    
2648    2003-04-07  Jonathan Coles   <[email protected]>
2649    
2650            Since we now say that the order of the groups in a classification
2651            matters, it makes sense to be able to manipulate that order. Most
2652            of the changes to Thuban/Model/classification.py are to that end.
2653    
2654            * Thuban/Model/classification.py (Classification.AppendGroup,
2655            Classification.InsertGroup, Classification.ReplaceGroup,
2656            Classification.RemoveGroup, Classification.GetGroup): Do as the
2657            names imply.
2658            (Classification.FindGroup): This was called GetGroup, but GetGroup
2659            takes an index, while FindGroup takes a value.
2660            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
2661            REFERENCE. Currently there is a cyclic reference between the layer
2662            and its classification. If the classification doesn't need to know
2663            its owning layer we can change this, since it may make sense to be
2664            able to use the same classification with different layers.
2665    
2666            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
2667    
2668            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
2669            not AddGroup()
2670    
2671            * Thuban/UI/classifier.py: Now that we can depend on the order in
2672            a Classification and have methods to manipulate that order we don't
2673            need to use our own data structures in the grid. We can simply make
2674            the grid/table access the information they need from a copy of
2675            the classification object.
2676            (Classifier._OnCloseBtn): Event handler for when the user clicks
2677            'Close'. This is needed so if the user applies changes and then
2678            continues to change the table the user has the option of discarding
2679            the most recent changes and keeping what they applied.
2680    
2681            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
2682            into the same group.
2683    
2684            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
2685            with a really old version of proj, PJ_VERSION won't even be defined.
2686            If it isn't defined then just compile so that the function always
2687            returns Py_False.
2688    
2689            * test/test_classification.py: Fix tests to use the renamed methods.
2690            Still need to write tests for the new methods.
2691    
2692    2003-04-04  Jonathan Coles   <[email protected]>
2693    
2694            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
2695            call to SetSelection out of the method and before the call
2696            to __SelectField in __init__. This prevents a recursion of events
2697            when _OnFieldSelect is triggered by the user.
2698    
2699    2003-04-04  Jonathan Coles   <[email protected]>
2700    
2701            * Thuban/Model/classification.py: Rename Color.None to
2702            Color.Transparent.
2703            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
2704            Don't bother copying the color, since Colors are immutable.
2705    
2706            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
2707            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
2708            Thuban/UI/renderer.py, Thuban/UI/view.py:
2709            Rename Color.None to Color.Transparent.
2710        
2711            * test/test_classification.py, test/test_load.py: Rename Color.None
2712            to Color.Transparent.
2713    
2714    2003-04-04  Jonathan Coles   <[email protected]>
2715    
2716            * Thuban/Model/classification.py: Fix assert calls.
2717            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
2718            Copy the color parameter rather than hold onto a reference.
2719    
2720            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
2721            the color object.
2722            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
2723            are sure there exists only one refernce to Color.None in the system.
2724            This allows us to use 'is' rather than the comparision functions.
2725            
2726            * Thuban/Model/save.py: Fix assert calls.
2727            
2728            * Thuban/UI/classifier.py: Fix assert calls.
2729            (ClassGrid._OnCellDClick): Call up to the classifier to open the
2730            dialog to edit the groups properties.
2731            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
2732            correctly if a cell is resized.
2733            (ClassTable.SetClassification): New. Changes the classification
2734            that is in the table.
2735            (ClassTable.__SetRow): Allow groups to be prepended.
2736            (Classifier): New code for opening the EditProperties and
2737            GenerateRanges dialogs.
2738            (SelectPropertiesDialog.__GetColor): Only set the color in the
2739            color dialog if the current color is not None.
2740            
2741            * Thuban/UI/dock.py: Fix assert calls.
2742            
2743            * Thuban/UI/legend.py: Fix assert calls.
2744            
2745            * Thuban/UI/renderer.py: Fix assert calls.
2746            
2747            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
2748            classifications.
2749            (GenRangePanel): Panel specific to range generation.
2750            (GenSingletonPanel): Panel specific to singleton generation.
2751            (ClassGenerator): Class responsible for actually generating
2752            the classification from the data gathered in the dialog box.
2753            (PropertyRamp): Generates properties whose values range from
2754            a starting property to an ending property.
2755    
2756    2003-04-03  Bernhard Herzog  <[email protected]>
2757    
2758            * test/support.py (print_garbage_information): New function that
2759            prints information about still connected messages and memory
2760            leaks.
2761            (run_suite): Removed.
2762            (run_tests): New function for use as a replacement of
2763            unittest.main in the test_* files. This one calls
2764            print_garbage_information at the end.
2765    
2766            * test/runtests.py (main): Use support.print_garbage_information
2767    
2768            * test/test_layer.py: Use support.run_tests instead of
2769            unittest.main so we get memory leak information
2770            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
2771            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
2772            (TestLayerLegend.test_visibility): Call the layer's Destroy method
2773            to fix a memory leak.
2774    
2775            * test/test_classification.py: Use support.run_tests instead of
2776            unittest.main so we get memory leak information
2777            (TestClassification.test_classification): Call the layer's Destroy
2778            method to fix a memory leak.
2779    
2780    2003-04-02  Bernhard Herzog  <[email protected]>
2781    
2782            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
2783            Handle the reference counts of the return value and errors in
2784            PyArg_ParseTuple correctly.
2785    
2786            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
2787            sure the filename is absolute to avoid problems when saving the
2788            session again
2789    
2790            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
2791    
2792    2003-04-01  Jonathan Coles   <[email protected]>
2793    
2794            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
2795            that there actually are points in the returned list of points
2796            before trying to index into the list. The list may be empty if
2797            the shape is a Null Shape.
2798    
2799    2003-04-01  Bernhard Herzog  <[email protected]>
2800    
2801            * test/test_map.py: Don't use from <module> import *
2802    
2803    2003-04-01  Jonathan Coles   <[email protected]>
2804    
2805            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
2806            LAYER_LEGEND_CHANGED
2807    
2808            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
2809            self.Destroy() to close the window after yesterday's changes.
2810    
2811            * test/test_map.py, test/test_session.py: Fix messages that
2812            are sent from maps and layers.
2813    
2814    2003-03-31  Jonathan Coles   <[email protected]>
2815    
2816            * Thuban/UI/classifier.py: Commented out some debugging statements.
2817            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
2818            RTbug #1769.
2819    
2820            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
2821            position (although position doesn't work yet under GTK).
2822            (DockableWindow.Destroy): New. Called when the window must be
2823            closed. Namely needed when the DockFrame closes and must close
2824            its children.
2825            (DockFrame): Listen for EVT_CLOSE and destroy all children.
2826    
2827            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
2828            when then window is told to close.
2829            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
2830            comment in source for more info.
2831    
2832            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
2833    
2834            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
2835            symmetry with other such methods.
2836            (MainWindow.ShowLegend): Show the legend docked by default.
2837    
2838    2003-03-28  Jonathan Coles   <[email protected]>
2839    
2840            * Thuban/UI/classifier.py: Support for highlighting a specific
2841            group within the grid when the classification dialog is opened.
2842            Also contains a lot of debugging printouts which will later
2843            be removed.
2844    
2845            * Thuban/UI/dock.py: Complete rework on the dock code so that
2846            that it is fairly removed from the rest of the Thuban application.
2847            It is easy to add new docks which the rest of the program having
2848            to be aware of them.
2849    
2850            * Thuban/UI/legend.py: Modifications to support selecting a
2851            specific group in the classification dialog. Changed how layers
2852            are drawn when the layer is visible/invisible.
2853    
2854            * Thuban/UI/mainwindow.py: Removed legend specific code and
2855            replaced it with calls to the new dock code.
2856    
2857            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
2858            to check if scale > 0. Trying to track down a divide by zero.
2859    
2860    2003-03-26  Jonathan Coles   <[email protected]>
2861    
2862            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
2863            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
2864            now part of DockableWindow.
2865            (LegendPanel.DoOnSelChanged): Select the current layer in the
2866            map.
2867            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
2868            with the selected layer and/or group.
2869    
2870    2003-03-26  Jonathan Coles   <[email protected]>
2871    
2872            This putback contains the code for dockable windows. There is
2873            no support in wxWindows as of this date for windows that can
2874            attach themselves to other windows.
2875    
2876            The current model contains a DockableWindow which has a parent
2877            window for when it is detached and a dock window that it puts
2878            its contents in when it is docked. The contents of a DockableWindow
2879            must be a DockPanel. DockPanel itself derives from wxPanel.
2880    
2881            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
2882            message, not a LAYER_LEGEND_CHANGED message.
2883    
2884            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
2885    
2886            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
2887            as one of the style properties for the fieldTypeText item to
2888            be sure that its size is correct when the text changes.
2889    
2890            * Thuban/UI/dock.py: New. Classes for the DockPanel and
2891            DockableWindow.
2892    
2893            * Thuban/UI/legend.py: Added some more buttons and made the
2894            LegendPanel a DockPanel.
2895    
2896            * Thuban/UI/mainwindow.py: Added sash windows to the main window
2897            and supporting functions for manipulating the sashes.
2898            (MainWindow.ShowLegend): Create a DockableWindow with the
2899            LegendPanel as the contents.
2900    
2901            * Thuban/UI/messages.py: Added DOCKABLE_* messages
2902    
2903            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
2904            not LAYER_LEGEND_CHANGED, messages.
2905    
2906    2003-03-25  Jonathan Coles   <[email protected]>
2907    
2908            * setup.py: Added custom script bdist_rpm_build_script so that
2909            when the rpm is built the path to wx-config is correct.
2910    
2911            * setup.cfg: Added line saying to use the custom build script
2912    
2913    2003-03-20  Jonathan Coles   <[email protected]>
2914    
2915            Initial implementation of the Legend.
2916    
2917            * Thuban/UI/legend.py: New. Creates a window that shows the map's
2918            Legend information and allows the user to add/modify classifications
2919            and how the layers are drawn on the map.
2920    
2921            * setup.py: New command 'build_docs' which currently uses
2922            happydoc to generate html documentation for Thuban.
2923    
2924            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
2925            Returns a string which is appropriately describes the group.
2926    
2927            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
2928            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
2929    
2930            * Thuban/Model/map.py (Map): Rename messages and use new, more
2931            specific, messages.
2932    
2933            * Thuban/Model/messages.py: New message to indicate that a layer's
2934            data has changed (LAYER_CHANGED). New map messages to indicate
2935            when layers have been added/removed/changed or if the stacking order
2936            of the layers has changed.
2937    
2938            * Thuban/Model/session.py: Rename and use new messages.
2939    
2940            * Thuban/UI/classifier.py: Remember if any changes have actually
2941            been applied so that if the dialog is cancelled without an application
2942            of changes we don't have to set a new classification.
2943            (ClassDataPreviewer): Pulled out the window specific code and put it
2944            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
2945            symbols on any DC.
2946            
2947            * Thuban/UI/mainwindow.py: New code to open the legend.
2948    
2949            * Thuban/UI/view.py: Use new message names.
2950    
2951    2003-03-19  Jonathan Coles   <[email protected]>
2952    
2953            * Thuban/UI/main.py (verify_versions): New. Checks the versions
2954            of Python, wxPython, and some other libraries.
2955    
2956            * extensions/thuban/wxproj.cpp (check_version): Checks the given
2957            version against what wxproj was compiled with.
2958            (check_version_gtk): If wxproj was compiled with gtk then check
2959            the given version against the version of the gtk library
2960            currently being used.
2961    
2962    2003-03-14  Bernhard Herzog  <[email protected]>
2963    
2964            * test/test_command.py: Run the tests when the module is run as a
2965            script
2966    
2967    2003-03-14  Bernhard Herzog  <[email protected]>
2968    
2969            Implement selection of multiple selected shapes in the same layer:
2970    
2971            - Introduce a new class to hold the selection. This basically
2972              replaces the interactor which was nothing more than the
2973              selection anyway. A major difference is of course that the new
2974              selection class supports multiple selected shapes in one layer
2975            
2976            - Move the object that represents the selection from the
2977              application to the canvas. The canvas is a better place than the
2978              application because the selection represents which shapes and
2979              layer of the map displayed by the canvas are selected and
2980              affects how the map is drawn.
2981    
2982            - Make the selection and its messages publicly available through
2983              the mainwindow.
2984    
2985            - The non-modal dialogs do not get a reference to the interactor
2986              anymore as they can simply refer to their parent, the
2987              mainwindow, for the what the interactor had to offer.
2988    
2989            * Thuban/UI/selection.py: New module with a class to represent the
2990            selection.
2991    
2992            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
2993            these unused messages
2994    
2995            * Thuban/UI/application.py (ThubanApplication.OnInit)
2996            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
2997            interactor is gone now.
2998            (ThubanApplication.CreateMainWindow): There is no interactor
2999            anymore so we pass None as the interactor argument for now for
3000            compatibility.
3001    
3002            * Thuban/UI/view.py (MapCanvas.delegated_messages)
3003            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
3004            Unsubscribe, delegate messages according to the delegated_messages
3005            class variable.
3006            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
3007            attributes from instance variables as described with the
3008            delegated_methods class variable.
3009            (MapCanvas.__init__): New instance variable selection holding the
3010            current selection
3011            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
3012            pass them on to the renderer
3013            (MapCanvas.SetMap): Clear the selection when a different map is
3014            selected.
3015            (MapCanvas.shape_selected): Simple force a complete redraw. The
3016            selection class now takes care of only issueing SHAPES_SELECTED
3017            messages when the set of selected shapes actually does change.
3018            (MapCanvas.SelectShapeAt): The selection is now managed in
3019            self.selection
3020    
3021            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
3022            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
3023            Unsubscribe, delegate messages according to the delegated_messages
3024            class variable.
3025            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
3026            attributes from instance variables as described with the
3027            delegated_methods class variable.
3028            (MainWindow.__init__): The interactor as ivar is gone. The
3029            parameter is still there for compatibility. The selection messages
3030            now come from the canvas.
3031            (MainWindow.current_layer, MainWindow.has_selected_layer):
3032            Delegate to the the canvas.
3033            (MainWindow.LayerShowTable, MainWindow.Classify)
3034            (MainWindow.identify_view_on_demand): The dialogs don't need the
3035            interactor parameter anymore.
3036    
3037            * Thuban/UI/tableview.py (TableFrame.__init__)
3038            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
3039            (LayerTableFrame.row_selected): The interactor is gone. It's job
3040            from the dialog's point of view is now done by the mainwindow,
3041            i.e. the parent. Subscribe to SHAPES_SELECTED instead
3042            of SELECTED_SHAPE
3043            
3044            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
3045            is gone. It's job from the dialog's point of view is now done by
3046            the mainwindow, i.e. the parent.
3047            
3048            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
3049            gone. It's job from the dialog's point of view is now done by the
3050            mainwindow, i.e. the parent.
3051    
3052            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
3053            gone. It's job from the dialog's point of view is now done by the
3054            mainwindow, i.e. the parent.
3055            (SessionTreeCtrl.__init__): New parameter mainwindow which is
3056            stored as self.mainwindow. The mainwindow is need so that the tree
3057            can still subscribe to the selection messages.
3058            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
3059            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
3060            selection is now accessible through the mainwindow. Subscribe to
3061            SHAPES_SELECTED instead of SELECTED_SHAPE
3062    
3063            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
3064            SHAPES_SELECTED message now.
3065            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
3066            so deal with multiple shapes
3067            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
3068            gone. It's job from the dialog's point of view is now done by the
3069            mainwindow, i.e. the parent.
3070    
3071            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
3072            parameter is now a list of shape ids.
3073            (RecordTable.SetTable): The second parameter is now a list of
3074            indices.
3075    
3076            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
3077            selected_shape parameter and ivar to selected_shapes. It's now a
3078            list of shape ids.
3079            (MapRenderer.draw_label_layer): Deal with multiple selected
3080            shapes. Rearrange the code a bit so that the setup and shape type
3081            distinctions are only executed once.
3082    
3083            * test/test_selection.py: Test cases for the selection class
3084    
3085    2003-03-11  Jonathan Coles   <[email protected]>
3086    
3087            * Thuban/Model/load.py: Temporary fix so that the xml reader
3088            doesn't cause Thuban to crash.
3089    
3090            * Thuban/Model/layer.py: Handle the cyclic references between
3091            a layer and its classification better, and be sure to disconnect
3092            the classification from the layer when the layer is destroyed
3093            so that we don't maintain a cyclic reference that may not be
3094            garbage collected.
3095    
3096            * Thuban/Model/classification.py: See comment for layer.py.
3097    
3098    2003-03-12  Jan-Oliver Wagner <[email protected]>
3099    
3100            * HOWTO-Release: New. Information on the steps for releasing
3101            a new version of Thuban.
3102    
3103    2003-03-11  Jonathan Coles   <[email protected]>
3104    
3105            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
3106            Use True instead of true.
3107            (Classifier): Should have a single panel in which all the controls lie.
3108    
3109            * Thuban/UI/proj4dialog.py: Add normal border.
3110    
3111            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
3112    
3113            * Thuban/UI/mainwindow.py: Use True instead of true.
3114    
3115            * setup.py: Update some definitions to use wxWindows2.4 files
3116    
3117            * Data/iceland_sample_class.thuban: Fixed file so that the
3118            field_type information is present.
3119    
3120    2003-03-10  Jonathan Coles   <[email protected]>
3121    
3122            * Thuban/UI/classifier.py (Classifier.__init__): Make the
3123            field type label grow so that when the text changes the
3124            size is updated correctly. This may be a wxWindows bug.
3125    
3126    2003-03-10  Jonathan Coles   <[email protected]>
3127    
3128            * Thuban/UI/application.py: Changed SESSION_CHANGED to
3129            SESSION_REPLACED.
3130    
3131            * Thuban/UI/classifier.py: Wrap text with _().
3132            (ClassGrid.CreateTable): Set dimensions and size hints here,
3133            instead of in Reset, so we only set the size once.
3134    
3135            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
3136    
3137            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
3138            Call Close() instead of Shutdown().
3139    
3140            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
3141    
3142            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
3143            Go back to using OnClose() instead of Shutdown().
3144    
3145    2003-03-10  Jonathan Coles   <[email protected]>
3146    
3147            * Thuban/UI/classifier.py (Classifier): SelectField() needed
3148            to know the old field index as well as the new one.
3149    
3150    2003-03-10  Jonathan Coles   <[email protected]>
3151    
3152            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
3153            to correctly set the table information and call this from
3154            __init__ and from _OnFieldSelect so that all the information
3155            is up to date when the dialog opens and when a field is changed.
3156    
3157    2003-03-10  Jonathan Coles   <[email protected]>
3158    
3159            * Thuban/Model/classification.py (Classification): Don't use
3160            layer's message function directly, use the ClassChanged() method
3161            when then classification changes. SetField/SetFieldType/SetLayer
3162            must keep the information about field name and field type in
3163            sync when an owning layer is set or removed.
3164    
3165            * Thuban/Model/layer.py: Added ClassChanged() so that the
3166            classification can tell the layer when its data has changed.
3167            (Layer.SetClassification): Accepts None as an arguement to
3168            remove the current classification and correctly handles
3169            adding a new classification.
3170    
3171            * Thuban/Model/load.py: Comment out print statement
3172    
3173            * test/test_classification.py, test/test_save.py: New and
3174            improved tests.
3175    
3176    2003-03-07  Jonathan Coles   <[email protected]>
3177    
3178            * Thuban/Model/classification.py: Implemented __copy__ and
3179            __deepcopy__ for ClassGroup* and ClassGroupProperites so
3180            they can easily be copied by the classifier dialog.
3181            (ClassGroupProperites.__init__): The default line color should
3182            have been Color.Black.
3183    
3184            * Thuban/UI/classifier.py: Setting and Getting table values now
3185            uses a consistent set of functions.
3186            (Classifier): Now non-modal. Has field type label which changes
3187            as the field changes. Keep track of buttons in a list so that
3188            we can enable/disable the buttons when the None field is selected.
3189            (SelectPropertiesDialog): Add buttons to make the colors transparent.
3190    
3191            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
3192            does what OnClose did, but can be called by the application to
3193            close a window. Needed when a session changes, and we have to
3194            close the classifier windows.
3195    
3196            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
3197            Shuts down open dialogs. Used when a new session is created
3198            or a session is opened.
3199            (MainWindow.SaveSession): Should only call application.SaveSession()
3200            if we don't call SaveSessionAs first.
3201            (MainWindow.Classify): Allow different classifier dialogs for
3202            different layers.
3203    
3204            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
3205            the parent class handle it. Add Shutdown() to unsubscibe from
3206            event notification and call the parent Shutdown(). This was
3207            necessary so the application can close the tree window.
3208    
3209    2003-03-06  Jonathan Coles   <[email protected]>
3210    
3211            * Thuban/Model/classification.py: Minor documentation changes,
3212            Addition of __eq__ and __ne__ methods.
3213            (Classification.SetLayer): prevent recursion between this method
3214            and Layer.SetClassification().
3215    
3216            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
3217    
3218            * Thuban/Model/layer.py (SetClassification): prevent recursion
3219            between this method and Classification.SetLayer().
3220    
3221            * test/test_classification.py, test/test_load.py,
3222            test/test_session.py: Fixed and added tests for the classification
3223            classes.
3224    
3225    2003-03-06  Bernhard Herzog  <[email protected]>
3226    
3227            * Thuban/UI/classifier.py (ClassGrid.__init__)
3228            (ClassGrid.CreateTable): Move the SetSelectionMode call to
3229            CreateTable because otherwise it triggers an assertion in
3230            wxPython/wxGTK 2.4.
3231    
3232    2003-03-05  Jonathan Coles   <[email protected]>
3233    
3234            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
3235    
3236            * Thuban/Model/load.py: import FIELDTYPE constants from table.
3237    
3238            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
3239    
3240            * Thuban/Model/table.py: Put FIELDTYPE constants back.
3241    
3242    2003-03-05  Jonathan Coles   <[email protected]>
3243    
3244            * Thuban/UI/classifier.py: Added class documentation.
3245            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
3246            Store just the groups in the table and generate the other
3247            column information when it is requested. Add "None" field
3248            to pull-down to select no classification.
3249    
3250            * Thuban/common.py: Moved FIELDTYPE constants from table.py
3251            (Str2Num): Only catch ValueError exceptions.
3252    
3253            * Thuban/Model/classification.py: Class documentation. Renaming
3254            of methods with Stroke to Line. Groups are stored in a single
3255            list with the default as the first element. Groups are searched
3256            in the order they appear in the list.
3257    
3258            * Thuban/Model/color.py: Documentation.
3259    
3260            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
3261            the kind of data represented by a field.
3262    
3263            * Thuban/Model/load.py (ProcessSession): Use proper string
3264            conversion function; fixes RTbug #1713.
3265    
3266            * Thuban/Model/save.py (Saver): Store field type information.
3267    
3268            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
3269            (Table): Add field_info_by_name() to retrieve field information
3270            by specifying the field name, not the number.
3271    
3272            * Thuban/UI/mainwindow.py: Function name changes.
3273    
3274            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
3275            get the layer classification once. Don't try to classify
3276            values when the field is None: just use the default properties.
3277    
3278            * Thuban/UI/view.py: Function name changes.
3279    
3280            * Doc/thuban.dtd: Add field_type attribute to a classification.
3281    
3282    2003-03-04  Bernhard Herzog  <[email protected]>
3283    
3284            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
3285            the fill and stroke layer attributes optional with suitable
3286            default values. Add the stroke_width layer attribute. Use correct
3287            syntax for empty elements. Make the attribute list for labels
3288            refer to the label element.
3289    
3290    2003-03-04  Bernhard Herzog  <[email protected]>
3291    
3292            * setup.py (thuban_build_py.build): Add a comment about distutils in
3293            Python 2.3 containing some of the functionality we implement in
3294            setup.py ourselves.
3295    
3296            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
3297            before the selection mode. Doing it the other way round triggers
3298            an assertion in wxWindows.
3299    
3300            * Thuban/Model/save.py (escape): Fix typo in doc-string
3301    
3302            * Thuban/Model/classification.py: Remove unnecessary wxPython
3303            import
3304    
3305    2003-03-04  Jonathan Coles   <[email protected]>
3306    
3307            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
3308            Parameter 'value' should default to None.
3309    
3310            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
3311            the class attribute __classification is now private.
3312    
3313            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
3314            Classifier to ClassGrid. Added support for removing selected rows,
3315            which including code for keeping track of when cells are selected,
3316            and deselected.
3317            (ClassTable): Support for added/removing rows. Fixed a problem
3318            with __ParseInput whereby it would not allow strings (only numbers)
3319            to be entered.
3320            (Classifier): Added button and supporting code for removing
3321            selected rows.
3322    
3323    2003-02-27  Jonathan Coles   <[email protected]>
3324    
3325            * Thuban/common.py: Moved color conversion functions into
3326            Thuban/UI/common.py.
3327            (Str2Num): Now converts the float (not the string) to a long/int
3328            so that an exception isn't thrown.
3329    
3330            * Thuban/UI/common.py: Common functions used in several UI modules
3331    
3332            * Thuban/Model/classification.py: Changed the class hierarchy
3333            so that a Classification consists of Groups which return
3334            Properties when a value matches a Group.
3335    
3336            * Thuban/Model/layer.py: Fixed name resolution problem.
3337    
3338            * Thuban/Model/load.py: Use new Classification and Group functions.
3339    
3340            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
3341            failure.
3342            (Saver.write_classification): Use new Classification and Group
3343            functions.
3344    
3345            * Thuban/UI/classifier.py: Changes to use new Classification and Group
3346            functions. Fix to create a tuple with a single value instead of
3347            simply returning the value.
3348    
3349            * Thuban/UI/renderer.py: Use new Classification and Group functions.
3350            Use common.py functions.
3351    
3352            * Thuban/UI/tree.py: Use common.py functions.
3353            
3354            * test/test_classification.py: Use new Classification and Group
3355            classes.
3356    
3357    2003-02-24  Jonathan Coles   <[email protected]>
3358    
3359            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
3360            functions from Thuban color objects to wxWindow colour objects.
3361    
3362            * Thuban/Model/classification.py (Classification): Renamed
3363            GetProperties() to GetClassData(). Used the new iterator
3364            in TreeInfo().
3365            (ClassIterator): Iterator implementation to iterate over the
3366            ClassData objects in a classification object.
3367    
3368            * Thuban/Model/save.py (Saver.write_classificaton): Uses
3369            the new iterator to save the classification information.
3370    
3371            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
3372            for changing the stroke and fill colors and previewing the
3373            changes.
3374    
3375            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
3376            MainWindow.SaveSessionAs): Text string changes so the dialogs
3377            have more meaningful titles.
3378    
3379            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
3380            Classification method name from GetProperties to GetClassData.
3381    
3382            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
3383            instead of accessing now non-existent class variables.
3384    
3385    2003-02-24  Bernhard Herzog  <[email protected]>
3386    
3387            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
3388            unneeded Shape() call. Rendering is substantially faster without
3389            it and it avoids some problems with broken shape files.
3390    
3391  2003-02-20  Frank Koormann   <[email protected]>  2003-02-20  Frank Koormann   <[email protected]>
3392    
3393          Force minimal size of identify and label dialogs. The autosizing          Force minimal size of identify and label dialogs. The autosizing

Legend:
Removed from v.423  
changed lines
  Added in v.1407

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26