/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.997  
changed lines
  Added in v.1214

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26