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