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

Legend:
Removed from v.988  
changed lines
  Added in v.1220

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26