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