/[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 1097 by jan, Thu May 29 10:03:30 2003 UTC revision 1248 by bh, Thu Jun 19 19:53:47 2003 UTC
# Line 1  Line 1 
1    2003-06-19  Bernhard Herzog  <[email protected]>
2    
3            Move version specific load tests to their own file.
4    
5            * test/test_load.py: Expand the doc-string to explain a bit how to
6            handle file format changes.
7            (TestClassification.test): Update the docstring as this test is
8            not about Thuban 0.2 anymore.
9    
10            * test/test_load_0_2.py: New file with the load tests for thuban
11            files created with Thuban 0.2 and earlier.
12    
13    2003-06-19  Bernhard Herzog  <[email protected]>
14    
15            Add XML validation to some of the tests. Validation will only be
16            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
17            To make the DTD available to the test cases it's moved into
18            Resources/XML
19    
20            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
21            for versions up to and including 0.2. Two slight changes: added an
22            encoding specification and fixed the comment which refered to
23            GRASS, not Thuban
24    
25            * test/xmlsupport.py: New support module for tests involving XML.
26            Currently there's a mix-in class for XML validation.
27    
28            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
29    
30            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
31            so that we can validate the
32            (SaveSessionTest.testEmptySession)
33            (SaveSessionTest.testSingleLayer)
34            (SaveSessionTest.testSingleLayer)
35            (SaveSessionTest.testLayerProjection)
36            (SaveSessionTest.testRasterLayer)
37            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
38    
39            * test/runtests.py (main): Call print_additional_summary instead
40            of print_garbage_information
41    
42            * test/support.py (resource_dir): New function to return the
43            "Resource" subdirectory
44            (print_additional_summary): New function to combine several
45            summary functions
46            (run_tests): Use print_additional_summary instead of calling
47            print_garbage_information directly
48    
49    2003-06-19  Bernhard Herzog  <[email protected]>
50    
51            * Doc/thuban.dtd (classification): Correct the content model of
52            the classification element.
53            (projection): Add the "name" attribute
54    
55    2003-06-19  Frank Koormann   <[email protected]>
56    
57            MERGE from the greater-ms3 branch.
58    
59            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
60            scale if projection is latlong to get better estimate.
61    
62            Fix problem of hidden properties dialog under windows after double
63            click on layer tree:
64            The tree control always gets an Expanded / Collapsed event after
65            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
66            raises the already displayed window.
67    
68            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
69            raiseProperties initialized to prevent endless loops
70            (LegendTree._OnItemActivated): Depending on self.raiseProperties
71            simply raise the properties or open the dialog and issue a second
72            event.
73    
74    2003-06-18  Jonathan Coles   <[email protected]>
75    
76            * setup.py: Fix a few problems that occured under Windows.
77    
78    2003-06-18  Jonathan Coles   <[email protected]>
79    
80            When Thuban loaded the map was redrawn twice because the
81            legend was being opened after the mainwindow was created
82            and not during its creation. This meant the map was drawn
83            initially and then had to be redrawn when the legend
84            caused the display to change. Now the legend is opened
85            in the mainwindow constructor which resolves this issue.
86    
87            Also, although we were checking for the existence of
88            gdal and gdalwarp modules, the gdalwarp extension was
89            still being compiled (which may fail if the system doesn't
90            have gdal installed). the build_ext command to setup.py
91            now accepts the flags --with-gdal and --without-gdal.
92            If --without-gdal is specified setup.py will try to
93            use the gdal parameters specified by gdal-config. Under
94            windows, those parameters have to be set in setup.py
95            as with proj4 an wxWindows.
96    
97            * setup.py: Use a list instead of seperate variables for
98            extension parameters so we can create a generic function
99            that runs an appropriate *-config script.
100            (run_cs_script): Renamed from run_wx_script and modified
101            to accept a second argument which is a list of lists to
102            be filled in by the values returned from running the command.
103            (thuban_build_ext): New. Extends the build_ext command and
104            provides the options --with-gdal/--without-gdal which then
105            optionally includes the gdalwarp extension.
106    
107            * Thuban/Model/resource.py: First check if we can import
108            the gdalwarp Thuban extension before checking for gdal.
109            Also added some comments.
110            
111            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
112            the map is None which may be the case if none has been loaded
113            yet.
114    
115            * Thuban/UI/main.py (main): Remove call to ShowLegend.
116    
117            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
118    
119            * Thuban/UI/renderer.py: Check for gdal support before importing
120            gdalwarp.
121            (MapRenderer.render_map): Only try to optimize if we have gdal
122            support otherwise nothing will get drawn.
123    
124            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
125            during startup before a map has been created. Check if map is None
126            before using it and do nothing if it is.
127    
128    2003-06-17  Jonathan Coles   <[email protected]>
129    
130            Fix the problem with raster layers under Windows that caused
131            Thuban to crash. The view should respond to layer projection
132            changed events to update the display. Changes to a projection
133            should not cause the map to be set to full extent.
134            
135            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
136            current_map_proj to remember the current map projection so that
137            when the projection changes we know what the previous projection
138            was.
139            (MapCanvas.SetMap): Unsubscribe and subscribe to
140            LAYER_PROJECTION_CHANGED events.
141            (MapCanvas.projection_changed): Split into two methods that respond
142            to map and layer projection changes.
143            (MapCanvas.map_projection_changed): New. Takes the current view and
144            projects it using the new projection. This does not cause the
145            map to be redrawn at full extent.
146            (MapCanvas.layer_projection_changed): New. Cause a redraw which
147            will draw each layer in its new projection.
148            
149            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
150            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
151            under Windows.
152            
153            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
154            to twice sizeof(void*) because there are two digits for each
155            hex byte.
156    
157    2003-06-16  Bernhard Herzog  <[email protected]>
158    
159            Update to the layer interface: Direct access to the table,
160            shapetable, shapefile and filename attributes is now actively
161            deprecated by issuing deprecation warnings for all places where
162            this happens.
163    
164            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
165            to the instance variables table, shapetable, shapefile and
166            filename via __getattr__ so that we can issue a deprecation
167            warning.
168            (Layer.SetShapeStore): Don't set the deprecated instance variables
169            any more
170            (Layer.SetShapeStore): Don't use deprecated layer instance
171            variables
172            (Layer.Destroy): No need to explicitly remove the instance
173            variables any more
174            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
175            instance variables
176    
177            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
178            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
179            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
180            use deprecated layer instance variables
181    
182            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
183            deprecated layer instance variables
184    
185            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
186            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
187            instance variables
188    
189            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
190            deprecated layer instance variables
191    
192            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
193            deprecated layer instance variables
194    
195            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
196            deprecated layer instance variables
197    
198            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
199            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
200            variables
201    
202            * test/runtests.py (main): Turn Thuban's deprecation warnings into
203            errors so that they're cought by the tests
204    
205            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
206            layer instance variables
207    
208    2003-06-16  Jonathan Coles   <[email protected]>
209    
210            Fix a problem under Windows whereby if the user double-clicks on a
211            layer in the legend that tree item will expand or collapse as well
212            as open the layer properties dialog. The state of the tree item
213            should not be affected.
214    
215            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
216            preventExpandCollapse and subscribe to expanding and collapsing
217            events.
218            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
219            collapsing events and will veto the event if it has been triggered
220            by the user double clicking on a layer.
221            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
222            that an expanding/collapsing event should be vetoed.
223    
224    2003-06-13  Bernhard Herzog  <[email protected]>
225    
226            * Thuban/UI/classifier.py (Classifier.OnClose)
227            (Classifier.map_layers_removed)
228            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
229            in OnClose and not in map_layers_removed or
230            layer_shapestore_replaced to make sure it always happens when the
231            dialog is closed
232    
233    2003-06-13  Jonathan Coles   <[email protected]>
234    
235            This puts back a fix for Windows where a panel is needed so that
236            the background of the table view appears correctly.
237    
238            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
239            object that can be used by derived classes to place any
240            controls (including the grid) onto.
241            (QueryTableFrame.__init__): Use the panel as the parent window
242            for all the controls. Reparent the grid so that the panel is
243            the parent. Call UpdateStatusText() to correctly initialize
244            the status bar.
245    
246    2003-06-13  Jonathan Coles   <[email protected]>
247    
248            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
249            from wxFrame (as opposed to wxDialog like the other classes)
250            but otherwise behaves like the other classes. This is needed
251            for the TableView which isn't really a dialog and needs to
252            have a status bar and control buttons.
253    
254            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
255            instance variable to keep track of how many rows are selected.
256            Subscribe once to the the events we are interested in.
257            (ThubanGrid.OnRangeSelect): Only handle event if event handling
258            hasn't been turned off.
259            (ThubanGrid.OnSelectCell): Only handle event if event handling
260            hasn't been turned off.
261            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
262            as an event listener (which changes the event handler stack)
263            simply set an instance variable to False. This is checked in
264            the event handlers.
265            (ThubanGrid.GetNumberSelected): Return the number of currently
266            selected rows.
267            (TableFrame): Inherit from ThubanFrame so we can have a
268            status bar and control buttons.
269            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
270            Explicitly set which items are selected in the operator choice and
271            action choice so there is always a valid selection. Fixes RTbug #1941.
272            Subscribe to grid cell selection events so we can update the
273            status bar.
274            (QueryTableFrame.UpdateStatusText): Update the status bar with
275            how many rows are in the grid, how many columns, and how many
276            rows are selected.
277            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
278            Call UpdateStatusText when cells are (de)selected.
279            (QueryTableFrame.OnQuery): Use the string value in the value
280            combo if either the selected item index is 0 or if the string
281            cannot be found in the predefined list (this happens if the
282            user changes the text). Fixes RTbug #1940.
283            Only turn off the grid event listeners if there a query comes
284            back with a none empty list of ids. in the case that the list
285            is empty this causes a grid.ClearSelection() call to actually
286            clear the grid selection which causes the selected items in
287            the map to be deselected. Fixes RTbug #1939.
288    
289            * test/test_save.py (XMLWriterTest.Encode): Check return values.
290            Fixes RTbug #1851.
291    
292    2003-06-13  Bernhard Herzog  <[email protected]>
293    
294            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
295            self.selected_shape with the current selection to make sure the
296            contents of the dialog are up to date when it's shown for the
297            first time.
298            The dialog used to work without this by luck. The recent fix to
299            the connector module 'broke' a 'feature' the identify view was
300            relying on, i.e that subscribing to a message in response to
301            receiving a message of that type would mean that the new
302            subscriber would also be called for the same message.
303            
304    2003-06-12  Jonathan Coles   <[email protected]>
305    
306            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
307            the image is rendered. Fixes RTbug #1937.
308    
309    2003-06-12  Jonathan Coles   <[email protected]>
310    
311            * Thuban/Lib/fileutil.py: As is done under Windows, create the
312            user directory if it doesn't exist on a posix system.
313            Fixes RTbug #1815.
314    
315            * Thuban/Model/resource.py (get_user_proj_files): Moved the
316            called to get_application_dir here, so that the directory
317            will only be called if this method is invoked.
318    
319            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
320            the projfilepath if no projection is selected.
321    
322    2003-06-12  Jonathan Coles   <[email protected]>
323    
324            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
325            the scalebar if the current map has no projection set.
326    
327            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
328            projfilepath label to just the basename of the projection file
329            rather than include the entire path.
330    
331            * Thuban/Model/resource.py: Fix missed proj functions that
332            needed to be renamed.
333    
334    2003-06-12  Jonathan Coles   <[email protected]>
335    
336            * Thuban/Model/classification.py: Removed assert statements that
337            tested if the variable was an instance of Color.
338    
339            * Thuban/Model/color.py (Color): Remove commented code that isn't
340            used.
341            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
342            Fixes RTbug #1835.
343            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
344            Needed now that the class doesn't inherit from Color.
345    
346    2003-06-12  Jonathan Coles   <[email protected]>
347    
348            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
349            check unicode strings.
350    
351            * test/test_layer.py: Check for existence of gdal.
352    
353    2003-06-12  Jonathan Coles   <[email protected]>
354        
355            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
356            that was in load.py
357    
358            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
359            that was in save.py
360    
361    2003-06-12  Jonathan Coles   <[email protected]>
362    
363            This is largely a collection of bug fixes. We also handle the
364            case where gdal is not on the system. The XMLReader and XMLWriter
365            classes were moved into there own files to resolve some circular
366            import references and because they shouldn't really be in the
367            file that is dediciated to reading/writing session files since
368            they are also used elsewhere.
369    
370            * Thuban/Model/classgen.py: Renamed functions to follow the
371            function_names_with_underscores style. Fixes RTbug #1903.
372            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
373    
374            * Thuban/Model/layer.py: Import gdal only if it available.
375            (RasterLayer): Handle the case where the gdal library is unavailable.
376            Addresses RTbug #1877.
377    
378            * Thuban/Model/load.py (XMLReader): Moved into seperate file
379            xmlreader.py.
380    
381    2003-06-12  Jonathan Coles   <[email protected]>
382    
383            This is largely a collection of bug fixes. We also handle the
384            case where gdal is not on the system. The XMLReader and XMLWriter
385            classes were moved into there own files to resolve some circular
386            import references and because they shouldn't really be in the
387            file that is dediciated to reading/writing session files since
388            they are also used elsewhere.
389    
390            * Thuban/Model/classgen.py: Renamed functions to follow the
391            function_names_with_underscores style. Fixes RTbug #1903.
392            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
393    
394            * Thuban/Model/layer.py: Import gdal only if it available.
395            (RasterLayer): Handle the case where the gdal library is unavailable.
396            Addresses RTbug #1877.
397    
398            * Thuban/Model/load.py (XMLReader): Moved into seperate file
399            xmlreader.py.
400    
401            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
402            file xmlwriter.py.
403    
404            * Thuban/Model/resource.py: Renamed functions to following the
405            function_names_with_underscores style.
406            (has_gdal_support): New function that returns true if the gdal
407            library is available. Addresses RTbug #1877.
408    
409            * Thuban/UI/application.py (ThubanApplication.OpenSession):
410            Display a message box if the gdal library is not available, but
411            only if there are any layers that would use it. Addresses RTbug #1877.
412    
413            * Thuban/UI/classgen.py: Use renamed projection resource functions.
414            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
415            when using integers versus floats.
416    
417            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
418            determine if the "Add Image Layer" menu option should be
419            greyed out or not. Addresses RTbug #1877.
420    
421            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
422    
423            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
424            optimize if a raster layer is visible. Fixes RTbug #1931.
425            Only draw the raster layer if the gdal library is available.
426            Addresses RTbug #1877.
427    
428            * test/test_classgen.py: Add tests for generate_singletons,
429            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
430            (test_calculate_quantiles): Fix some tests to catch the new
431            ValueError that is raised.
432    
433            * test/test_proj.py: Use renamed projection resource functions.
434    
435            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
436            test for saving classified layers. Fixes RTbug #1902.
437            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
438    
439    2003-06-12  Jan-Oliver Wagner <[email protected]>
440    
441            Fix for http://intevation.de/rt/webrt?serial_num=1900.
442    
443            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
444    
445            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
446            multiplechoicedialog.py rather than from the wxPython library.
447    
448    2003-06-11  Frank Koormann  <[email protected]>
449    
450            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
451            update.
452    
453    2003-06-11  Frank Koormann  <[email protected]>
454    
455            * Thuban/Lib/fileutil.py (get_application_dir): New function to
456            determine the absolute .thuban/thuban directory under
457            "posix" (os.expanduser) and "nt" (read AppData registry key).
458    
459            * Thuban/Model/resource.py: Use get_application_dir
460    
461            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
462            Use get_application_dir.
463    
464    2003-06-10  Bernhard Herzog  <[email protected]>
465    
466            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
467            the messages MAP_LAYERS_REMOVED messages
468            (LayerTableFrame.OnClose): Unsubscribe from it.
469            (LayerTableFrame.map_layers_removed): New. Receiver for
470            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
471            dialog is showing is removed.
472    
473    2003-06-10  Bernhard Herzog  <[email protected]>
474    
475            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
476            of the receivers list so that unsubscribing in a receiver doesn't
477            modify it while iterating over it.
478    
479            * test/test_connector.py
480            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
481            unsubscribing in a receiver works correctly. See docstring for
482            details
483    
484    2003-06-10  Bernhard Herzog  <[email protected]>
485    
486            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
487            message.
488    
489            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
490            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
491            LAYER_CHANGED will still be sent if the classification changes.
492    
493            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
494            parameter so we can subscribe to some of its messages
495            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
496            and the layer's LAYER_SHAPESTORE_REPLACED
497            (Classifier.unsubscribe_messages): New. Unsubscribe from message
498            subscribed to in __init__
499            (Classifier.map_layers_removed)
500            (Classifier.layer_shapestore_replaced): receivers for the messages
501            subscribed to in __init__. Unsubscribe and close the dialog
502    
503            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
504            the map to the Classifier dialog
505    
506            * test/test_layer.py (SetShapeStoreTests): Derive from
507            SubscriberMixin as well so we can test messages
508            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
509            messages
510            (SetShapeStoreTests.tearDown): Clear the messages again
511            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
512            for the modified flag too
513            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
514            to check whether SetShapeStore sets the modified flag
515            (SetShapeStoreTests.test_set_shape_store_different_field_name)
516            (SetShapeStoreTests.test_set_shape_store_same_field)
517            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
518            Add tests for the messages. This checks both the new
519            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
520    
521    2003-06-06  Jan-Oliver Wagner <[email protected]>
522    
523            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
524            the menu items.
525    
526    2003-06-05  Frank Koormann  <[email protected]>
527    
528            * Thuban/UI/identifyview.py (IdentifyView.__init__):
529            Layout reimplemented without panel. Make life easier to fit the list
530            in the dialog.
531    
532    2003-06-05  Frank Koormann  <[email protected]>
533    
534            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
535            once on initialisation (Former implementation resulted in multiple
536            entries for each projection).
537            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
538            if set, select the projection found under the specified name. This
539            overwrites any other selection estimate.
540            Removed projchoice filling from this method.
541            (ProjFrame._OnSave, ProjFrame._OnAddToList):
542            Updated call of ProjFrame.__FillAvailList
543            (LCCPanel._DoLayout): Moved parameter controls in more common order.
544    
545            * Resources/Projections/defaults.proj: Extended defaults representing
546            various common European projections.
547    
548    2003-06-05  Frank Koormann  <[email protected]>
549    
550            * Thuban/UI/identifyview.py (IdentifyView.__init__):
551            Use ListCtrl instead of GridCtrl
552    
553            * Thuban/Model/resource.py:
554            Guess location of .thuban directory from tempdir parent directory.
555    
556            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
557            Guess location of .thuban directory from tempdir parent directory.
558    
559    2003-06-04  Bernhard Herzog  <[email protected]>
560    
561            Do not cache the values returned by the tree widget's
562            GetFirstChild and GetNextChild methods because it led to lots of
563            segfaults. The new way requires more brute force but is more
564            reliable.
565    
566            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
567            variable layer2id
568            (LegendTree.find_layer): New method to do with brute force what
569            layer2id tried to accomplish
570            (LegendTree._OnMsgLayerChanged)
571            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
572            Use find_layer instead of layer2id
573            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
574            update layer2id anymore
575            (LegendTree._OnMsgMapLayersRemoved)
576            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
577    
578    2003-06-03  Thomas Koester  <[email protected]>
579    
580            * Thuban/Model/classgen.py (GenQuantiles0): New function.
581    
582    2003-06-02  Bernhard Herzog  <[email protected]>
583    
584            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
585            New commands.
586            (main_menu): Add the new commands.
587            (MainWindow.TableRename): New. Implementation of the table_rename
588            command.
589            (MainWindow.RenameLayer): New. Implementation of the layer_rename
590            command.
591    
592            * Thuban/Model/session.py (Session.AddTable): call self.changed to
593            set the modified flag
594    
595            * test/test_session.py (TestSessionSimple.test_add_table): Test
596            whether the modified flag is set properly
597    
598            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
599            instead of issue so that the modified flags get updated.
600    
601            * test/test_base.py (SomeTitledObject): Derive from Modifiable
602            instead of Publisher to reflect reality better and to accomodate
603            the fact that SetTitle now calls changed instead of issue
604    
605    2003-06-02  Bernhard Herzog  <[email protected]>
606    
607            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
608            acquisition has to happen before the try in a try-finally.
609    
610    2003-06-02  Bernhard Herzog  <[email protected]>
611    
612            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
613            possible that a layer is removed that is not currently selected in
614            the legend so don't check for this.
615    
616    2003-05-30  Bernhard Herzog  <[email protected]>
617    
618            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
619            variables to None that have direct or indirect references to
620            shapefiles or dbf files to make sure that they do go away and the
621            files are closed.
622    
623    2003-05-30  Bernhard Herzog  <[email protected]>
624    
625            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
626            availImgListIndices when a new image list is created
627            
628    2003-05-30  Bernhard Herzog  <[email protected]>
629    
630            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
631            changing_selection to indicate whether the LegendTree code itself
632            is currently changing the selection
633            (LegendTree.normalize_selection): New method to normalize the
634            selection by selecting the layer item even if the user clicked on
635            the classification.
636            (LegendTree._OnSelChanged): normalize the selection. This works
637            around a bug in wx which doesn't keep track of the selection
638            properly when subtrees are deleted.
639    
640    2003-05-30  Bernhard Herzog  <[email protected]>
641    
642            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
643            maximum and minimum scale factors.
644    
645            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
646            changes in classgen.py
647    
648    2003-05-30  Jonathan Coles   <[email protected]>
649    
650            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
651            all the methods functions. Fixes RTBug #1903.
652    
653            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
654            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
655            RTBug #1907.
656    
657            * Thuban/UI/classgen.py: Use classgen functions that were part
658            of the ClassGenerator class. Put try/finally blocks around
659            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
660            RTBug #1904.
661    
662            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
663    
664            * Thuban/UI/legend.py: The legend was cleared and repopulated any
665            time something changed which caused some state to be lost such
666            as which children were expanded or collapsed. Fixes RTBug #1901.
667            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
668            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
669            the legend but not in the map.
670            (LegendTree.__FillTree): Move main functionality out into smaller
671            methods that can be used by other methods.
672            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
673            if they are available.
674            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
675            that we override the wxTreeCtrl method. Iterate over children
676            and call __RemoveLayer.
677            (LegendTree.__AddLayer): New. Add a new layer to the legend.
678            (LegendTree.__RemoveLayer): Remove a layer from the legend.
679            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
680            Should only be called with the id of a layer branch.
681            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
682            Returns the root item or creates one if necessary.
683    
684            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
685            ProjectRasterFile with tuple arguments instead of strings.
686    
687            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
688            with try/finally. Fixes RTBug #1904.
689    
690            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
691            with try/finally. Fixes RTBug #1904.
692            (MapCanvas.FitSelectedToWindow): If a single point is selected
693            simply center it on the display. Fixes RTBug #1849.
694    
695            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
696            to be compiled as a standalone app. Now the code can only be
697            called from Python which simplifies the parameter passing.
698            (ProjectRasterFile): Handle Python arguments. Remove code that
699            checks for a destination dataset. Add more clean up code.
700    
701            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
702            TestMapWithContents.test_lower_layer_bottom):
703            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
704            Fixes RTBug #1907.
705    
706            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
707            extent to the map when the legend is toggled. Fixes RTBug #1881.
708    
709  2003-05-29  Jan-Oliver Wagner <[email protected]>  2003-05-29  Jan-Oliver Wagner <[email protected]>
710    
711          * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now          * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now

Legend:
Removed from v.1097  
changed lines
  Added in v.1248

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26