/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

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

revision 988 by bh, Thu May 22 16:46:23 2003 UTC revision 1118 by bh, Fri May 30 18:31:35 2003 UTC
# Line 1  Line 1 
1    2003-05-30  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
4            variables to None that have direct or indirect references to
5            shapefiles or dbf files to make sure that they do go away and the
6            files are closed.
7    
8    2003-05-30  Bernhard Herzog  <[email protected]>
9    
10            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
11            availImgListIndices when a new image list is created
12            
13    2003-05-30  Bernhard Herzog  <[email protected]>
14    
15            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
16            changing_selection to indicate whether the LegendTree code itself
17            is currently changing the selection
18            (LegendTree.normalize_selection): New method to normalize the
19            selection by selecting the layer item even if the user clicked on
20            the classification.
21            (LegendTree._OnSelChanged): normalize the selection. This works
22            around a bug in wx which doesn't keep track of the selection
23            properly when subtrees are deleted.
24    
25    2003-05-30  Bernhard Herzog  <[email protected]>
26    
27            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
28            maximum and minimum scale factors.
29    
30            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
31            changes in classgen.py
32    
33    2003-05-30  Jonathan Coles   <[email protected]>
34    
35            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
36            all the methods functions. Fixes RTBug #1903.
37    
38            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
39            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
40            RTBug #1907.
41    
42            * Thuban/UI/classgen.py: Use classgen functions that were part
43            of the ClassGenerator class. Put try/finally blocks around
44            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
45            RTBug #1904.
46    
47            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
48    
49            * Thuban/UI/legend.py: The legend was cleared and repopulated any
50            time something changed which caused some state to be lost such
51            as which children were expanded or collapsed. Fixes RTBug #1901.
52            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
53            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
54            the legend but not in the map.
55            (LegendTree.__FillTree): Move main functionality out into smaller
56            methods that can be used by other methods.
57            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
58            if they are available.
59            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
60            that we override the wxTreeCtrl method. Iterate over children
61            and call __RemoveLayer.
62            (LegendTree.__AddLayer): New. Add a new layer to the legend.
63            (LegendTree.__RemoveLayer): Remove a layer from the legend.
64            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
65            Should only be called with the id of a layer branch.
66            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
67            Returns the root item or creates one if necessary.
68    
69            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
70            ProjectRasterFile with tuple arguments instead of strings.
71    
72            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
73            with try/finally. Fixes RTBug #1904.
74    
75            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
76            with try/finally. Fixes RTBug #1904.
77            (MapCanvas.FitSelectedToWindow): If a single point is selected
78            simply center it on the display. Fixes RTBug #1849.
79    
80            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
81            to be compiled as a standalone app. Now the code can only be
82            called from Python which simplifies the parameter passing.
83            (ProjectRasterFile): Handle Python arguments. Remove code that
84            checks for a destination dataset. Add more clean up code.
85    
86            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
87            TestMapWithContents.test_lower_layer_bottom):
88            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
89            Fixes RTBug #1907.
90    
91            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
92            extent to the map when the legend is toggled. Fixes RTBug #1881.
93    
94    2003-05-29  Jan-Oliver Wagner <[email protected]>
95    
96            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
97            unsubscribes all that is subcribed in __init__.
98    
99    2003-05-28  Bernhard Herzog  <[email protected]>
100    
101            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
102            (MainWindow.CanDuplicateLayer): New methods to implement the
103            Layer/Duplicate command.
104            (layer_duplicate command): New.
105            (main_menu): Add layer_duplicate to the Layer menu.
106    
107    2003-05-28  Bernhard Herzog  <[email protected]>
108    
109            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
110            renderer so that NULL/None values get displayed differently (by a
111            gray rectangle).
112            (TableGrid.__init__): Override the default renderers
113    
114    2003-05-28  Bernhard Herzog  <[email protected]>
115    
116            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
117            classification to "None" if the type of the field has changed.
118    
119            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
120            test for the Layer.SetShapeStore method
121    
122    2003-05-28  Jan-Oliver Wagner <[email protected]>
123    
124            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
125            does not necessarily have a filename).
126    
127    2003-05-28  Jan-Oliver Wagner <[email protected]>
128    
129            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
130            sort the selection list for the dialog.
131    
132    2003-05-28  Frank Koormann  <[email protected]>
133    
134            * extensions/thuban/wxproj.cpp
135            (project_point): Removed cast to int for projected point coordinates.
136            (shape_centroid): Return last point if all polygon vertices fall
137            to one point.
138    
139    2003-05-28  Bernhard Herzog  <[email protected]>
140    
141            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
142            with layers that don't have shapestores, i.e. raster layers.
143    
144    2003-05-28  Bernhard Herzog  <[email protected]>
145    
146            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
147            when determining the title from the filename.
148    
149            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
150            reflect changes in the way the title is derived from the filename
151    
152    2003-05-28  Frank Koormann  <[email protected]>
153    
154            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
155            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
156    
157    2003-05-27  Bernhard Herzog  <[email protected]>
158    
159            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
160            delegate SelectedLayer.
161            (MainWindow.LayerUnjoinTable): Implement.
162            (_can_unjoin): New. Helper function for the sensitivity of the
163            layer/unjoin command.
164    
165            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
166            (DerivedShapeStore.OrigShapeStore): New. Return the original
167            shapestore. Used to figure out how to unjoin.
168            (DerivedShapeStore.Shapefile): Fix a typo.
169    
170    2003-05-27  Bernhard Herzog  <[email protected]>
171    
172            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
173            well
174            (JoinDialog.__init__): Use the layer parameter and only build the
175            left choice when a layer is given
176            (JoinDialog.OnJoin): Handle layer joins as well
177            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
178            that the user selects the "Select..." item. The sensitivitly
179            updating is now in update_sensitivity
180            (JoinDialog.y): New method to refactor the sensitivity update of
181            the join button into its own method.
182    
183            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
184    
185    2003-05-27  Bernhard Herzog  <[email protected]>
186    
187            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
188            iff there are unreferenced tables in the session
189    
190    2003-05-27  Bernhard Herzog  <[email protected]>
191    
192            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
193    
194            * Thuban/Model/session.py (Session.UnreferencedTables): New method
195            to return tables that are not referenced by other tables or shape
196            stores and can be removed.
197            (Session.RemoveTable): Issue a TABLE_REMOVED message after
198            removing the table
199    
200            * Thuban/UI/mainwindow.py: Remove unused imports
201            (MainWindow.TableClose): Implement.
202    
203            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
204            messages so that the frame will be automatically closed when a new
205            session is opened or the table is removed.
206            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
207            __init__
208            (TableFrame.close_on_session_replaced)
209            (TableFrame.close_on_table_removed): New. Subscribers that close
210            the window
211    
212            * test/test_session.py (TestSessionMessages.test_remove_table)
213            (TestSessionSimple.test_remove_table): Move the test to
214            TestSessionSimple and add test for the TABLE_REMOVED message
215            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
216            (TestSessionSimple.test_unreferenced_tables) New. Test for the
217            UnreferencedTables method.
218            (UnreferencedTablesTests): New. Class with some more sophisticated
219            tests for UnreferencedTables.
220    
221    2003-05-27  Frank Koormann  <[email protected]>
222    
223            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
224            display has some unwanted side effects. Removed again.
225    
226    2003-05-27  Frank Koormann  <[email protected]>
227    
228            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
229    
230            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
231    
232    2003-05-27  Jan-Oliver Wagner <[email protected]>
233    
234            * test/test_menu.py (MenuTest.test): Added test for
235            Menu.RemoveItem().
236    
237            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
238            the menu.
239    
240    2003-05-27  Frank Koormann  <[email protected]>
241            
242            Nonmodal dialogs without parent (i.e. they can fall behind the main
243            window)
244    
245            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
246            all dialogs in the dialogs dictionary and the canvas.
247    
248            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
249            parent, i.e. can fall behind other windows.
250            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
251            dictionary before removing it.
252    
253            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
254    
255            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
256            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
257            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
258    
259    2003-05-27  Bernhard Herzog  <[email protected]>
260    
261            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
262            tableview dialog
263            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
264            Also, don't use the table's titles as the dialog names. The titles
265            aren't guaranteed to be unique.
266            (MainWindow.TableOpen): Open a table view dialog after opening the
267            table
268    
269    2003-05-27  Bernhard Herzog  <[email protected]>
270    
271            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
272            effect can be achieved by simply closing the window showing the
273            table.
274            (MainWindow.TableHide): Removed.
275            (main_menu): Removed "table_hide"
276    
277    2003-05-27  Frank Koormann  <[email protected]>
278    
279            Fix legend tree display problems under Win32
280    
281            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
282            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
283            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
284    
285            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
286    
287    2003-05-27  Jan-Oliver Wagner <[email protected]>
288    
289            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
290            'after' now allows to insert separators almost anywhere in the menu.
291    
292    2003-05-27  Frank Koormann  <[email protected]>
293    
294            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
295            "S" of selection box label to hint on hot key (Alt-S). Works under
296            Win32 but is ignored under GTK.
297    
298    2003-05-26  Frank Koormann  <[email protected]>
299    
300            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
301            Center Choices.
302    
303    2003-05-26  Bernhard Herzog  <[email protected]>
304    
305            Remove the Precision methods again. They're too DBF specific to be
306            part of the table interface and they're only used in table_to_dbf
307            anyway.
308            
309            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
310            fixed precision of 12 for doubles.
311            (TransientTableBase.Precision): Removed
312            (AutoTransientTable.Width): Delegate to self.table.
313    
314            * Thuban/Model/table.py (DBFTable.Precision)
315            (MemoryTable.Precision): Removed.
316            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
317            (table_to_dbf): Use a fixed precision of 12 for floats unless the
318            column object specifies something else.
319    
320            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
321            test for table_to_dbf
322    
323    2003-05-26  Bernhard Herzog  <[email protected]>
324    
325            * test/test_transientdb.py
326            (TestTransientTable.run_iceland_political_tests): Fix a comment.
327    
328    2003-05-26  Bernhard Herzog  <[email protected]>
329    
330            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
331            implementation. Mark parts of the file format strings for
332            localization.
333    
334            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
335            file and add the table to the tables managed by the session
336    
337            * test/test_session.py (TestSessionSimple.test_open_table_file):
338            New. test case for OpenTableFile
339    
340    2003-05-26  Jan-Oliver Wagner <[email protected]>
341    
342            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
343            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
344            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
345            Replace the true/false of wxWindows by True/False of Python 2.2.1.
346    
347    2003-05-26  Jan-Oliver Wagner <[email protected]>
348    
349            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
350            already a selection present, update the grid accordingly.
351    
352            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
353            resizeable and increase its initial size.
354    
355    2003-05-26  Frank Koormann  <[email protected]>
356    
357            Table export functionality
358    
359            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
360            Return width (in characters) for a column.
361            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
362            (table_to_dbf): Write table to dbf file.
363            (table_to_csv): Write table to csv file.
364    
365            * Thuban/Model/transientdb.py (TransientTableBase.Width,
366            TransientTableBase.Precision): Return column width and precision.
367    
368            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
369            or table_to_csv depending on file selection.
370    
371            * test/test_dbf_table.py:
372            Test table_to_dbf (extension of former part of test).
373    
374            * test/test_csv_table.py:
375            Test table_to_csv.
376    
377    2003-05-23  Jan-Oliver Wagner <[email protected]>
378    
379            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
380            Use QueryTableFrame instead of TableFrame.
381    
382            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
383            table window with 'Layer Table:' instead of 'Table:'.
384    
385    2003-05-23  Jan-Oliver Wagner <[email protected]>
386    
387            Give all tables a title via mix-in TitledObject.LayerShowTable
388    
389            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
390            only if it exists.
391    
392            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
393            and call its init-method with a default title. Remove Title() method.
394    
395            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
396            AutoTransientTable): mix-in TitledObject and call its init-method with
397            a default title. Remove Title() method.
398    
399    2003-05-23  Bernhard Herzog  <[email protected]>
400    
401            * Thuban/Model/session.py (Session.AddShapeStore): Define
402            AddShapeStore analogously to AddTable.
403    
404            * test/test_session.py (TestSessionSimple.test_add_shapestore):
405            New. Test for AddShapeStore
406    
407    2003-05-23  Jan-Oliver Wagner <[email protected]>
408    
409            Introducing QueryTableFrame and a very coarse ShowTable implementation.
410    
411            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
412            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
413            The latter implements the selection GUI without dependency on a layer.
414            LayerTableFrame now is derived from QueryTableFrame and connects
415            to a layer.
416    
417            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
418            implementation that still needs work.
419    
420            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
421    
422    2003-05-22  Frank Koormann  <[email protected]>
423    
424            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
425            Added "outer_join = False" as optional parameter.
426            (TransientJoinedTable.create): If outer join is true, perform a
427            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
428            the left table. Records not matching are filled with 0 / None.
429    
430            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
431            (JoinDialog.OnJoin): Consider outer join check box.
432    
433    2003-05-22  Bernhard Herzog  <[email protected]>
434    
435            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
436            somewhat safer way. Storing the traceback in a local variable can
437            lead to memory leaks
438    
439    2003-05-22  Bernhard Herzog  <[email protected]>
440    
441            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
442            the wxMessageDialog's Destroy() method.
443    
444    2003-05-22  Frank Koormann  <[email protected]>
445    
446            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
447            TransientTable.Title()
448    
449    2003-05-22  Frank Koormann  <[email protected]>
450    
451            Join Dialog, initial version.
452    
453            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
454    
455            * Thuban/UI/join.py (JoinDialog): Functional implementation of
456            former framework. Renamed Table1/Table2 to LeftTable/RightTable
457            in all occurences.
458    
459            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
460            Typo fixed.
461    
462    2003-05-22  Bernhard Herzog  <[email protected]>
463    
464            Give the tables titles so that the GUI can display more meaningful
465            names. For now the titles are fixed but depend on e.g. filenames
466            or the titles of the joined tables.
467    
468            * Thuban/Model/transientdb.py (TransientTable.Title)
469            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
470    
471            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
472    
473            * test/test_transientdb.py
474            (TestTransientTable.test_auto_transient_table_title): New. Test
475            for the Title method
476            (TestTransientTable.test_transient_joined_table)
477            (TestTransientTable.test_transient_table): Add test for the Title
478            methods
479    
480            * test/test_memory_table.py (TestMemoryTable.test_title): New.
481            Test for the Title method
482    
483            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
484            the Title method
485    
486    2003-05-22  Bernhard Herzog  <[email protected]>
487    
488            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
489            Provide a better way to destroy the layers
490            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
491            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
492            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
493            the new way to destroy the layers.
494            (TestLayer.test_derived_store): New. Test for using a layer with a
495            DerivedShapeStore
496    
497            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
498            filename if the shape store actually has one.
499    
500    2003-05-22  Bernhard Herzog  <[email protected]>
501    
502            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
503            for the filename
504    
505            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
506            for the FileName method
507            (TestDBFTableWriting.test_write): Fix spelling of filename
508    
509    2003-05-22  Thomas Koester  <[email protected]>
510    
511            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
512            from SciParam that now really is immutable.
513    
514    2003-05-22  Frank Koormann  <[email protected]>
515    
516            Layer Top/Bottom placement added to legend.
517    
518            * Thuban/UI/legend.py
519            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
520            bound to tool events.
521            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
522            New, methods binding the event methods with the map methods.
523    
524            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
525            layer at top/bottom of layer stack.
526    
527            * Resources/Bitmaps/top_layer.xpm: New button icon.
528    
529            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
530    
531  2003-05-22  Bernhard Herzog  <[email protected]>  2003-05-22  Bernhard Herzog  <[email protected]>
532    
533          * Thuban/Model/session.py (Session.RemoveTable): New method to          * Thuban/Model/session.py (Session.RemoveTable): New method to

Legend:
Removed from v.988  
changed lines
  Added in v.1118

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26