1 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
4 |
|
implementation. Mark parts of the file format strings for |
5 |
|
localization. |
6 |
|
|
7 |
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
8 |
|
file and add the table to the tables managed by the session |
9 |
|
|
10 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
11 |
|
|
12 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
13 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
14 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
15 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
16 |
|
|
17 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
18 |
|
|
19 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
20 |
|
already a selection present, update the grid accordingly. |
21 |
|
|
22 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
23 |
|
resizeable and increase its initial size. |
24 |
|
|
25 |
|
2003-05-26 Frank Koormann <[email protected]> |
26 |
|
|
27 |
|
Table export functionality |
28 |
|
|
29 |
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
30 |
|
Return width (in characters) for a column. |
31 |
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
32 |
|
(table_to_dbf): Write table to dbf file. |
33 |
|
(table_to_csv): Write table to csv file. |
34 |
|
|
35 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
36 |
|
TransientTableBase.Precision): Return column width and precision. |
37 |
|
|
38 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
39 |
|
or table_to_csv depending on file selection. |
40 |
|
|
41 |
|
* test/test_dbf_table.py: |
42 |
|
Test table_to_dbf (extension of former part of test). |
43 |
|
|
44 |
|
* test/test_csv_table.py: |
45 |
|
Test table_to_csv. |
46 |
|
|
47 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
48 |
|
|
49 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
50 |
|
Use QueryTableFrame instead of TableFrame. |
51 |
|
|
52 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
53 |
|
table window with 'Layer Table:' instead of 'Table:'. |
54 |
|
|
55 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
56 |
|
|
57 |
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
58 |
|
|
59 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
60 |
|
only if it exists. |
61 |
|
|
62 |
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
63 |
|
and call its init-method with a default title. Remove Title() method. |
64 |
|
|
65 |
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
66 |
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
67 |
|
a default title. Remove Title() method. |
68 |
|
|
69 |
|
2003-05-23 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
72 |
|
AddShapeStore analogously to AddTable. |
73 |
|
|
74 |
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
75 |
|
New. Test for AddShapeStore |
76 |
|
|
77 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
78 |
|
|
79 |
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
80 |
|
|
81 |
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
82 |
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
83 |
|
The latter implements the selection GUI without dependency on a layer. |
84 |
|
LayerTableFrame now is derived from QueryTableFrame and connects |
85 |
|
to a layer. |
86 |
|
|
87 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
88 |
|
implementation that still needs work. |
89 |
|
|
90 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
91 |
|
|
92 |
|
2003-05-22 Frank Koormann <[email protected]> |
93 |
|
|
94 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
95 |
|
Added "outer_join = False" as optional parameter. |
96 |
|
(TransientJoinedTable.create): If outer join is true, perform a |
97 |
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
98 |
|
the left table. Records not matching are filled with 0 / None. |
99 |
|
|
100 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
101 |
|
(JoinDialog.OnJoin): Consider outer join check box. |
102 |
|
|
103 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
104 |
|
|
105 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
106 |
|
somewhat safer way. Storing the traceback in a local variable can |
107 |
|
lead to memory leaks |
108 |
|
|
109 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
110 |
|
|
111 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
112 |
|
the wxMessageDialog's Destroy() method. |
113 |
|
|
114 |
|
2003-05-22 Frank Koormann <[email protected]> |
115 |
|
|
116 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
117 |
|
TransientTable.Title() |
118 |
|
|
119 |
|
2003-05-22 Frank Koormann <[email protected]> |
120 |
|
|
121 |
|
Join Dialog, initial version. |
122 |
|
|
123 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
124 |
|
|
125 |
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
126 |
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
127 |
|
in all occurences. |
128 |
|
|
129 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
130 |
|
Typo fixed. |
131 |
|
|
132 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
133 |
|
|
134 |
|
Give the tables titles so that the GUI can display more meaningful |
135 |
|
names. For now the titles are fixed but depend on e.g. filenames |
136 |
|
or the titles of the joined tables. |
137 |
|
|
138 |
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
139 |
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
140 |
|
|
141 |
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
142 |
|
|
143 |
|
* test/test_transientdb.py |
144 |
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
145 |
|
for the Title method |
146 |
|
(TestTransientTable.test_transient_joined_table) |
147 |
|
(TestTransientTable.test_transient_table): Add test for the Title |
148 |
|
methods |
149 |
|
|
150 |
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
151 |
|
Test for the Title method |
152 |
|
|
153 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
154 |
|
the Title method |
155 |
|
|
156 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
157 |
|
|
158 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
159 |
|
Provide a better way to destroy the layers |
160 |
|
(TestLayer.test_base_layer, TestLayer.test_arc_layer) |
161 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
162 |
|
(TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use |
163 |
|
the new way to destroy the layers. |
164 |
|
(TestLayer.test_derived_store): New. Test for using a layer with a |
165 |
|
DerivedShapeStore |
166 |
|
|
167 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Only set the |
168 |
|
filename if the shape store actually has one. |
169 |
|
|
170 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
171 |
|
|
172 |
|
* Thuban/Model/table.py (DBFTable.FileName): New. Accessor method |
173 |
|
for the filename |
174 |
|
|
175 |
|
* test/test_dbf_table.py (TestDBFTable.test_filename): New. Test |
176 |
|
for the FileName method |
177 |
|
(TestDBFTableWriting.test_write): Fix spelling of filename |
178 |
|
|
179 |
|
2003-05-22 Thomas Koester <[email protected]> |
180 |
|
|
181 |
|
* Thuban/Model/range.py, test/test_range.py: Brought over new Range |
182 |
|
from SciParam that now really is immutable. |
183 |
|
|
184 |
|
2003-05-22 Frank Koormann <[email protected]> |
185 |
|
|
186 |
|
Layer Top/Bottom placement added to legend. |
187 |
|
|
188 |
|
* Thuban/UI/legend.py |
189 |
|
(LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods |
190 |
|
bound to tool events. |
191 |
|
(LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom): |
192 |
|
New, methods binding the event methods with the map methods. |
193 |
|
|
194 |
|
* Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place |
195 |
|
layer at top/bottom of layer stack. |
196 |
|
|
197 |
|
* Resources/Bitmaps/top_layer.xpm: New button icon. |
198 |
|
|
199 |
|
* Resources/Bitmaps/bottom_layer.xpm: New button icon. |
200 |
|
|
201 |
2003-05-22 Bernhard Herzog <[email protected]> |
2003-05-22 Bernhard Herzog <[email protected]> |
202 |
|
|
203 |
* Thuban/Model/session.py (Session.RemoveTable): New method to |
* Thuban/Model/session.py (Session.RemoveTable): New method to |