1 |
|
2003-04-25 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the |
4 |
|
tree for projection information. |
5 |
|
|
6 |
|
* Thuban/Model/load.py (XMLReader.GetFilename): Renamed from |
7 |
|
XMLReader.GetFileName. |
8 |
|
(SessionLoader): Added support for loading projection tags that |
9 |
|
appear inside a layer. |
10 |
|
|
11 |
|
* Thuban/Model/proj.py (ProjFile): Document the class. Move |
12 |
|
back to using a list because the order of the projections in |
13 |
|
the file is important to maintain. Fixes RTbug #1817. |
14 |
|
|
15 |
|
* Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName |
16 |
|
to ProjFile.GetFilename. |
17 |
|
|
18 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save projection |
19 |
|
information. |
20 |
|
|
21 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from |
22 |
|
ProjFrame._OnSaveAs. Removed old dead code from previous |
23 |
|
implementation. |
24 |
|
(ProjFrame._OnExport): Add support for exporting more than one |
25 |
|
projection to a single file. |
26 |
|
(ProjFrame.__FillAvailList): use string formatting (% operator) |
27 |
|
to build strings that are (partly) translated. Fixes RTbug #1818. |
28 |
|
|
29 |
|
* test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile |
30 |
|
class. |
31 |
|
|
32 |
|
2003-04-24 Bernhard Herzog <[email protected]> |
33 |
|
|
34 |
|
* po/es.po: Updated Spanish translation by Daniel Calvelo Aros |
35 |
|
|
36 |
|
* po/fr.po: New. French translation by Daniel Calvelo Aros |
37 |
|
|
38 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate |
39 |
|
empty strings. |
40 |
|
|
41 |
|
2003-04-24 Jonathan Coles <[email protected]> |
42 |
|
|
43 |
|
* Thuban/Model/layer.py (Layer.GetProjection): New. Needed to |
44 |
|
implement the interface that the ProjFrame dialog expects. |
45 |
|
|
46 |
|
* Thuban/Model/proj.py (Projection.SetName): New. Allows the |
47 |
|
name of the projection to be changed. |
48 |
|
(ProjFile): Use a dictionary instead of a list so that removing |
49 |
|
projections is easier and we are sure about uniqueness. |
50 |
|
(ProjFile.Remove): Remove the given projection object. |
51 |
|
|
52 |
|
* Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles): |
53 |
|
Return a list with only one projection file instead of searching for |
54 |
|
any projection file. This simplifies many things if the user can |
55 |
|
only have one system file and one user file. |
56 |
|
|
57 |
|
* Thuban/UI/classgen.py: Change all references to |
58 |
|
genCombo to genChoice. |
59 |
|
|
60 |
|
* Thuban/UI/mainwindow.py: Add a Projection option under the |
61 |
|
layer menu. |
62 |
|
(MainWindow.LayerProjection): New. Open up a projection window |
63 |
|
for a layer. |
64 |
|
|
65 |
|
* Thuban/UI/projdialog.py: Large changes to how the dialog is |
66 |
|
laid out. Use three panels instead of one. One for the list of |
67 |
|
projections, one for the edit controls, and one for the buttons. |
68 |
|
Fixed resizing problems so that the dialog resizes correctly |
69 |
|
when the projection panel changes. Added import/export, save, and |
70 |
|
new buttons/functionality. |
71 |
|
|
72 |
|
2003-04-24 Bernhard Herzog <[email protected]> |
73 |
|
|
74 |
|
First step towards table management. Introduce a simple data |
75 |
|
abstraction so that we replace the data a layer uses more easily |
76 |
|
in the next step. |
77 |
|
|
78 |
|
* Thuban/Model/data.py: New file with a simple data abstraction |
79 |
|
that bundles shapefile and dbffile into one object. |
80 |
|
|
81 |
|
* Thuban/Model/session.py (Session.OpenShapefile): New method to |
82 |
|
open shapefiles and return a shape store object |
83 |
|
|
84 |
|
* Thuban/Model/layer.py (Layer.__init__): Pass the data as a store |
85 |
|
object instead of a shapefile filename. This introduces a new |
86 |
|
instance variable store holding the datastore. For intermediate |
87 |
|
backwards compatibility keep the old instance variables. |
88 |
|
(open_shapefile): Removed. No longer needed with the shape store. |
89 |
|
(Layer.SetShapeStore, Layer.ShapeStore): New methods to set and |
90 |
|
get the shape store used by a layer. |
91 |
|
(Layer.Destroy): No need to explicitly destroy the shapefile or |
92 |
|
table anymore. |
93 |
|
|
94 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer) |
95 |
|
(MainWindow.AddLayer): Use the session's OpenShapefile method to |
96 |
|
open shapefiles |
97 |
|
|
98 |
|
* Thuban/Model/load.py (ProcessSession.start_layer): Use the |
99 |
|
session's OpenShapefile method to open shapefiles |
100 |
|
|
101 |
|
* test/test_classification.py |
102 |
|
(TestClassification.test_classification): Use the session's |
103 |
|
OpenShapefile method to open shapefiles and build the filename in |
104 |
|
a more platform independed way |
105 |
|
|
106 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
107 |
|
Implement to have a session to use in the tests |
108 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
109 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the |
110 |
|
session's OpenShapefile method to open shapefiles |
111 |
|
(TestLayerLegend.setUp): Instantiate a session so that we can use |
112 |
|
it to open shapefiles. |
113 |
|
(TestLayerLegend.tearDown): Make sure that all references to |
114 |
|
layers and session are removed otherwise we may get a resource |
115 |
|
leak |
116 |
|
|
117 |
|
* test/test_map.py (TestMapAddLayer.test_add_layer) |
118 |
|
(TestMapWithContents.setUp): Instantiate a session so that we can |
119 |
|
use it to open shapefiles. |
120 |
|
(TestMapWithContents.tearDown): Make sure that all references to |
121 |
|
layers, maps and sessions are removed otherwise we may get a |
122 |
|
resource leak |
123 |
|
("__main__"): use support.run_tests() so that more info about |
124 |
|
uncollected garbage is printed |
125 |
|
|
126 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer): Use the |
127 |
|
session's OpenShapefile method to open shapefiles |
128 |
|
("__main__"): use support.run_tests() so that more info about |
129 |
|
uncollected garbage is printed |
130 |
|
|
131 |
|
* test/test_selection.py (TestSelection.tearDown): Make sure that |
132 |
|
all references to the session and the selection are removed |
133 |
|
otherwise we may get a resource leak |
134 |
|
(TestSelection.get_layer): Instantiate a session so that we can |
135 |
|
use it to open shapefiles. |
136 |
|
("__main__"): use support.run_tests() so that more info about |
137 |
|
uncollected garbage is printed |
138 |
|
|
139 |
|
* test/test_session.py (TestSessionBase.tearDown) |
140 |
|
(TestSessionWithContent.tearDown): Make sure that all references |
141 |
|
to the session and layers are removed otherwise we may get a |
142 |
|
resource leak |
143 |
|
(TestSessionWithContent.setUp): Use the session's OpenShapefile |
144 |
|
method to open shapefiles |
145 |
|
|
146 |
|
2003-04-24 Jonathan Coles <[email protected]> |
147 |
|
|
148 |
|
* Thuban/Model/load.py (XMLReader.read): Should have been checking |
149 |
|
if the file_or_filename object had the 'read' attribute. |
150 |
|
|
151 |
|
2003-04-23 Jonathan Coles <[email protected]> |
152 |
|
|
153 |
|
* Thuban/Model/resource.py: Fixes RTbug #1813. |
154 |
|
(ReadProjFile): Add documentation about which exceptions are raised. |
155 |
|
Always pass the exceptions up to the caller. |
156 |
|
(GetProjFiles): If the directory can't be read return an empty list. |
157 |
|
If any of the proj files can't be read skip that file and go |
158 |
|
on to the next one. |
159 |
|
|
160 |
|
* test/test_proj.py: Added test cases to handle nonexistent files, |
161 |
|
unreadable files, and files that don't parse correctly. |
162 |
|
|
163 |
|
2003-04-23 Jonathan Coles <[email protected]> |
164 |
|
|
165 |
|
Projection dialog. Allows the user to select from a list |
166 |
|
of projection templates and optionally edit them and save new ones. |
167 |
|
|
168 |
|
* Thuban/UI/projdialog.py (ProjFrame): New. Main dialog. |
169 |
|
(ProjPanel): Base class for projection specific panels. |
170 |
|
(TMPanel): Projection panel for Transverse Mercartor. |
171 |
|
(UTMPanel): Projection panel for Universal Transverse Mercartor. |
172 |
|
(LCCPanel): Projection panel for Lambert Conic Conformal. |
173 |
|
(GeoPanel): Projetion panel for Geographic Projection. |
174 |
|
|
175 |
|
2003-04-23 Jonathan Coles <[email protected]> |
176 |
|
|
177 |
|
* Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to |
178 |
|
promote symmetry. There now exists XMLReader and XMLWriter. |
179 |
|
(XMLReader.read): New. Call to read the given file descriptor or |
180 |
|
filename. |
181 |
|
(XMLReader.close): New. Make sure the file is closed. |
182 |
|
(XMLReader.GetFileName): New. Return just the file name that is being |
183 |
|
read from. |
184 |
|
(XMLReader.GetDirectory): New. Return just the directory of the file |
185 |
|
that is being read. |
186 |
|
(XMLReader.AddDispatchers): New. Take a dictionary which contains |
187 |
|
the names of functions to call as the XML tree is parsed. |
188 |
|
(XMLReader.startElementNS): Updated to use new dispatcher dictionary. |
189 |
|
(XMLReader.endElementNS): Updated to use new dispatcher dictionary. |
190 |
|
(SessionLoader): Removed class variables start_dispatcher and |
191 |
|
end_dispatcher since this functionality is now part of a class |
192 |
|
instance. Fixes RTbug #1808. |
193 |
|
(SessionLoader.__init__): Add dispatcher functions. |
194 |
|
(load_xmlfile): Code was moved into the XMLReader.read(). |
195 |
|
(load_session): Use modified SessionLoader. |
196 |
|
|
197 |
|
* Thuban/Model/map.py (Map.GetProjection): New. Returns the |
198 |
|
map's projection. |
199 |
|
|
200 |
|
* Thuban/Model/proj.py (Projection.GetParameters): Renamed to |
201 |
|
GetAllParameters. |
202 |
|
(Projection.GetParameter): Returns the value for the given parameter. |
203 |
|
|
204 |
|
* Thuban/Model/resource.py: Use XMLReader and XMLWriter. |
205 |
|
(GetProjFiles): Renamed from GetProjections. Now returns a list |
206 |
|
of ProjFile objects. |
207 |
|
(GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns |
208 |
|
a list of ProjFile objects whose files are not user defined. |
209 |
|
(GetUserProjFiles): Renamed from GetUserProjections. Returns a |
210 |
|
list of ProjFile objects whose files are user defined. |
211 |
|
(ProjFileReader): Extend new XMLReader. |
212 |
|
|
213 |
|
* Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to |
214 |
|
promote symmetry. |
215 |
|
|
216 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice |
217 |
|
control instead of a wxComboBox. wxChoice controls do not generate |
218 |
|
events as the uses highlights possible choices which fixes problems |
219 |
|
with resizing the dialog when the use selects an option. |
220 |
|
|
221 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice |
222 |
|
control instead of a wxComboBox. |
223 |
|
|
224 |
|
* Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection |
225 |
|
dialog. |
226 |
|
|
227 |
|
* test/test_proj.py (TestProjection.test): New tests for GetParameter |
228 |
|
method. |
229 |
|
|
230 |
|
2003-04-22 Bernhard Herzog <[email protected]> |
231 |
|
|
232 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports and global |
233 |
|
constants |
234 |
|
|
235 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
236 |
|
(IdentifyGridCtrl.selected_shape): Use table, not shapetable. |
237 |
|
|
238 |
|
2003-04-17 Bernhard Herzog <[email protected]> |
239 |
|
|
240 |
|
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
241 |
|
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used |
242 |
|
anymore. |
243 |
|
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes) |
244 |
|
(Layer.ShapeType, Layer.Shape): No need to call |
245 |
|
self.open_shapefile since it's always called in __init__ |
246 |
|
|
247 |
|
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
248 |
|
In wxPython 2.4 there's no need to extend MainLoop anymore since |
249 |
|
wxPython itself makes sure OnExit is called. |
250 |
|
|
251 |
|
2003-04-16 Jonathan Coles <[email protected]> |
252 |
|
|
253 |
|
Initial putback of projection management code. Includes new |
254 |
|
classes to read and write projection files. The current load |
255 |
|
and save classes were abstracted a bit so they could be reused. |
256 |
|
The Projection class was extended to provide new methods and |
257 |
|
have a name. |
258 |
|
|
259 |
|
* Thuban/Model/load.py (XMLProcessor): New. Contains all the |
260 |
|
general XML reading methods that were part of ProcessSession. |
261 |
|
|
262 |
|
* Thuban/Model/proj.py (Projection.__init__): Accepts an optional |
263 |
|
name. |
264 |
|
(ProjFile): New. Represents a file that contains projection |
265 |
|
information. |
266 |
|
|
267 |
|
* Thuban/Model/resource.py: New. Contains general utilities |
268 |
|
for read and writing projection files. |
269 |
|
|
270 |
|
* Thuban/Model/save.py (XMLSaver): New. Contains all the |
271 |
|
general XML writing methods that were part of SessionSaver. |
272 |
|
(SessionSaver): Renamed from Saver. |
273 |
|
|
274 |
|
* test/test_proj.py: New test cases for the projection |
275 |
|
file read and write functions. |
276 |
|
|
277 |
|
2003-04-16 Jonathan Coles <[email protected]> |
278 |
|
|
279 |
|
* Thuban/Model/classification.py: Use repr() around values |
280 |
|
in the ClassGroup*.__repr__() methods so it is clearer when |
281 |
|
a value is a string and when it is a number. |
282 |
|
|
283 |
|
* test/test_load.py: Rework the classification test to test |
284 |
|
that we can load old files. |
285 |
|
(testLabels): Test a file where the groups have labels. |
286 |
|
|
287 |
|
2003-04-16 Bernhard Herzog <[email protected]> |
288 |
|
|
289 |
|
Safer implementation of the performance enhancements of the |
290 |
|
low-level renderer: |
291 |
|
|
292 |
|
* extensions/thuban/wxproj.cpp (extract_projection) |
293 |
|
(extract_pointer): Rename extract_projection to extract_pointer |
294 |
|
and redefine its purpose to return the pointer stored in a CObject |
295 |
|
returned by the object's cobject method. Update all callers. |
296 |
|
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
297 |
|
handling of these low-level parameters so that each s_draw_info |
298 |
|
instance is handled as a CObject at python level that also |
299 |
|
contains real references to the actual python objects which |
300 |
|
contain the values in the struct. Add free_draw_info as the |
301 |
|
destructor. |
302 |
|
(draw_polygon_shape): Add the py_draw_info parameter which must a |
303 |
|
cobject containing an s_draw_info pointer. |
304 |
|
|
305 |
|
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
306 |
|
method to instantiat the low-level render parameter |
307 |
|
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
308 |
|
commented out code. |
309 |
|
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
310 |
|
layer but the low-level render parameter |
311 |
|
(ScreenRenderer.draw_shape_layer): Use the low-level render |
312 |
|
parameter. |
313 |
|
|
314 |
|
2003-04-15 Jonathan Coles <[email protected]> |
315 |
|
|
316 |
|
* Thuban/Model/classification.py: Implemented __repr__ for |
317 |
|
the ClassGroup* classes to make debugging a bit easier. |
318 |
|
(ClassGroup.SetLabel): Check that the string is an instance |
319 |
|
of StringTypes not StringType. Accounts for Unicode strings. |
320 |
|
|
321 |
|
* Thuban/Model/color.py: Implemented __repr__ to make |
322 |
|
debugging a bit easier. |
323 |
|
|
324 |
|
* Thuban/Model/save.py (Saver.write_classification): Need to |
325 |
|
save the group label. |
326 |
|
|
327 |
|
* test/test_load.py (testClassification): New. Loads the |
328 |
|
iceland_sample_test.thuban file and checks if it was loaded |
329 |
|
correctly. |
330 |
|
|
331 |
|
2003-04-15 Jonathan Coles <[email protected]> |
332 |
|
|
333 |
|
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
334 |
|
to improve rendering performance by initializing the variables |
335 |
|
that are not change each time draw_polygon_shape() is called. |
336 |
|
The values are stored in a global struct draw_info. |
337 |
|
(draw_polygon_shape): Removed initialization code that is |
338 |
|
now in draw_polygon_init(). |
339 |
|
|
340 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
341 |
|
drawing initialization call to draw_polygon_init() |
342 |
|
(MapRenderer.draw_polygon_shape): Use new signature of |
343 |
|
draw_polygon_shape. |
344 |
|
|
345 |
|
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
346 |
|
weirdness by setting the range to (1, maxint). |
347 |
|
|
348 |
|
* Thuban/Model/classification.py (ClassGroupProperties): Make |
349 |
|
instance variables private and optimize comparison operator |
350 |
|
by first checking if the color references are the same. |
351 |
|
(ClassGroupSingleton): Make instance variables private. |
352 |
|
(ClassGroupRange): Make instance variables private. |
353 |
|
|
354 |
|
* HOWTO-Release: Filled in missing steps for releasing packages. |
355 |
|
|
356 |
|
2003-04-15 Bernhard Herzog <[email protected]> |
357 |
|
|
358 |
|
First stab at internationalized messages: |
359 |
|
|
360 |
|
* Thuban/__init__.py (_): Implement the translation function for |
361 |
|
real using the python gettext module. |
362 |
|
|
363 |
|
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
364 |
|
translate empty strings. |
365 |
|
|
366 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
367 |
|
Add a missing space to a warning message |
368 |
|
|
369 |
|
* po/README: New. Notes about the management of the translation |
370 |
|
files. |
371 |
|
|
372 |
|
* po/Makefile: New. Makefile to help manage the translation files. |
373 |
|
|
374 |
|
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
375 |
|
|
376 |
|
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
377 |
|
translations and support files in po/ |
378 |
|
|
379 |
|
* setup.py (data_files): Add the *.mo files to the data_files too |
380 |
|
|
381 |
|
* README: Add note about the translations when building from CVS |
382 |
|
|
383 |
|
2003-04-14 Jonathan Coles <[email protected]> |
384 |
|
|
385 |
|
* Thuban/UI/dock.py: Fixes some window resizing problems most |
386 |
|
noticable under windows. Always assume the button bitmaps will |
387 |
|
be there. Code clean up. |
388 |
|
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
389 |
|
images for the dock/undock button to the same images. |
390 |
|
Work around for RTbug #1801. |
391 |
|
|
392 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
393 |
|
be allowed to grow within the sizer. Fixes a bug under Windows |
394 |
|
where the toolbar wasn't being drawn. |
395 |
|
|
396 |
|
2003-04-14 Frank Koormann <[email protected]> |
397 |
|
|
398 |
|
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
399 |
|
Updated design to try to make the button functionality more |
400 |
|
transparent. |
401 |
|
|
402 |
|
2003-04-14 Jonathan Coles <[email protected]> |
403 |
|
|
404 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
405 |
|
finalize the intialization of the panel. |
406 |
|
|
407 |
|
* Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the |
408 |
|
creation of the panel. Should be the last thing called in the |
409 |
|
initializer of a subclass. |
410 |
|
|
411 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively |
412 |
|
set the current selections in the combo boxes. This is needed |
413 |
|
under Windows. |
414 |
|
|
415 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add a top |
416 |
|
level panel to the dialog so that the background colors are |
417 |
|
consistent under Windows. |
418 |
|
|
419 |
|
2003-04-11 Jonathan Coles <[email protected]> |
420 |
|
|
421 |
|
* Thuban/UI/classgen.py: Change color ramps to start at white |
422 |
|
not black. |
423 |
|
|
424 |
|
* Thuban/UI/legend.py: Enable/disable the legend buttons when |
425 |
|
the legend changes. Fixes RTbug #1793. |
426 |
|
|
427 |
|
* test/test_classification.py: Added test for copying of |
428 |
|
classifications. |
429 |
|
|
430 |
|
2003-04-11 Jonathan Coles <[email protected]> |
431 |
|
|
432 |
|
* Thuban/UI/resource.py: New. Centralize the loading of resources |
433 |
|
such as bitmaps. |
434 |
|
|
435 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons, |
436 |
|
added images to the move buttons, added 'reverse' button. |
437 |
|
(CustomRampPanel.__init__): Added images to the move buttons. |
438 |
|
(GreyRamp): New. Generates a ramp from white to black. |
439 |
|
(HotToColdRamp): New. Generates a ramp from cold to hot colors. |
440 |
|
|
441 |
|
* Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to |
442 |
|
ID_PROPERTY_*. |
443 |
|
(Classifier.__init__): Minor changes to the layout. |
444 |
|
(Classifier._OnTitleChanged): Listen for when the user edits the |
445 |
|
title and update the dialog's title and the layer's title. |
446 |
|
|
447 |
|
* Thuban/UI/dock.py: Use new bitmaps for the control buttons. |
448 |
|
|
449 |
|
* Thuban/UI/legend.py: Use new bitmaps for the control buttons. |
450 |
|
(LegendTree._OnMsgLayerTitleChanged): Change the displayed title |
451 |
|
if the layer's title changes. |
452 |
|
|
453 |
|
* Thuban/UI/mainwindow.py: Added new menu item and associated code |
454 |
|
to open a dialog to rename the map. |
455 |
|
(MainWindow): Use new resource class to import bitmaps. |
456 |
|
|
457 |
|
2003-04-11 Jonathan Coles <[email protected]> |
458 |
|
|
459 |
|
* Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm, |
460 |
|
Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm, |
461 |
|
Resources/Bitmaps/group_use_none.xpm, |
462 |
|
Resources/Bitmaps/group_use_not.xpm, |
463 |
|
Resources/Bitmaps/hide_layer.xpm, |
464 |
|
Resources/Bitmaps/layer_properties.xpm, |
465 |
|
Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm, |
466 |
|
Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm: |
467 |
|
New. |
468 |
|
|
469 |
|
2003-04-10 Jonathan Coles <[email protected]> |
470 |
|
|
471 |
|
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
472 |
|
Should pass group to ClassGroup constructor. |
473 |
|
|
474 |
|
2003-04-10 Jonathan Coles <[email protected]> |
475 |
|
|
476 |
|
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
477 |
|
methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__) |
478 |
|
here. Implement SetVisible(), IsVisible(). |
479 |
|
(ClassGroup.__init__): Add group parameter which acts as a copy |
480 |
|
constructor. |
481 |
|
|
482 |
|
* Thuban/UI/classifier.py (ClassTable): Add a new column for the |
483 |
|
"Visible" check boxes. |
484 |
|
(Classifier): Rename the buttons and refactor the code to match |
485 |
|
the new labels. |
486 |
|
|
487 |
|
* Thuban/UI/legend.py: Classify button is now called "Properties". |
488 |
|
Refactored the code to change variable names. |
489 |
|
(LegendTree.__FillTreeLayer): Only list a group if it is visible. |
490 |
|
|
491 |
|
* Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to |
492 |
|
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties |
493 |
|
renamed to MainWindow.LayerEditProperties. |
494 |
|
(MainWindow.ToggleLegend): Don't include map name in legend title. |
495 |
|
(MainWindow.SetMap): Added the map name to the window title. |
496 |
|
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill, |
497 |
|
MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed. |
498 |
|
Functionality is found in the layer properties dialog. |
499 |
|
|
500 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
501 |
|
draw visible groups. |
502 |
|
|
503 |
|
2003-04-09 Jonathan Coles <[email protected]> |
504 |
|
|
505 |
|
* Thuban/UI/classgen.py: Modifications to allow simple |
506 |
|
addition and selection of new color schemes. |
507 |
|
(MonochromaticRamp): New. Generates a ramp between two colors. |
508 |
|
(RedRamp): New. Generates a ramp of all red. |
509 |
|
(GreenRamp): New. Generates a ramp of all green. |
510 |
|
(BlueRamp): New. Generates a ramp of all blue. |
511 |
|
|
512 |
|
2003-04-09 Jonathan Coles <[email protected]> |
513 |
|
|
514 |
|
* Thuban/Model/classification.py (Classification.__deepcopy__): |
515 |
|
Need to copy over field and fieldType attributes. |
516 |
|
|
517 |
|
* Thuban/Model/table.py (Table.field_range): New. Retrive the |
518 |
|
maximum and minimum values over the entire table for a given |
519 |
|
field. |
520 |
|
(Table.GetUniqueValues): New. Retrieve all the unique values |
521 |
|
in the table for a given field. |
522 |
|
|
523 |
|
* Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel. |
524 |
|
(GenUniquePanel): New. Controls to allow the user to select |
525 |
|
which unique field values they would like in the classification. |
526 |
|
(CustomRampPanel): Code that was in ClassGenDialog that allows |
527 |
|
the user to select the properties for a custom ramp. |
528 |
|
(ClassGenerator.GenUniformDistribution): Was called GenerateRanges. |
529 |
|
|
530 |
|
* Thuban/UI/classifier.py: Removed a lot of debugging code. |
531 |
|
(Classifier._SetClassification): Callback method so that the |
532 |
|
class generator can set the classification in the grid. |
533 |
|
(ClassGroupPropertiesCtrl): New. Encapsulates the drawing and |
534 |
|
editing of a group properties class into a wxWindows control. |
535 |
|
|
536 |
|
* Thuban/UI/dock.py: It was decided that if the user closes |
537 |
|
a dockable window the window should simply hide itself. That |
538 |
|
way if the user wants to show the dock again it appears in the |
539 |
|
same place as it was when it was closed. |
540 |
|
(DockableWindow.Destroy): Call renamed method OnDockDestroy(). |
541 |
|
(DockableWindow._OnButtonClose): Hide the window instead of |
542 |
|
destroying it. |
543 |
|
(DockableWindow._OnClose): Hide the window instead of |
544 |
|
destroying it. |
545 |
|
|
546 |
|
* Thuban/UI/legend.py (LegendTree): Use a private method to |
547 |
|
consistently set the font and style of the text. Fixes RTbug #1786. |
548 |
|
|
549 |
|
* Thuban/UI/mainwindow.py: Import just the Classifier class. |
550 |
|
|
551 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
552 |
|
|
553 |
|
* Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item |
554 |
|
to the map module |
555 |
|
|
556 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
557 |
|
|
558 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in |
559 |
|
favor of ToggleSessionTree |
560 |
|
(MainWindow.ToggleSessionTree): New method to toggle visibility of |
561 |
|
the session tree. |
562 |
|
(MainWindow.SessionTreeShown): New method to return whether the |
563 |
|
session tree is currently shown. |
564 |
|
(MainWindow.ToggleLegend): New method to toggle visibility of the |
565 |
|
legend |
566 |
|
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and |
567 |
|
LegendShown |
568 |
|
(MainWindow.LegendShown): New method to return whether the legend |
569 |
|
is currently shown. |
570 |
|
(_method_command): Add checked parameter so we can define check |
571 |
|
menu items |
572 |
|
(_has_tree_window_shown, _has_legend_shown): Use the appropriate |
573 |
|
mainwindow methods. |
574 |
|
(show_session_tree, show_legend commands): Removed. |
575 |
|
(toggle_session_tree, toggle_legend commands): New commands to |
576 |
|
toggle the visibility of the dialogs |
577 |
|
|
578 |
|
2003-04-07 Jonathan Coles <[email protected]> |
579 |
|
|
580 |
|
* Thuban/UI/classgen.py: Fix Windows problem. |
581 |
|
|
582 |
|
* Thuban/UI/dock.py: Fix Windows problem. |
583 |
|
|
584 |
|
* Thuban/UI/mainwindow.py: Use False instead of false. |
585 |
|
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
586 |
|
|
587 |
|
2003-04-07 Jonathan Coles <[email protected]> |
588 |
|
|
589 |
|
Since we now say that the order of the groups in a classification |
590 |
|
matters, it makes sense to be able to manipulate that order. Most |
591 |
|
of the changes to Thuban/Model/classification.py are to that end. |
592 |
|
|
593 |
|
* Thuban/Model/classification.py (Classification.AppendGroup, |
594 |
|
Classification.InsertGroup, Classification.ReplaceGroup, |
595 |
|
Classification.RemoveGroup, Classification.GetGroup): Do as the |
596 |
|
names imply. |
597 |
|
(Classification.FindGroup): This was called GetGroup, but GetGroup |
598 |
|
takes an index, while FindGroup takes a value. |
599 |
|
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
600 |
|
REFERENCE. Currently there is a cyclic reference between the layer |
601 |
|
and its classification. If the classification doesn't need to know |
602 |
|
its owning layer we can change this, since it may make sense to be |
603 |
|
able to use the same classification with different layers. |
604 |
|
|
605 |
|
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
606 |
|
|
607 |
|
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
608 |
|
not AddGroup() |
609 |
|
|
610 |
|
* Thuban/UI/classifier.py: Now that we can depend on the order in |
611 |
|
a Classification and have methods to manipulate that order we don't |
612 |
|
need to use our own data structures in the grid. We can simply make |
613 |
|
the grid/table access the information they need from a copy of |
614 |
|
the classification object. |
615 |
|
(Classifier._OnCloseBtn): Event handler for when the user clicks |
616 |
|
'Close'. This is needed so if the user applies changes and then |
617 |
|
continues to change the table the user has the option of discarding |
618 |
|
the most recent changes and keeping what they applied. |
619 |
|
|
620 |
|
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
621 |
|
into the same group. |
622 |
|
|
623 |
|
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
624 |
|
with a really old version of proj, PJ_VERSION won't even be defined. |
625 |
|
If it isn't defined then just compile so that the function always |
626 |
|
returns Py_False. |
627 |
|
|
628 |
|
* test/test_classification.py: Fix tests to use the renamed methods. |
629 |
|
Still need to write tests for the new methods. |
630 |
|
|
631 |
|
2003-04-04 Jonathan Coles <[email protected]> |
632 |
|
|
633 |
|
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
634 |
|
call to SetSelection out of the method and before the call |
635 |
|
to __SelectField in __init__. This prevents a recursion of events |
636 |
|
when _OnFieldSelect is triggered by the user. |
637 |
|
|
638 |
|
2003-04-04 Jonathan Coles <[email protected]> |
639 |
|
|
640 |
|
* Thuban/Model/classification.py: Rename Color.None to |
641 |
|
Color.Transparent. |
642 |
|
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
643 |
|
Don't bother copying the color, since Colors are immutable. |
644 |
|
|
645 |
|
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
646 |
|
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
647 |
|
Thuban/UI/renderer.py, Thuban/UI/view.py: |
648 |
|
Rename Color.None to Color.Transparent. |
649 |
|
|
650 |
|
* test/test_classification.py, test/test_load.py: Rename Color.None |
651 |
|
to Color.Transparent. |
652 |
|
|
653 |
|
2003-04-04 Jonathan Coles <[email protected]> |
654 |
|
|
655 |
|
* Thuban/Model/classification.py: Fix assert calls. |
656 |
|
(ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill): |
657 |
|
Copy the color parameter rather than hold onto a reference. |
658 |
|
|
659 |
|
* Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy |
660 |
|
the color object. |
661 |
|
(NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we |
662 |
|
are sure there exists only one refernce to Color.None in the system. |
663 |
|
This allows us to use 'is' rather than the comparision functions. |
664 |
|
|
665 |
|
* Thuban/Model/save.py: Fix assert calls. |
666 |
|
|
667 |
|
* Thuban/UI/classifier.py: Fix assert calls. |
668 |
|
(ClassGrid._OnCellDClick): Call up to the classifier to open the |
669 |
|
dialog to edit the groups properties. |
670 |
|
(ClassGrid._OnCellResize): Make sure that the scollbars are drawn |
671 |
|
correctly if a cell is resized. |
672 |
|
(ClassTable.SetClassification): New. Changes the classification |
673 |
|
that is in the table. |
674 |
|
(ClassTable.__SetRow): Allow groups to be prepended. |
675 |
|
(Classifier): New code for opening the EditProperties and |
676 |
|
GenerateRanges dialogs. |
677 |
|
(SelectPropertiesDialog.__GetColor): Only set the color in the |
678 |
|
color dialog if the current color is not None. |
679 |
|
|
680 |
|
* Thuban/UI/dock.py: Fix assert calls. |
681 |
|
|
682 |
|
* Thuban/UI/legend.py: Fix assert calls. |
683 |
|
|
684 |
|
* Thuban/UI/renderer.py: Fix assert calls. |
685 |
|
|
686 |
|
* Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating |
687 |
|
classifications. |
688 |
|
(GenRangePanel): Panel specific to range generation. |
689 |
|
(GenSingletonPanel): Panel specific to singleton generation. |
690 |
|
(ClassGenerator): Class responsible for actually generating |
691 |
|
the classification from the data gathered in the dialog box. |
692 |
|
(PropertyRamp): Generates properties whose values range from |
693 |
|
a starting property to an ending property. |
694 |
|
|
695 |
|
2003-04-03 Bernhard Herzog <[email protected]> |
696 |
|
|
697 |
|
* test/support.py (print_garbage_information): New function that |
698 |
|
prints information about still connected messages and memory |
699 |
|
leaks. |
700 |
|
(run_suite): Removed. |
701 |
|
(run_tests): New function for use as a replacement of |
702 |
|
unittest.main in the test_* files. This one calls |
703 |
|
print_garbage_information at the end. |
704 |
|
|
705 |
|
* test/runtests.py (main): Use support.print_garbage_information |
706 |
|
|
707 |
|
* test/test_layer.py: Use support.run_tests instead of |
708 |
|
unittest.main so we get memory leak information |
709 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
710 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
711 |
|
(TestLayerLegend.test_visibility): Call the layer's Destroy method |
712 |
|
to fix a memory leak. |
713 |
|
|
714 |
|
* test/test_classification.py: Use support.run_tests instead of |
715 |
|
unittest.main so we get memory leak information |
716 |
|
(TestClassification.test_classification): Call the layer's Destroy |
717 |
|
method to fix a memory leak. |
718 |
|
|
719 |
|
2003-04-02 Bernhard Herzog <[email protected]> |
720 |
|
|
721 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
722 |
|
Handle the reference counts of the return value and errors in |
723 |
|
PyArg_ParseTuple correctly. |
724 |
|
|
725 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
726 |
|
sure the filename is absolute to avoid problems when saving the |
727 |
|
session again |
728 |
|
|
729 |
|
* Thuban/Model/table.py: Remove unnecessary import. Fix a typo. |
730 |
|
|
731 |
|
2003-04-01 Jonathan Coles <[email protected]> |
732 |
|
|
733 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check |
734 |
|
that there actually are points in the returned list of points |
735 |
|
before trying to index into the list. The list may be empty if |
736 |
|
the shape is a Null Shape. |
737 |
|
|
738 |
|
2003-04-01 Bernhard Herzog <[email protected]> |
739 |
|
|
740 |
|
* test/test_map.py: Don't use from <module> import * |
741 |
|
|
742 |
|
2003-04-01 Jonathan Coles <[email protected]> |
743 |
|
|
744 |
|
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
745 |
|
LAYER_LEGEND_CHANGED |
746 |
|
|
747 |
|
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
748 |
|
self.Destroy() to close the window after yesterday's changes. |
749 |
|
|
750 |
|
* test/test_map.py, test/test_session.py: Fix messages that |
751 |
|
are sent from maps and layers. |
752 |
|
|
753 |
|
2003-03-31 Jonathan Coles <[email protected]> |
754 |
|
|
755 |
|
* Thuban/UI/classifier.py: Commented out some debugging statements. |
756 |
|
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
757 |
|
RTbug #1769. |
758 |
|
|
759 |
|
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
760 |
|
position (although position doesn't work yet under GTK). |
761 |
|
(DockableWindow.Destroy): New. Called when the window must be |
762 |
|
closed. Namely needed when the DockFrame closes and must close |
763 |
|
its children. |
764 |
|
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
765 |
|
|
766 |
|
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
767 |
|
when then window is told to close. |
768 |
|
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
769 |
|
comment in source for more info. |
770 |
|
|
771 |
|
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
772 |
|
|
773 |
|
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
774 |
|
symmetry with other such methods. |
775 |
|
(MainWindow.ShowLegend): Show the legend docked by default. |
776 |
|
|
777 |
|
2003-03-28 Jonathan Coles <[email protected]> |
778 |
|
|
779 |
|
* Thuban/UI/classifier.py: Support for highlighting a specific |
780 |
|
group within the grid when the classification dialog is opened. |
781 |
|
Also contains a lot of debugging printouts which will later |
782 |
|
be removed. |
783 |
|
|
784 |
|
* Thuban/UI/dock.py: Complete rework on the dock code so that |
785 |
|
that it is fairly removed from the rest of the Thuban application. |
786 |
|
It is easy to add new docks which the rest of the program having |
787 |
|
to be aware of them. |
788 |
|
|
789 |
|
* Thuban/UI/legend.py: Modifications to support selecting a |
790 |
|
specific group in the classification dialog. Changed how layers |
791 |
|
are drawn when the layer is visible/invisible. |
792 |
|
|
793 |
|
* Thuban/UI/mainwindow.py: Removed legend specific code and |
794 |
|
replaced it with calls to the new dock code. |
795 |
|
|
796 |
|
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
797 |
|
to check if scale > 0. Trying to track down a divide by zero. |
798 |
|
|
799 |
|
2003-03-26 Jonathan Coles <[email protected]> |
800 |
|
|
801 |
|
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
802 |
|
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
803 |
|
now part of DockableWindow. |
804 |
|
(LegendPanel.DoOnSelChanged): Select the current layer in the |
805 |
|
map. |
806 |
|
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
807 |
|
with the selected layer and/or group. |
808 |
|
|
809 |
|
2003-03-26 Jonathan Coles <[email protected]> |
810 |
|
|
811 |
|
This putback contains the code for dockable windows. There is |
812 |
|
no support in wxWindows as of this date for windows that can |
813 |
|
attach themselves to other windows. |
814 |
|
|
815 |
|
The current model contains a DockableWindow which has a parent |
816 |
|
window for when it is detached and a dock window that it puts |
817 |
|
its contents in when it is docked. The contents of a DockableWindow |
818 |
|
must be a DockPanel. DockPanel itself derives from wxPanel. |
819 |
|
|
820 |
|
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
821 |
|
message, not a LAYER_LEGEND_CHANGED message. |
822 |
|
|
823 |
|
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
824 |
|
|
825 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
826 |
|
as one of the style properties for the fieldTypeText item to |
827 |
|
be sure that its size is correct when the text changes. |
828 |
|
|
829 |
|
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
830 |
|
DockableWindow. |
831 |
|
|
832 |
|
* Thuban/UI/legend.py: Added some more buttons and made the |
833 |
|
LegendPanel a DockPanel. |
834 |
|
|
835 |
|
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
836 |
|
and supporting functions for manipulating the sashes. |
837 |
|
(MainWindow.ShowLegend): Create a DockableWindow with the |
838 |
|
LegendPanel as the contents. |
839 |
|
|
840 |
|
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
841 |
|
|
842 |
|
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
843 |
|
not LAYER_LEGEND_CHANGED, messages. |
844 |
|
|
845 |
|
2003-03-25 Jonathan Coles <[email protected]> |
846 |
|
|
847 |
|
* setup.py: Added custom script bdist_rpm_build_script so that |
848 |
|
when the rpm is built the path to wx-config is correct. |
849 |
|
|
850 |
|
* setup.cfg: Added line saying to use the custom build script |
851 |
|
|
852 |
|
2003-03-20 Jonathan Coles <[email protected]> |
853 |
|
|
854 |
|
Initial implementation of the Legend. |
855 |
|
|
856 |
|
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
857 |
|
Legend information and allows the user to add/modify classifications |
858 |
|
and how the layers are drawn on the map. |
859 |
|
|
860 |
|
* setup.py: New command 'build_docs' which currently uses |
861 |
|
happydoc to generate html documentation for Thuban. |
862 |
|
|
863 |
|
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
864 |
|
Returns a string which is appropriately describes the group. |
865 |
|
|
866 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
867 |
|
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
868 |
|
|
869 |
|
* Thuban/Model/map.py (Map): Rename messages and use new, more |
870 |
|
specific, messages. |
871 |
|
|
872 |
|
* Thuban/Model/messages.py: New message to indicate that a layer's |
873 |
|
data has changed (LAYER_CHANGED). New map messages to indicate |
874 |
|
when layers have been added/removed/changed or if the stacking order |
875 |
|
of the layers has changed. |
876 |
|
|
877 |
|
* Thuban/Model/session.py: Rename and use new messages. |
878 |
|
|
879 |
|
* Thuban/UI/classifier.py: Remember if any changes have actually |
880 |
|
been applied so that if the dialog is cancelled without an application |
881 |
|
of changes we don't have to set a new classification. |
882 |
|
(ClassDataPreviewer): Pulled out the window specific code and put it |
883 |
|
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
884 |
|
symbols on any DC. |
885 |
|
|
886 |
|
* Thuban/UI/mainwindow.py: New code to open the legend. |
887 |
|
|
888 |
|
* Thuban/UI/view.py: Use new message names. |
889 |
|
|
890 |
|
2003-03-19 Jonathan Coles <[email protected]> |
891 |
|
|
892 |
|
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
893 |
|
of Python, wxPython, and some other libraries. |
894 |
|
|
895 |
|
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
896 |
|
version against what wxproj was compiled with. |
897 |
|
(check_version_gtk): If wxproj was compiled with gtk then check |
898 |
|
the given version against the version of the gtk library |
899 |
|
currently being used. |
900 |
|
|
901 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
902 |
|
|
903 |
|
* test/test_command.py: Run the tests when the module is run as a |
904 |
|
script |
905 |
|
|
906 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
907 |
|
|
908 |
|
Implement selection of multiple selected shapes in the same layer: |
909 |
|
|
910 |
|
- Introduce a new class to hold the selection. This basically |
911 |
|
replaces the interactor which was nothing more than the |
912 |
|
selection anyway. A major difference is of course that the new |
913 |
|
selection class supports multiple selected shapes in one layer |
914 |
|
|
915 |
|
- Move the object that represents the selection from the |
916 |
|
application to the canvas. The canvas is a better place than the |
917 |
|
application because the selection represents which shapes and |
918 |
|
layer of the map displayed by the canvas are selected and |
919 |
|
affects how the map is drawn. |
920 |
|
|
921 |
|
- Make the selection and its messages publicly available through |
922 |
|
the mainwindow. |
923 |
|
|
924 |
|
- The non-modal dialogs do not get a reference to the interactor |
925 |
|
anymore as they can simply refer to their parent, the |
926 |
|
mainwindow, for the what the interactor had to offer. |
927 |
|
|
928 |
|
* Thuban/UI/selection.py: New module with a class to represent the |
929 |
|
selection. |
930 |
|
|
931 |
|
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
932 |
|
these unused messages |
933 |
|
|
934 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
935 |
|
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
936 |
|
interactor is gone now. |
937 |
|
(ThubanApplication.CreateMainWindow): There is no interactor |
938 |
|
anymore so we pass None as the interactor argument for now for |
939 |
|
compatibility. |
940 |
|
|
941 |
|
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
942 |
|
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
943 |
|
Unsubscribe, delegate messages according to the delegated_messages |
944 |
|
class variable. |
945 |
|
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
946 |
|
attributes from instance variables as described with the |
947 |
|
delegated_methods class variable. |
948 |
|
(MapCanvas.__init__): New instance variable selection holding the |
949 |
|
current selection |
950 |
|
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
951 |
|
pass them on to the renderer |
952 |
|
(MapCanvas.SetMap): Clear the selection when a different map is |
953 |
|
selected. |
954 |
|
(MapCanvas.shape_selected): Simple force a complete redraw. The |
955 |
|
selection class now takes care of only issueing SHAPES_SELECTED |
956 |
|
messages when the set of selected shapes actually does change. |
957 |
|
(MapCanvas.SelectShapeAt): The selection is now managed in |
958 |
|
self.selection |
959 |
|
|
960 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
961 |
|
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
962 |
|
Unsubscribe, delegate messages according to the delegated_messages |
963 |
|
class variable. |
964 |
|
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
965 |
|
attributes from instance variables as described with the |
966 |
|
delegated_methods class variable. |
967 |
|
(MainWindow.__init__): The interactor as ivar is gone. The |
968 |
|
parameter is still there for compatibility. The selection messages |
969 |
|
now come from the canvas. |
970 |
|
(MainWindow.current_layer, MainWindow.has_selected_layer): |
971 |
|
Delegate to the the canvas. |
972 |
|
(MainWindow.LayerShowTable, MainWindow.Classify) |
973 |
|
(MainWindow.identify_view_on_demand): The dialogs don't need the |
974 |
|
interactor parameter anymore. |
975 |
|
|
976 |
|
* Thuban/UI/tableview.py (TableFrame.__init__) |
977 |
|
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
978 |
|
(LayerTableFrame.row_selected): The interactor is gone. It's job |
979 |
|
from the dialog's point of view is now done by the mainwindow, |
980 |
|
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
981 |
|
of SELECTED_SHAPE |
982 |
|
|
983 |
|
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
984 |
|
is gone. It's job from the dialog's point of view is now done by |
985 |
|
the mainwindow, i.e. the parent. |
986 |
|
|
987 |
|
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
988 |
|
gone. It's job from the dialog's point of view is now done by the |
989 |
|
mainwindow, i.e. the parent. |
990 |
|
|
991 |
|
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
992 |
|
gone. It's job from the dialog's point of view is now done by the |
993 |
|
mainwindow, i.e. the parent. |
994 |
|
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
995 |
|
stored as self.mainwindow. The mainwindow is need so that the tree |
996 |
|
can still subscribe to the selection messages. |
997 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
998 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
999 |
|
selection is now accessible through the mainwindow. Subscribe to |
1000 |
|
SHAPES_SELECTED instead of SELECTED_SHAPE |
1001 |
|
|
1002 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
1003 |
|
SHAPES_SELECTED message now. |
1004 |
|
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
1005 |
|
so deal with multiple shapes |
1006 |
|
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
1007 |
|
gone. It's job from the dialog's point of view is now done by the |
1008 |
|
mainwindow, i.e. the parent. |
1009 |
|
|
1010 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
1011 |
|
parameter is now a list of shape ids. |
1012 |
|
(RecordTable.SetTable): The second parameter is now a list of |
1013 |
|
indices. |
1014 |
|
|
1015 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
1016 |
|
selected_shape parameter and ivar to selected_shapes. It's now a |
1017 |
|
list of shape ids. |
1018 |
|
(MapRenderer.draw_label_layer): Deal with multiple selected |
1019 |
|
shapes. Rearrange the code a bit so that the setup and shape type |
1020 |
|
distinctions are only executed once. |
1021 |
|
|
1022 |
|
* test/test_selection.py: Test cases for the selection class |
1023 |
|
|
1024 |
|
2003-03-11 Jonathan Coles <[email protected]> |
1025 |
|
|
1026 |
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
1027 |
|
doesn't cause Thuban to crash. |
1028 |
|
|
1029 |
|
* Thuban/Model/layer.py: Handle the cyclic references between |
1030 |
|
a layer and its classification better, and be sure to disconnect |
1031 |
|
the classification from the layer when the layer is destroyed |
1032 |
|
so that we don't maintain a cyclic reference that may not be |
1033 |
|
garbage collected. |
1034 |
|
|
1035 |
|
* Thuban/Model/classification.py: See comment for layer.py. |
1036 |
|
|
1037 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
1038 |
|
|
1039 |
|
* HOWTO-Release: New. Information on the steps for releasing |
1040 |
|
a new version of Thuban. |
1041 |
|
|
1042 |
|
2003-03-11 Jonathan Coles <[email protected]> |
1043 |
|
|
1044 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
1045 |
|
Use True instead of true. |
1046 |
|
(Classifier): Should have a single panel in which all the controls lie. |
1047 |
|
|
1048 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
1049 |
|
|
1050 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
1051 |
|
|
1052 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
1053 |
|
|
1054 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
1055 |
|
|
1056 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
1057 |
|
field_type information is present. |
1058 |
|
|
1059 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1060 |
|
|
1061 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
1062 |
|
field type label grow so that when the text changes the |
1063 |
|
size is updated correctly. This may be a wxWindows bug. |
1064 |
|
|
1065 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1066 |
|
|
1067 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
1068 |
|
SESSION_REPLACED. |
1069 |
|
|
1070 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
1071 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
1072 |
|
instead of in Reset, so we only set the size once. |
1073 |
|
|
1074 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
1075 |
|
|
1076 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
1077 |
|
Call Close() instead of Shutdown(). |
1078 |
|
|
1079 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
1080 |
|
|
1081 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
1082 |
|
Go back to using OnClose() instead of Shutdown(). |
1083 |
|
|
1084 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1085 |
|
|
1086 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
1087 |
|
to know the old field index as well as the new one. |
1088 |
|
|
1089 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1090 |
|
|
1091 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
1092 |
|
to correctly set the table information and call this from |
1093 |
|
__init__ and from _OnFieldSelect so that all the information |
1094 |
|
is up to date when the dialog opens and when a field is changed. |
1095 |
|
|
1096 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1097 |
|
|
1098 |
|
* Thuban/Model/classification.py (Classification): Don't use |
1099 |
|
layer's message function directly, use the ClassChanged() method |
1100 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
1101 |
|
must keep the information about field name and field type in |
1102 |
|
sync when an owning layer is set or removed. |
1103 |
|
|
1104 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
1105 |
|
classification can tell the layer when its data has changed. |
1106 |
|
(Layer.SetClassification): Accepts None as an arguement to |
1107 |
|
remove the current classification and correctly handles |
1108 |
|
adding a new classification. |
1109 |
|
|
1110 |
|
* Thuban/Model/load.py: Comment out print statement |
1111 |
|
|
1112 |
|
* test/test_classification.py, test/test_save.py: New and |
1113 |
|
improved tests. |
1114 |
|
|
1115 |
|
2003-03-07 Jonathan Coles <[email protected]> |
1116 |
|
|
1117 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
1118 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
1119 |
|
they can easily be copied by the classifier dialog. |
1120 |
|
(ClassGroupProperites.__init__): The default line color should |
1121 |
|
have been Color.Black. |
1122 |
|
|
1123 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
1124 |
|
uses a consistent set of functions. |
1125 |
|
(Classifier): Now non-modal. Has field type label which changes |
1126 |
|
as the field changes. Keep track of buttons in a list so that |
1127 |
|
we can enable/disable the buttons when the None field is selected. |
1128 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
1129 |
|
|
1130 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
1131 |
|
does what OnClose did, but can be called by the application to |
1132 |
|
close a window. Needed when a session changes, and we have to |
1133 |
|
close the classifier windows. |
1134 |
|
|
1135 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
1136 |
|
Shuts down open dialogs. Used when a new session is created |
1137 |
|
or a session is opened. |
1138 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
1139 |
|
if we don't call SaveSessionAs first. |
1140 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
1141 |
|
different layers. |
1142 |
|
|
1143 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
1144 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
1145 |
|
event notification and call the parent Shutdown(). This was |
1146 |
|
necessary so the application can close the tree window. |
1147 |
|
|
1148 |
|
2003-03-06 Jonathan Coles <[email protected]> |
1149 |
|
|
1150 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
1151 |
|
Addition of __eq__ and __ne__ methods. |
1152 |
|
(Classification.SetLayer): prevent recursion between this method |
1153 |
|
and Layer.SetClassification(). |
1154 |
|
|
1155 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
1156 |
|
|
1157 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
1158 |
|
between this method and Classification.SetLayer(). |
1159 |
|
|
1160 |
|
* test/test_classification.py, test/test_load.py, |
1161 |
|
test/test_session.py: Fixed and added tests for the classification |
1162 |
|
classes. |
1163 |
|
|
1164 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
1165 |
|
|
1166 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
1167 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
1168 |
|
CreateTable because otherwise it triggers an assertion in |
1169 |
|
wxPython/wxGTK 2.4. |
1170 |
|
|
1171 |
|
2003-03-05 Jonathan Coles <[email protected]> |
1172 |
|
|
1173 |
|
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
1174 |
|
|
1175 |
|
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
1176 |
|
|
1177 |
|
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
1178 |
|
|
1179 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
1180 |
|
|
1181 |
|
2003-03-05 Jonathan Coles <[email protected]> |
1182 |
|
|
1183 |
|
* Thuban/UI/classifier.py: Added class documentation. |
1184 |
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
1185 |
|
Store just the groups in the table and generate the other |
1186 |
|
column information when it is requested. Add "None" field |
1187 |
|
to pull-down to select no classification. |
1188 |
|
|
1189 |
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
1190 |
|
(Str2Num): Only catch ValueError exceptions. |
1191 |
|
|
1192 |
|
* Thuban/Model/classification.py: Class documentation. Renaming |
1193 |
|
of methods with Stroke to Line. Groups are stored in a single |
1194 |
|
list with the default as the first element. Groups are searched |
1195 |
|
in the order they appear in the list. |
1196 |
|
|
1197 |
|
* Thuban/Model/color.py: Documentation. |
1198 |
|
|
1199 |
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
1200 |
|
the kind of data represented by a field. |
1201 |
|
|
1202 |
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
1203 |
|
conversion function; fixes RTbug #1713. |
1204 |
|
|
1205 |
|
* Thuban/Model/save.py (Saver): Store field type information. |
1206 |
|
|
1207 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
1208 |
|
(Table): Add field_info_by_name() to retrieve field information |
1209 |
|
by specifying the field name, not the number. |
1210 |
|
|
1211 |
|
* Thuban/UI/mainwindow.py: Function name changes. |
1212 |
|
|
1213 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
1214 |
|
get the layer classification once. Don't try to classify |
1215 |
|
values when the field is None: just use the default properties. |
1216 |
|
|
1217 |
|
* Thuban/UI/view.py: Function name changes. |
1218 |
|
|
1219 |
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
1220 |
|
|
1221 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
1222 |
|
|
1223 |
|
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
1224 |
|
the fill and stroke layer attributes optional with suitable |
1225 |
|
default values. Add the stroke_width layer attribute. Use correct |
1226 |
|
syntax for empty elements. Make the attribute list for labels |
1227 |
|
refer to the label element. |
1228 |
|
|
1229 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
1230 |
|
|
1231 |
|
* setup.py (thuban_build_py.build): Add a comment about distutils in |
1232 |
|
Python 2.3 containing some of the functionality we implement in |
1233 |
|
setup.py ourselves. |
1234 |
|
|
1235 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Set the table |
1236 |
|
before the selection mode. Doing it the other way round triggers |
1237 |
|
an assertion in wxWindows. |
1238 |
|
|
1239 |
|
* Thuban/Model/save.py (escape): Fix typo in doc-string |
1240 |
|
|
1241 |
|
* Thuban/Model/classification.py: Remove unnecessary wxPython |
1242 |
|
import |
1243 |
|
|
1244 |
|
2003-03-04 Jonathan Coles <[email protected]> |
1245 |
|
|
1246 |
|
* Thuban/Model/classification.py (ClassGroupRange.GetProperties): |
1247 |
|
Parameter 'value' should default to None. |
1248 |
|
|
1249 |
|
* Thuban/UI/mainwindow.py: Use Layer.GetClassification() since |
1250 |
|
the class attribute __classification is now private. |
1251 |
|
|
1252 |
|
* Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from |
1253 |
|
Classifier to ClassGrid. Added support for removing selected rows, |
1254 |
|
which including code for keeping track of when cells are selected, |
1255 |
|
and deselected. |
1256 |
|
(ClassTable): Support for added/removing rows. Fixed a problem |
1257 |
|
with __ParseInput whereby it would not allow strings (only numbers) |
1258 |
|
to be entered. |
1259 |
|
(Classifier): Added button and supporting code for removing |
1260 |
|
selected rows. |
1261 |
|
|
1262 |
|
2003-02-27 Jonathan Coles <[email protected]> |
1263 |
|
|
1264 |
|
* Thuban/common.py: Moved color conversion functions into |
1265 |
|
Thuban/UI/common.py. |
1266 |
|
(Str2Num): Now converts the float (not the string) to a long/int |
1267 |
|
so that an exception isn't thrown. |
1268 |
|
|
1269 |
|
* Thuban/UI/common.py: Common functions used in several UI modules |
1270 |
|
|
1271 |
|
* Thuban/Model/classification.py: Changed the class hierarchy |
1272 |
|
so that a Classification consists of Groups which return |
1273 |
|
Properties when a value matches a Group. |
1274 |
|
|
1275 |
|
* Thuban/Model/layer.py: Fixed name resolution problem. |
1276 |
|
|
1277 |
|
* Thuban/Model/load.py: Use new Classification and Group functions. |
1278 |
|
|
1279 |
|
* Thuban/Model/save.py (Saver.write_attribs): Fixes a test case |
1280 |
|
failure. |
1281 |
|
(Saver.write_classification): Use new Classification and Group |
1282 |
|
functions. |
1283 |
|
|
1284 |
|
* Thuban/UI/classifier.py: Changes to use new Classification and Group |
1285 |
|
functions. Fix to create a tuple with a single value instead of |
1286 |
|
simply returning the value. |
1287 |
|
|
1288 |
|
* Thuban/UI/renderer.py: Use new Classification and Group functions. |
1289 |
|
Use common.py functions. |
1290 |
|
|
1291 |
|
* Thuban/UI/tree.py: Use common.py functions. |
1292 |
|
|
1293 |
|
* test/test_classification.py: Use new Classification and Group |
1294 |
|
classes. |
1295 |
|
|
1296 |
|
2003-02-24 Jonathan Coles <[email protected]> |
1297 |
|
|
1298 |
|
* Thuban/common.py (Color2wxColour, wxColour2Color): Conversion |
1299 |
|
functions from Thuban color objects to wxWindow colour objects. |
1300 |
|
|
1301 |
|
* Thuban/Model/classification.py (Classification): Renamed |
1302 |
|
GetProperties() to GetClassData(). Used the new iterator |
1303 |
|
in TreeInfo(). |
1304 |
|
(ClassIterator): Iterator implementation to iterate over the |
1305 |
|
ClassData objects in a classification object. |
1306 |
|
|
1307 |
|
* Thuban/Model/save.py (Saver.write_classificaton): Uses |
1308 |
|
the new iterator to save the classification information. |
1309 |
|
|
1310 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog): Support |
1311 |
|
for changing the stroke and fill colors and previewing the |
1312 |
|
changes. |
1313 |
|
|
1314 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenSession, |
1315 |
|
MainWindow.SaveSessionAs): Text string changes so the dialogs |
1316 |
|
have more meaningful titles. |
1317 |
|
|
1318 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change |
1319 |
|
Classification method name from GetProperties to GetClassData. |
1320 |
|
|
1321 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls |
1322 |
|
instead of accessing now non-existent class variables. |
1323 |
|
|
1324 |
|
2003-02-24 Bernhard Herzog <[email protected]> |
1325 |
|
|
1326 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove |
1327 |
|
unneeded Shape() call. Rendering is substantially faster without |
1328 |
|
it and it avoids some problems with broken shape files. |
1329 |
|
|
1330 |
2003-02-20 Frank Koormann <[email protected]> |
2003-02-20 Frank Koormann <[email protected]> |
1331 |
|
|
1332 |
Force minimal size of identify and label dialogs. The autosizing |
Force minimal size of identify and label dialogs. The autosizing |