/[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 1004 by frank, Thu May 22 19:46:57 2003 UTC revision 1191 by jonathan, Thu Jun 12 17:01:45 2003 UTC
# Line 1  Line 1 
1    2003-06-12  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Lib/fileutil.py: As is done under Windows, create the
4            user directory if it doesn't exist on a posix system.
5    
6            * Thuban/Model/resource.py (get_user_proj_files): Moved the
7            called to get_application_dir here, so that the directory
8            will only be called if this method is invoked.
9    
10            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
11            the projfilepath if no projection is selected.
12    
13    2003-06-12  Jonathan Coles   <[email protected]>
14    
15            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
16            the scalebar if the current map has no projection set.
17    
18            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
19            projfilepath label to just the basename of the projection file
20            rather than include the entire path.
21    
22            * Thuban/Model/resource.py: Fix missed proj functions that
23            needed to be renamed.
24    
25    2003-06-12  Jonathan Coles   <[email protected]>
26    
27            * Thuban/Model/classification.py: Removed assert statements that
28            tested if the variable was an instance of Color.
29    
30            * Thuban/Model/color.py (Color): Remove commented code that isn't
31            used.
32            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
33            Fixes RTbug #1835.
34            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
35            Needed now that the class doesn't inherit from Color.
36    
37    2003-06-12  Jonathan Coles   <[email protected]>
38    
39            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
40            check unicode strings.
41    
42            * test/test_layer.py: Check for existence of gdal.
43    
44    2003-06-12  Jonathan Coles   <[email protected]>
45        
46            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
47            that was in load.py
48    
49            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
50            that was in save.py
51    
52    2003-06-12  Jonathan Coles   <[email protected]>
53    
54            This is largely a collection of bug fixes. We also handle the
55            case where gdal is not on the system. The XMLReader and XMLWriter
56            classes were moved into there own files to resolve some circular
57            import references and because they shouldn't really be in the
58            file that is dediciated to reading/writing session files since
59            they are also used elsewhere.
60    
61            * Thuban/Model/classgen.py: Renamed functions to follow the
62            function_names_with_underscores style. Fixes RTbug #1903.
63            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
64    
65            * Thuban/Model/layer.py: Import gdal only if it available.
66            (RasterLayer): Handle the case where the gdal library is unavailable.
67            Addresses RTbug #1877.
68    
69            * Thuban/Model/load.py (XMLReader): Moved into seperate file
70            xmlreader.py.
71    
72    2003-06-12  Jonathan Coles   <[email protected]>
73    
74            This is largely a collection of bug fixes. We also handle the
75            case where gdal is not on the system. The XMLReader and XMLWriter
76            classes were moved into there own files to resolve some circular
77            import references and because they shouldn't really be in the
78            file that is dediciated to reading/writing session files since
79            they are also used elsewhere.
80    
81            * Thuban/Model/classgen.py: Renamed functions to follow the
82            function_names_with_underscores style. Fixes RTbug #1903.
83            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
84    
85            * Thuban/Model/layer.py: Import gdal only if it available.
86            (RasterLayer): Handle the case where the gdal library is unavailable.
87            Addresses RTbug #1877.
88    
89            * Thuban/Model/load.py (XMLReader): Moved into seperate file
90            xmlreader.py.
91    
92            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
93            file xmlwriter.py.
94    
95            * Thuban/Model/resource.py: Renamed functions to following the
96            function_names_with_underscores style.
97            (has_gdal_support): New function that returns true if the gdal
98            library is available. Addresses RTbug #1877.
99    
100            * Thuban/UI/application.py (ThubanApplication.OpenSession):
101            Display a message box if the gdal library is not available, but
102            only if there are any layers that would use it. Addresses RTbug #1877.
103    
104            * Thuban/UI/classgen.py: Use renamed projection resource functions.
105            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
106            when using integers versus floats.
107    
108            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
109            determine if the "Add Image Layer" menu option should be
110            greyed out or not. Addresses RTbug #1877.
111    
112            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
113    
114            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
115            optimize if a raster layer is visible. Fixes RTbug #1931.
116            Only draw the raster layer if the gdal library is available.
117            Addresses RTbug #1877.
118    
119            * test/test_classgen.py: Add tests for generate_singletons,
120            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
121            (test_calculate_quantiles): Fix some tests to catch the new
122            ValueError that is raised.
123    
124            * test/test_proj.py: Use renamed projection resource functions.
125    
126            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
127            test for saving classified layers. Fixes RTbug #1902.
128            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
129    
130    2003-06-12  Jan-Oliver Wagner <[email protected]>
131    
132            Fix for http://intevation.de/rt/webrt?serial_num=1900.
133    
134            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
135    
136            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
137            multiplechoicedialog.py rather than from the wxPython library.
138    
139    2003-06-11  Frank Koormann  <[email protected]>
140    
141            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
142            update.
143    
144    2003-06-11  Frank Koormann  <[email protected]>
145    
146            * Thuban/Lib/fileutil.py (get_application_dir): New function to
147            determine the absolute .thuban/thuban directory under
148            "posix" (os.expanduser) and "nt" (read AppData registry key).
149    
150            * Thuban/Model/resource.py: Use get_application_dir
151    
152            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
153            Use get_application_dir.
154    
155    2003-06-10  Bernhard Herzog  <[email protected]>
156    
157            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
158            the messages MAP_LAYERS_REMOVED messages
159            (LayerTableFrame.OnClose): Unsubscribe from it.
160            (LayerTableFrame.map_layers_removed): New. Receiver for
161            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
162            dialog is showing is removed.
163    
164    2003-06-10  Bernhard Herzog  <[email protected]>
165    
166            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
167            of the receivers list so that unsubscribing in a receiver doesn't
168            modify it while iterating over it.
169    
170            * test/test_connector.py
171            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
172            unsubscribing in a receiver works correctly. See docstring for
173            details
174    
175    2003-06-10  Bernhard Herzog  <[email protected]>
176    
177            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
178            message.
179    
180            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
181            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
182            LAYER_CHANGED will still be sent if the classification changes.
183    
184            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
185            parameter so we can subscribe to some of its messages
186            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
187            and the layer's LAYER_SHAPESTORE_REPLACED
188            (Classifier.unsubscribe_messages): New. Unsubscribe from message
189            subscribed to in __init__
190            (Classifier.map_layers_removed)
191            (Classifier.layer_shapestore_replaced): receivers for the messages
192            subscribed to in __init__. Unsubscribe and close the dialog
193    
194            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
195            the map to the Classifier dialog
196    
197            * test/test_layer.py (SetShapeStoreTests): Derive from
198            SubscriberMixin as well so we can test messages
199            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
200            messages
201            (SetShapeStoreTests.tearDown): Clear the messages again
202            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
203            for the modified flag too
204            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
205            to check whether SetShapeStore sets the modified flag
206            (SetShapeStoreTests.test_set_shape_store_different_field_name)
207            (SetShapeStoreTests.test_set_shape_store_same_field)
208            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
209            Add tests for the messages. This checks both the new
210            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
211    
212    2003-06-06  Jan-Oliver Wagner <[email protected]>
213    
214            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
215            the menu items.
216    
217    2003-06-05  Frank Koormann  <[email protected]>
218    
219            * Thuban/UI/identifyview.py (IdentifyView.__init__):
220            Layout reimplemented without panel. Make life easier to fit the list
221            in the dialog.
222    
223    2003-06-05  Frank Koormann  <[email protected]>
224    
225            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
226            once on initialisation (Former implementation resulted in multiple
227            entries for each projection).
228            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
229            if set, select the projection found under the specified name. This
230            overwrites any other selection estimate.
231            Removed projchoice filling from this method.
232            (ProjFrame._OnSave, ProjFrame._OnAddToList):
233            Updated call of ProjFrame.__FillAvailList
234            (LCCPanel._DoLayout): Moved parameter controls in more common order.
235    
236            * Resources/Projections/defaults.proj: Extended defaults representing
237            various common European projections.
238    
239    2003-06-05  Frank Koormann  <[email protected]>
240    
241            * Thuban/UI/identifyview.py (IdentifyView.__init__):
242            Use ListCtrl instead of GridCtrl
243    
244            * Thuban/Model/resource.py:
245            Guess location of .thuban directory from tempdir parent directory.
246    
247            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
248            Guess location of .thuban directory from tempdir parent directory.
249    
250    2003-06-04  Bernhard Herzog  <[email protected]>
251    
252            Do not cache the values returned by the tree widget's
253            GetFirstChild and GetNextChild methods because it led to lots of
254            segfaults. The new way requires more brute force but is more
255            reliable.
256    
257            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
258            variable layer2id
259            (LegendTree.find_layer): New method to do with brute force what
260            layer2id tried to accomplish
261            (LegendTree._OnMsgLayerChanged)
262            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
263            Use find_layer instead of layer2id
264            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
265            update layer2id anymore
266            (LegendTree._OnMsgMapLayersRemoved)
267            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
268    
269    2003-06-03  Thomas Koester  <[email protected]>
270    
271            * Thuban/Model/classgen.py (GenQuantiles0): New function.
272    
273    2003-06-02  Bernhard Herzog  <[email protected]>
274    
275            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
276            New commands.
277            (main_menu): Add the new commands.
278            (MainWindow.TableRename): New. Implementation of the table_rename
279            command.
280            (MainWindow.RenameLayer): New. Implementation of the layer_rename
281            command.
282    
283            * Thuban/Model/session.py (Session.AddTable): call self.changed to
284            set the modified flag
285    
286            * test/test_session.py (TestSessionSimple.test_add_table): Test
287            whether the modified flag is set properly
288    
289            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
290            instead of issue so that the modified flags get updated.
291    
292            * test/test_base.py (SomeTitledObject): Derive from Modifiable
293            instead of Publisher to reflect reality better and to accomodate
294            the fact that SetTitle now calls changed instead of issue
295    
296    2003-06-02  Bernhard Herzog  <[email protected]>
297    
298            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
299            acquisition has to happen before the try in a try-finally.
300    
301    2003-06-02  Bernhard Herzog  <[email protected]>
302    
303            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
304            possible that a layer is removed that is not currently selected in
305            the legend so don't check for this.
306    
307    2003-05-30  Bernhard Herzog  <[email protected]>
308    
309            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
310            variables to None that have direct or indirect references to
311            shapefiles or dbf files to make sure that they do go away and the
312            files are closed.
313    
314    2003-05-30  Bernhard Herzog  <[email protected]>
315    
316            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
317            availImgListIndices when a new image list is created
318            
319    2003-05-30  Bernhard Herzog  <[email protected]>
320    
321            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
322            changing_selection to indicate whether the LegendTree code itself
323            is currently changing the selection
324            (LegendTree.normalize_selection): New method to normalize the
325            selection by selecting the layer item even if the user clicked on
326            the classification.
327            (LegendTree._OnSelChanged): normalize the selection. This works
328            around a bug in wx which doesn't keep track of the selection
329            properly when subtrees are deleted.
330    
331    2003-05-30  Bernhard Herzog  <[email protected]>
332    
333            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
334            maximum and minimum scale factors.
335    
336            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
337            changes in classgen.py
338    
339    2003-05-30  Jonathan Coles   <[email protected]>
340    
341            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
342            all the methods functions. Fixes RTBug #1903.
343    
344            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
345            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
346            RTBug #1907.
347    
348            * Thuban/UI/classgen.py: Use classgen functions that were part
349            of the ClassGenerator class. Put try/finally blocks around
350            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
351            RTBug #1904.
352    
353            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
354    
355            * Thuban/UI/legend.py: The legend was cleared and repopulated any
356            time something changed which caused some state to be lost such
357            as which children were expanded or collapsed. Fixes RTBug #1901.
358            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
359            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
360            the legend but not in the map.
361            (LegendTree.__FillTree): Move main functionality out into smaller
362            methods that can be used by other methods.
363            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
364            if they are available.
365            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
366            that we override the wxTreeCtrl method. Iterate over children
367            and call __RemoveLayer.
368            (LegendTree.__AddLayer): New. Add a new layer to the legend.
369            (LegendTree.__RemoveLayer): Remove a layer from the legend.
370            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
371            Should only be called with the id of a layer branch.
372            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
373            Returns the root item or creates one if necessary.
374    
375            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
376            ProjectRasterFile with tuple arguments instead of strings.
377    
378            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
379            with try/finally. Fixes RTBug #1904.
380    
381            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
382            with try/finally. Fixes RTBug #1904.
383            (MapCanvas.FitSelectedToWindow): If a single point is selected
384            simply center it on the display. Fixes RTBug #1849.
385    
386            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
387            to be compiled as a standalone app. Now the code can only be
388            called from Python which simplifies the parameter passing.
389            (ProjectRasterFile): Handle Python arguments. Remove code that
390            checks for a destination dataset. Add more clean up code.
391    
392            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
393            TestMapWithContents.test_lower_layer_bottom):
394            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
395            Fixes RTBug #1907.
396    
397            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
398            extent to the map when the legend is toggled. Fixes RTBug #1881.
399    
400    2003-05-29  Jan-Oliver Wagner <[email protected]>
401    
402            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
403            unsubscribes all that is subcribed in __init__.
404    
405    2003-05-28  Bernhard Herzog  <[email protected]>
406    
407            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
408            (MainWindow.CanDuplicateLayer): New methods to implement the
409            Layer/Duplicate command.
410            (layer_duplicate command): New.
411            (main_menu): Add layer_duplicate to the Layer menu.
412    
413    2003-05-28  Bernhard Herzog  <[email protected]>
414    
415            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
416            renderer so that NULL/None values get displayed differently (by a
417            gray rectangle).
418            (TableGrid.__init__): Override the default renderers
419    
420    2003-05-28  Bernhard Herzog  <[email protected]>
421    
422            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
423            classification to "None" if the type of the field has changed.
424    
425            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
426            test for the Layer.SetShapeStore method
427    
428    2003-05-28  Jan-Oliver Wagner <[email protected]>
429    
430            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
431            does not necessarily have a filename).
432    
433    2003-05-28  Jan-Oliver Wagner <[email protected]>
434    
435            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
436            sort the selection list for the dialog.
437    
438    2003-05-28  Frank Koormann  <[email protected]>
439    
440            * extensions/thuban/wxproj.cpp
441            (project_point): Removed cast to int for projected point coordinates.
442            (shape_centroid): Return last point if all polygon vertices fall
443            to one point.
444    
445    2003-05-28  Bernhard Herzog  <[email protected]>
446    
447            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
448            with layers that don't have shapestores, i.e. raster layers.
449    
450    2003-05-28  Bernhard Herzog  <[email protected]>
451    
452            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
453            when determining the title from the filename.
454    
455            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
456            reflect changes in the way the title is derived from the filename
457    
458    2003-05-28  Frank Koormann  <[email protected]>
459    
460            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
461            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
462    
463    2003-05-27  Bernhard Herzog  <[email protected]>
464    
465            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
466            delegate SelectedLayer.
467            (MainWindow.LayerUnjoinTable): Implement.
468            (_can_unjoin): New. Helper function for the sensitivity of the
469            layer/unjoin command.
470    
471            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
472            (DerivedShapeStore.OrigShapeStore): New. Return the original
473            shapestore. Used to figure out how to unjoin.
474            (DerivedShapeStore.Shapefile): Fix a typo.
475    
476    2003-05-27  Bernhard Herzog  <[email protected]>
477    
478            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
479            well
480            (JoinDialog.__init__): Use the layer parameter and only build the
481            left choice when a layer is given
482            (JoinDialog.OnJoin): Handle layer joins as well
483            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
484            that the user selects the "Select..." item. The sensitivitly
485            updating is now in update_sensitivity
486            (JoinDialog.y): New method to refactor the sensitivity update of
487            the join button into its own method.
488    
489            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
490    
491    2003-05-27  Bernhard Herzog  <[email protected]>
492    
493            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
494            iff there are unreferenced tables in the session
495    
496    2003-05-27  Bernhard Herzog  <[email protected]>
497    
498            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
499    
500            * Thuban/Model/session.py (Session.UnreferencedTables): New method
501            to return tables that are not referenced by other tables or shape
502            stores and can be removed.
503            (Session.RemoveTable): Issue a TABLE_REMOVED message after
504            removing the table
505    
506            * Thuban/UI/mainwindow.py: Remove unused imports
507            (MainWindow.TableClose): Implement.
508    
509            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
510            messages so that the frame will be automatically closed when a new
511            session is opened or the table is removed.
512            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
513            __init__
514            (TableFrame.close_on_session_replaced)
515            (TableFrame.close_on_table_removed): New. Subscribers that close
516            the window
517    
518            * test/test_session.py (TestSessionMessages.test_remove_table)
519            (TestSessionSimple.test_remove_table): Move the test to
520            TestSessionSimple and add test for the TABLE_REMOVED message
521            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
522            (TestSessionSimple.test_unreferenced_tables) New. Test for the
523            UnreferencedTables method.
524            (UnreferencedTablesTests): New. Class with some more sophisticated
525            tests for UnreferencedTables.
526    
527    2003-05-27  Frank Koormann  <[email protected]>
528    
529            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
530            display has some unwanted side effects. Removed again.
531    
532    2003-05-27  Frank Koormann  <[email protected]>
533    
534            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
535    
536            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
537    
538    2003-05-27  Jan-Oliver Wagner <[email protected]>
539    
540            * test/test_menu.py (MenuTest.test): Added test for
541            Menu.RemoveItem().
542    
543            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
544            the menu.
545    
546    2003-05-27  Frank Koormann  <[email protected]>
547            
548            Nonmodal dialogs without parent (i.e. they can fall behind the main
549            window)
550    
551            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
552            all dialogs in the dialogs dictionary and the canvas.
553    
554            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
555            parent, i.e. can fall behind other windows.
556            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
557            dictionary before removing it.
558    
559            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
560    
561            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
562            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
563            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
564    
565    2003-05-27  Bernhard Herzog  <[email protected]>
566    
567            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
568            tableview dialog
569            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
570            Also, don't use the table's titles as the dialog names. The titles
571            aren't guaranteed to be unique.
572            (MainWindow.TableOpen): Open a table view dialog after opening the
573            table
574    
575    2003-05-27  Bernhard Herzog  <[email protected]>
576    
577            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
578            effect can be achieved by simply closing the window showing the
579            table.
580            (MainWindow.TableHide): Removed.
581            (main_menu): Removed "table_hide"
582    
583    2003-05-27  Frank Koormann  <[email protected]>
584    
585            Fix legend tree display problems under Win32
586    
587            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
588            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
589            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
590    
591            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
592    
593    2003-05-27  Jan-Oliver Wagner <[email protected]>
594    
595            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
596            'after' now allows to insert separators almost anywhere in the menu.
597    
598    2003-05-27  Frank Koormann  <[email protected]>
599    
600            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
601            "S" of selection box label to hint on hot key (Alt-S). Works under
602            Win32 but is ignored under GTK.
603    
604    2003-05-26  Frank Koormann  <[email protected]>
605    
606            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
607            Center Choices.
608    
609    2003-05-26  Bernhard Herzog  <[email protected]>
610    
611            Remove the Precision methods again. They're too DBF specific to be
612            part of the table interface and they're only used in table_to_dbf
613            anyway.
614            
615            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
616            fixed precision of 12 for doubles.
617            (TransientTableBase.Precision): Removed
618            (AutoTransientTable.Width): Delegate to self.table.
619    
620            * Thuban/Model/table.py (DBFTable.Precision)
621            (MemoryTable.Precision): Removed.
622            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
623            (table_to_dbf): Use a fixed precision of 12 for floats unless the
624            column object specifies something else.
625    
626            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
627            test for table_to_dbf
628    
629    2003-05-26  Bernhard Herzog  <[email protected]>
630    
631            * test/test_transientdb.py
632            (TestTransientTable.run_iceland_political_tests): Fix a comment.
633    
634    2003-05-26  Bernhard Herzog  <[email protected]>
635    
636            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
637            implementation. Mark parts of the file format strings for
638            localization.
639    
640            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
641            file and add the table to the tables managed by the session
642    
643            * test/test_session.py (TestSessionSimple.test_open_table_file):
644            New. test case for OpenTableFile
645    
646    2003-05-26  Jan-Oliver Wagner <[email protected]>
647    
648            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
649            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
650            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
651            Replace the true/false of wxWindows by True/False of Python 2.2.1.
652    
653    2003-05-26  Jan-Oliver Wagner <[email protected]>
654    
655            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
656            already a selection present, update the grid accordingly.
657    
658            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
659            resizeable and increase its initial size.
660    
661    2003-05-26  Frank Koormann  <[email protected]>
662    
663            Table export functionality
664    
665            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
666            Return width (in characters) for a column.
667            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
668            (table_to_dbf): Write table to dbf file.
669            (table_to_csv): Write table to csv file.
670    
671            * Thuban/Model/transientdb.py (TransientTableBase.Width,
672            TransientTableBase.Precision): Return column width and precision.
673    
674            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
675            or table_to_csv depending on file selection.
676    
677            * test/test_dbf_table.py:
678            Test table_to_dbf (extension of former part of test).
679    
680            * test/test_csv_table.py:
681            Test table_to_csv.
682    
683    2003-05-23  Jan-Oliver Wagner <[email protected]>
684    
685            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
686            Use QueryTableFrame instead of TableFrame.
687    
688            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
689            table window with 'Layer Table:' instead of 'Table:'.
690    
691    2003-05-23  Jan-Oliver Wagner <[email protected]>
692    
693            Give all tables a title via mix-in TitledObject.LayerShowTable
694    
695            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
696            only if it exists.
697    
698            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
699            and call its init-method with a default title. Remove Title() method.
700    
701            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
702            AutoTransientTable): mix-in TitledObject and call its init-method with
703            a default title. Remove Title() method.
704    
705    2003-05-23  Bernhard Herzog  <[email protected]>
706    
707            * Thuban/Model/session.py (Session.AddShapeStore): Define
708            AddShapeStore analogously to AddTable.
709    
710            * test/test_session.py (TestSessionSimple.test_add_shapestore):
711            New. Test for AddShapeStore
712    
713    2003-05-23  Jan-Oliver Wagner <[email protected]>
714    
715            Introducing QueryTableFrame and a very coarse ShowTable implementation.
716    
717            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
718            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
719            The latter implements the selection GUI without dependency on a layer.
720            LayerTableFrame now is derived from QueryTableFrame and connects
721            to a layer.
722    
723            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
724            implementation that still needs work.
725    
726            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
727    
728    2003-05-22  Frank Koormann  <[email protected]>
729    
730            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
731            Added "outer_join = False" as optional parameter.
732            (TransientJoinedTable.create): If outer join is true, perform a
733            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
734            the left table. Records not matching are filled with 0 / None.
735    
736            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
737            (JoinDialog.OnJoin): Consider outer join check box.
738    
739    2003-05-22  Bernhard Herzog  <[email protected]>
740    
741            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
742            somewhat safer way. Storing the traceback in a local variable can
743            lead to memory leaks
744    
745    2003-05-22  Bernhard Herzog  <[email protected]>
746    
747            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
748            the wxMessageDialog's Destroy() method.
749    
750  2003-05-22  Frank Koormann  <[email protected]>  2003-05-22  Frank Koormann  <[email protected]>
751    
752          * Thuban/UI/join.py (JoinDialog.__init__): Make use of          * Thuban/UI/join.py (JoinDialog.__init__): Make use of

Legend:
Removed from v.1004  
changed lines
  Added in v.1191

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26