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

Legend:
Removed from v.1095  
changed lines
  Added in v.1235

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26