1 |
|
2003-07-01 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
Backport from HEAD |
4 |
|
|
5 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
6 |
|
Reverse List of layers to render in same order as in desktop legend. |
7 |
|
|
8 |
|
2003-06-25 Jonathan Coles <[email protected]> |
9 |
|
|
10 |
|
* Thuban/UI/classifier.py (Classifier.EditSymbol): The parent |
11 |
|
of the SelectPropertiesDialog should be self so the window |
12 |
|
appears on top. |
13 |
|
(ClassGroupPropertiesCtrl.DoEdit): The parent |
14 |
|
of the SelectPropertiesDialog should be self so the window |
15 |
|
appears on top. |
16 |
|
|
17 |
|
2003-06-18 Frank Koormann <[email protected]> |
18 |
|
|
19 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to |
20 |
|
scale if projection is latlong to get better estimate. |
21 |
|
|
22 |
|
2003-06-17 Jonathan Coles <[email protected]> |
23 |
|
|
24 |
|
Backport from HEAD. |
25 |
|
|
26 |
|
The view should respond to layer projection |
27 |
|
changed events to update the display. Changes to a projection |
28 |
|
should not cause the map to be set to full extent. |
29 |
|
|
30 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
31 |
|
current_map_proj to remember the current map projection so that |
32 |
|
when the projection changes we know what the previous projection |
33 |
|
was. |
34 |
|
(MapCanvas.SetMap): Unsubscribe and subscribe to |
35 |
|
LAYER_PROJECTION_CHANGED events. |
36 |
|
(MapCanvas.projection_changed): Split into two methods that respond |
37 |
|
to map and layer projection changes. |
38 |
|
(MapCanvas.map_projection_changed): New. Takes the current view and |
39 |
|
projects it using the new projection. This does not cause the |
40 |
|
map to be redrawn at full extent. |
41 |
|
(MapCanvas.layer_projection_changed): New. Cause a redraw which |
42 |
|
will draw each layer in its new projection. |
43 |
|
|
44 |
|
2003-06-16 Frank Koormann <[email protected]> |
45 |
|
|
46 |
|
Fix problem of hidden properties dialog under windows after double |
47 |
|
click on layer tree: |
48 |
|
The tree control always gets an Expanded / Collapsed event after |
49 |
|
the ItemActivated on double click, which raises the main window again. We add a second ItemActivated event to the queue, which simply |
50 |
|
raises the already displayed window. |
51 |
|
|
52 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
53 |
|
raiseProperties initialized to prevent endless loops |
54 |
|
(LegendTree._OnItemActivated): Depending on self.raiseProperties |
55 |
|
simply raise the properties or open the dialog and issue a second |
56 |
|
event. |
57 |
|
|
58 |
|
2003-06-16 Frank Koormann <[email protected]> |
59 |
|
|
60 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Set max_scale to |
61 |
|
2147483648.0 / max_len (which is sufficient for GREAT-ER). |
62 |
|
For HEAD in the future a more flexible concept has to be developed |
63 |
|
determining the rendering of "large" objects. |
64 |
|
|
65 |
|
2003-06-16 Jonathan Coles <[email protected]> |
66 |
|
|
67 |
|
Backport from HEAD. |
68 |
|
|
69 |
|
Fix a problem under Windows whereby if the user double-clicks on a |
70 |
|
layer in the legend that tree item will expand or collapse as well |
71 |
|
as open the layer properties dialog. The state of the tree item |
72 |
|
should not be affected. |
73 |
|
|
74 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Add instance variable |
75 |
|
preventExpandCollapse and subscribe to expanding and collapsing |
76 |
|
events. |
77 |
|
(LegendTree.OnItemExpandCollapse): New. Responds to expanding and |
78 |
|
collapsing events and will veto the event if it has been triggered |
79 |
|
by the user double clicking on a layer. |
80 |
|
(LegendTree._OnItemActivated): Set preventExpandCollapse to indicate |
81 |
|
that an expanding/collapsing event should be vetoed. |
82 |
|
|
83 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
84 |
|
|
85 |
|
Backport from HEAD. |
86 |
|
|
87 |
|
* Thuban/UI/classifier.py (Classifier.map_layers_removed) |
88 |
|
(Classifier.layer_shapestore_replaced, Classifier.OnClose): |
89 |
|
Unsubscribe the messages in OnClose and not in map_layers_removed |
90 |
|
or layer_shapestore_replaced to make sure it always happens when |
91 |
|
the dialog is closed. |
92 |
|
|
93 |
|
2003-06-13 Jonathan Coles <[email protected]> |
94 |
|
|
95 |
|
[NOTE: This is a back-port from the current CVS head] |
96 |
|
|
97 |
|
This puts back a fix for Windows where a panel is needed so that |
98 |
|
the background of the table view appears correctly. |
99 |
|
|
100 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Add a panel |
101 |
|
object that can be used by derived classes to place any |
102 |
|
controls (including the grid) onto. |
103 |
|
(QueryTableFrame.__init__): Use the panel as the parent window |
104 |
|
for all the controls. Reparent the grid so that the panel is |
105 |
|
the parent. Call UpdateStatusText() to correctly initialize |
106 |
|
the status bar. |
107 |
|
|
108 |
|
* Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits |
109 |
|
from wxFrame (as opposed to wxDialog like the other classes) |
110 |
|
but otherwise behaves like the other classes. This is needed |
111 |
|
for the TableView which isn't really a dialog and needs to |
112 |
|
have a status bar and control buttons. |
113 |
|
|
114 |
|
[NOTE: This is a back-port from the current CVS head] |
115 |
|
|
116 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Create an |
117 |
|
instance variable to keep track of how many rows are selected. |
118 |
|
Subscribe once to the the events we are interested in. |
119 |
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
120 |
|
hasn't been turned off. |
121 |
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
122 |
|
hasn't been turned off. |
123 |
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
124 |
|
as an event listener (which changes the event handler stack) |
125 |
|
simply set an instance variable to False. This is checked in |
126 |
|
the event handlers. |
127 |
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
128 |
|
selected rows. |
129 |
|
(TableFrame): Inherit from ThubanFrame so we can have a |
130 |
|
status bar and control buttons. |
131 |
|
(QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942. |
132 |
|
Explicitly set which items are selected in the operator choice and |
133 |
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
134 |
|
Subscribe to grid cell selection events so we can update the |
135 |
|
status bar. |
136 |
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
137 |
|
how many rows are in the grid, how many columns, and how many |
138 |
|
rows are selected. |
139 |
|
(QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell): |
140 |
|
Call UpdateStatusText when cells are (de)selected. |
141 |
|
(QueryTableFrame.OnQuery): Use the string value in the value |
142 |
|
combo if either the selected item index is 0 or if the string |
143 |
|
cannot be found in the predefined list (this happens if the |
144 |
|
user changes the text). Fixes RTbug #1940. |
145 |
|
Only turn off the grid event listeners if there a query comes |
146 |
|
back with a none empty list of ids. in the case that the list |
147 |
|
is empty this causes a grid.ClearSelection() call to actually |
148 |
|
clear the grid selection which causes the selected items in |
149 |
|
the map to be deselected. Fixes RTbug #1939. |
150 |
|
|
151 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
152 |
|
|
153 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
154 |
|
self.selected_shape with the current selection to make sure the |
155 |
|
contents of the dialog are up to date when it's shown for the |
156 |
|
first time. |
157 |
|
The dialog used to work without this by luck. The recent fix to |
158 |
|
the connector module 'broke' a 'feature' the identify view was |
159 |
|
relying on, i.e that subscribing to a message in response to |
160 |
|
receiving a message of that type would mean that the new |
161 |
|
subscriber would also be called for the same message. |
162 |
|
|
163 |
|
2003-06-12 Jonathan Coles <[email protected]> |
164 |
|
|
165 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
166 |
|
the scalebar if the current map has no projection set. |
167 |
|
|
168 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
169 |
|
projfilepath label to just the basename of the projection file |
170 |
|
rather than include the entire path. |
171 |
|
|
172 |
|
2003-06-11 Frank Koormann <[email protected]> |
173 |
|
|
174 |
|
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
175 |
|
update. |
176 |
|
|
177 |
|
2003-06-11 Frank Koormann <[email protected]> |
178 |
|
|
179 |
|
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
180 |
|
determine the absolute .thuban/thuban directory under |
181 |
|
"posix" (os.expanduser) and "nt" (read AppData registry key). |
182 |
|
|
183 |
|
* Thuban/Model/resource.py: Use get_application_dir |
184 |
|
|
185 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
186 |
|
Use get_application_dir. |
187 |
|
|
188 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
189 |
|
|
190 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to |
191 |
|
the messages MAP_LAYERS_REMOVED messages |
192 |
|
(LayerTableFrame.OnClose): Unsubscribe from it. |
193 |
|
(LayerTableFrame.map_layers_removed): New. Receiver for |
194 |
|
MAP_LAYERS_REMOVED. Close the dialog when the layer whose the |
195 |
|
dialog is showing is removed. |
196 |
|
|
197 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
198 |
|
|
199 |
|
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
200 |
|
of the receivers list so that unsubscribing in a receiver doesn't |
201 |
|
modify it while iterating over it. |
202 |
|
|
203 |
|
* test/test_connector.py |
204 |
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
205 |
|
unsubscribing in a receiver works correctly. See docstring for |
206 |
|
details |
207 |
|
|
208 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
209 |
|
|
210 |
|
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
211 |
|
message. |
212 |
|
|
213 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
214 |
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
215 |
|
LAYER_CHANGED will still be sent if the classification changes. |
216 |
|
|
217 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
218 |
|
parameter so we can subscribe to some of its messages |
219 |
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
220 |
|
and the layer's LAYER_SHAPESTORE_REPLACED |
221 |
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
222 |
|
subscribed to in __init__ |
223 |
|
(Classifier.map_layers_removed) |
224 |
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
225 |
|
subscribed to in __init__. Unsubscribe and close the dialog |
226 |
|
|
227 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
228 |
|
the map to the Classifier dialog |
229 |
|
|
230 |
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
231 |
|
SubscriberMixin as well so we can test messages |
232 |
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
233 |
|
messages |
234 |
|
(SetShapeStoreTests.tearDown): Clear the messages again |
235 |
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
236 |
|
for the modified flag too |
237 |
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
238 |
|
to check whether SetShapeStore sets the modified flag |
239 |
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
240 |
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
241 |
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
242 |
|
Add tests for the messages. This checks both the new |
243 |
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
244 |
|
|
245 |
|
2003-06-06 Jan-Oliver Wagner <[email protected]> |
246 |
|
|
247 |
|
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
248 |
|
the menu items. |
249 |
|
|
250 |
|
2003-06-05 Frank Koormann <[email protected]> |
251 |
|
|
252 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
253 |
|
Layout reimplemented without panel. Make life easier to fit the list |
254 |
|
in the dialog. |
255 |
|
|
256 |
|
2003-06-05 Frank Koormann <[email protected]> |
257 |
|
|
258 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |
259 |
|
once on initialisation (Former implementation resulted in multiple |
260 |
|
entries for each projection). |
261 |
|
(ProjFrame.__FillAvailList): selectProj as second optional parameter, |
262 |
|
if set, select the projection found under the specified name. This |
263 |
|
overwrites any other selection estimate. |
264 |
|
Removed projchoice filling from this method. |
265 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList): |
266 |
|
Updated call of ProjFrame.__FillAvailList |
267 |
|
(LCCPanel._DoLayout): Moved parameter controls in more common order. |
268 |
|
|
269 |
|
* Resources/Projections/defaults.proj: Extended defaults representing |
270 |
|
various common European projections. |
271 |
|
|
272 |
|
2003-06-05 Frank Koormann <[email protected]> |
273 |
|
|
274 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
275 |
|
Use ListCtrl instead of GridCtrl |
276 |
|
|
277 |
|
* Thuban/Model/resource.py: |
278 |
|
Guess location of .thuban directory from tempdir parent directory. |
279 |
|
|
280 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
281 |
|
Guess location of .thuban directory from tempdir parent directory. |
282 |
|
|
283 |
|
2003-06-04 Bernhard Herzog <[email protected]> |
284 |
|
|
285 |
|
Do not cache the values returned by the tree widget's |
286 |
|
GetFirstChild and GetNextChild methods because it led to lots of |
287 |
|
segfaults. The new way requires more brute force but is more |
288 |
|
reliable. |
289 |
|
|
290 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Remove instance |
291 |
|
variable layer2id |
292 |
|
(LegendTree.find_layer): New method to do with brute force what |
293 |
|
layer2id tried to accomplish |
294 |
|
(LegendTree._OnMsgLayerChanged) |
295 |
|
(LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer): |
296 |
|
Use find_layer instead of layer2id |
297 |
|
(LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to |
298 |
|
update layer2id anymore |
299 |
|
(LegendTree._OnMsgMapLayersRemoved) |
300 |
|
(LegendTree._OnMsgMapLayersAdded): Get by without layer2id. |
301 |
|
|
302 |
|
2003-06-03 Thomas Koester <[email protected]> |
303 |
|
|
304 |
|
* Thuban/Model/classgen.py (GenQuantiles0): New function. |
305 |
|
|
306 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
307 |
|
|
308 |
|
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
309 |
|
New commands. |
310 |
|
(main_menu): Add the new commands. |
311 |
|
(MainWindow.TableRename): New. Implementation of the table_rename |
312 |
|
command. |
313 |
|
(MainWindow.RenameLayer): New. Implementation of the layer_rename |
314 |
|
command. |
315 |
|
|
316 |
|
* Thuban/Model/session.py (Session.AddTable): call self.changed to |
317 |
|
set the modified flag |
318 |
|
|
319 |
|
* test/test_session.py (TestSessionSimple.test_add_table): Test |
320 |
|
whether the modified flag is set properly |
321 |
|
|
322 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call changed |
323 |
|
instead of issue so that the modified flags get updated. |
324 |
|
|
325 |
|
* test/test_base.py (SomeTitledObject): Derive from Modifiable |
326 |
|
instead of Publisher to reflect reality better and to accomodate |
327 |
|
the fact that SetTitle now calls changed instead of issue |
328 |
|
|
329 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
330 |
|
|
331 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource |
332 |
|
acquisition has to happen before the try in a try-finally. |
333 |
|
|
334 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
335 |
|
|
336 |
|
* Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's |
337 |
|
possible that a layer is removed that is not currently selected in |
338 |
|
the legend so don't check for this. |
339 |
|
|
340 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
341 |
|
|
342 |
|
* Thuban/Model/layer.py (Layer.Destroy): Set all instance |
343 |
|
variables to None that have direct or indirect references to |
344 |
|
shapefiles or dbf files to make sure that they do go away and the |
345 |
|
files are closed. |
346 |
|
|
347 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
348 |
|
|
349 |
|
* Thuban/UI/legend.py (LegendTree.GetRootItem): Reset |
350 |
|
availImgListIndices when a new image list is created |
351 |
|
|
352 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
353 |
|
|
354 |
|
* Thuban/UI/legend.py (LegendTree.__init__): New instance variable |
355 |
|
changing_selection to indicate whether the LegendTree code itself |
356 |
|
is currently changing the selection |
357 |
|
(LegendTree.normalize_selection): New method to normalize the |
358 |
|
selection by selecting the layer item even if the user clicked on |
359 |
|
the classification. |
360 |
|
(LegendTree._OnSelChanged): normalize the selection. This works |
361 |
|
around a bug in wx which doesn't keep track of the selection |
362 |
|
properly when subtrees are deleted. |
363 |
|
|
364 |
2003-05-30 Bernhard Herzog <[email protected]> |
2003-05-30 Bernhard Herzog <[email protected]> |
365 |
|
|
366 |
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |