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

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

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

revision 971 by jonathan, Wed May 21 17:26:40 2003 UTC revision 1242 by frank, Thu Jun 19 09:26:10 2003 UTC
# Line 1  Line 1 
1  2003-05-20  Jonathan Coles   <[email protected]>  2003-06-19  Frank Koormann   <[email protected]>
2    
3            MERGE from the greater-ms3 branch.
4    
5            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
6            scale if projection is latlong to get better estimate.
7    
8            Fix problem of hidden properties dialog under windows after double
9            click on layer tree:
10            The tree control always gets an Expanded / Collapsed event after
11            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
12            raises the already displayed window.
13    
14            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
15            raiseProperties initialized to prevent endless loops
16            (LegendTree._OnItemActivated): Depending on self.raiseProperties
17            simply raise the properties or open the dialog and issue a second
18            event.
19    
20    2003-06-18  Jonathan Coles   <[email protected]>
21    
22            * setup.py: Fix a few problems that occured under Windows.
23    
24    2003-06-18  Jonathan Coles   <[email protected]>
25    
26            When Thuban loaded the map was redrawn twice because the
27            legend was being opened after the mainwindow was created
28            and not during its creation. This meant the map was drawn
29            initially and then had to be redrawn when the legend
30            caused the display to change. Now the legend is opened
31            in the mainwindow constructor which resolves this issue.
32    
33            Also, although we were checking for the existence of
34            gdal and gdalwarp modules, the gdalwarp extension was
35            still being compiled (which may fail if the system doesn't
36            have gdal installed). the build_ext command to setup.py
37            now accepts the flags --with-gdal and --without-gdal.
38            If --without-gdal is specified setup.py will try to
39            use the gdal parameters specified by gdal-config. Under
40            windows, those parameters have to be set in setup.py
41            as with proj4 an wxWindows.
42    
43            * setup.py: Use a list instead of seperate variables for
44            extension parameters so we can create a generic function
45            that runs an appropriate *-config script.
46            (run_cs_script): Renamed from run_wx_script and modified
47            to accept a second argument which is a list of lists to
48            be filled in by the values returned from running the command.
49            (thuban_build_ext): New. Extends the build_ext command and
50            provides the options --with-gdal/--without-gdal which then
51            optionally includes the gdalwarp extension.
52    
53            * Thuban/Model/resource.py: First check if we can import
54            the gdalwarp Thuban extension before checking for gdal.
55            Also added some comments.
56            
57            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
58            the map is None which may be the case if none has been loaded
59            yet.
60    
61            * Thuban/UI/main.py (main): Remove call to ShowLegend.
62    
63            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
64    
65            * Thuban/UI/renderer.py: Check for gdal support before importing
66            gdalwarp.
67            (MapRenderer.render_map): Only try to optimize if we have gdal
68            support otherwise nothing will get drawn.
69    
70            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
71            during startup before a map has been created. Check if map is None
72            before using it and do nothing if it is.
73    
74    2003-06-17  Jonathan Coles   <[email protected]>
75    
76            Fix the problem with raster layers under Windows that caused
77            Thuban to crash. The view should respond to layer projection
78            changed events to update the display. Changes to a projection
79            should not cause the map to be set to full extent.
80            
81            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
82            current_map_proj to remember the current map projection so that
83            when the projection changes we know what the previous projection
84            was.
85            (MapCanvas.SetMap): Unsubscribe and subscribe to
86            LAYER_PROJECTION_CHANGED events.
87            (MapCanvas.projection_changed): Split into two methods that respond
88            to map and layer projection changes.
89            (MapCanvas.map_projection_changed): New. Takes the current view and
90            projects it using the new projection. This does not cause the
91            map to be redrawn at full extent.
92            (MapCanvas.layer_projection_changed): New. Cause a redraw which
93            will draw each layer in its new projection.
94            
95            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
96            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
97            under Windows.
98            
99            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
100            to twice sizeof(void*) because there are two digits for each
101            hex byte.
102    
103    2003-06-16  Bernhard Herzog  <[email protected]>
104    
105            Update to the layer interface: Direct access to the table,
106            shapetable, shapefile and filename attributes is now actively
107            deprecated by issuing deprecation warnings for all places where
108            this happens.
109    
110            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
111            to the instance variables table, shapetable, shapefile and
112            filename via __getattr__ so that we can issue a deprecation
113            warning.
114            (Layer.SetShapeStore): Don't set the deprecated instance variables
115            any more
116            (Layer.SetShapeStore): Don't use deprecated layer instance
117            variables
118            (Layer.Destroy): No need to explicitly remove the instance
119            variables any more
120            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
121            instance variables
122    
123            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
124            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
125            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
126            use deprecated layer instance variables
127    
128            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
129            deprecated layer instance variables
130    
131            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
132            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
133            instance variables
134    
135            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
136            deprecated layer instance variables
137    
138            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
139            deprecated layer instance variables
140    
141            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
142            deprecated layer instance variables
143    
144            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
145            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
146            variables
147    
148            * test/runtests.py (main): Turn Thuban's deprecation warnings into
149            errors so that they're cought by the tests
150    
151            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
152            layer instance variables
153    
154    2003-06-16  Jonathan Coles   <[email protected]>
155    
156            Fix a problem under Windows whereby if the user double-clicks on a
157            layer in the legend that tree item will expand or collapse as well
158            as open the layer properties dialog. The state of the tree item
159            should not be affected.
160    
161            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
162            preventExpandCollapse and subscribe to expanding and collapsing
163            events.
164            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
165            collapsing events and will veto the event if it has been triggered
166            by the user double clicking on a layer.
167            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
168            that an expanding/collapsing event should be vetoed.
169    
170    2003-06-13  Bernhard Herzog  <[email protected]>
171    
172            * Thuban/UI/classifier.py (Classifier.OnClose)
173            (Classifier.map_layers_removed)
174            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
175            in OnClose and not in map_layers_removed or
176            layer_shapestore_replaced to make sure it always happens when the
177            dialog is closed
178    
179    2003-06-13  Jonathan Coles   <[email protected]>
180    
181            This puts back a fix for Windows where a panel is needed so that
182            the background of the table view appears correctly.
183    
184            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
185            object that can be used by derived classes to place any
186            controls (including the grid) onto.
187            (QueryTableFrame.__init__): Use the panel as the parent window
188            for all the controls. Reparent the grid so that the panel is
189            the parent. Call UpdateStatusText() to correctly initialize
190            the status bar.
191    
192    2003-06-13  Jonathan Coles   <[email protected]>
193    
194            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
195            from wxFrame (as opposed to wxDialog like the other classes)
196            but otherwise behaves like the other classes. This is needed
197            for the TableView which isn't really a dialog and needs to
198            have a status bar and control buttons.
199    
200            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
201            instance variable to keep track of how many rows are selected.
202            Subscribe once to the the events we are interested in.
203            (ThubanGrid.OnRangeSelect): Only handle event if event handling
204            hasn't been turned off.
205            (ThubanGrid.OnSelectCell): Only handle event if event handling
206            hasn't been turned off.
207            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
208            as an event listener (which changes the event handler stack)
209            simply set an instance variable to False. This is checked in
210            the event handlers.
211            (ThubanGrid.GetNumberSelected): Return the number of currently
212            selected rows.
213            (TableFrame): Inherit from ThubanFrame so we can have a
214            status bar and control buttons.
215            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
216            Explicitly set which items are selected in the operator choice and
217            action choice so there is always a valid selection. Fixes RTbug #1941.
218            Subscribe to grid cell selection events so we can update the
219            status bar.
220            (QueryTableFrame.UpdateStatusText): Update the status bar with
221            how many rows are in the grid, how many columns, and how many
222            rows are selected.
223            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
224            Call UpdateStatusText when cells are (de)selected.
225            (QueryTableFrame.OnQuery): Use the string value in the value
226            combo if either the selected item index is 0 or if the string
227            cannot be found in the predefined list (this happens if the
228            user changes the text). Fixes RTbug #1940.
229            Only turn off the grid event listeners if there a query comes
230            back with a none empty list of ids. in the case that the list
231            is empty this causes a grid.ClearSelection() call to actually
232            clear the grid selection which causes the selected items in
233            the map to be deselected. Fixes RTbug #1939.
234    
235            * test/test_save.py (XMLWriterTest.Encode): Check return values.
236            Fixes RTbug #1851.
237    
238    2003-06-13  Bernhard Herzog  <[email protected]>
239    
240            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
241            self.selected_shape with the current selection to make sure the
242            contents of the dialog are up to date when it's shown for the
243            first time.
244            The dialog used to work without this by luck. The recent fix to
245            the connector module 'broke' a 'feature' the identify view was
246            relying on, i.e that subscribing to a message in response to
247            receiving a message of that type would mean that the new
248            subscriber would also be called for the same message.
249            
250    2003-06-12  Jonathan Coles   <[email protected]>
251    
252            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
253            the image is rendered. Fixes RTbug #1937.
254    
255    2003-06-12  Jonathan Coles   <[email protected]>
256    
257            * Thuban/Lib/fileutil.py: As is done under Windows, create the
258            user directory if it doesn't exist on a posix system.
259            Fixes RTbug #1815.
260    
261            * Thuban/Model/resource.py (get_user_proj_files): Moved the
262            called to get_application_dir here, so that the directory
263            will only be called if this method is invoked.
264    
265            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
266            the projfilepath if no projection is selected.
267    
268    2003-06-12  Jonathan Coles   <[email protected]>
269    
270            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
271            the scalebar if the current map has no projection set.
272    
273            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
274            projfilepath label to just the basename of the projection file
275            rather than include the entire path.
276    
277            * Thuban/Model/resource.py: Fix missed proj functions that
278            needed to be renamed.
279    
280    2003-06-12  Jonathan Coles   <[email protected]>
281    
282            * Thuban/Model/classification.py: Removed assert statements that
283            tested if the variable was an instance of Color.
284    
285            * Thuban/Model/color.py (Color): Remove commented code that isn't
286            used.
287            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
288            Fixes RTbug #1835.
289            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
290            Needed now that the class doesn't inherit from Color.
291    
292    2003-06-12  Jonathan Coles   <[email protected]>
293    
294            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
295            check unicode strings.
296    
297            * test/test_layer.py: Check for existence of gdal.
298    
299    2003-06-12  Jonathan Coles   <[email protected]>
300        
301            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
302            that was in load.py
303    
304            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
305            that was in save.py
306    
307    2003-06-12  Jonathan Coles   <[email protected]>
308    
309            This is largely a collection of bug fixes. We also handle the
310            case where gdal is not on the system. The XMLReader and XMLWriter
311            classes were moved into there own files to resolve some circular
312            import references and because they shouldn't really be in the
313            file that is dediciated to reading/writing session files since
314            they are also used elsewhere.
315    
316            * Thuban/Model/classgen.py: Renamed functions to follow the
317            function_names_with_underscores style. Fixes RTbug #1903.
318            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
319    
320            * Thuban/Model/layer.py: Import gdal only if it available.
321            (RasterLayer): Handle the case where the gdal library is unavailable.
322            Addresses RTbug #1877.
323    
324            * Thuban/Model/load.py (XMLReader): Moved into seperate file
325            xmlreader.py.
326    
327    2003-06-12  Jonathan Coles   <[email protected]>
328    
329            This is largely a collection of bug fixes. We also handle the
330            case where gdal is not on the system. The XMLReader and XMLWriter
331            classes were moved into there own files to resolve some circular
332            import references and because they shouldn't really be in the
333            file that is dediciated to reading/writing session files since
334            they are also used elsewhere.
335    
336            * Thuban/Model/classgen.py: Renamed functions to follow the
337            function_names_with_underscores style. Fixes RTbug #1903.
338            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
339    
340            * Thuban/Model/layer.py: Import gdal only if it available.
341            (RasterLayer): Handle the case where the gdal library is unavailable.
342            Addresses RTbug #1877.
343    
344            * Thuban/Model/load.py (XMLReader): Moved into seperate file
345            xmlreader.py.
346    
347            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
348            file xmlwriter.py.
349    
350            * Thuban/Model/resource.py: Renamed functions to following the
351            function_names_with_underscores style.
352            (has_gdal_support): New function that returns true if the gdal
353            library is available. Addresses RTbug #1877.
354    
355            * Thuban/UI/application.py (ThubanApplication.OpenSession):
356            Display a message box if the gdal library is not available, but
357            only if there are any layers that would use it. Addresses RTbug #1877.
358    
359            * Thuban/UI/classgen.py: Use renamed projection resource functions.
360            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
361            when using integers versus floats.
362    
363            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
364            determine if the "Add Image Layer" menu option should be
365            greyed out or not. Addresses RTbug #1877.
366    
367            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
368    
369            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
370            optimize if a raster layer is visible. Fixes RTbug #1931.
371            Only draw the raster layer if the gdal library is available.
372            Addresses RTbug #1877.
373    
374            * test/test_classgen.py: Add tests for generate_singletons,
375            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
376            (test_calculate_quantiles): Fix some tests to catch the new
377            ValueError that is raised.
378    
379            * test/test_proj.py: Use renamed projection resource functions.
380    
381            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
382            test for saving classified layers. Fixes RTbug #1902.
383            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
384    
385    2003-06-12  Jan-Oliver Wagner <[email protected]>
386    
387            Fix for http://intevation.de/rt/webrt?serial_num=1900.
388    
389            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
390    
391            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
392            multiplechoicedialog.py rather than from the wxPython library.
393    
394    2003-06-11  Frank Koormann  <[email protected]>
395    
396            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
397            update.
398    
399    2003-06-11  Frank Koormann  <[email protected]>
400    
401            * Thuban/Lib/fileutil.py (get_application_dir): New function to
402            determine the absolute .thuban/thuban directory under
403            "posix" (os.expanduser) and "nt" (read AppData registry key).
404    
405            * Thuban/Model/resource.py: Use get_application_dir
406    
407            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
408            Use get_application_dir.
409    
410    2003-06-10  Bernhard Herzog  <[email protected]>
411    
412            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
413            the messages MAP_LAYERS_REMOVED messages
414            (LayerTableFrame.OnClose): Unsubscribe from it.
415            (LayerTableFrame.map_layers_removed): New. Receiver for
416            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
417            dialog is showing is removed.
418    
419    2003-06-10  Bernhard Herzog  <[email protected]>
420    
421            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
422            of the receivers list so that unsubscribing in a receiver doesn't
423            modify it while iterating over it.
424    
425            * test/test_connector.py
426            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
427            unsubscribing in a receiver works correctly. See docstring for
428            details
429    
430    2003-06-10  Bernhard Herzog  <[email protected]>
431    
432            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
433            message.
434    
435            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
436            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
437            LAYER_CHANGED will still be sent if the classification changes.
438    
439            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
440            parameter so we can subscribe to some of its messages
441            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
442            and the layer's LAYER_SHAPESTORE_REPLACED
443            (Classifier.unsubscribe_messages): New. Unsubscribe from message
444            subscribed to in __init__
445            (Classifier.map_layers_removed)
446            (Classifier.layer_shapestore_replaced): receivers for the messages
447            subscribed to in __init__. Unsubscribe and close the dialog
448    
449            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
450            the map to the Classifier dialog
451    
452            * test/test_layer.py (SetShapeStoreTests): Derive from
453            SubscriberMixin as well so we can test messages
454            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
455            messages
456            (SetShapeStoreTests.tearDown): Clear the messages again
457            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
458            for the modified flag too
459            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
460            to check whether SetShapeStore sets the modified flag
461            (SetShapeStoreTests.test_set_shape_store_different_field_name)
462            (SetShapeStoreTests.test_set_shape_store_same_field)
463            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
464            Add tests for the messages. This checks both the new
465            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
466    
467    2003-06-06  Jan-Oliver Wagner <[email protected]>
468    
469            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
470            the menu items.
471    
472    2003-06-05  Frank Koormann  <[email protected]>
473    
474            * Thuban/UI/identifyview.py (IdentifyView.__init__):
475            Layout reimplemented without panel. Make life easier to fit the list
476            in the dialog.
477    
478    2003-06-05  Frank Koormann  <[email protected]>
479    
480            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
481            once on initialisation (Former implementation resulted in multiple
482            entries for each projection).
483            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
484            if set, select the projection found under the specified name. This
485            overwrites any other selection estimate.
486            Removed projchoice filling from this method.
487            (ProjFrame._OnSave, ProjFrame._OnAddToList):
488            Updated call of ProjFrame.__FillAvailList
489            (LCCPanel._DoLayout): Moved parameter controls in more common order.
490    
491            * Resources/Projections/defaults.proj: Extended defaults representing
492            various common European projections.
493    
494    2003-06-05  Frank Koormann  <[email protected]>
495    
496            * Thuban/UI/identifyview.py (IdentifyView.__init__):
497            Use ListCtrl instead of GridCtrl
498    
499            * Thuban/Model/resource.py:
500            Guess location of .thuban directory from tempdir parent directory.
501    
502            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
503            Guess location of .thuban directory from tempdir parent directory.
504    
505    2003-06-04  Bernhard Herzog  <[email protected]>
506    
507            Do not cache the values returned by the tree widget's
508            GetFirstChild and GetNextChild methods because it led to lots of
509            segfaults. The new way requires more brute force but is more
510            reliable.
511    
512            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
513            variable layer2id
514            (LegendTree.find_layer): New method to do with brute force what
515            layer2id tried to accomplish
516            (LegendTree._OnMsgLayerChanged)
517            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
518            Use find_layer instead of layer2id
519            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
520            update layer2id anymore
521            (LegendTree._OnMsgMapLayersRemoved)
522            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
523    
524    2003-06-03  Thomas Koester  <[email protected]>
525    
526            * Thuban/Model/classgen.py (GenQuantiles0): New function.
527    
528    2003-06-02  Bernhard Herzog  <[email protected]>
529    
530            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
531            New commands.
532            (main_menu): Add the new commands.
533            (MainWindow.TableRename): New. Implementation of the table_rename
534            command.
535            (MainWindow.RenameLayer): New. Implementation of the layer_rename
536            command.
537    
538            * Thuban/Model/session.py (Session.AddTable): call self.changed to
539            set the modified flag
540    
541            * test/test_session.py (TestSessionSimple.test_add_table): Test
542            whether the modified flag is set properly
543    
544            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
545            instead of issue so that the modified flags get updated.
546    
547            * test/test_base.py (SomeTitledObject): Derive from Modifiable
548            instead of Publisher to reflect reality better and to accomodate
549            the fact that SetTitle now calls changed instead of issue
550    
551    2003-06-02  Bernhard Herzog  <[email protected]>
552    
553            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
554            acquisition has to happen before the try in a try-finally.
555    
556    2003-06-02  Bernhard Herzog  <[email protected]>
557    
558            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
559            possible that a layer is removed that is not currently selected in
560            the legend so don't check for this.
561    
562    2003-05-30  Bernhard Herzog  <[email protected]>
563    
564            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
565            variables to None that have direct or indirect references to
566            shapefiles or dbf files to make sure that they do go away and the
567            files are closed.
568    
569    2003-05-30  Bernhard Herzog  <[email protected]>
570    
571            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
572            availImgListIndices when a new image list is created
573            
574    2003-05-30  Bernhard Herzog  <[email protected]>
575    
576            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
577            changing_selection to indicate whether the LegendTree code itself
578            is currently changing the selection
579            (LegendTree.normalize_selection): New method to normalize the
580            selection by selecting the layer item even if the user clicked on
581            the classification.
582            (LegendTree._OnSelChanged): normalize the selection. This works
583            around a bug in wx which doesn't keep track of the selection
584            properly when subtrees are deleted.
585    
586    2003-05-30  Bernhard Herzog  <[email protected]>
587    
588            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
589            maximum and minimum scale factors.
590    
591            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
592            changes in classgen.py
593    
594    2003-05-30  Jonathan Coles   <[email protected]>
595    
596            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
597            all the methods functions. Fixes RTBug #1903.
598    
599            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
600            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
601            RTBug #1907.
602    
603            * Thuban/UI/classgen.py: Use classgen functions that were part
604            of the ClassGenerator class. Put try/finally blocks around
605            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
606            RTBug #1904.
607    
608            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
609    
610            * Thuban/UI/legend.py: The legend was cleared and repopulated any
611            time something changed which caused some state to be lost such
612            as which children were expanded or collapsed. Fixes RTBug #1901.
613            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
614            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
615            the legend but not in the map.
616            (LegendTree.__FillTree): Move main functionality out into smaller
617            methods that can be used by other methods.
618            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
619            if they are available.
620            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
621            that we override the wxTreeCtrl method. Iterate over children
622            and call __RemoveLayer.
623            (LegendTree.__AddLayer): New. Add a new layer to the legend.
624            (LegendTree.__RemoveLayer): Remove a layer from the legend.
625            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
626            Should only be called with the id of a layer branch.
627            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
628            Returns the root item or creates one if necessary.
629    
630            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
631            ProjectRasterFile with tuple arguments instead of strings.
632    
633            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
634            with try/finally. Fixes RTBug #1904.
635    
636            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
637            with try/finally. Fixes RTBug #1904.
638            (MapCanvas.FitSelectedToWindow): If a single point is selected
639            simply center it on the display. Fixes RTBug #1849.
640    
641            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
642            to be compiled as a standalone app. Now the code can only be
643            called from Python which simplifies the parameter passing.
644            (ProjectRasterFile): Handle Python arguments. Remove code that
645            checks for a destination dataset. Add more clean up code.
646    
647            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
648            TestMapWithContents.test_lower_layer_bottom):
649            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
650            Fixes RTBug #1907.
651    
652            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
653            extent to the map when the legend is toggled. Fixes RTBug #1881.
654    
655    2003-05-29  Jan-Oliver Wagner <[email protected]>
656    
657            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
658            unsubscribes all that is subcribed in __init__.
659    
660    2003-05-28  Bernhard Herzog  <[email protected]>
661    
662            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
663            (MainWindow.CanDuplicateLayer): New methods to implement the
664            Layer/Duplicate command.
665            (layer_duplicate command): New.
666            (main_menu): Add layer_duplicate to the Layer menu.
667    
668    2003-05-28  Bernhard Herzog  <[email protected]>
669    
670            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
671            renderer so that NULL/None values get displayed differently (by a
672            gray rectangle).
673            (TableGrid.__init__): Override the default renderers
674    
675    2003-05-28  Bernhard Herzog  <[email protected]>
676    
677            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
678            classification to "None" if the type of the field has changed.
679    
680            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
681            test for the Layer.SetShapeStore method
682    
683    2003-05-28  Jan-Oliver Wagner <[email protected]>
684    
685            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
686            does not necessarily have a filename).
687    
688    2003-05-28  Jan-Oliver Wagner <[email protected]>
689    
690            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
691            sort the selection list for the dialog.
692    
693    2003-05-28  Frank Koormann  <[email protected]>
694    
695            * extensions/thuban/wxproj.cpp
696            (project_point): Removed cast to int for projected point coordinates.
697            (shape_centroid): Return last point if all polygon vertices fall
698            to one point.
699    
700    2003-05-28  Bernhard Herzog  <[email protected]>
701    
702            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
703            with layers that don't have shapestores, i.e. raster layers.
704    
705    2003-05-28  Bernhard Herzog  <[email protected]>
706    
707            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
708            when determining the title from the filename.
709    
710            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
711            reflect changes in the way the title is derived from the filename
712    
713    2003-05-28  Frank Koormann  <[email protected]>
714    
715            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
716            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
717    
718    2003-05-27  Bernhard Herzog  <[email protected]>
719    
720            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
721            delegate SelectedLayer.
722            (MainWindow.LayerUnjoinTable): Implement.
723            (_can_unjoin): New. Helper function for the sensitivity of the
724            layer/unjoin command.
725    
726            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
727            (DerivedShapeStore.OrigShapeStore): New. Return the original
728            shapestore. Used to figure out how to unjoin.
729            (DerivedShapeStore.Shapefile): Fix a typo.
730    
731    2003-05-27  Bernhard Herzog  <[email protected]>
732    
733            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
734            well
735            (JoinDialog.__init__): Use the layer parameter and only build the
736            left choice when a layer is given
737            (JoinDialog.OnJoin): Handle layer joins as well
738            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
739            that the user selects the "Select..." item. The sensitivitly
740            updating is now in update_sensitivity
741            (JoinDialog.y): New method to refactor the sensitivity update of
742            the join button into its own method.
743    
744            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
745    
746    2003-05-27  Bernhard Herzog  <[email protected]>
747    
748            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
749            iff there are unreferenced tables in the session
750    
751    2003-05-27  Bernhard Herzog  <[email protected]>
752    
753            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
754    
755            * Thuban/Model/session.py (Session.UnreferencedTables): New method
756            to return tables that are not referenced by other tables or shape
757            stores and can be removed.
758            (Session.RemoveTable): Issue a TABLE_REMOVED message after
759            removing the table
760    
761            * Thuban/UI/mainwindow.py: Remove unused imports
762            (MainWindow.TableClose): Implement.
763    
764            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
765            messages so that the frame will be automatically closed when a new
766            session is opened or the table is removed.
767            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
768            __init__
769            (TableFrame.close_on_session_replaced)
770            (TableFrame.close_on_table_removed): New. Subscribers that close
771            the window
772    
773            * test/test_session.py (TestSessionMessages.test_remove_table)
774            (TestSessionSimple.test_remove_table): Move the test to
775            TestSessionSimple and add test for the TABLE_REMOVED message
776            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
777            (TestSessionSimple.test_unreferenced_tables) New. Test for the
778            UnreferencedTables method.
779            (UnreferencedTablesTests): New. Class with some more sophisticated
780            tests for UnreferencedTables.
781    
782    2003-05-27  Frank Koormann  <[email protected]>
783    
784            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
785            display has some unwanted side effects. Removed again.
786    
787    2003-05-27  Frank Koormann  <[email protected]>
788    
789            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
790    
791            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
792    
793    2003-05-27  Jan-Oliver Wagner <[email protected]>
794    
795            * test/test_menu.py (MenuTest.test): Added test for
796            Menu.RemoveItem().
797    
798            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
799            the menu.
800    
801    2003-05-27  Frank Koormann  <[email protected]>
802            
803            Nonmodal dialogs without parent (i.e. they can fall behind the main
804            window)
805    
806            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
807            all dialogs in the dialogs dictionary and the canvas.
808    
809            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
810            parent, i.e. can fall behind other windows.
811            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
812            dictionary before removing it.
813    
814            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
815    
816            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
817            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
818            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
819    
820    2003-05-27  Bernhard Herzog  <[email protected]>
821    
822            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
823            tableview dialog
824            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
825            Also, don't use the table's titles as the dialog names. The titles
826            aren't guaranteed to be unique.
827            (MainWindow.TableOpen): Open a table view dialog after opening the
828            table
829    
830    2003-05-27  Bernhard Herzog  <[email protected]>
831    
832            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
833            effect can be achieved by simply closing the window showing the
834            table.
835            (MainWindow.TableHide): Removed.
836            (main_menu): Removed "table_hide"
837    
838    2003-05-27  Frank Koormann  <[email protected]>
839    
840            Fix legend tree display problems under Win32
841    
842            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
843            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
844            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
845    
846            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
847    
848    2003-05-27  Jan-Oliver Wagner <[email protected]>
849    
850            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
851            'after' now allows to insert separators almost anywhere in the menu.
852    
853    2003-05-27  Frank Koormann  <[email protected]>
854    
855            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
856            "S" of selection box label to hint on hot key (Alt-S). Works under
857            Win32 but is ignored under GTK.
858    
859    2003-05-26  Frank Koormann  <[email protected]>
860    
861            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
862            Center Choices.
863    
864    2003-05-26  Bernhard Herzog  <[email protected]>
865    
866            Remove the Precision methods again. They're too DBF specific to be
867            part of the table interface and they're only used in table_to_dbf
868            anyway.
869            
870            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
871            fixed precision of 12 for doubles.
872            (TransientTableBase.Precision): Removed
873            (AutoTransientTable.Width): Delegate to self.table.
874    
875            * Thuban/Model/table.py (DBFTable.Precision)
876            (MemoryTable.Precision): Removed.
877            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
878            (table_to_dbf): Use a fixed precision of 12 for floats unless the
879            column object specifies something else.
880    
881            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
882            test for table_to_dbf
883    
884    2003-05-26  Bernhard Herzog  <[email protected]>
885    
886            * test/test_transientdb.py
887            (TestTransientTable.run_iceland_political_tests): Fix a comment.
888    
889    2003-05-26  Bernhard Herzog  <[email protected]>
890    
891            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
892            implementation. Mark parts of the file format strings for
893            localization.
894    
895            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
896            file and add the table to the tables managed by the session
897    
898            * test/test_session.py (TestSessionSimple.test_open_table_file):
899            New. test case for OpenTableFile
900    
901    2003-05-26  Jan-Oliver Wagner <[email protected]>
902    
903            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
904            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
905            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
906            Replace the true/false of wxWindows by True/False of Python 2.2.1.
907    
908    2003-05-26  Jan-Oliver Wagner <[email protected]>
909    
910            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
911            already a selection present, update the grid accordingly.
912    
913            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
914            resizeable and increase its initial size.
915    
916    2003-05-26  Frank Koormann  <[email protected]>
917    
918            Table export functionality
919    
920            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
921            Return width (in characters) for a column.
922            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
923            (table_to_dbf): Write table to dbf file.
924            (table_to_csv): Write table to csv file.
925    
926            * Thuban/Model/transientdb.py (TransientTableBase.Width,
927            TransientTableBase.Precision): Return column width and precision.
928    
929            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
930            or table_to_csv depending on file selection.
931    
932            * test/test_dbf_table.py:
933            Test table_to_dbf (extension of former part of test).
934    
935            * test/test_csv_table.py:
936            Test table_to_csv.
937    
938    2003-05-23  Jan-Oliver Wagner <[email protected]>
939    
940            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
941            Use QueryTableFrame instead of TableFrame.
942    
943            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
944            table window with 'Layer Table:' instead of 'Table:'.
945    
946    2003-05-23  Jan-Oliver Wagner <[email protected]>
947    
948            Give all tables a title via mix-in TitledObject.LayerShowTable
949    
950            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
951            only if it exists.
952    
953            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
954            and call its init-method with a default title. Remove Title() method.
955    
956            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
957            AutoTransientTable): mix-in TitledObject and call its init-method with
958            a default title. Remove Title() method.
959    
960    2003-05-23  Bernhard Herzog  <[email protected]>
961    
962            * Thuban/Model/session.py (Session.AddShapeStore): Define
963            AddShapeStore analogously to AddTable.
964    
965            * test/test_session.py (TestSessionSimple.test_add_shapestore):
966            New. Test for AddShapeStore
967    
968    2003-05-23  Jan-Oliver Wagner <[email protected]>
969    
970            Introducing QueryTableFrame and a very coarse ShowTable implementation.
971    
972            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
973            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
974            The latter implements the selection GUI without dependency on a layer.
975            LayerTableFrame now is derived from QueryTableFrame and connects
976            to a layer.
977    
978            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
979            implementation that still needs work.
980    
981            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
982    
983    2003-05-22  Frank Koormann  <[email protected]>
984    
985            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
986            Added "outer_join = False" as optional parameter.
987            (TransientJoinedTable.create): If outer join is true, perform a
988            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
989            the left table. Records not matching are filled with 0 / None.
990    
991            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
992            (JoinDialog.OnJoin): Consider outer join check box.
993    
994    2003-05-22  Bernhard Herzog  <[email protected]>
995    
996            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
997            somewhat safer way. Storing the traceback in a local variable can
998            lead to memory leaks
999    
1000    2003-05-22  Bernhard Herzog  <[email protected]>
1001    
1002            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
1003            the wxMessageDialog's Destroy() method.
1004    
1005    2003-05-22  Frank Koormann  <[email protected]>
1006    
1007            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
1008            TransientTable.Title()
1009    
1010    2003-05-22  Frank Koormann  <[email protected]>
1011    
1012            Join Dialog, initial version.
1013    
1014            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
1015    
1016            * Thuban/UI/join.py (JoinDialog): Functional implementation of
1017            former framework. Renamed Table1/Table2 to LeftTable/RightTable
1018            in all occurences.
1019    
1020            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
1021            Typo fixed.
1022    
1023    2003-05-22  Bernhard Herzog  <[email protected]>
1024    
1025            Give the tables titles so that the GUI can display more meaningful
1026            names. For now the titles are fixed but depend on e.g. filenames
1027            or the titles of the joined tables.
1028    
1029            * Thuban/Model/transientdb.py (TransientTable.Title)
1030            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
1031    
1032            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
1033    
1034            * test/test_transientdb.py
1035            (TestTransientTable.test_auto_transient_table_title): New. Test
1036            for the Title method
1037            (TestTransientTable.test_transient_joined_table)
1038            (TestTransientTable.test_transient_table): Add test for the Title
1039            methods
1040    
1041            * test/test_memory_table.py (TestMemoryTable.test_title): New.
1042            Test for the Title method
1043    
1044            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
1045            the Title method
1046    
1047    2003-05-22  Bernhard Herzog  <[email protected]>
1048    
1049            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
1050            Provide a better way to destroy the layers
1051            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
1052            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
1053            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
1054            the new way to destroy the layers.
1055            (TestLayer.test_derived_store): New. Test for using a layer with a
1056            DerivedShapeStore
1057    
1058            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
1059            filename if the shape store actually has one.
1060    
1061    2003-05-22  Bernhard Herzog  <[email protected]>
1062    
1063            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
1064            for the filename
1065    
1066            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
1067            for the FileName method
1068            (TestDBFTableWriting.test_write): Fix spelling of filename
1069    
1070    2003-05-22  Thomas Koester  <[email protected]>
1071    
1072            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
1073            from SciParam that now really is immutable.
1074    
1075    2003-05-22  Frank Koormann  <[email protected]>
1076    
1077            Layer Top/Bottom placement added to legend.
1078    
1079            * Thuban/UI/legend.py
1080            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
1081            bound to tool events.
1082            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
1083            New, methods binding the event methods with the map methods.
1084    
1085            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
1086            layer at top/bottom of layer stack.
1087    
1088            * Resources/Bitmaps/top_layer.xpm: New button icon.
1089    
1090            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
1091    
1092    2003-05-22  Bernhard Herzog  <[email protected]>
1093    
1094            * Thuban/Model/session.py (Session.RemoveTable): New method to
1095            remove tables
1096    
1097            * test/test_session.py (TestSessionSimple.test_remove_table): New.
1098            Test for RemoveTable
1099    
1100    2003-05-22  Thomas Koester  <[email protected]>
1101    
1102            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
1103            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
1104    
1105    2003-05-22  Bernhard Herzog  <[email protected]>
1106    
1107            Implement a way to discover dependencies between tables and
1108            shapestores.
1109    
1110            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
1111            (TransientJoinedTable.Dependencies)
1112            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
1113            interface
1114            (TransientJoinedTable.__init__): Keep tack of the original table
1115            objects in addition to the corresponding transient tables.
1116    
1117            * Thuban/Model/table.py (DBFTable.Dependencies)
1118            (MemoryTable.Dependencies): New. Implement the dependencies
1119            interface
1120    
1121            * Thuban/Model/data.py (ShapeTable): New. Helper class for
1122            ShapefileStore
1123            (ShapefileStore.__init__): Use ShapeTable instead of
1124            AutoTransientTable
1125            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
1126            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
1127            methods for filename and type
1128            (ShapefileStore.Dependencies): New. Implement the dependencies
1129            interface
1130            (DerivedShapeStore): New class to replace SimpleStore. The main
1131            difference to SimpleStore is that it depends not on a shapefile
1132            but another shapestore which expresses the dependencies a bit
1133            better
1134            (SimpleStore.__init__): Add deprecation warning.
1135    
1136            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
1137            Test for the Dependencies method.
1138    
1139            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
1140            New. Test for the Dependencies method.
1141    
1142            * test/test_transientdb.py
1143            (TestTransientTable.test_auto_transient_table_dependencies): New.
1144            Test for the Dependencies method.
1145            (TestTransientTable.test_transient_joined_table): Add test for the
1146            Dependencies method.
1147    
1148            * test/test_session.py (TestSessionSimple.setUp)
1149            (TestSessionSimple.tearDown): New. Implement a better way to
1150            destroy the sessions.
1151            (TestSessionSimple.test_initial_state)
1152            (TestSessionSimple.test_add_table): Bind session to self.session
1153            so that it's destroyed by tearDown
1154            (TestSessionSimple.test_open_shapefile): New. Test for
1155            OpenShapefile and the object it returns
1156    
1157    2003-05-22  Bernhard Herzog  <[email protected]>
1158    
1159            * Thuban/Model/session.py (Session.AddTable): New method to
1160            register tables with the session.
1161            (Session.Tables): Return the tables registered with AddTable too.
1162    
1163            * test/test_session.py (TestSessionSimple.test_add_table): New.
1164            Test case for the AddTable method
1165    
1166    2003-05-22  Frank Koormann  <[email protected]>
1167    
1168            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
1169            lower right corner, center labels for selections, initialize controls
1170            in reasonable order for keyboard navigation.
1171    
1172            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
1173            (ProjFrame.__DoOnProjAvail): Determine position of current projection
1174            using the wxListBox.FindString() method. Still a problem (#1886)
1175    
1176            * Thuban/UI/classifier.py
1177            (Classifier.__init__, SelectPropertiesDialog.__init__)
1178    
1179            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
1180            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
1181            different classification types from here to __init__.
1182            (GenUniquePanel.__init__): Set the column width of the first field
1183            in the Field ListCtrl to the full width.
1184    
1185            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
1186            Button to 'Export'. Center Buttons in Selection Box, set Focus to
1187            Grid.
1188            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
1189            changes focus to the Selection when pressing "Alt-S".
1190    
1191            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
1192            the text if not visible. The italic font sometimes exceeds the
1193            rendering area.
1194    
1195    2003-05-21  Jonathan Coles   <[email protected]>
1196    
1197            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
1198            to OnClose so that Thuban closes correctly.
1199    
1200            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
1201            DockFrame.OnClose, not DockFrame._OnClose.
1202    
1203    2003-05-21  Jonathan Coles   <[email protected]>
1204    
1205          * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove          * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
1206          references to 'inf' and use new Range __init__ to pass floats          references to 'inf' and use new Range __init__ to pass floats

Legend:
Removed from v.971  
changed lines
  Added in v.1242

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26