/[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

revision 1021 by jan, Fri May 23 13:03:50 2003 UTC revision 1139 by frank, Thu Jun 5 16:00:12 2003 UTC
# Line 1  Line 1 
1    2003-06-05  Frank Koormann  <[email protected]>
2    
3            * Thuban/UI/identifyview.py (IdentifyView.__init__):
4            Layout reimplemented without panel. Make life easier to fit the list
5            in the dialog.
6    
7    2003-06-05  Frank Koormann  <[email protected]>
8    
9            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
10            once on initialisation (Former implementation resulted in multiple
11            entries for each projection).
12            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
13            if set, select the projection found under the specified name. This
14            overwrites any other selection estimate.
15            Removed projchoice filling from this method.
16            (ProjFrame._OnSave, ProjFrame._OnAddToList):
17            Updated call of ProjFrame.__FillAvailList
18            (LCCPanel._DoLayout): Moved parameter controls in more common order.
19    
20            * Resources/Projections/defaults.proj: Extended defaults representing
21            various common European projections.
22    
23    2003-06-05  Frank Koormann  <[email protected]>
24    
25            * Thuban/UI/identifyview.py (IdentifyView.__init__):
26            Use ListCtrl instead of GridCtrl
27    
28            * Thuban/Model/resource.py:
29            Guess location of .thuban directory from tempdir parent directory.
30    
31            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
32            Guess location of .thuban directory from tempdir parent directory.
33    
34    2003-06-04  Bernhard Herzog  <[email protected]>
35    
36            Do not cache the values returned by the tree widget's
37            GetFirstChild and GetNextChild methods because it led to lots of
38            segfaults. The new way requires more brute force but is more
39            reliable.
40    
41            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
42            variable layer2id
43            (LegendTree.find_layer): New method to do with brute force what
44            layer2id tried to accomplish
45            (LegendTree._OnMsgLayerChanged)
46            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
47            Use find_layer instead of layer2id
48            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
49            update layer2id anymore
50            (LegendTree._OnMsgMapLayersRemoved)
51            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
52    
53    2003-06-03  Thomas Koester  <[email protected]>
54    
55            * Thuban/Model/classgen.py (GenQuantiles0): New function.
56    
57    2003-06-02  Bernhard Herzog  <[email protected]>
58    
59            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
60            New commands.
61            (main_menu): Add the new commands.
62            (MainWindow.TableRename): New. Implementation of the table_rename
63            command.
64            (MainWindow.RenameLayer): New. Implementation of the layer_rename
65            command.
66    
67            * Thuban/Model/session.py (Session.AddTable): call self.changed to
68            set the modified flag
69    
70            * test/test_session.py (TestSessionSimple.test_add_table): Test
71            whether the modified flag is set properly
72    
73            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
74            instead of issue so that the modified flags get updated.
75    
76            * test/test_base.py (SomeTitledObject): Derive from Modifiable
77            instead of Publisher to reflect reality better and to accomodate
78            the fact that SetTitle now calls changed instead of issue
79    
80    2003-06-02  Bernhard Herzog  <[email protected]>
81    
82            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
83            acquisition has to happen before the try in a try-finally.
84    
85    2003-06-02  Bernhard Herzog  <[email protected]>
86    
87            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
88            possible that a layer is removed that is not currently selected in
89            the legend so don't check for this.
90    
91    2003-05-30  Bernhard Herzog  <[email protected]>
92    
93            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
94            variables to None that have direct or indirect references to
95            shapefiles or dbf files to make sure that they do go away and the
96            files are closed.
97    
98    2003-05-30  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
101            availImgListIndices when a new image list is created
102            
103    2003-05-30  Bernhard Herzog  <[email protected]>
104    
105            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
106            changing_selection to indicate whether the LegendTree code itself
107            is currently changing the selection
108            (LegendTree.normalize_selection): New method to normalize the
109            selection by selecting the layer item even if the user clicked on
110            the classification.
111            (LegendTree._OnSelChanged): normalize the selection. This works
112            around a bug in wx which doesn't keep track of the selection
113            properly when subtrees are deleted.
114    
115    2003-05-30  Bernhard Herzog  <[email protected]>
116    
117            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
118            maximum and minimum scale factors.
119    
120            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
121            changes in classgen.py
122    
123    2003-05-30  Jonathan Coles   <[email protected]>
124    
125            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
126            all the methods functions. Fixes RTBug #1903.
127    
128            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
129            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
130            RTBug #1907.
131    
132            * Thuban/UI/classgen.py: Use classgen functions that were part
133            of the ClassGenerator class. Put try/finally blocks around
134            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
135            RTBug #1904.
136    
137            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
138    
139            * Thuban/UI/legend.py: The legend was cleared and repopulated any
140            time something changed which caused some state to be lost such
141            as which children were expanded or collapsed. Fixes RTBug #1901.
142            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
143            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
144            the legend but not in the map.
145            (LegendTree.__FillTree): Move main functionality out into smaller
146            methods that can be used by other methods.
147            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
148            if they are available.
149            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
150            that we override the wxTreeCtrl method. Iterate over children
151            and call __RemoveLayer.
152            (LegendTree.__AddLayer): New. Add a new layer to the legend.
153            (LegendTree.__RemoveLayer): Remove a layer from the legend.
154            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
155            Should only be called with the id of a layer branch.
156            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
157            Returns the root item or creates one if necessary.
158    
159            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
160            ProjectRasterFile with tuple arguments instead of strings.
161    
162            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
163            with try/finally. Fixes RTBug #1904.
164    
165            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
166            with try/finally. Fixes RTBug #1904.
167            (MapCanvas.FitSelectedToWindow): If a single point is selected
168            simply center it on the display. Fixes RTBug #1849.
169    
170            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
171            to be compiled as a standalone app. Now the code can only be
172            called from Python which simplifies the parameter passing.
173            (ProjectRasterFile): Handle Python arguments. Remove code that
174            checks for a destination dataset. Add more clean up code.
175    
176            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
177            TestMapWithContents.test_lower_layer_bottom):
178            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
179            Fixes RTBug #1907.
180    
181            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
182            extent to the map when the legend is toggled. Fixes RTBug #1881.
183    
184    2003-05-29  Jan-Oliver Wagner <[email protected]>
185    
186            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
187            unsubscribes all that is subcribed in __init__.
188    
189    2003-05-28  Bernhard Herzog  <[email protected]>
190    
191            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
192            (MainWindow.CanDuplicateLayer): New methods to implement the
193            Layer/Duplicate command.
194            (layer_duplicate command): New.
195            (main_menu): Add layer_duplicate to the Layer menu.
196    
197    2003-05-28  Bernhard Herzog  <[email protected]>
198    
199            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
200            renderer so that NULL/None values get displayed differently (by a
201            gray rectangle).
202            (TableGrid.__init__): Override the default renderers
203    
204    2003-05-28  Bernhard Herzog  <[email protected]>
205    
206            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
207            classification to "None" if the type of the field has changed.
208    
209            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
210            test for the Layer.SetShapeStore method
211    
212    2003-05-28  Jan-Oliver Wagner <[email protected]>
213    
214            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
215            does not necessarily have a filename).
216    
217    2003-05-28  Jan-Oliver Wagner <[email protected]>
218    
219            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
220            sort the selection list for the dialog.
221    
222    2003-05-28  Frank Koormann  <[email protected]>
223    
224            * extensions/thuban/wxproj.cpp
225            (project_point): Removed cast to int for projected point coordinates.
226            (shape_centroid): Return last point if all polygon vertices fall
227            to one point.
228    
229    2003-05-28  Bernhard Herzog  <[email protected]>
230    
231            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
232            with layers that don't have shapestores, i.e. raster layers.
233    
234    2003-05-28  Bernhard Herzog  <[email protected]>
235    
236            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
237            when determining the title from the filename.
238    
239            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
240            reflect changes in the way the title is derived from the filename
241    
242    2003-05-28  Frank Koormann  <[email protected]>
243    
244            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
245            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
246    
247    2003-05-27  Bernhard Herzog  <[email protected]>
248    
249            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
250            delegate SelectedLayer.
251            (MainWindow.LayerUnjoinTable): Implement.
252            (_can_unjoin): New. Helper function for the sensitivity of the
253            layer/unjoin command.
254    
255            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
256            (DerivedShapeStore.OrigShapeStore): New. Return the original
257            shapestore. Used to figure out how to unjoin.
258            (DerivedShapeStore.Shapefile): Fix a typo.
259    
260    2003-05-27  Bernhard Herzog  <[email protected]>
261    
262            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
263            well
264            (JoinDialog.__init__): Use the layer parameter and only build the
265            left choice when a layer is given
266            (JoinDialog.OnJoin): Handle layer joins as well
267            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
268            that the user selects the "Select..." item. The sensitivitly
269            updating is now in update_sensitivity
270            (JoinDialog.y): New method to refactor the sensitivity update of
271            the join button into its own method.
272    
273            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
274    
275    2003-05-27  Bernhard Herzog  <[email protected]>
276    
277            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
278            iff there are unreferenced tables in the session
279    
280    2003-05-27  Bernhard Herzog  <[email protected]>
281    
282            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
283    
284            * Thuban/Model/session.py (Session.UnreferencedTables): New method
285            to return tables that are not referenced by other tables or shape
286            stores and can be removed.
287            (Session.RemoveTable): Issue a TABLE_REMOVED message after
288            removing the table
289    
290            * Thuban/UI/mainwindow.py: Remove unused imports
291            (MainWindow.TableClose): Implement.
292    
293            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
294            messages so that the frame will be automatically closed when a new
295            session is opened or the table is removed.
296            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
297            __init__
298            (TableFrame.close_on_session_replaced)
299            (TableFrame.close_on_table_removed): New. Subscribers that close
300            the window
301    
302            * test/test_session.py (TestSessionMessages.test_remove_table)
303            (TestSessionSimple.test_remove_table): Move the test to
304            TestSessionSimple and add test for the TABLE_REMOVED message
305            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
306            (TestSessionSimple.test_unreferenced_tables) New. Test for the
307            UnreferencedTables method.
308            (UnreferencedTablesTests): New. Class with some more sophisticated
309            tests for UnreferencedTables.
310    
311    2003-05-27  Frank Koormann  <[email protected]>
312    
313            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
314            display has some unwanted side effects. Removed again.
315    
316    2003-05-27  Frank Koormann  <[email protected]>
317    
318            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
319    
320            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
321    
322    2003-05-27  Jan-Oliver Wagner <[email protected]>
323    
324            * test/test_menu.py (MenuTest.test): Added test for
325            Menu.RemoveItem().
326    
327            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
328            the menu.
329    
330    2003-05-27  Frank Koormann  <[email protected]>
331            
332            Nonmodal dialogs without parent (i.e. they can fall behind the main
333            window)
334    
335            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
336            all dialogs in the dialogs dictionary and the canvas.
337    
338            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
339            parent, i.e. can fall behind other windows.
340            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
341            dictionary before removing it.
342    
343            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
344    
345            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
346            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
347            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
348    
349    2003-05-27  Bernhard Herzog  <[email protected]>
350    
351            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
352            tableview dialog
353            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
354            Also, don't use the table's titles as the dialog names. The titles
355            aren't guaranteed to be unique.
356            (MainWindow.TableOpen): Open a table view dialog after opening the
357            table
358    
359    2003-05-27  Bernhard Herzog  <[email protected]>
360    
361            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
362            effect can be achieved by simply closing the window showing the
363            table.
364            (MainWindow.TableHide): Removed.
365            (main_menu): Removed "table_hide"
366    
367    2003-05-27  Frank Koormann  <[email protected]>
368    
369            Fix legend tree display problems under Win32
370    
371            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
372            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
373            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
374    
375            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
376    
377    2003-05-27  Jan-Oliver Wagner <[email protected]>
378    
379            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
380            'after' now allows to insert separators almost anywhere in the menu.
381    
382    2003-05-27  Frank Koormann  <[email protected]>
383    
384            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
385            "S" of selection box label to hint on hot key (Alt-S). Works under
386            Win32 but is ignored under GTK.
387    
388    2003-05-26  Frank Koormann  <[email protected]>
389    
390            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
391            Center Choices.
392    
393    2003-05-26  Bernhard Herzog  <[email protected]>
394    
395            Remove the Precision methods again. They're too DBF specific to be
396            part of the table interface and they're only used in table_to_dbf
397            anyway.
398            
399            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
400            fixed precision of 12 for doubles.
401            (TransientTableBase.Precision): Removed
402            (AutoTransientTable.Width): Delegate to self.table.
403    
404            * Thuban/Model/table.py (DBFTable.Precision)
405            (MemoryTable.Precision): Removed.
406            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
407            (table_to_dbf): Use a fixed precision of 12 for floats unless the
408            column object specifies something else.
409    
410            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
411            test for table_to_dbf
412    
413    2003-05-26  Bernhard Herzog  <[email protected]>
414    
415            * test/test_transientdb.py
416            (TestTransientTable.run_iceland_political_tests): Fix a comment.
417    
418    2003-05-26  Bernhard Herzog  <[email protected]>
419    
420            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
421            implementation. Mark parts of the file format strings for
422            localization.
423    
424            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
425            file and add the table to the tables managed by the session
426    
427            * test/test_session.py (TestSessionSimple.test_open_table_file):
428            New. test case for OpenTableFile
429    
430    2003-05-26  Jan-Oliver Wagner <[email protected]>
431    
432            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
433            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
434            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
435            Replace the true/false of wxWindows by True/False of Python 2.2.1.
436    
437    2003-05-26  Jan-Oliver Wagner <[email protected]>
438    
439            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
440            already a selection present, update the grid accordingly.
441    
442            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
443            resizeable and increase its initial size.
444    
445    2003-05-26  Frank Koormann  <[email protected]>
446    
447            Table export functionality
448    
449            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
450            Return width (in characters) for a column.
451            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
452            (table_to_dbf): Write table to dbf file.
453            (table_to_csv): Write table to csv file.
454    
455            * Thuban/Model/transientdb.py (TransientTableBase.Width,
456            TransientTableBase.Precision): Return column width and precision.
457    
458            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
459            or table_to_csv depending on file selection.
460    
461            * test/test_dbf_table.py:
462            Test table_to_dbf (extension of former part of test).
463    
464            * test/test_csv_table.py:
465            Test table_to_csv.
466    
467    2003-05-23  Jan-Oliver Wagner <[email protected]>
468    
469            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
470            Use QueryTableFrame instead of TableFrame.
471    
472            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
473            table window with 'Layer Table:' instead of 'Table:'.
474    
475  2003-05-23  Jan-Oliver Wagner <[email protected]>  2003-05-23  Jan-Oliver Wagner <[email protected]>
476    
477          Give all tables a title via mix-in TitledObject.          Give all tables a title via mix-in TitledObject.LayerShowTable
478    
479          * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'          * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
480          only if it exists.          only if it exists.

Legend:
Removed from v.1021  
changed lines
  Added in v.1139

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26