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

Legend:
Removed from v.975  
changed lines
  Added in v.1182

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26