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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26