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

Legend:
Removed from v.1062  
changed lines
  Added in v.1254

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26