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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26