/[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 995 by bh, Thu May 22 18:05:25 2003 UTC revision 1089 by bh, Wed May 28 12:42:33 2003 UTC
# Line 1  Line 1 
1    2003-05-28  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
4            classification to "None" if the type of the field has changed.
5    
6            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
7            test for the Layer.SetShapeStore method
8    
9    2003-05-28  Jan-Oliver Wagner <[email protected]>
10    
11            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
12            does not necessarily have a filename).
13    
14    2003-05-28  Jan-Oliver Wagner <[email protected]>
15    
16            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
17            sort the selection list for the dialog.
18    
19    2003-05-28  Frank Koormann  <[email protected]>
20    
21            * extensions/thuban/wxproj.cpp
22            (project_point): Removed cast to int for projected point coordinates.
23            (shape_centroid): Return last point if all polygon vertices fall
24            to one point.
25    
26    2003-05-28  Bernhard Herzog  <[email protected]>
27    
28            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
29            with layers that don't have shapestores, i.e. raster layers.
30    
31    2003-05-28  Bernhard Herzog  <[email protected]>
32    
33            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
34            when determining the title from the filename.
35    
36            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
37            reflect changes in the way the title is derived from the filename
38    
39    2003-05-28  Frank Koormann  <[email protected]>
40    
41            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
42            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
43    
44    2003-05-27  Bernhard Herzog  <[email protected]>
45    
46            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
47            delegate SelectedLayer.
48            (MainWindow.LayerUnjoinTable): Implement.
49            (_can_unjoin): New. Helper function for the sensitivity of the
50            layer/unjoin command.
51    
52            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
53            (DerivedShapeStore.OrigShapeStore): New. Return the original
54            shapestore. Used to figure out how to unjoin.
55            (DerivedShapeStore.Shapefile): Fix a typo.
56    
57    2003-05-27  Bernhard Herzog  <[email protected]>
58    
59            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
60            well
61            (JoinDialog.__init__): Use the layer parameter and only build the
62            left choice when a layer is given
63            (JoinDialog.OnJoin): Handle layer joins as well
64            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
65            that the user selects the "Select..." item. The sensitivitly
66            updating is now in update_sensitivity
67            (JoinDialog.y): New method to refactor the sensitivity update of
68            the join button into its own method.
69    
70            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
71    
72    2003-05-27  Bernhard Herzog  <[email protected]>
73    
74            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
75            iff there are unreferenced tables in the session
76    
77    2003-05-27  Bernhard Herzog  <[email protected]>
78    
79            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
80    
81            * Thuban/Model/session.py (Session.UnreferencedTables): New method
82            to return tables that are not referenced by other tables or shape
83            stores and can be removed.
84            (Session.RemoveTable): Issue a TABLE_REMOVED message after
85            removing the table
86    
87            * Thuban/UI/mainwindow.py: Remove unused imports
88            (MainWindow.TableClose): Implement.
89    
90            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
91            messages so that the frame will be automatically closed when a new
92            session is opened or the table is removed.
93            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
94            __init__
95            (TableFrame.close_on_session_replaced)
96            (TableFrame.close_on_table_removed): New. Subscribers that close
97            the window
98    
99            * test/test_session.py (TestSessionMessages.test_remove_table)
100            (TestSessionSimple.test_remove_table): Move the test to
101            TestSessionSimple and add test for the TABLE_REMOVED message
102            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
103            (TestSessionSimple.test_unreferenced_tables) New. Test for the
104            UnreferencedTables method.
105            (UnreferencedTablesTests): New. Class with some more sophisticated
106            tests for UnreferencedTables.
107    
108    2003-05-27  Frank Koormann  <[email protected]>
109    
110            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
111            display has some unwanted side effects. Removed again.
112    
113    2003-05-27  Frank Koormann  <[email protected]>
114    
115            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
116    
117            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
118    
119    2003-05-27  Jan-Oliver Wagner <[email protected]>
120    
121            * test/test_menu.py (MenuTest.test): Added test for
122            Menu.RemoveItem().
123    
124            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
125            the menu.
126    
127    2003-05-27  Frank Koormann  <[email protected]>
128            
129            Nonmodal dialogs without parent (i.e. they can fall behind the main
130            window)
131    
132            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
133            all dialogs in the dialogs dictionary and the canvas.
134    
135            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
136            parent, i.e. can fall behind other windows.
137            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
138            dictionary before removing it.
139    
140            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
141    
142            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
143            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
144            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
145    
146    2003-05-27  Bernhard Herzog  <[email protected]>
147    
148            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
149            tableview dialog
150            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
151            Also, don't use the table's titles as the dialog names. The titles
152            aren't guaranteed to be unique.
153            (MainWindow.TableOpen): Open a table view dialog after opening the
154            table
155    
156    2003-05-27  Bernhard Herzog  <[email protected]>
157    
158            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
159            effect can be achieved by simply closing the window showing the
160            table.
161            (MainWindow.TableHide): Removed.
162            (main_menu): Removed "table_hide"
163    
164    2003-05-27  Frank Koormann  <[email protected]>
165    
166            Fix legend tree display problems under Win32
167    
168            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
169            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
170            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
171    
172            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
173    
174    2003-05-27  Jan-Oliver Wagner <[email protected]>
175    
176            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
177            'after' now allows to insert separators almost anywhere in the menu.
178    
179    2003-05-27  Frank Koormann  <[email protected]>
180    
181            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
182            "S" of selection box label to hint on hot key (Alt-S). Works under
183            Win32 but is ignored under GTK.
184    
185    2003-05-26  Frank Koormann  <[email protected]>
186    
187            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
188            Center Choices.
189    
190    2003-05-26  Bernhard Herzog  <[email protected]>
191    
192            Remove the Precision methods again. They're too DBF specific to be
193            part of the table interface and they're only used in table_to_dbf
194            anyway.
195            
196            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
197            fixed precision of 12 for doubles.
198            (TransientTableBase.Precision): Removed
199            (AutoTransientTable.Width): Delegate to self.table.
200    
201            * Thuban/Model/table.py (DBFTable.Precision)
202            (MemoryTable.Precision): Removed.
203            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
204            (table_to_dbf): Use a fixed precision of 12 for floats unless the
205            column object specifies something else.
206    
207            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
208            test for table_to_dbf
209    
210    2003-05-26  Bernhard Herzog  <[email protected]>
211    
212            * test/test_transientdb.py
213            (TestTransientTable.run_iceland_political_tests): Fix a comment.
214    
215    2003-05-26  Bernhard Herzog  <[email protected]>
216    
217            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
218            implementation. Mark parts of the file format strings for
219            localization.
220    
221            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
222            file and add the table to the tables managed by the session
223    
224            * test/test_session.py (TestSessionSimple.test_open_table_file):
225            New. test case for OpenTableFile
226    
227    2003-05-26  Jan-Oliver Wagner <[email protected]>
228    
229            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
230            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
231            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
232            Replace the true/false of wxWindows by True/False of Python 2.2.1.
233    
234    2003-05-26  Jan-Oliver Wagner <[email protected]>
235    
236            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
237            already a selection present, update the grid accordingly.
238    
239            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
240            resizeable and increase its initial size.
241    
242    2003-05-26  Frank Koormann  <[email protected]>
243    
244            Table export functionality
245    
246            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
247            Return width (in characters) for a column.
248            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
249            (table_to_dbf): Write table to dbf file.
250            (table_to_csv): Write table to csv file.
251    
252            * Thuban/Model/transientdb.py (TransientTableBase.Width,
253            TransientTableBase.Precision): Return column width and precision.
254    
255            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
256            or table_to_csv depending on file selection.
257    
258            * test/test_dbf_table.py:
259            Test table_to_dbf (extension of former part of test).
260    
261            * test/test_csv_table.py:
262            Test table_to_csv.
263    
264    2003-05-23  Jan-Oliver Wagner <[email protected]>
265    
266            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
267            Use QueryTableFrame instead of TableFrame.
268    
269            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
270            table window with 'Layer Table:' instead of 'Table:'.
271    
272    2003-05-23  Jan-Oliver Wagner <[email protected]>
273    
274            Give all tables a title via mix-in TitledObject.LayerShowTable
275    
276            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
277            only if it exists.
278    
279            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
280            and call its init-method with a default title. Remove Title() method.
281    
282            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
283            AutoTransientTable): mix-in TitledObject and call its init-method with
284            a default title. Remove Title() method.
285    
286    2003-05-23  Bernhard Herzog  <[email protected]>
287    
288            * Thuban/Model/session.py (Session.AddShapeStore): Define
289            AddShapeStore analogously to AddTable.
290    
291            * test/test_session.py (TestSessionSimple.test_add_shapestore):
292            New. Test for AddShapeStore
293    
294    2003-05-23  Jan-Oliver Wagner <[email protected]>
295    
296            Introducing QueryTableFrame and a very coarse ShowTable implementation.
297    
298            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
299            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
300            The latter implements the selection GUI without dependency on a layer.
301            LayerTableFrame now is derived from QueryTableFrame and connects
302            to a layer.
303    
304            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
305            implementation that still needs work.
306    
307            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
308    
309    2003-05-22  Frank Koormann  <[email protected]>
310    
311            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
312            Added "outer_join = False" as optional parameter.
313            (TransientJoinedTable.create): If outer join is true, perform a
314            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
315            the left table. Records not matching are filled with 0 / None.
316    
317            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
318            (JoinDialog.OnJoin): Consider outer join check box.
319    
320    2003-05-22  Bernhard Herzog  <[email protected]>
321    
322            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
323            somewhat safer way. Storing the traceback in a local variable can
324            lead to memory leaks
325    
326    2003-05-22  Bernhard Herzog  <[email protected]>
327    
328            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
329            the wxMessageDialog's Destroy() method.
330    
331    2003-05-22  Frank Koormann  <[email protected]>
332    
333            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
334            TransientTable.Title()
335    
336    2003-05-22  Frank Koormann  <[email protected]>
337    
338            Join Dialog, initial version.
339    
340            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
341    
342            * Thuban/UI/join.py (JoinDialog): Functional implementation of
343            former framework. Renamed Table1/Table2 to LeftTable/RightTable
344            in all occurences.
345    
346            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
347            Typo fixed.
348    
349    2003-05-22  Bernhard Herzog  <[email protected]>
350    
351            Give the tables titles so that the GUI can display more meaningful
352            names. For now the titles are fixed but depend on e.g. filenames
353            or the titles of the joined tables.
354    
355            * Thuban/Model/transientdb.py (TransientTable.Title)
356            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
357    
358            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
359    
360            * test/test_transientdb.py
361            (TestTransientTable.test_auto_transient_table_title): New. Test
362            for the Title method
363            (TestTransientTable.test_transient_joined_table)
364            (TestTransientTable.test_transient_table): Add test for the Title
365            methods
366    
367            * test/test_memory_table.py (TestMemoryTable.test_title): New.
368            Test for the Title method
369    
370            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
371            the Title method
372    
373    2003-05-22  Bernhard Herzog  <[email protected]>
374    
375            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
376            Provide a better way to destroy the layers
377            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
378            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
379            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
380            the new way to destroy the layers.
381            (TestLayer.test_derived_store): New. Test for using a layer with a
382            DerivedShapeStore
383    
384            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
385            filename if the shape store actually has one.
386    
387  2003-05-22  Bernhard Herzog  <[email protected]>  2003-05-22  Bernhard Herzog  <[email protected]>
388    
389          * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method          * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method

Legend:
Removed from v.995  
changed lines
  Added in v.1089

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26