1 |
|
2003-04-07 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/classgen.py: Fix Windows problem. |
4 |
|
|
5 |
|
* Thuban/UI/dock.py: Fix Windows problem. |
6 |
|
|
7 |
|
* Thuban/UI/mainwindow.py: Use False instead of false. |
8 |
|
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
9 |
|
|
10 |
|
2003-04-07 Jonathan Coles <[email protected]> |
11 |
|
|
12 |
|
Since we now say that the order of the groups in a classification |
13 |
|
matters, it makes sense to be able to manipulate that order. Most |
14 |
|
of the changes to Thuban/Model/classification.py are to that end. |
15 |
|
|
16 |
|
* Thuban/Model/classification.py (Classification.AppendGroup, |
17 |
|
Classification.InsertGroup, Classification.ReplaceGroup, |
18 |
|
Classification.RemoveGroup, Classification.GetGroup): Do as the |
19 |
|
names imply. |
20 |
|
(Classification.FindGroup): This was called GetGroup, but GetGroup |
21 |
|
takes an index, while FindGroup takes a value. |
22 |
|
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
23 |
|
REFERENCE. Currently there is a cyclic reference between the layer |
24 |
|
and its classification. If the classification doesn't need to know |
25 |
|
its owning layer we can change this, since it may make sense to be |
26 |
|
able to use the same classification with different layers. |
27 |
|
|
28 |
|
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
29 |
|
|
30 |
|
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
31 |
|
not AddGroup() |
32 |
|
|
33 |
|
* Thuban/UI/classifier.py: Now that we can depend on the order in |
34 |
|
a Classification and have methods to manipulate that order we don't |
35 |
|
need to use our own data structures in the grid. We can simply make |
36 |
|
the grid/table access the information they need from a copy of |
37 |
|
the classification object. |
38 |
|
(Classifier._OnCloseBtn): Event handler for when the user clicks |
39 |
|
'Close'. This is needed so if the user applies changes and then |
40 |
|
continues to change the table the user has the option of discarding |
41 |
|
the most recent changes and keeping what they applied. |
42 |
|
|
43 |
|
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
44 |
|
into the same group. |
45 |
|
|
46 |
|
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
47 |
|
with a really old version of proj, PJ_VERSION won't even be defined. |
48 |
|
If it isn't defined then just compile so that the function always |
49 |
|
returns Py_False. |
50 |
|
|
51 |
|
* test/test_classification.py: Fix tests to use the renamed methods. |
52 |
|
Still need to write tests for the new methods. |
53 |
|
|
54 |
|
2003-04-04 Jonathan Coles <[email protected]> |
55 |
|
|
56 |
|
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
57 |
|
call to SetSelection out of the method and before the call |
58 |
|
to __SelectField in __init__. This prevents a recursion of events |
59 |
|
when _OnFieldSelect is triggered by the user. |
60 |
|
|
61 |
|
2003-04-04 Jonathan Coles <[email protected]> |
62 |
|
|
63 |
|
* Thuban/Model/classification.py: Rename Color.None to |
64 |
|
Color.Transparent. |
65 |
|
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
66 |
|
Don't bother copying the color, since Colors are immutable. |
67 |
|
|
68 |
|
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
69 |
|
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
70 |
|
Thuban/UI/renderer.py, Thuban/UI/view.py: |
71 |
|
Rename Color.None to Color.Transparent. |
72 |
|
|
73 |
|
* test/test_classification.py, test/test_load.py: Rename Color.None |
74 |
|
to Color.Transparent. |
75 |
|
|
76 |
|
2003-04-04 Jonathan Coles <[email protected]> |
77 |
|
|
78 |
|
* Thuban/Model/classification.py: Fix assert calls. |
79 |
|
(ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill): |
80 |
|
Copy the color parameter rather than hold onto a reference. |
81 |
|
|
82 |
|
* Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy |
83 |
|
the color object. |
84 |
|
(NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we |
85 |
|
are sure there exists only one refernce to Color.None in the system. |
86 |
|
This allows us to use 'is' rather than the comparision functions. |
87 |
|
|
88 |
|
* Thuban/Model/save.py: Fix assert calls. |
89 |
|
|
90 |
|
* Thuban/UI/classifier.py: Fix assert calls. |
91 |
|
(ClassGrid._OnCellDClick): Call up to the classifier to open the |
92 |
|
dialog to edit the groups properties. |
93 |
|
(ClassGrid._OnCellResize): Make sure that the scollbars are drawn |
94 |
|
correctly if a cell is resized. |
95 |
|
(ClassTable.SetClassification): New. Changes the classification |
96 |
|
that is in the table. |
97 |
|
(ClassTable.__SetRow): Allow groups to be prepended. |
98 |
|
(Classifier): New code for opening the EditProperties and |
99 |
|
GenerateRanges dialogs. |
100 |
|
(SelectPropertiesDialog.__GetColor): Only set the color in the |
101 |
|
color dialog if the current color is not None. |
102 |
|
|
103 |
|
* Thuban/UI/dock.py: Fix assert calls. |
104 |
|
|
105 |
|
* Thuban/UI/legend.py: Fix assert calls. |
106 |
|
|
107 |
|
* Thuban/UI/renderer.py: Fix assert calls. |
108 |
|
|
109 |
|
* Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating |
110 |
|
classifications. |
111 |
|
(GenRangePanel): Panel specific to range generation. |
112 |
|
(GenSingletonPanel): Panel specific to singleton generation. |
113 |
|
(ClassGenerator): Class responsible for actually generating |
114 |
|
the classification from the data gathered in the dialog box. |
115 |
|
(PropertyRamp): Generates properties whose values range from |
116 |
|
a starting property to an ending property. |
117 |
|
|
118 |
|
2003-04-03 Bernhard Herzog <[email protected]> |
119 |
|
|
120 |
|
* test/support.py (print_garbage_information): New function that |
121 |
|
prints information about still connected messages and memory |
122 |
|
leaks. |
123 |
|
(run_suite): Removed. |
124 |
|
(run_tests): New function for use as a replacement of |
125 |
|
unittest.main in the test_* files. This one calls |
126 |
|
print_garbage_information at the end. |
127 |
|
|
128 |
|
* test/runtests.py (main): Use support.print_garbage_information |
129 |
|
|
130 |
|
* test/test_layer.py: Use support.run_tests instead of |
131 |
|
unittest.main so we get memory leak information |
132 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
133 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
134 |
|
(TestLayerLegend.test_visibility): Call the layer's Destroy method |
135 |
|
to fix a memory leak. |
136 |
|
|
137 |
|
* test/test_classification.py: Use support.run_tests instead of |
138 |
|
unittest.main so we get memory leak information |
139 |
|
(TestClassification.test_classification): Call the layer's Destroy |
140 |
|
method to fix a memory leak. |
141 |
|
|
142 |
|
2003-04-02 Bernhard Herzog <[email protected]> |
143 |
|
|
144 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
145 |
|
Handle the reference counts of the return value and errors in |
146 |
|
PyArg_ParseTuple correctly. |
147 |
|
|
148 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
149 |
|
sure the filename is absolute to avoid problems when saving the |
150 |
|
session again |
151 |
|
|
152 |
|
* Thuban/Model/table.py: Remove unnecessary import. Fix a typo. |
153 |
|
|
154 |
|
2003-04-01 Jonathan Coles <[email protected]> |
155 |
|
|
156 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check |
157 |
|
that there actually are points in the returned list of points |
158 |
|
before trying to index into the list. The list may be empty if |
159 |
|
the shape is a Null Shape. |
160 |
|
|
161 |
|
2003-04-01 Bernhard Herzog <[email protected]> |
162 |
|
|
163 |
|
* test/test_map.py: Don't use from <module> import * |
164 |
|
|
165 |
|
2003-04-01 Jonathan Coles <[email protected]> |
166 |
|
|
167 |
|
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
168 |
|
LAYER_LEGEND_CHANGED |
169 |
|
|
170 |
|
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
171 |
|
self.Destroy() to close the window after yesterday's changes. |
172 |
|
|
173 |
|
* test/test_map.py, test/test_session.py: Fix messages that |
174 |
|
are sent from maps and layers. |
175 |
|
|
176 |
|
2003-03-31 Jonathan Coles <[email protected]> |
177 |
|
|
178 |
|
* Thuban/UI/classifier.py: Commented out some debugging statements. |
179 |
|
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
180 |
|
RTbug #1769. |
181 |
|
|
182 |
|
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
183 |
|
position (although position doesn't work yet under GTK). |
184 |
|
(DockableWindow.Destroy): New. Called when the window must be |
185 |
|
closed. Namely needed when the DockFrame closes and must close |
186 |
|
its children. |
187 |
|
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
188 |
|
|
189 |
|
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
190 |
|
when then window is told to close. |
191 |
|
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
192 |
|
comment in source for more info. |
193 |
|
|
194 |
|
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
195 |
|
|
196 |
|
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
197 |
|
symmetry with other such methods. |
198 |
|
(MainWindow.ShowLegend): Show the legend docked by default. |
199 |
|
|
200 |
|
2003-03-28 Jonathan Coles <[email protected]> |
201 |
|
|
202 |
|
* Thuban/UI/classifier.py: Support for highlighting a specific |
203 |
|
group within the grid when the classification dialog is opened. |
204 |
|
Also contains a lot of debugging printouts which will later |
205 |
|
be removed. |
206 |
|
|
207 |
|
* Thuban/UI/dock.py: Complete rework on the dock code so that |
208 |
|
that it is fairly removed from the rest of the Thuban application. |
209 |
|
It is easy to add new docks which the rest of the program having |
210 |
|
to be aware of them. |
211 |
|
|
212 |
|
* Thuban/UI/legend.py: Modifications to support selecting a |
213 |
|
specific group in the classification dialog. Changed how layers |
214 |
|
are drawn when the layer is visible/invisible. |
215 |
|
|
216 |
|
* Thuban/UI/mainwindow.py: Removed legend specific code and |
217 |
|
replaced it with calls to the new dock code. |
218 |
|
|
219 |
|
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
220 |
|
to check if scale > 0. Trying to track down a divide by zero. |
221 |
|
|
222 |
|
2003-03-26 Jonathan Coles <[email protected]> |
223 |
|
|
224 |
|
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
225 |
|
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
226 |
|
now part of DockableWindow. |
227 |
|
(LegendPanel.DoOnSelChanged): Select the current layer in the |
228 |
|
map. |
229 |
|
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
230 |
|
with the selected layer and/or group. |
231 |
|
|
232 |
|
2003-03-26 Jonathan Coles <[email protected]> |
233 |
|
|
234 |
|
This putback contains the code for dockable windows. There is |
235 |
|
no support in wxWindows as of this date for windows that can |
236 |
|
attach themselves to other windows. |
237 |
|
|
238 |
|
The current model contains a DockableWindow which has a parent |
239 |
|
window for when it is detached and a dock window that it puts |
240 |
|
its contents in when it is docked. The contents of a DockableWindow |
241 |
|
must be a DockPanel. DockPanel itself derives from wxPanel. |
242 |
|
|
243 |
|
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
244 |
|
message, not a LAYER_LEGEND_CHANGED message. |
245 |
|
|
246 |
|
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
247 |
|
|
248 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
249 |
|
as one of the style properties for the fieldTypeText item to |
250 |
|
be sure that its size is correct when the text changes. |
251 |
|
|
252 |
|
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
253 |
|
DockableWindow. |
254 |
|
|
255 |
|
* Thuban/UI/legend.py: Added some more buttons and made the |
256 |
|
LegendPanel a DockPanel. |
257 |
|
|
258 |
|
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
259 |
|
and supporting functions for manipulating the sashes. |
260 |
|
(MainWindow.ShowLegend): Create a DockableWindow with the |
261 |
|
LegendPanel as the contents. |
262 |
|
|
263 |
|
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
264 |
|
|
265 |
|
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
266 |
|
not LAYER_LEGEND_CHANGED, messages. |
267 |
|
|
268 |
|
2003-03-25 Jonathan Coles <[email protected]> |
269 |
|
|
270 |
|
* setup.py: Added custom script bdist_rpm_build_script so that |
271 |
|
when the rpm is built the path to wx-config is correct. |
272 |
|
|
273 |
|
* setup.cfg: Added line saying to use the custom build script |
274 |
|
|
275 |
|
2003-03-20 Jonathan Coles <[email protected]> |
276 |
|
|
277 |
|
Initial implementation of the Legend. |
278 |
|
|
279 |
|
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
280 |
|
Legend information and allows the user to add/modify classifications |
281 |
|
and how the layers are drawn on the map. |
282 |
|
|
283 |
|
* setup.py: New command 'build_docs' which currently uses |
284 |
|
happydoc to generate html documentation for Thuban. |
285 |
|
|
286 |
|
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
287 |
|
Returns a string which is appropriately describes the group. |
288 |
|
|
289 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
290 |
|
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
291 |
|
|
292 |
|
* Thuban/Model/map.py (Map): Rename messages and use new, more |
293 |
|
specific, messages. |
294 |
|
|
295 |
|
* Thuban/Model/messages.py: New message to indicate that a layer's |
296 |
|
data has changed (LAYER_CHANGED). New map messages to indicate |
297 |
|
when layers have been added/removed/changed or if the stacking order |
298 |
|
of the layers has changed. |
299 |
|
|
300 |
|
* Thuban/Model/session.py: Rename and use new messages. |
301 |
|
|
302 |
|
* Thuban/UI/classifier.py: Remember if any changes have actually |
303 |
|
been applied so that if the dialog is cancelled without an application |
304 |
|
of changes we don't have to set a new classification. |
305 |
|
(ClassDataPreviewer): Pulled out the window specific code and put it |
306 |
|
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
307 |
|
symbols on any DC. |
308 |
|
|
309 |
|
* Thuban/UI/mainwindow.py: New code to open the legend. |
310 |
|
|
311 |
|
* Thuban/UI/view.py: Use new message names. |
312 |
|
|
313 |
|
2003-03-19 Jonathan Coles <[email protected]> |
314 |
|
|
315 |
|
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
316 |
|
of Python, wxPython, and some other libraries. |
317 |
|
|
318 |
|
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
319 |
|
version against what wxproj was compiled with. |
320 |
|
(check_version_gtk): If wxproj was compiled with gtk then check |
321 |
|
the given version against the version of the gtk library |
322 |
|
currently being used. |
323 |
|
|
324 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
325 |
|
|
326 |
|
* test/test_command.py: Run the tests when the module is run as a |
327 |
|
script |
328 |
|
|
329 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
330 |
|
|
331 |
|
Implement selection of multiple selected shapes in the same layer: |
332 |
|
|
333 |
|
- Introduce a new class to hold the selection. This basically |
334 |
|
replaces the interactor which was nothing more than the |
335 |
|
selection anyway. A major difference is of course that the new |
336 |
|
selection class supports multiple selected shapes in one layer |
337 |
|
|
338 |
|
- Move the object that represents the selection from the |
339 |
|
application to the canvas. The canvas is a better place than the |
340 |
|
application because the selection represents which shapes and |
341 |
|
layer of the map displayed by the canvas are selected and |
342 |
|
affects how the map is drawn. |
343 |
|
|
344 |
|
- Make the selection and its messages publicly available through |
345 |
|
the mainwindow. |
346 |
|
|
347 |
|
- The non-modal dialogs do not get a reference to the interactor |
348 |
|
anymore as they can simply refer to their parent, the |
349 |
|
mainwindow, for the what the interactor had to offer. |
350 |
|
|
351 |
|
* Thuban/UI/selection.py: New module with a class to represent the |
352 |
|
selection. |
353 |
|
|
354 |
|
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
355 |
|
these unused messages |
356 |
|
|
357 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
358 |
|
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
359 |
|
interactor is gone now. |
360 |
|
(ThubanApplication.CreateMainWindow): There is no interactor |
361 |
|
anymore so we pass None as the interactor argument for now for |
362 |
|
compatibility. |
363 |
|
|
364 |
|
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
365 |
|
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
366 |
|
Unsubscribe, delegate messages according to the delegated_messages |
367 |
|
class variable. |
368 |
|
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
369 |
|
attributes from instance variables as described with the |
370 |
|
delegated_methods class variable. |
371 |
|
(MapCanvas.__init__): New instance variable selection holding the |
372 |
|
current selection |
373 |
|
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
374 |
|
pass them on to the renderer |
375 |
|
(MapCanvas.SetMap): Clear the selection when a different map is |
376 |
|
selected. |
377 |
|
(MapCanvas.shape_selected): Simple force a complete redraw. The |
378 |
|
selection class now takes care of only issueing SHAPES_SELECTED |
379 |
|
messages when the set of selected shapes actually does change. |
380 |
|
(MapCanvas.SelectShapeAt): The selection is now managed in |
381 |
|
self.selection |
382 |
|
|
383 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
384 |
|
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
385 |
|
Unsubscribe, delegate messages according to the delegated_messages |
386 |
|
class variable. |
387 |
|
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
388 |
|
attributes from instance variables as described with the |
389 |
|
delegated_methods class variable. |
390 |
|
(MainWindow.__init__): The interactor as ivar is gone. The |
391 |
|
parameter is still there for compatibility. The selection messages |
392 |
|
now come from the canvas. |
393 |
|
(MainWindow.current_layer, MainWindow.has_selected_layer): |
394 |
|
Delegate to the the canvas. |
395 |
|
(MainWindow.LayerShowTable, MainWindow.Classify) |
396 |
|
(MainWindow.identify_view_on_demand): The dialogs don't need the |
397 |
|
interactor parameter anymore. |
398 |
|
|
399 |
|
* Thuban/UI/tableview.py (TableFrame.__init__) |
400 |
|
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
401 |
|
(LayerTableFrame.row_selected): The interactor is gone. It's job |
402 |
|
from the dialog's point of view is now done by the mainwindow, |
403 |
|
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
404 |
|
of SELECTED_SHAPE |
405 |
|
|
406 |
|
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
407 |
|
is gone. It's job from the dialog's point of view is now done by |
408 |
|
the mainwindow, i.e. the parent. |
409 |
|
|
410 |
|
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
411 |
|
gone. It's job from the dialog's point of view is now done by the |
412 |
|
mainwindow, i.e. the parent. |
413 |
|
|
414 |
|
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
415 |
|
gone. It's job from the dialog's point of view is now done by the |
416 |
|
mainwindow, i.e. the parent. |
417 |
|
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
418 |
|
stored as self.mainwindow. The mainwindow is need so that the tree |
419 |
|
can still subscribe to the selection messages. |
420 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
421 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
422 |
|
selection is now accessible through the mainwindow. Subscribe to |
423 |
|
SHAPES_SELECTED instead of SELECTED_SHAPE |
424 |
|
|
425 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
426 |
|
SHAPES_SELECTED message now. |
427 |
|
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
428 |
|
so deal with multiple shapes |
429 |
|
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
430 |
|
gone. It's job from the dialog's point of view is now done by the |
431 |
|
mainwindow, i.e. the parent. |
432 |
|
|
433 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
434 |
|
parameter is now a list of shape ids. |
435 |
|
(RecordTable.SetTable): The second parameter is now a list of |
436 |
|
indices. |
437 |
|
|
438 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
439 |
|
selected_shape parameter and ivar to selected_shapes. It's now a |
440 |
|
list of shape ids. |
441 |
|
(MapRenderer.draw_label_layer): Deal with multiple selected |
442 |
|
shapes. Rearrange the code a bit so that the setup and shape type |
443 |
|
distinctions are only executed once. |
444 |
|
|
445 |
|
* test/test_selection.py: Test cases for the selection class |
446 |
|
|
447 |
|
2003-03-11 Jonathan Coles <[email protected]> |
448 |
|
|
449 |
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
450 |
|
doesn't cause Thuban to crash. |
451 |
|
|
452 |
|
* Thuban/Model/layer.py: Handle the cyclic references between |
453 |
|
a layer and its classification better, and be sure to disconnect |
454 |
|
the classification from the layer when the layer is destroyed |
455 |
|
so that we don't maintain a cyclic reference that may not be |
456 |
|
garbage collected. |
457 |
|
|
458 |
|
* Thuban/Model/classification.py: See comment for layer.py. |
459 |
|
|
460 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
461 |
|
|
462 |
|
* HOWTO-Release: New. Information on the steps for releasing |
463 |
|
a new version of Thuban. |
464 |
|
|
465 |
|
2003-03-11 Jonathan Coles <[email protected]> |
466 |
|
|
467 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
468 |
|
Use True instead of true. |
469 |
|
(Classifier): Should have a single panel in which all the controls lie. |
470 |
|
|
471 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
472 |
|
|
473 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
474 |
|
|
475 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
476 |
|
|
477 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
478 |
|
|
479 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
480 |
|
field_type information is present. |
481 |
|
|
482 |
|
2003-03-10 Jonathan Coles <[email protected]> |
483 |
|
|
484 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
485 |
|
field type label grow so that when the text changes the |
486 |
|
size is updated correctly. This may be a wxWindows bug. |
487 |
|
|
488 |
|
2003-03-10 Jonathan Coles <[email protected]> |
489 |
|
|
490 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
491 |
|
SESSION_REPLACED. |
492 |
|
|
493 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
494 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
495 |
|
instead of in Reset, so we only set the size once. |
496 |
|
|
497 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
498 |
|
|
499 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
500 |
|
Call Close() instead of Shutdown(). |
501 |
|
|
502 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
503 |
|
|
504 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
505 |
|
Go back to using OnClose() instead of Shutdown(). |
506 |
|
|
507 |
|
2003-03-10 Jonathan Coles <[email protected]> |
508 |
|
|
509 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
510 |
|
to know the old field index as well as the new one. |
511 |
|
|
512 |
|
2003-03-10 Jonathan Coles <[email protected]> |
513 |
|
|
514 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
515 |
|
to correctly set the table information and call this from |
516 |
|
__init__ and from _OnFieldSelect so that all the information |
517 |
|
is up to date when the dialog opens and when a field is changed. |
518 |
|
|
519 |
|
2003-03-10 Jonathan Coles <[email protected]> |
520 |
|
|
521 |
|
* Thuban/Model/classification.py (Classification): Don't use |
522 |
|
layer's message function directly, use the ClassChanged() method |
523 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
524 |
|
must keep the information about field name and field type in |
525 |
|
sync when an owning layer is set or removed. |
526 |
|
|
527 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
528 |
|
classification can tell the layer when its data has changed. |
529 |
|
(Layer.SetClassification): Accepts None as an arguement to |
530 |
|
remove the current classification and correctly handles |
531 |
|
adding a new classification. |
532 |
|
|
533 |
|
* Thuban/Model/load.py: Comment out print statement |
534 |
|
|
535 |
|
* test/test_classification.py, test/test_save.py: New and |
536 |
|
improved tests. |
537 |
|
|
538 |
|
2003-03-07 Jonathan Coles <[email protected]> |
539 |
|
|
540 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
541 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
542 |
|
they can easily be copied by the classifier dialog. |
543 |
|
(ClassGroupProperites.__init__): The default line color should |
544 |
|
have been Color.Black. |
545 |
|
|
546 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
547 |
|
uses a consistent set of functions. |
548 |
|
(Classifier): Now non-modal. Has field type label which changes |
549 |
|
as the field changes. Keep track of buttons in a list so that |
550 |
|
we can enable/disable the buttons when the None field is selected. |
551 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
552 |
|
|
553 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
554 |
|
does what OnClose did, but can be called by the application to |
555 |
|
close a window. Needed when a session changes, and we have to |
556 |
|
close the classifier windows. |
557 |
|
|
558 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
559 |
|
Shuts down open dialogs. Used when a new session is created |
560 |
|
or a session is opened. |
561 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
562 |
|
if we don't call SaveSessionAs first. |
563 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
564 |
|
different layers. |
565 |
|
|
566 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
567 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
568 |
|
event notification and call the parent Shutdown(). This was |
569 |
|
necessary so the application can close the tree window. |
570 |
|
|
571 |
|
2003-03-06 Jonathan Coles <[email protected]> |
572 |
|
|
573 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
574 |
|
Addition of __eq__ and __ne__ methods. |
575 |
|
(Classification.SetLayer): prevent recursion between this method |
576 |
|
and Layer.SetClassification(). |
577 |
|
|
578 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
579 |
|
|
580 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
581 |
|
between this method and Classification.SetLayer(). |
582 |
|
|
583 |
|
* test/test_classification.py, test/test_load.py, |
584 |
|
test/test_session.py: Fixed and added tests for the classification |
585 |
|
classes. |
586 |
|
|
587 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
588 |
|
|
589 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
590 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
591 |
|
CreateTable because otherwise it triggers an assertion in |
592 |
|
wxPython/wxGTK 2.4. |
593 |
|
|
594 |
2003-03-05 Jonathan Coles <[email protected]> |
2003-03-05 Jonathan Coles <[email protected]> |
595 |
|
|
596 |
* Thuban/common.py: Move FIELDTYPE constants back to table.py |
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
597 |
|
|
598 |
* Thuban/Model/load.py: import FIELDTYPE constants from table |
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
599 |
|
|
600 |
* Thuban/UI/classifier.py: import FIELDTYPE constants from table.o |
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
601 |
|
|
602 |
* Thuban/Model/table.py: Put FIELDTYPE constants back |
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
603 |
|
|
604 |
2003-03-05 Jonathan Coles <[email protected]> |
2003-03-05 Jonathan Coles <[email protected]> |
605 |
|
|