1 |
2003-05-21 Jan-Oliver Wagner <[email protected]> |
2 |
|
3 |
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
4 |
Mercator' to 'UTM Zone 32' as a more convenient example. |
5 |
Added 'Gauss Krueger Zone 6'. |
6 |
|
7 |
* Data/iceland_sample_raster.thuban: political polygon now |
8 |
filled transparent to have the raster image visible at once. |
9 |
|
10 |
2003-05-21 Frank Koormann <[email protected]> |
11 |
|
12 |
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
13 |
OnClose() to keep in sync with extensions. Internally Thuban |
14 |
still uses "underscored" names. |
15 |
|
16 |
2003-05-20 Jonathan Coles <[email protected]> |
17 |
|
18 |
This puts back Raster layer support. These layers support projections |
19 |
through the GDAL library. Currently, the CVS version is being used. |
20 |
There are no Debian packages available although this may change soon. |
21 |
A GDAL driver was extended to support writing to memory rather to |
22 |
files. |
23 |
|
24 |
There is still some work that needs to be done, such as some error |
25 |
handling when loading invalid images or when there is a problem |
26 |
projecting the image. This putback simply checks in the majority |
27 |
of the work. |
28 |
|
29 |
* setup.py: Add gdalwarp library extension. |
30 |
|
31 |
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
32 |
Defaults to False, but can be overridden by subclasses if they |
33 |
support classification. |
34 |
(RasterLayer): New. Defines a new layer that represents an |
35 |
image. |
36 |
|
37 |
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
38 |
tag handler. |
39 |
(SessionLoader.start_layer): Encode the filename. |
40 |
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
41 |
New. Supports reading a rasterlayer tag. |
42 |
|
43 |
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
44 |
|
45 |
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
46 |
get a string in Latin1. If we get such as string convert it to |
47 |
unicode first, otherwise leave if alone before encoding. |
48 |
(SessionSaver.write_layer): Add support for writing both Layers |
49 |
and RasterLayers. |
50 |
|
51 |
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
52 |
The right argument may not be a string, it could also be a Column. |
53 |
|
54 |
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
55 |
Make initial window size 600x400. Fixes RTBug #1872. |
56 |
|
57 |
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
58 |
the dialog is constructed so that we can support layers that |
59 |
do not have classifications. |
60 |
(Classifier._OnTry): Only build a classification if the layer |
61 |
supports one. |
62 |
|
63 |
* Thuban/UI/legend.py: Change all checks that a layer is an |
64 |
instance of Layer into checks against BaseLayer. |
65 |
(LegendTree.__FillTreeLayer): Only add children to a branch if |
66 |
the layer supports classification. |
67 |
|
68 |
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
69 |
MainWindow.OpenSession): Don't proceed with an action if the |
70 |
user chooses Cancel when they are asked to save changes. |
71 |
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
72 |
user to select an image file. Create a new RasterLayer and add |
73 |
it to the map. |
74 |
|
75 |
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
76 |
for rendering RasterLayer layers. |
77 |
(MapRenderer.draw_raster_layer): Actually method that calls |
78 |
the GDALWarp python wrapper and constructs an image from the |
79 |
data returned. |
80 |
|
81 |
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
82 |
Choices symbols to match those used in the table query method. |
83 |
Replace deprecated method calls on table with new method names. |
84 |
|
85 |
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
86 |
how small the scale can get. This still needs more testing. |
87 |
|
88 |
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
89 |
Provides a driver to output in .bmp format. |
90 |
|
91 |
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
92 |
New. Provides IO routines which write to memory, rather than a file. |
93 |
|
94 |
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
95 |
of the gdalwarp utility provided in GDAL. Added function calls |
96 |
that can be accessed from python. |
97 |
|
98 |
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
99 |
a raster layer. |
100 |
|
101 |
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
102 |
layer image data. |
103 |
|
104 |
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
105 |
|
106 |
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
107 |
tests associated with the raster layer code. |
108 |
|
109 |
* test/test_transientdb.py |
110 |
(TestTransientTable.test_auto_transient_table_query): Added a test |
111 |
for using a Column object as the "right" parameter to a query. |
112 |
|
113 |
2003-05-19 Frank Koormann <[email protected]> |
114 |
|
115 |
* Thuban/version.py (get_changelog_date): |
116 |
Catch exceptions if ChangeLog does not exist. |
117 |
|
118 |
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
119 |
|
120 |
2003-05-19 Frank Koormann <[email protected]> |
121 |
|
122 |
Extended version information for Thuban |
123 |
|
124 |
* Thuban/version.py: New, version information for Thuban: Last |
125 |
modification date and last ChangeLog entry date. |
126 |
|
127 |
* Thuban/UI/mainwindow.py (MainWindow.About()): Extended version |
128 |
information: Display Thuban, wxPython and Python version. |
129 |
|
130 |
2003-05-16 Bernhard Herzog <[email protected]> |
131 |
|
132 |
* Thuban/Model/save.py: Remove some unused imports including the |
133 |
__future__ import for nested_scopes as Thuban relies on Python 2.2 |
134 |
now. |
135 |
(XMLWriter.encode): Remove the special case for a None argument. |
136 |
In the saver encode is always called with a string argument. |
137 |
|
138 |
2003-05-16 Bernhard Herzog <[email protected]> |
139 |
|
140 |
* Thuban/UI/__init__.py: Remove the work-around for the locale bug |
141 |
in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom |
142 |
of the bug was that e.g. float("1.2") would fail. Thuban now |
143 |
requires 2.4.x. |
144 |
|
145 |
2003-05-16 Frank Koormann <[email protected]> |
146 |
|
147 |
Printing enhancement and WMF export (under Win32) |
148 |
|
149 |
* Thuban/UI/renderer.py (ExportRenderer): New, derived from |
150 |
ScreenRenderer. Renders Map, Legend and Scalebar for export. |
151 |
(PrinterRenderer): New, derived from ExportRenderer. Replaces the old |
152 |
PrintRender. |
153 |
|
154 |
* Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set |
155 |
to fullfil information needed for PrinterRenderer. |
156 |
(MapCanvas.Export): New. Export Map (currently only to WMF on Win32). |
157 |
(MapCanvas.Print): Adapted to new MapPrintout. |
158 |
(OutputTransform): General calculations to transform from canvas |
159 |
coordinates to export/printing devices. |
160 |
|
161 |
* Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also |
162 |
new method_command to call ExportMap, with platform dependency (only |
163 |
__WXMSW__) |
164 |
|
165 |
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size |
166 |
of scalebar drawing area as new parameters. |
167 |
|
168 |
* Thuban/Model/scalebar.py (roundInterval): round long instead of int |
169 |
|
170 |
* Thuban/UI/legend.py (ScalebarBitmap.__SetScale): |
171 |
Update to extended scalebar.DrawScalebar header. |
172 |
|
173 |
* test/test_export.py: New, test Thuban.UI.view.OutputTransform() |
174 |
|
175 |
* test/test_scalebar.py: Made test executable as standalone. |
176 |
|
177 |
2003-05-16 Bernhard Herzog <[email protected]> |
178 |
|
179 |
* Thuban/Model/table.py (Table): Remove this compatibility alias |
180 |
for DBFTable. |
181 |
|
182 |
* test/test_table.py: Import DBFTable as Table because that alias |
183 |
doesn't exist anymore. |
184 |
|
185 |
* Thuban/UI/classgen.py: Remove some unused imports |
186 |
|
187 |
2003-05-14 Jonathan Coles <[email protected]> |
188 |
|
189 |
* Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList): |
190 |
Fix docstring. |
191 |
(ClassGenerator.GenUniformDistribution): Fix spelling of method name. |
192 |
(ClassGenerator.GenQuantiles): Use the left/right brackets and min/max |
193 |
values of the supplied range to determine the beginning and end |
194 |
bounds of the generated classes. |
195 |
|
196 |
* Thuban/Model/range.py (Range.number_re): Now accepts floats that |
197 |
do not have a leading 0 (.5 is now accepted as well as 0.5). |
198 |
|
199 |
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method |
200 |
call to ClassGenerator.GenUniformDistribution. |
201 |
|
202 |
* Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows |
203 |
layout bug with the 'Projection' label. |
204 |
|
205 |
* test/support.py (FloatTestCase): New. Needed for the Range tests. |
206 |
|
207 |
* test/test_range.py: New. Imported from SciParam. |
208 |
|
209 |
2003-05-12 Jonathan Coles <[email protected]> |
210 |
|
211 |
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call |
212 |
to table.UniqueValues() with calls that retrieve all the values |
213 |
from the table. This will need to be replaced by a method on table |
214 |
which can simply return the list (perhaps more efficiently). |
215 |
|
216 |
2003-05-12 Jonathan Coles <[email protected]> |
217 |
|
218 |
The return value of ClassGenerator.CalculateQuantiles has changed. |
219 |
Refer to the documentation for details. |
220 |
|
221 |
* test/test_classgen.py: Modified Quantile tests to use the |
222 |
new return values. |
223 |
|
224 |
* Thuban/Model/classgen.py |
225 |
(ClassGenerator.GenQuantiles): Add comments describing the parameters, |
226 |
use new return values from CalculateQuantiles to produce the correct |
227 |
range bounds in the Classification. |
228 |
(ClassGenerator.CalculateQuantiles): Add more comments describing |
229 |
the return values and parameters. Make minor adjustments to improve |
230 |
the legibility of the code. Fix problem with adjusted not being set |
231 |
in most cases. |
232 |
|
233 |
2003-05-12 Frank Koormann <[email protected]> |
234 |
|
235 |
* Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode |
236 |
and latin1. Fixes #1851 finally. |
237 |
|
238 |
2003-05-09 Jonathan Coles <[email protected]> |
239 |
|
240 |
* test/test_classgen.py: New. Tests the Quantile algorithm. |
241 |
|
242 |
* Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles): |
243 |
Clean up debugging statement, add comments, fix a small bug in the |
244 |
returned adjusted percentiles. |
245 |
|
246 |
2003-05-09 Jonathan Coles <[email protected]> |
247 |
|
248 |
Introduces Range class from SciParam into the ClassGroupRange class, |
249 |
and such ranges can now be saved and loaded from disk. |
250 |
|
251 |
Quantiles are now available in the Classification Generator. |
252 |
|
253 |
Initial support for building Queries on a table. Doesn't do anything |
254 |
but run some tests. |
255 |
|
256 |
* Thuban/Model/classification.py: Explicit imports. |
257 |
(ClassGroupRange): Use the Range class to store the underlying |
258 |
range information. The interface remains the same, except for |
259 |
GetRange(), and you can also supply a Range object as the min |
260 |
parameter to SetRange or __init__. |
261 |
|
262 |
* Thuban/Model/load.py (XMLReader.encode): New. Encodes the given |
263 |
string appropriately for use in Thuban. Fixes RTbug #1851. |
264 |
(SessionLoader.end_projection): Handle the context of the |
265 |
projection tag a bit better by looking at what objects are not |
266 |
None. There was an assumption that a projection tag for a map |
267 |
could occur before any layers. |
268 |
(SessionLoader.start_clrange): Provide backward compatibility for |
269 |
reading min/max values as well as the new range parameter. |
270 |
|
271 |
* Thuban/Model/map.py: Explicit imports. |
272 |
|
273 |
* Thuban/Model/resource.py: Import _. |
274 |
(ProjFileSaver.write): write header using projfile.dtd. |
275 |
|
276 |
* Thuban/Model/save.py: Explicit imports. |
277 |
(XMLWriter.encode): New. Encode the given string from a format |
278 |
used by Thuban into UTF-8. Fixes RTbug #1851. |
279 |
|
280 |
* Thuban/UI/classgen.py: Explicit imports. |
281 |
(ClassGenDialog.__init__): Clean up the code and add support |
282 |
for Quantiles. |
283 |
(ClassGenDialog.OnOK): Add support for Quantiles. |
284 |
(GenQuantilesPanel): New. Input panel for Quantiles. |
285 |
(ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp, |
286 |
GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py |
287 |
|
288 |
* Thuban/Model/classgen.py: New. Contains all the classes named above. |
289 |
|
290 |
* Thuban/UI/classifier.py: Explicit imports. |
291 |
(ClassTable.GetValueAsCust, ClassTable.__ParseInput, |
292 |
ClassTable.SetValueAsCustom): Reworked to use new Range class. |
293 |
|
294 |
* Thuban/UI/legend.py: Explicit imports. |
295 |
|
296 |
* Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added |
297 |
a Table menu and associated method calls. |
298 |
(MainWindow.choose_color): Removed. No longer needed. |
299 |
|
300 |
* Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button |
301 |
should be disabled if no projection is selected in the available |
302 |
list. |
303 |
|
304 |
* Thuban/UI/renderer.py: Explicit imports. |
305 |
|
306 |
* Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues |
307 |
with correctly selecting the rows and issuing the right events. |
308 |
Be sure to call Skip() to allow the grid to do some of its own |
309 |
handling which allows the rows to actually be selected. |
310 |
(LayerTableGrid.select_shapes): Rename from select_shape. Supports |
311 |
selecting multiple shapes. |
312 |
(LayerTableFrame): Support for building Queries. |
313 |
(LayerTableFrame.select_shapes): Allow multiple shapes to be selected. |
314 |
|
315 |
* Thuban/UI/tree.py: Explicit imports. |
316 |
|
317 |
* Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the |
318 |
table view can call it. |
319 |
|
320 |
* test/test_classification.py: Explicit imports. |
321 |
(TestClassification.test_ClassGroupRange): Fix test for new |
322 |
Range class. |
323 |
|
324 |
* Doc/thuban.dtd: Add range parameter for clrange. |
325 |
|
326 |
* Thuban/Model/range.py: Taken from SciParam. Used as the underlying |
327 |
object in ClassGroupRange, and also uesd for inputting ranges in |
328 |
the classifer table and elsewhere. |
329 |
|
330 |
* Thuban/UI/join.py: New. Initial Join dialog. No real functionality |
331 |
yet. |
332 |
|
333 |
2003-05-09 Frank Koormann <[email protected]> |
334 |
|
335 |
* Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0. |
336 |
|
337 |
2003-05-08 Frank Koormann <[email protected]> |
338 |
|
339 |
Coding style updates |
340 |
|
341 |
* test/test_scalebar.py: Replaced tab indentation by spaces. |
342 |
|
343 |
* Thuban/UI/scalebar.py: Explicit imports. |
344 |
|
345 |
2003-05-08 Frank Koormann <[email protected]> |
346 |
|
347 |
* Thuban/UI/scalebar.py |
348 |
(ScaleBar.DrawScalebar): Format string bug fixed. |
349 |
|
350 |
2003-05-08 Frank Koormann <[email protected]> |
351 |
|
352 |
Reorganization of scalebar component (no wx in Thuban/Model) |
353 |
|
354 |
* Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py |
355 |
(deriveInterval): |
356 |
Calculate scalebar interval and unit which fits in width for scale. |
357 |
(roundInterval): Round float. |
358 |
|
359 |
* Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering |
360 |
|
361 |
* test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods. |
362 |
|
363 |
* Thuban/UI/legend.py: Import Thuban.UI.scalebar |
364 |
|
365 |
2003-05-08 Frank Koormann <[email protected]> |
366 |
|
367 |
* Thuban/UI/legend.py (ScalebarBitmap.SetCanvas): |
368 |
Initialize ScaleBar with canvas.map |
369 |
|
370 |
* Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New, |
371 |
round intervals to display smarter lengths |
372 |
(ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a |
373 |
layer. If the maps has no projection applied grey the scalebar. |
374 |
|
375 |
2003-05-07 Frank Koormann <[email protected]> |
376 |
|
377 |
Basic Scalebar features added. |
378 |
|
379 |
* Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering. |
380 |
|
381 |
* Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap |
382 |
(ScaleBarBitmap): New, links the scalebar bitmap with view messages |
383 |
and the renderer. |
384 |
|
385 |
* Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED. |
386 |
|
387 |
* Thuban/UI/messages.py: SCALE_CHANGED added. |
388 |
|
389 |
2003-05-07 Bernhard Herzog <[email protected]> |
390 |
|
391 |
* Thuban/Model/session.py (Session.__init__): New instance |
392 |
variable shapestores to hold a list of all open shapestore objects |
393 |
(Session.ShapeStores): New. Accessor method for the shapestores |
394 |
list. |
395 |
(Session._add_shapestore, Session._clean_weak_store_refs): New. |
396 |
Internal methods to maintain the shapestores list. |
397 |
(Session.Tables): New. Return all tables open in the session. |
398 |
(Session.OpenShapefile): Insert the new ShapeStore into the |
399 |
shapestores list. |
400 |
|
401 |
* test/test_session.py (TestSessionSimple.test_initial_state): Add |
402 |
tests for ShapeStores and Tables |
403 |
(TestSessionWithContent.test_shape_stores) |
404 |
(TestSessionWithContent.test_tables): New. Test cases for |
405 |
ShapeStores and Tables |
406 |
|
407 |
2003-05-07 Bernhard Herzog <[email protected]> |
408 |
|
409 |
* Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict): |
410 |
Add comments about the optimizations used. |
411 |
(AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New. |
412 |
Implement the ReadValue table interface method. |
413 |
|
414 |
* test/test_transientdb.py |
415 |
(TestTransientTable.run_iceland_political_tests) |
416 |
(TestTransientTable.test_transient_joined_table): Add tests for |
417 |
ReadValue |
418 |
|
419 |
2003-05-07 Frank Koormann <[email protected]> |
420 |
|
421 |
* Resources/Bitmaps/fulllayerextent.xpm, |
422 |
Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with |
423 |
new icons. |
424 |
|
425 |
2003-05-06 Bernhard Herzog <[email protected]> |
426 |
|
427 |
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
428 |
New. Simply delegate to the transient table's version. |
429 |
|
430 |
* test/test_transientdb.py |
431 |
(TestTransientTable.test_auto_transient_table_query): New. Test |
432 |
case for AutoTransientTable's SimpleQuery |
433 |
|
434 |
2003-05-06 Bernhard Herzog <[email protected]> |
435 |
|
436 |
* Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery): |
437 |
Implement a simple query method for the query dialog |
438 |
(TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds |
439 |
the row index or shapeid. |
440 |
(TransientTable.create): Insert the right value of the row index |
441 |
(TransientJoinedTable.create): Copy the row index of the left |
442 |
table to the joined result table |
443 |
|
444 |
* test/test_transientdb.py |
445 |
(TestTransientTable.test_transient_table_read_twice): Fix |
446 |
doc-string |
447 |
(TestTransientTable.test_transient_table_query): New. Test for the |
448 |
SimpleQuery method |
449 |
|
450 |
2003-05-06 Bernhard Herzog <[email protected]> |
451 |
|
452 |
Convert all table users to use the new table interface. This only |
453 |
covers Thuban itself, not GREAT-ER or other applications built on |
454 |
Thuban yet, so the compatibility interface stays in place for the |
455 |
time being but it now issues DeprecationWarnings. |
456 |
|
457 |
Finally, the new Table interface has a new method, HasColumn. |
458 |
|
459 |
* Thuban/Model/table.py (OldTableInterfaceMixin): All methods |
460 |
issue deprecation warnings when they're. The warnings refer to the |
461 |
caller of the method. |
462 |
(OldTableInterfaceMixin.__deprecation_warning): New. Helper method |
463 |
for the deprecation warnings |
464 |
|
465 |
* test/test_table.py: Ignore the deprecation warnings for the old |
466 |
table in the tests in this module. The purpose of the tests is to |
467 |
test the old interface, after all. |
468 |
|
469 |
* test/test_transientdb.py |
470 |
(TestTransientTable.run_iceland_political_tests): Use the |
471 |
constants for the types. Add a test for HasColumn |
472 |
(TestTransientTable.test_transient_joined_table): Adapt to new |
473 |
table interface. Add a test for HasColumn |
474 |
(TestTransientTable.test_transient_table_read_twice): Adapt to new |
475 |
table interface |
476 |
|
477 |
* Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue): |
478 |
Adapt to new table interface |
479 |
|
480 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to |
481 |
new table interface |
482 |
|
483 |
* Thuban/UI/controls.py (RecordListCtrl.fill_list) |
484 |
(RecordTable.SetTable): Adapt to new table interface |
485 |
|
486 |
* Thuban/UI/classifier.py (Classifier.__init__) |
487 |
(Classifier.__init__): Adapt to new table interface |
488 |
|
489 |
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
490 |
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt |
491 |
to new table interface |
492 |
|
493 |
* Thuban/Model/transientdb.py (TransientTableBase.HasColumn) |
494 |
(AutoTransientTable.HasColumn): Implement the new table interface |
495 |
method |
496 |
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange) |
497 |
(AutoTransientTable.UniqueValues): Adapt to new table interface |
498 |
|
499 |
* Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType): |
500 |
Adapt to new table interface |
501 |
|
502 |
* test/test_layer.py (TestLayer.open_shapefile): Helper method to |
503 |
simplify opening shapefiles a bit easier. |
504 |
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
505 |
(TestLayer.test_point_layer): Use the new helper method |
506 |
(TestLayer.test_get_field_type): New. Test for the GetFieldType |
507 |
method |
508 |
|
509 |
* test/test_dbf_table.py (TestDBFTable.test_has_column): Test for |
510 |
the new table method |
511 |
|
512 |
* test/test_memory_table.py (TestMemoryTable.test_has_column): |
513 |
Test for the new table method HasColumn |
514 |
|
515 |
2003-05-06 Jonathan Coles <[email protected]> |
516 |
|
517 |
Addresses the "Selection Extent" wish of RTbug #1787. |
518 |
|
519 |
* Resources/Bitmaps/fulllayerextent.xpm, |
520 |
Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection |
521 |
extent. These are just place holders for the real bitmaps. |
522 |
|
523 |
* Thuban/Model/layer.py (Shape): Since a Shape is immutable only |
524 |
calculate the bounding box once (the first time compute_bbox() is |
525 |
called). |
526 |
(Layer.ShapesBoundingBox): New. Given a list of shape ids, return |
527 |
the bounding box for the shapes in lat/long coordinates. |
528 |
|
529 |
* Thuban/UI/mainwindow.py: Added new "Full selection extent" menu |
530 |
option. |
531 |
(MainWindow.has_selected_shapes): New. Returns true if there are |
532 |
any selected shapes. |
533 |
(MainWindow.FullSelectionExtent): New. Calls |
534 |
MapCanvas.FitSelectedToWindow() when the user selects the menu option. |
535 |
(_has_selected_shapes): New. Returns true if there are any |
536 |
selected shapes. |
537 |
|
538 |
* Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns |
539 |
true if there are any selected shapes. |
540 |
|
541 |
* Thuban/UI/view.py (MapCanvas): Added delegated method |
542 |
HasSelectedShapes. |
543 |
(MapCanvas.FitSelectedToWindow): New. Centers and scales any selected |
544 |
shapes on the canvas using the map projection (if any). |
545 |
|
546 |
* test/test_layer.py (TestLayer.test_arc_layer): Add some tests |
547 |
for Layer.ShapesBoundingBox(). |
548 |
|
549 |
2003-05-06 Bernhard Herzog <[email protected]> |
550 |
|
551 |
* Resources/Projections/defaults.proj: Fix spelling of Mercator |
552 |
|
553 |
2003-05-05 Jonathan Coles <[email protected]> |
554 |
|
555 |
Addresses the "Full Layer Extent" wish of RTbug #1787. |
556 |
|
557 |
* Resources/Projections/defaults.proj: Added UK National Grid. |
558 |
|
559 |
* Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option. |
560 |
(MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow() |
561 |
when the user selects the menu option. |
562 |
|
563 |
* Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and |
564 |
scales the given layer on the canvas using the map projection. |
565 |
|
566 |
2003-05-05 Bernhard Herzog <[email protected]> |
567 |
|
568 |
Convert the table implementations to a new table interface. All |
569 |
tables use a common mixin class to provide backwards compatibility |
570 |
until all table users have been updated. |
571 |
|
572 |
* Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to |
573 |
provide backwards compatibility for table classes implementing the |
574 |
new interface |
575 |
(DBFTable, MemoryTable): Implement the new table interface. Use |
576 |
OldTableInterfaceMixin as base for compatibility |
577 |
(DBFColumn, MemoryColumn): New. Column description for DBFTable |
578 |
and MemoryTable resp. |
579 |
|
580 |
* test/test_dbf_table.py: New. Test cases for the DBFTable with |
581 |
the new table interface. |
582 |
|
583 |
* test/test_memory_table.py: New. Test cases for the MemoryTable |
584 |
with the new table interface. |
585 |
|
586 |
* test/test_table.py: Document the all tests in this file as only |
587 |
for backwards compatibility. The equivalent tests for the new |
588 |
interface are in test_memory_table.py and test_dbf_table.py |
589 |
(MemoryTableTest.test_read): field_info should be returning tuples |
590 |
with four items |
591 |
(MemoryTableTest.test_write): Make doc-string a more precise. |
592 |
|
593 |
* Thuban/Model/transientdb.py (TransientTableBase): Convert to new |
594 |
table interface. Derive from from OldTableInterfaceMixin for |
595 |
compatibility. |
596 |
(TransientTableBase.create): New intance variable column_map to |
597 |
map from names and indices to column objects |
598 |
(TransientTable.create): Use the new table interface of the input |
599 |
table |
600 |
(AutoTransientTable): Convert to new table interface. Derive from |
601 |
from OldTableInterfaceMixin for compatibility. |
602 |
(AutoTransientTable.write_record): Removed. It's not implemented |
603 |
yet and we still have to decide how to handle writing with the new |
604 |
table and data framework. |
605 |
|
606 |
* test/test_transientdb.py |
607 |
(TestTransientTable.run_iceland_political_tests) |
608 |
(TestTransientTable.test_transient_joined_table): Use the new |
609 |
table interface |
610 |
|
611 |
2003-05-05 Jonathan Coles <[email protected]> |
612 |
|
613 |
This is namely a collection of UI updates to improve user interactivity. |
614 |
Tabbing between controls now exists and you can use ESC to close dialog |
615 |
boxes; ENTER will active the default button. |
616 |
|
617 |
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the |
618 |
order that the controls are created so that tabbing works correctly. |
619 |
(ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the |
620 |
wxDialog can handle the default button correctly. |
621 |
(ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the |
622 |
same reasons as for OnOK. |
623 |
(GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor |
624 |
when we ask the table for the maximum/minimum values of a field |
625 |
which could take a very long time. |
626 |
|
627 |
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange the |
628 |
order that the controls are created so that tabbing works correctly. |
629 |
(SelectPropertiesDialog.__init__): Rearrange the order that the |
630 |
controls are created so that tabbing works correctly. |
631 |
|
632 |
* Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it |
633 |
to derive from a wxDialog but behave like the original implementation |
634 |
which was derived from a wxFrame. wxDialog provides useful key |
635 |
handling functionality like ESC calling OnCancel and ENTER calling |
636 |
OnOK which is lost with wxFrame. |
637 |
|
638 |
* Thuban/UI/mainwindow.py: Add "..." to menu items that will open |
639 |
new dialogs. |
640 |
|
641 |
* Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the |
642 |
order that the controls are created so that tabbing works correctly. |
643 |
(ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour. |
644 |
(ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour. |
645 |
(ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour. |
646 |
(ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we |
647 |
can provide the "UK National Grid" as a default projection. |
648 |
(UTMPanel.__init__): Rearrange the order that the controls are |
649 |
created so that tabbing works correctly. |
650 |
|
651 |
2003-05-05 Bernhard Herzog <[email protected]> |
652 |
|
653 |
* extensions/thuban/wxproj.cpp: Fix some of the comments. |
654 |
(project_point): If a map projection but no layer projection is |
655 |
given, convert degrees to radians before applying the map |
656 |
projection. |
657 |
|
658 |
* Thuban/UI/tableview.py (TableGrid.disallow_messages) |
659 |
(TableGrid.allow_messages): New methods to make it possible to |
660 |
inhibit message sending. |
661 |
(TableGrid.issue): Only send the message if not inhibited. |
662 |
(LayerTableGrid.select_shape): Use the new methods to make sure |
663 |
that no ROW_SELECTED message is sent while we're updating the |
664 |
selected rows to match the selected shapes. |
665 |
|
666 |
2003-05-02 Jan-Oliver Wagner <[email protected]> |
667 |
|
668 |
Implementation of MemoryTable. |
669 |
|
670 |
* Thuban/Model/table.py (MemoryTable): New. Quite simple table |
671 |
implementation that operates on a list of tuples. All of the data |
672 |
are kept in the memory. |
673 |
|
674 |
* test/test_table.py (MemoryTableTest): New. |
675 |
|
676 |
* test/test_transientdb.py (SimpleTable): Removed. |
677 |
(TestTransientTable.test_transient_joined_table, |
678 |
(TestTransientTable.test_transient_table_read_twice): Replaced |
679 |
SimpleTable by MemoryTable. |
680 |
|
681 |
2003-04-30 Jonathan Coles <[email protected]> |
682 |
|
683 |
* Data/iceland_sample.thuban: Now contains correct projections |
684 |
for each of the layers. |
685 |
|
686 |
* Resources/Projections/defaults.proj: Geographic projection |
687 |
contains unit conversion parameter. |
688 |
|
689 |
2003-04-30 Jonathan Coles <[email protected]> |
690 |
|
691 |
The most important part of this putback is the projection changes. |
692 |
It should now be possible to specify the projection that a layer |
693 |
is in and then specify a different projection for the map. The |
694 |
projection dialog has an extra parameter for a geographic projection |
695 |
which lets the user select if the input is in degrees or radians. |
696 |
|
697 |
* Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring |
698 |
to say that the parameter is a tuple of unprojected |
699 |
points (which is what the callers to this method were assuming). |
700 |
Also, since the points are unprojected we need to projected them. |
701 |
|
702 |
* Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp, |
703 |
LegendTree.MoveCurrentItemDown): If the layer or any of the layer's |
704 |
groups are selected, move the layer up/down. Fixes RTbug #1833. |
705 |
|
706 |
* Thuban/UI/mainwindow.py: Move menu item map_rename up. |
707 |
|
708 |
* Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing |
709 |
parameter in call to SetClientData. |
710 |
(GeoPanel): Add support for selecting the units that the |
711 |
source data is in (Radians or Degrees). |
712 |
|
713 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize |
714 |
the rendering loop by reducing the number of if's, removing the |
715 |
unnecessary try/except block, and checking if the old group |
716 |
is the same as the new one (which happens a lot if there is |
717 |
no classification, or lots of shapes are in the same group). |
718 |
|
719 |
* Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block |
720 |
around the redraw routine to try to catch problems that the user |
721 |
may create by selecting invalid projections for the data set and |
722 |
map. Clears the display if there are any problems and prints the |
723 |
error. |
724 |
(MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled |
725 |
rectangle. |
726 |
|
727 |
* extensions/thuban/wxproj.cpp (project_point): First invert the |
728 |
supplied point (which should be in projected coordinates) using |
729 |
the layer's projection and then project the point using the |
730 |
map's projection. |
731 |
(project_points): Use project_point() to project each point. |
732 |
|
733 |
2003-04-30 Jan-Oliver Wagner <[email protected]> |
734 |
|
735 |
* Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug: |
736 |
don't set the Classification to None if the classfication field |
737 |
is None (ie only a DEFAULT). |
738 |
|
739 |
2003-04-30 Bernhard Herzog <[email protected]> |
740 |
|
741 |
* Thuban/UI/view.py: Fix some typos. |
742 |
|
743 |
* Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do |
744 |
not pop up the dialog if the selection becomes empty (this could |
745 |
happen if e.g. a new selection is opened while the identify tool |
746 |
is active and dialog had been closed) |
747 |
|
748 |
2003-04-30 Bernhard Herzog <[email protected]> |
749 |
|
750 |
* Thuban/Model/transientdb.py (TransientTableBase.__init__): New |
751 |
instance variable read_record_last_result |
752 |
(TransientTableBase.read_record): Make sure reading the same |
753 |
record twice works. The implementation uses the new instance |
754 |
variable read_record_last_result |
755 |
|
756 |
* test/test_transientdb.py |
757 |
(TestTransientTable.test_transient_table_read_twice): New test |
758 |
case for the above bug-fix. |
759 |
|
760 |
2003-04-29 Jonathan Coles <[email protected]> |
761 |
|
762 |
* Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832. |
763 |
|
764 |
* Thuban/UI/classgen.py: Remove all uses of Str2Num. |
765 |
|
766 |
* Thuban/UI/classifier.py: Remove all uses of Str2Num. |
767 |
(ClassTable.SetValueAsCustom): Rename keyword argument in |
768 |
ClassGroup* constructors to match argument name. |
769 |
|
770 |
2003-04-29 Bernhard Herzog <[email protected]> |
771 |
|
772 |
* Thuban/Model/session.py (Session.Destroy): Explicitly close the |
773 |
transient DB if it exists to make sure it doesn't leave a journal |
774 |
file in the temp directory. |
775 |
|
776 |
* Thuban/Model/transientdb.py (TransientDatabase.close): Set |
777 |
self.conn to None after closing the connection to make sure it's |
778 |
not closed twice |
779 |
|
780 |
2003-04-29 Jonathan Coles <[email protected]> |
781 |
|
782 |
Add a visible parameter in the layer XML tag. The default value is |
783 |
"true". If anything other than "false" is specified we also assume |
784 |
"true". Addresses RTbug #1025. |
785 |
|
786 |
* Doc/thuban.dtd: Add visible parameter to a layer. |
787 |
|
788 |
* Thuban/Model/layer.py (BaseLayer.__init__): Change default value |
789 |
of visible from 1 to True. |
790 |
(Layer.__init__): Change default value of visible from 1 to True. |
791 |
|
792 |
* Thuban/Model/load.py (SessionLoader.start_layer): Read visible |
793 |
parameter. |
794 |
|
795 |
* Thuban/Model/save.py (SessionSaver.write_layer): Save visible |
796 |
parameter. |
797 |
|
798 |
* test/test_load.py: Add new test data contents_test_visible. |
799 |
(LoadSessionTest.setUp): save test data. |
800 |
(LoadSessionTest.testLayerVisibility): Test if the visible flag |
801 |
is loaded correctly. |
802 |
|
803 |
* test/test_save.py (SaveSessionTest.testSingleLayer): Add test |
804 |
for saving an invisible layer. |
805 |
|
806 |
2003-04-29 Jonathan Coles <[email protected]> |
807 |
|
808 |
* Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the |
809 |
legend dialog box and tell it to change its map to the one |
810 |
supplied to SetMap(). Fixes RTbug #1770. |
811 |
|
812 |
2003-04-29 Bernhard Herzog <[email protected]> |
813 |
|
814 |
Next step of table implementation. Introduce a transient database |
815 |
using SQLite that some of the data is copied to on demand. This |
816 |
allows us to do joins and other operations that require an index |
817 |
for good performance with reasonable efficiency. Thuban now needs |
818 |
SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I |
819 |
haven't tested that. |
820 |
|
821 |
* Thuban/Model/transientdb.py: New. Transient database |
822 |
implementation. |
823 |
|
824 |
* test/test_transientdb.py: New. Tests for the transient DB |
825 |
classes. |
826 |
|
827 |
* Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New |
828 |
classes to help automatically remove temporary files and |
829 |
directories. |
830 |
(Session.__init__): New instance variables temp_dir for the |
831 |
temporary directory and transient_db for the SQLite database |
832 |
(Session.temp_directory): New. Create a temporary directory if not |
833 |
yet done and return its name. Use AutoRemoveDir to have it |
834 |
automatically deleted |
835 |
(Session.TransientDB): Instantiate the transient database if not |
836 |
done yet and return it. |
837 |
|
838 |
* Thuban/Model/data.py (ShapefileStore.__init__): Use an |
839 |
AutoTransientTable so that data is copied to the transient DB on |
840 |
demand. |
841 |
(SimpleStore): New class that simply combines a table and a |
842 |
shapefile |
843 |
|
844 |
* Thuban/Model/table.py (Table, DBFTable): Rename Table into |
845 |
DBFTable and update its doc-string to reflect the fact that this |
846 |
is only the table interface to a DBF file. Table is now an alias |
847 |
for DBFTable for temporary backwards compatibility. |
848 |
|
849 |
* Thuban/UI/application.py (ThubanApplication.OnExit): Make sure |
850 |
the last reference to the session goes away so that the temporary |
851 |
files are removed properly. |
852 |
|
853 |
* test/test_load.py (LoadSessionTest.tearDown): Remove the |
854 |
reference to the session to make sure the temporary files are |
855 |
removed. |
856 |
|
857 |
2003-04-29 Bernhard Herzog <[email protected]> |
858 |
|
859 |
* Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn |
860 |
the __parser instance variable into a normal local variable in |
861 |
read. It's only used there and read will never be called more than |
862 |
once. Plus it introduces a reference cycle that keeps can keep the |
863 |
session object alive for a long time. |
864 |
|
865 |
2003-04-29 Jonathan Coles <[email protected]> |
866 |
|
867 |
* Thuban/Model/proj.py (Projection): Removed Set*() methods to make |
868 |
Projection an immutable item. Fixes RTbug #1825. |
869 |
(Projection.__init__): Initialize instance variables here. |
870 |
(ProjFile.Replace): New. Replace the given projection object with |
871 |
the new projection object. This solves the problem of needing the |
872 |
mutator Projection.SetProjection() in the ProjFrame class and |
873 |
allows a projection to change parameters without changing its |
874 |
location in the file. |
875 |
|
876 |
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should |
877 |
be of type wxSAVE and should verify overwriting a file. |
878 |
|
879 |
* Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new |
880 |
ProjFile.Replace() method instead of the mutator |
881 |
Projection.SetProjection(). Also requires that we reassign the |
882 |
client data to the new projection. |
883 |
|
884 |
* test/test_proj.py (TestProjection.test): Test GetName() and |
885 |
GetAllParameters() |
886 |
(TestProjFile.test): Remove tests for Set*() methods. Add tests |
887 |
for Replace(). |
888 |
|
889 |
2003-04-25 Jonathan Coles <[email protected]> |
890 |
|
891 |
* Thuban/Model/save.py (SessionSaver.write_projection): Make sure |
892 |
to save the name of the projection. |
893 |
|
894 |
* test/test_save.py (SaveSessionTest.testLayerProjection): New |
895 |
test to verify layer projections are saved correctly. |
896 |
|
897 |
2003-04-25 Jonathan Coles <[email protected]> |
898 |
|
899 |
* Thuban/Model/proj.py (Projection.SetName): Set the name |
900 |
to "Unknown" if name is None. |
901 |
(Projection.SetAllParameters): New. Set the projection's |
902 |
parameter list to the one supplied. |
903 |
(Projection.SetProjection): New. Set the projection's |
904 |
properties to those of the supplied Projection. |
905 |
|
906 |
* Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set |
907 |
the dialog title to include the map's title. |
908 |
(MainWindow.LayerProjection): Set the dialog title to include |
909 |
the layer's title. |
910 |
|
911 |
* Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate |
912 |
error dialogs into a single method call. |
913 |
(ProjFrame.__VerifyButtons): Add more states to check. |
914 |
(ProjFrame.__GetProjection): Return the current state of an |
915 |
edited projection or None. |
916 |
(ProjFrame.__FillAvailList): Remove checks for states that |
917 |
shouldn't exist. |
918 |
(ProjFrame._OnNew): Clear all selected items and supply |
919 |
a projection panel if necessary. |
920 |
|
921 |
* test/test_proj.py (TestProjFile.test): Add tests for |
922 |
ProjFile.SetAllParameters, ProjFile.SetProjection, |
923 |
ProjFile.SetName. |
924 |
|
925 |
2003-04-25 Jonathan Coles <[email protected]> |
926 |
|
927 |
* Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now |
928 |
takes an optional argument to select the current projection. |
929 |
This does not guarantee that the item is visible due to |
930 |
limited wxWindows functionality. Fixes RTBug #1821. |
931 |
|
932 |
2003-04-25 Jonathan Coles <[email protected]> |
933 |
|
934 |
* Thuban/Model/load.py (SessionLoader.start_projection): Remember |
935 |
the projection name and use it when constructing the Projection |
936 |
object. |
937 |
|
938 |
* Thuban/Model/proj.py (Projection.__init__): Change the default |
939 |
value for 'name' to None and then test if name is equal to None |
940 |
in the body of the constructor. This way the caller doesn't have to |
941 |
know what the default value should be. Namely, useful in load.py |
942 |
where we have to pick a default value if the 'name' parameter |
943 |
doesn't exist in the XML file. |
944 |
|
945 |
* test/test_load.py (LoadSessionTest.testLayerProjection): New. |
946 |
Tests a file where a layer has a projection. |
947 |
|
948 |
2003-04-25 Jonathan Coles <[email protected]> |
949 |
|
950 |
* Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the |
951 |
tree for projection information. |
952 |
|
953 |
* Thuban/Model/load.py (XMLReader.GetFilename): Renamed from |
954 |
XMLReader.GetFileName. |
955 |
(SessionLoader): Added support for loading projection tags that |
956 |
appear inside a layer. |
957 |
|
958 |
* Thuban/Model/proj.py (ProjFile): Document the class. Move |
959 |
back to using a list because the order of the projections in |
960 |
the file is important to maintain. Fixes RTbug #1817. |
961 |
|
962 |
* Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName |
963 |
to ProjFile.GetFilename. |
964 |
|
965 |
* Thuban/Model/save.py (SessionSaver.write_layer): Save projection |
966 |
information. |
967 |
|
968 |
* Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from |
969 |
ProjFrame._OnSaveAs. Removed old dead code from previous |
970 |
implementation. |
971 |
(ProjFrame._OnExport): Add support for exporting more than one |
972 |
projection to a single file. |
973 |
(ProjFrame.__FillAvailList): use string formatting (% operator) |
974 |
to build strings that are (partly) translated. Fixes RTbug #1818. |
975 |
|
976 |
* test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile |
977 |
class. |
978 |
|
979 |
2003-04-24 Bernhard Herzog <[email protected]> |
980 |
|
981 |
* po/es.po: Updated Spanish translation by Daniel Calvelo Aros |
982 |
|
983 |
* po/fr.po: New. French translation by Daniel Calvelo Aros |
984 |
|
985 |
* Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate |
986 |
empty strings. |
987 |
|
988 |
2003-04-24 Jonathan Coles <[email protected]> |
989 |
|
990 |
* Thuban/Model/layer.py (Layer.GetProjection): New. Needed to |
991 |
implement the interface that the ProjFrame dialog expects. |
992 |
|
993 |
* Thuban/Model/proj.py (Projection.SetName): New. Allows the |
994 |
name of the projection to be changed. |
995 |
(ProjFile): Use a dictionary instead of a list so that removing |
996 |
projections is easier and we are sure about uniqueness. |
997 |
(ProjFile.Remove): Remove the given projection object. |
998 |
|
999 |
* Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles): |
1000 |
Return a list with only one projection file instead of searching for |
1001 |
any projection file. This simplifies many things if the user can |
1002 |
only have one system file and one user file. |
1003 |
|
1004 |
* Thuban/UI/classgen.py: Change all references to |
1005 |
genCombo to genChoice. |
1006 |
|
1007 |
* Thuban/UI/mainwindow.py: Add a Projection option under the |
1008 |
layer menu. |
1009 |
(MainWindow.LayerProjection): New. Open up a projection window |
1010 |
for a layer. |
1011 |
|
1012 |
* Thuban/UI/projdialog.py: Large changes to how the dialog is |
1013 |
laid out. Use three panels instead of one. One for the list of |
1014 |
projections, one for the edit controls, and one for the buttons. |
1015 |
Fixed resizing problems so that the dialog resizes correctly |
1016 |
when the projection panel changes. Added import/export, save, and |
1017 |
new buttons/functionality. |
1018 |
|
1019 |
2003-04-24 Bernhard Herzog <[email protected]> |
1020 |
|
1021 |
First step towards table management. Introduce a simple data |
1022 |
abstraction so that we replace the data a layer uses more easily |
1023 |
in the next step. |
1024 |
|
1025 |
* Thuban/Model/data.py: New file with a simple data abstraction |
1026 |
that bundles shapefile and dbffile into one object. |
1027 |
|
1028 |
* Thuban/Model/session.py (Session.OpenShapefile): New method to |
1029 |
open shapefiles and return a shape store object |
1030 |
|
1031 |
* Thuban/Model/layer.py (Layer.__init__): Pass the data as a store |
1032 |
object instead of a shapefile filename. This introduces a new |
1033 |
instance variable store holding the datastore. For intermediate |
1034 |
backwards compatibility keep the old instance variables. |
1035 |
(open_shapefile): Removed. No longer needed with the shape store. |
1036 |
(Layer.SetShapeStore, Layer.ShapeStore): New methods to set and |
1037 |
get the shape store used by a layer. |
1038 |
(Layer.Destroy): No need to explicitly destroy the shapefile or |
1039 |
table anymore. |
1040 |
|
1041 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer) |
1042 |
(MainWindow.AddLayer): Use the session's OpenShapefile method to |
1043 |
open shapefiles |
1044 |
|
1045 |
* Thuban/Model/load.py (ProcessSession.start_layer): Use the |
1046 |
session's OpenShapefile method to open shapefiles |
1047 |
|
1048 |
* test/test_classification.py |
1049 |
(TestClassification.test_classification): Use the session's |
1050 |
OpenShapefile method to open shapefiles and build the filename in |
1051 |
a more platform independed way |
1052 |
|
1053 |
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
1054 |
Implement to have a session to use in the tests |
1055 |
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
1056 |
(TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the |
1057 |
session's OpenShapefile method to open shapefiles |
1058 |
(TestLayerLegend.setUp): Instantiate a session so that we can use |
1059 |
it to open shapefiles. |
1060 |
(TestLayerLegend.tearDown): Make sure that all references to |
1061 |
layers and session are removed otherwise we may get a resource |
1062 |
leak |
1063 |
|
1064 |
* test/test_map.py (TestMapAddLayer.test_add_layer) |
1065 |
(TestMapWithContents.setUp): Instantiate a session so that we can |
1066 |
use it to open shapefiles. |
1067 |
(TestMapWithContents.tearDown): Make sure that all references to |
1068 |
layers, maps and sessions are removed otherwise we may get a |
1069 |
resource leak |
1070 |
("__main__"): use support.run_tests() so that more info about |
1071 |
uncollected garbage is printed |
1072 |
|
1073 |
* test/test_save.py (SaveSessionTest.testSingleLayer): Use the |
1074 |
session's OpenShapefile method to open shapefiles |
1075 |
("__main__"): use support.run_tests() so that more info about |
1076 |
uncollected garbage is printed |
1077 |
|
1078 |
* test/test_selection.py (TestSelection.tearDown): Make sure that |
1079 |
all references to the session and the selection are removed |
1080 |
otherwise we may get a resource leak |
1081 |
(TestSelection.get_layer): Instantiate a session so that we can |
1082 |
use it to open shapefiles. |
1083 |
("__main__"): use support.run_tests() so that more info about |
1084 |
uncollected garbage is printed |
1085 |
|
1086 |
* test/test_session.py (TestSessionBase.tearDown) |
1087 |
(TestSessionWithContent.tearDown): Make sure that all references |
1088 |
to the session and layers are removed otherwise we may get a |
1089 |
resource leak |
1090 |
(TestSessionWithContent.setUp): Use the session's OpenShapefile |
1091 |
method to open shapefiles |
1092 |
|
1093 |
2003-04-24 Jonathan Coles <[email protected]> |
1094 |
|
1095 |
* Thuban/Model/load.py (XMLReader.read): Should have been checking |
1096 |
if the file_or_filename object had the 'read' attribute. |
1097 |
|
1098 |
2003-04-23 Jonathan Coles <[email protected]> |
1099 |
|
1100 |
* Thuban/Model/resource.py: Fixes RTbug #1813. |
1101 |
(ReadProjFile): Add documentation about which exceptions are raised. |
1102 |
Always pass the exceptions up to the caller. |
1103 |
(GetProjFiles): If the directory can't be read return an empty list. |
1104 |
If any of the proj files can't be read skip that file and go |
1105 |
on to the next one. |
1106 |
|
1107 |
* test/test_proj.py: Added test cases to handle nonexistent files, |
1108 |
unreadable files, and files that don't parse correctly. |
1109 |
|
1110 |
2003-04-23 Jonathan Coles <[email protected]> |
1111 |
|
1112 |
Projection dialog. Allows the user to select from a list |
1113 |
of projection templates and optionally edit them and save new ones. |
1114 |
|
1115 |
* Thuban/UI/projdialog.py (ProjFrame): New. Main dialog. |
1116 |
(ProjPanel): Base class for projection specific panels. |
1117 |
(TMPanel): Projection panel for Transverse Mercartor. |
1118 |
(UTMPanel): Projection panel for Universal Transverse Mercartor. |
1119 |
(LCCPanel): Projection panel for Lambert Conic Conformal. |
1120 |
(GeoPanel): Projetion panel for Geographic Projection. |
1121 |
|
1122 |
2003-04-23 Jonathan Coles <[email protected]> |
1123 |
|
1124 |
* Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to |
1125 |
promote symmetry. There now exists XMLReader and XMLWriter. |
1126 |
(XMLReader.read): New. Call to read the given file descriptor or |
1127 |
filename. |
1128 |
(XMLReader.close): New. Make sure the file is closed. |
1129 |
(XMLReader.GetFileName): New. Return just the file name that is being |
1130 |
read from. |
1131 |
(XMLReader.GetDirectory): New. Return just the directory of the file |
1132 |
that is being read. |
1133 |
(XMLReader.AddDispatchers): New. Take a dictionary which contains |
1134 |
the names of functions to call as the XML tree is parsed. |
1135 |
(XMLReader.startElementNS): Updated to use new dispatcher dictionary. |
1136 |
(XMLReader.endElementNS): Updated to use new dispatcher dictionary. |
1137 |
(SessionLoader): Removed class variables start_dispatcher and |
1138 |
end_dispatcher since this functionality is now part of a class |
1139 |
instance. Fixes RTbug #1808. |
1140 |
(SessionLoader.__init__): Add dispatcher functions. |
1141 |
(load_xmlfile): Code was moved into the XMLReader.read(). |
1142 |
(load_session): Use modified SessionLoader. |
1143 |
|
1144 |
* Thuban/Model/map.py (Map.GetProjection): New. Returns the |
1145 |
map's projection. |
1146 |
|
1147 |
* Thuban/Model/proj.py (Projection.GetParameters): Renamed to |
1148 |
GetAllParameters. |
1149 |
(Projection.GetParameter): Returns the value for the given parameter. |
1150 |
|
1151 |
* Thuban/Model/resource.py: Use XMLReader and XMLWriter. |
1152 |
(GetProjFiles): Renamed from GetProjections. Now returns a list |
1153 |
of ProjFile objects. |
1154 |
(GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns |
1155 |
a list of ProjFile objects whose files are not user defined. |
1156 |
(GetUserProjFiles): Renamed from GetUserProjections. Returns a |
1157 |
list of ProjFile objects whose files are user defined. |
1158 |
(ProjFileReader): Extend new XMLReader. |
1159 |
|
1160 |
* Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to |
1161 |
promote symmetry. |
1162 |
|
1163 |
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice |
1164 |
control instead of a wxComboBox. wxChoice controls do not generate |
1165 |
events as the uses highlights possible choices which fixes problems |
1166 |
with resizing the dialog when the use selects an option. |
1167 |
|
1168 |
* Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice |
1169 |
control instead of a wxComboBox. |
1170 |
|
1171 |
* Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection |
1172 |
dialog. |
1173 |
|
1174 |
* test/test_proj.py (TestProjection.test): New tests for GetParameter |
1175 |
method. |
1176 |
|
1177 |
2003-04-22 Bernhard Herzog <[email protected]> |
1178 |
|
1179 |
* Thuban/UI/mainwindow.py: Remove some unused imports and global |
1180 |
constants |
1181 |
|
1182 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
1183 |
(IdentifyGridCtrl.selected_shape): Use table, not shapetable. |
1184 |
|
1185 |
2003-04-17 Bernhard Herzog <[email protected]> |
1186 |
|
1187 |
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
1188 |
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used |
1189 |
anymore. |
1190 |
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes) |
1191 |
(Layer.ShapeType, Layer.Shape): No need to call |
1192 |
self.open_shapefile since it's always called in __init__ |
1193 |
|
1194 |
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
1195 |
In wxPython 2.4 there's no need to extend MainLoop anymore since |
1196 |
wxPython itself makes sure OnExit is called. |
1197 |
|
1198 |
2003-04-16 Jonathan Coles <[email protected]> |
1199 |
|
1200 |
Initial putback of projection management code. Includes new |
1201 |
classes to read and write projection files. The current load |
1202 |
and save classes were abstracted a bit so they could be reused. |
1203 |
The Projection class was extended to provide new methods and |
1204 |
have a name. |
1205 |
|
1206 |
* Thuban/Model/load.py (XMLProcessor): New. Contains all the |
1207 |
general XML reading methods that were part of ProcessSession. |
1208 |
|
1209 |
* Thuban/Model/proj.py (Projection.__init__): Accepts an optional |
1210 |
name. |
1211 |
(ProjFile): New. Represents a file that contains projection |
1212 |
information. |
1213 |
|
1214 |
* Thuban/Model/resource.py: New. Contains general utilities |
1215 |
for read and writing projection files. |
1216 |
|
1217 |
* Thuban/Model/save.py (XMLSaver): New. Contains all the |
1218 |
general XML writing methods that were part of SessionSaver. |
1219 |
(SessionSaver): Renamed from Saver. |
1220 |
|
1221 |
* test/test_proj.py: New test cases for the projection |
1222 |
file read and write functions. |
1223 |
|
1224 |
2003-04-16 Jonathan Coles <[email protected]> |
1225 |
|
1226 |
* Thuban/Model/classification.py: Use repr() around values |
1227 |
in the ClassGroup*.__repr__() methods so it is clearer when |
1228 |
a value is a string and when it is a number. |
1229 |
|
1230 |
* test/test_load.py: Rework the classification test to test |
1231 |
that we can load old files. |
1232 |
(testLabels): Test a file where the groups have labels. |
1233 |
|
1234 |
2003-04-16 Bernhard Herzog <[email protected]> |
1235 |
|
1236 |
Safer implementation of the performance enhancements of the |
1237 |
low-level renderer: |
1238 |
|
1239 |
* extensions/thuban/wxproj.cpp (extract_projection) |
1240 |
(extract_pointer): Rename extract_projection to extract_pointer |
1241 |
and redefine its purpose to return the pointer stored in a CObject |
1242 |
returned by the object's cobject method. Update all callers. |
1243 |
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
1244 |
handling of these low-level parameters so that each s_draw_info |
1245 |
instance is handled as a CObject at python level that also |
1246 |
contains real references to the actual python objects which |
1247 |
contain the values in the struct. Add free_draw_info as the |
1248 |
destructor. |
1249 |
(draw_polygon_shape): Add the py_draw_info parameter which must a |
1250 |
cobject containing an s_draw_info pointer. |
1251 |
|
1252 |
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
1253 |
method to instantiat the low-level render parameter |
1254 |
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
1255 |
commented out code. |
1256 |
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
1257 |
layer but the low-level render parameter |
1258 |
(ScreenRenderer.draw_shape_layer): Use the low-level render |
1259 |
parameter. |
1260 |
|
1261 |
2003-04-15 Jonathan Coles <[email protected]> |
1262 |
|
1263 |
* Thuban/Model/classification.py: Implemented __repr__ for |
1264 |
the ClassGroup* classes to make debugging a bit easier. |
1265 |
(ClassGroup.SetLabel): Check that the string is an instance |
1266 |
of StringTypes not StringType. Accounts for Unicode strings. |
1267 |
|
1268 |
* Thuban/Model/color.py: Implemented __repr__ to make |
1269 |
debugging a bit easier. |
1270 |
|
1271 |
* Thuban/Model/save.py (Saver.write_classification): Need to |
1272 |
save the group label. |
1273 |
|
1274 |
* test/test_load.py (testClassification): New. Loads the |
1275 |
iceland_sample_test.thuban file and checks if it was loaded |
1276 |
correctly. |
1277 |
|
1278 |
2003-04-15 Jonathan Coles <[email protected]> |
1279 |
|
1280 |
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
1281 |
to improve rendering performance by initializing the variables |
1282 |
that are not change each time draw_polygon_shape() is called. |
1283 |
The values are stored in a global struct draw_info. |
1284 |
(draw_polygon_shape): Removed initialization code that is |
1285 |
now in draw_polygon_init(). |
1286 |
|
1287 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
1288 |
drawing initialization call to draw_polygon_init() |
1289 |
(MapRenderer.draw_polygon_shape): Use new signature of |
1290 |
draw_polygon_shape. |
1291 |
|
1292 |
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
1293 |
weirdness by setting the range to (1, maxint). |
1294 |
|
1295 |
* Thuban/Model/classification.py (ClassGroupProperties): Make |
1296 |
instance variables private and optimize comparison operator |
1297 |
by first checking if the color references are the same. |
1298 |
(ClassGroupSingleton): Make instance variables private. |
1299 |
(ClassGroupRange): Make instance variables private. |
1300 |
|
1301 |
* HOWTO-Release: Filled in missing steps for releasing packages. |
1302 |
|
1303 |
2003-04-15 Bernhard Herzog <[email protected]> |
1304 |
|
1305 |
First stab at internationalized messages: |
1306 |
|
1307 |
* Thuban/__init__.py (_): Implement the translation function for |
1308 |
real using the python gettext module. |
1309 |
|
1310 |
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
1311 |
translate empty strings. |
1312 |
|
1313 |
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
1314 |
Add a missing space to a warning message |
1315 |
|
1316 |
* po/README: New. Notes about the management of the translation |
1317 |
files. |
1318 |
|
1319 |
* po/Makefile: New. Makefile to help manage the translation files. |
1320 |
|
1321 |
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
1322 |
|
1323 |
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
1324 |
translations and support files in po/ |
1325 |
|
1326 |
* setup.py (data_files): Add the *.mo files to the data_files too |
1327 |
|
1328 |
* README: Add note about the translations when building from CVS |
1329 |
|
1330 |
2003-04-14 Jonathan Coles <[email protected]> |
1331 |
|
1332 |
* Thuban/UI/dock.py: Fixes some window resizing problems most |
1333 |
noticable under windows. Always assume the button bitmaps will |
1334 |
be there. Code clean up. |
1335 |
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
1336 |
images for the dock/undock button to the same images. |
1337 |
Work around for RTbug #1801. |
1338 |
|
1339 |
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
1340 |
be allowed to grow within the sizer. Fixes a bug under Windows |
1341 |
where the toolbar wasn't being drawn. |
1342 |
|
1343 |
2003-04-14 Frank Koormann <[email protected]> |
1344 |
|
1345 |
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
1346 |
Updated design to try to make the button functionality more |
1347 |
transparent. |
1348 |
|
1349 |
2003-04-14 Jonathan Coles <[email protected]> |
1350 |
|
1351 |
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
1352 |
finalize the intialization of the panel. |
1353 |
|
1354 |
* Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the |
1355 |
creation of the panel. Should be the last thing called in the |
1356 |
initializer of a subclass. |
1357 |
|
1358 |
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively |
1359 |
set the current selections in the combo boxes. This is needed |
1360 |
under Windows. |
1361 |
|
1362 |
* Thuban/UI/classifier.py (Classifier.__init__): Add a top |
1363 |
level panel to the dialog so that the background colors are |
1364 |
consistent under Windows. |
1365 |
|
1366 |
2003-04-11 Jonathan Coles <[email protected]> |
1367 |
|
1368 |
* Thuban/UI/classgen.py: Change color ramps to start at white |
1369 |
not black. |
1370 |
|
1371 |
* Thuban/UI/legend.py: Enable/disable the legend buttons when |
1372 |
the legend changes. Fixes RTbug #1793. |
1373 |
|
1374 |
* test/test_classification.py: Added test for copying of |
1375 |
classifications. |
1376 |
|
1377 |
2003-04-11 Jonathan Coles <[email protected]> |
1378 |
|
1379 |
* Thuban/UI/resource.py: New. Centralize the loading of resources |
1380 |
such as bitmaps. |
1381 |
|
1382 |
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons, |
1383 |
added images to the move buttons, added 'reverse' button. |
1384 |
(CustomRampPanel.__init__): Added images to the move buttons. |
1385 |
(GreyRamp): New. Generates a ramp from white to black. |
1386 |
(HotToColdRamp): New. Generates a ramp from cold to hot colors. |
1387 |
|
1388 |
* Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to |
1389 |
ID_PROPERTY_*. |
1390 |
(Classifier.__init__): Minor changes to the layout. |
1391 |
(Classifier._OnTitleChanged): Listen for when the user edits the |
1392 |
title and update the dialog's title and the layer's title. |
1393 |
|
1394 |
* Thuban/UI/dock.py: Use new bitmaps for the control buttons. |
1395 |
|
1396 |
* Thuban/UI/legend.py: Use new bitmaps for the control buttons. |
1397 |
(LegendTree._OnMsgLayerTitleChanged): Change the displayed title |
1398 |
if the layer's title changes. |
1399 |
|
1400 |
* Thuban/UI/mainwindow.py: Added new menu item and associated code |
1401 |
to open a dialog to rename the map. |
1402 |
(MainWindow): Use new resource class to import bitmaps. |
1403 |
|
1404 |
2003-04-11 Jonathan Coles <[email protected]> |
1405 |
|
1406 |
* Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm, |
1407 |
Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm, |
1408 |
Resources/Bitmaps/group_use_none.xpm, |
1409 |
Resources/Bitmaps/group_use_not.xpm, |
1410 |
Resources/Bitmaps/hide_layer.xpm, |
1411 |
Resources/Bitmaps/layer_properties.xpm, |
1412 |
Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm, |
1413 |
Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm: |
1414 |
New. |
1415 |
|
1416 |
2003-04-10 Jonathan Coles <[email protected]> |
1417 |
|
1418 |
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
1419 |
Should pass group to ClassGroup constructor. |
1420 |
|
1421 |
2003-04-10 Jonathan Coles <[email protected]> |
1422 |
|
1423 |
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
1424 |
methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__) |
1425 |
here. Implement SetVisible(), IsVisible(). |
1426 |
(ClassGroup.__init__): Add group parameter which acts as a copy |
1427 |
constructor. |
1428 |
|
1429 |
* Thuban/UI/classifier.py (ClassTable): Add a new column for the |
1430 |
"Visible" check boxes. |
1431 |
(Classifier): Rename the buttons and refactor the code to match |
1432 |
the new labels. |
1433 |
|
1434 |
* Thuban/UI/legend.py: Classify button is now called "Properties". |
1435 |
Refactored the code to change variable names. |
1436 |
(LegendTree.__FillTreeLayer): Only list a group if it is visible. |
1437 |
|
1438 |
* Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to |
1439 |
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties |
1440 |
renamed to MainWindow.LayerEditProperties. |
1441 |
(MainWindow.ToggleLegend): Don't include map name in legend title. |
1442 |
(MainWindow.SetMap): Added the map name to the window title. |
1443 |
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill, |
1444 |
MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed. |
1445 |
Functionality is found in the layer properties dialog. |
1446 |
|
1447 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
1448 |
draw visible groups. |
1449 |
|
1450 |
2003-04-09 Jonathan Coles <[email protected]> |
1451 |
|
1452 |
* Thuban/UI/classgen.py: Modifications to allow simple |
1453 |
addition and selection of new color schemes. |
1454 |
(MonochromaticRamp): New. Generates a ramp between two colors. |
1455 |
(RedRamp): New. Generates a ramp of all red. |
1456 |
(GreenRamp): New. Generates a ramp of all green. |
1457 |
(BlueRamp): New. Generates a ramp of all blue. |
1458 |
|
1459 |
2003-04-09 Jonathan Coles <[email protected]> |
1460 |
|
1461 |
* Thuban/Model/classification.py (Classification.__deepcopy__): |
1462 |
Need to copy over field and fieldType attributes. |
1463 |
|
1464 |
* Thuban/Model/table.py (Table.field_range): New. Retrive the |
1465 |
maximum and minimum values over the entire table for a given |
1466 |
field. |
1467 |
(Table.GetUniqueValues): New. Retrieve all the unique values |
1468 |
in the table for a given field. |
1469 |
|
1470 |
* Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel. |
1471 |
(GenUniquePanel): New. Controls to allow the user to select |
1472 |
which unique field values they would like in the classification. |
1473 |
(CustomRampPanel): Code that was in ClassGenDialog that allows |
1474 |
the user to select the properties for a custom ramp. |
1475 |
(ClassGenerator.GenUniformDistribution): Was called GenerateRanges. |
1476 |
|
1477 |
* Thuban/UI/classifier.py: Removed a lot of debugging code. |
1478 |
(Classifier._SetClassification): Callback method so that the |
1479 |
class generator can set the classification in the grid. |
1480 |
(ClassGroupPropertiesCtrl): New. Encapsulates the drawing and |
1481 |
editing of a group properties class into a wxWindows control. |
1482 |
|
1483 |
* Thuban/UI/dock.py: It was decided that if the user closes |
1484 |
a dockable window the window should simply hide itself. That |
1485 |
way if the user wants to show the dock again it appears in the |
1486 |
same place as it was when it was closed. |
1487 |
(DockableWindow.Destroy): Call renamed method OnDockDestroy(). |
1488 |
(DockableWindow._OnButtonClose): Hide the window instead of |
1489 |
destroying it. |
1490 |
(DockableWindow._OnClose): Hide the window instead of |
1491 |
destroying it. |
1492 |
|
1493 |
* Thuban/UI/legend.py (LegendTree): Use a private method to |
1494 |
consistently set the font and style of the text. Fixes RTbug #1786. |
1495 |
|
1496 |
* Thuban/UI/mainwindow.py: Import just the Classifier class. |
1497 |
|
1498 |
2003-04-07 Bernhard Herzog <[email protected]> |
1499 |
|
1500 |
* Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item |
1501 |
to the map module |
1502 |
|
1503 |
2003-04-07 Bernhard Herzog <[email protected]> |
1504 |
|
1505 |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in |
1506 |
favor of ToggleSessionTree |
1507 |
(MainWindow.ToggleSessionTree): New method to toggle visibility of |
1508 |
the session tree. |
1509 |
(MainWindow.SessionTreeShown): New method to return whether the |
1510 |
session tree is currently shown. |
1511 |
(MainWindow.ToggleLegend): New method to toggle visibility of the |
1512 |
legend |
1513 |
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and |
1514 |
LegendShown |
1515 |
(MainWindow.LegendShown): New method to return whether the legend |
1516 |
is currently shown. |
1517 |
(_method_command): Add checked parameter so we can define check |
1518 |
menu items |
1519 |
(_has_tree_window_shown, _has_legend_shown): Use the appropriate |
1520 |
mainwindow methods. |
1521 |
(show_session_tree, show_legend commands): Removed. |
1522 |
(toggle_session_tree, toggle_legend commands): New commands to |
1523 |
toggle the visibility of the dialogs |
1524 |
|
1525 |
2003-04-07 Jonathan Coles <[email protected]> |
1526 |
|
1527 |
* Thuban/UI/classgen.py: Fix Windows problem. |
1528 |
|
1529 |
* Thuban/UI/dock.py: Fix Windows problem. |
1530 |
|
1531 |
* Thuban/UI/mainwindow.py: Use False instead of false. |
1532 |
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
1533 |
|
1534 |
2003-04-07 Jonathan Coles <[email protected]> |
1535 |
|
1536 |
Since we now say that the order of the groups in a classification |
1537 |
matters, it makes sense to be able to manipulate that order. Most |
1538 |
of the changes to Thuban/Model/classification.py are to that end. |
1539 |
|
1540 |
* Thuban/Model/classification.py (Classification.AppendGroup, |
1541 |
Classification.InsertGroup, Classification.ReplaceGroup, |
1542 |
Classification.RemoveGroup, Classification.GetGroup): Do as the |
1543 |
names imply. |
1544 |
(Classification.FindGroup): This was called GetGroup, but GetGroup |
1545 |
takes an index, while FindGroup takes a value. |
1546 |
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
1547 |
REFERENCE. Currently there is a cyclic reference between the layer |
1548 |
and its classification. If the classification doesn't need to know |
1549 |
its owning layer we can change this, since it may make sense to be |
1550 |
able to use the same classification with different layers. |
1551 |
|
1552 |
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
1553 |
|
1554 |
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
1555 |
not AddGroup() |
1556 |
|
1557 |
* Thuban/UI/classifier.py: Now that we can depend on the order in |
1558 |
a Classification and have methods to manipulate that order we don't |
1559 |
need to use our own data structures in the grid. We can simply make |
1560 |
the grid/table access the information they need from a copy of |
1561 |
the classification object. |
1562 |
(Classifier._OnCloseBtn): Event handler for when the user clicks |
1563 |
'Close'. This is needed so if the user applies changes and then |
1564 |
continues to change the table the user has the option of discarding |
1565 |
the most recent changes and keeping what they applied. |
1566 |
|
1567 |
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
1568 |
into the same group. |
1569 |
|
1570 |
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
1571 |
with a really old version of proj, PJ_VERSION won't even be defined. |
1572 |
If it isn't defined then just compile so that the function always |
1573 |
returns Py_False. |
1574 |
|
1575 |
* test/test_classification.py: Fix tests to use the renamed methods. |
1576 |
Still need to write tests for the new methods. |
1577 |
|
1578 |
2003-04-04 Jonathan Coles <[email protected]> |
1579 |
|
1580 |
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
1581 |
call to SetSelection out of the method and before the call |
1582 |
to __SelectField in __init__. This prevents a recursion of events |
1583 |
when _OnFieldSelect is triggered by the user. |
1584 |
|
1585 |
2003-04-04 Jonathan Coles <[email protected]> |
1586 |
|
1587 |
* Thuban/Model/classification.py: Rename Color.None to |
1588 |
Color.Transparent. |
1589 |
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
1590 |
Don't bother copying the color, since Colors are immutable. |
1591 |
|
1592 |
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
1593 |
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
1594 |
Thuban/UI/renderer.py, Thuban/UI/view.py: |
1595 |
Rename Color.None to Color.Transparent. |
1596 |
|
1597 |
* test/test_classification.py, test/test_load.py: Rename Color.None |
1598 |
to Color.Transparent. |
1599 |
|
1600 |
2003-04-04 Jonathan Coles <[email protected]> |
1601 |
|
1602 |
* Thuban/Model/classification.py: Fix assert calls. |
1603 |
(ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill): |
1604 |
Copy the color parameter rather than hold onto a reference. |
1605 |
|
1606 |
* Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy |
1607 |
the color object. |
1608 |
(NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we |
1609 |
are sure there exists only one refernce to Color.None in the system. |
1610 |
This allows us to use 'is' rather than the comparision functions. |
1611 |
|
1612 |
* Thuban/Model/save.py: Fix assert calls. |
1613 |
|
1614 |
* Thuban/UI/classifier.py: Fix assert calls. |
1615 |
(ClassGrid._OnCellDClick): Call up to the classifier to open the |
1616 |
dialog to edit the groups properties. |
1617 |
(ClassGrid._OnCellResize): Make sure that the scollbars are drawn |
1618 |
correctly if a cell is resized. |
1619 |
(ClassTable.SetClassification): New. Changes the classification |
1620 |
that is in the table. |
1621 |
(ClassTable.__SetRow): Allow groups to be prepended. |
1622 |
(Classifier): New code for opening the EditProperties and |
1623 |
GenerateRanges dialogs. |
1624 |
(SelectPropertiesDialog.__GetColor): Only set the color in the |
1625 |
color dialog if the current color is not None. |
1626 |
|
1627 |
* Thuban/UI/dock.py: Fix assert calls. |
1628 |
|
1629 |
* Thuban/UI/legend.py: Fix assert calls. |
1630 |
|
1631 |
* Thuban/UI/renderer.py: Fix assert calls. |
1632 |
|
1633 |
* Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating |
1634 |
classifications. |
1635 |
(GenRangePanel): Panel specific to range generation. |
1636 |
(GenSingletonPanel): Panel specific to singleton generation. |
1637 |
(ClassGenerator): Class responsible for actually generating |
1638 |
the classification from the data gathered in the dialog box. |
1639 |
(PropertyRamp): Generates properties whose values range from |
1640 |
a starting property to an ending property. |
1641 |
|
1642 |
2003-04-03 Bernhard Herzog <[email protected]> |
1643 |
|
1644 |
* test/support.py (print_garbage_information): New function that |
1645 |
prints information about still connected messages and memory |
1646 |
leaks. |
1647 |
(run_suite): Removed. |
1648 |
(run_tests): New function for use as a replacement of |
1649 |
unittest.main in the test_* files. This one calls |
1650 |
print_garbage_information at the end. |
1651 |
|
1652 |
* test/runtests.py (main): Use support.print_garbage_information |
1653 |
|
1654 |
* test/test_layer.py: Use support.run_tests instead of |
1655 |
unittest.main so we get memory leak information |
1656 |
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
1657 |
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
1658 |
(TestLayerLegend.test_visibility): Call the layer's Destroy method |
1659 |
to fix a memory leak. |
1660 |
|
1661 |
* test/test_classification.py: Use support.run_tests instead of |
1662 |
unittest.main so we get memory leak information |
1663 |
(TestClassification.test_classification): Call the layer's Destroy |
1664 |
method to fix a memory leak. |
1665 |
|
1666 |
2003-04-02 Bernhard Herzog <[email protected]> |
1667 |
|
1668 |
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
1669 |
Handle the reference counts of the return value and errors in |
1670 |
PyArg_ParseTuple correctly. |
1671 |
|
1672 |
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
1673 |
sure the filename is absolute to avoid problems when saving the |
1674 |
session again |
1675 |
|
1676 |
* Thuban/Model/table.py: Remove unnecessary import. Fix a typo. |
1677 |
|
1678 |
2003-04-01 Jonathan Coles <[email protected]> |
1679 |
|
1680 |
* Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check |
1681 |
that there actually are points in the returned list of points |
1682 |
before trying to index into the list. The list may be empty if |
1683 |
the shape is a Null Shape. |
1684 |
|
1685 |
2003-04-01 Bernhard Herzog <[email protected]> |
1686 |
|
1687 |
* test/test_map.py: Don't use from <module> import * |
1688 |
|
1689 |
2003-04-01 Jonathan Coles <[email protected]> |
1690 |
|
1691 |
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
1692 |
LAYER_LEGEND_CHANGED |
1693 |
|
1694 |
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
1695 |
self.Destroy() to close the window after yesterday's changes. |
1696 |
|
1697 |
* test/test_map.py, test/test_session.py: Fix messages that |
1698 |
are sent from maps and layers. |
1699 |
|
1700 |
2003-03-31 Jonathan Coles <[email protected]> |
1701 |
|
1702 |
* Thuban/UI/classifier.py: Commented out some debugging statements. |
1703 |
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
1704 |
RTbug #1769. |
1705 |
|
1706 |
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
1707 |
position (although position doesn't work yet under GTK). |
1708 |
(DockableWindow.Destroy): New. Called when the window must be |
1709 |
closed. Namely needed when the DockFrame closes and must close |
1710 |
its children. |
1711 |
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
1712 |
|
1713 |
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
1714 |
when then window is told to close. |
1715 |
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
1716 |
comment in source for more info. |
1717 |
|
1718 |
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
1719 |
|
1720 |
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
1721 |
symmetry with other such methods. |
1722 |
(MainWindow.ShowLegend): Show the legend docked by default. |
1723 |
|
1724 |
2003-03-28 Jonathan Coles <[email protected]> |
1725 |
|
1726 |
* Thuban/UI/classifier.py: Support for highlighting a specific |
1727 |
group within the grid when the classification dialog is opened. |
1728 |
Also contains a lot of debugging printouts which will later |
1729 |
be removed. |
1730 |
|
1731 |
* Thuban/UI/dock.py: Complete rework on the dock code so that |
1732 |
that it is fairly removed from the rest of the Thuban application. |
1733 |
It is easy to add new docks which the rest of the program having |
1734 |
to be aware of them. |
1735 |
|
1736 |
* Thuban/UI/legend.py: Modifications to support selecting a |
1737 |
specific group in the classification dialog. Changed how layers |
1738 |
are drawn when the layer is visible/invisible. |
1739 |
|
1740 |
* Thuban/UI/mainwindow.py: Removed legend specific code and |
1741 |
replaced it with calls to the new dock code. |
1742 |
|
1743 |
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
1744 |
to check if scale > 0. Trying to track down a divide by zero. |
1745 |
|
1746 |
2003-03-26 Jonathan Coles <[email protected]> |
1747 |
|
1748 |
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
1749 |
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
1750 |
now part of DockableWindow. |
1751 |
(LegendPanel.DoOnSelChanged): Select the current layer in the |
1752 |
map. |
1753 |
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
1754 |
with the selected layer and/or group. |
1755 |
|
1756 |
2003-03-26 Jonathan Coles <[email protected]> |
1757 |
|
1758 |
This putback contains the code for dockable windows. There is |
1759 |
no support in wxWindows as of this date for windows that can |
1760 |
attach themselves to other windows. |
1761 |
|
1762 |
The current model contains a DockableWindow which has a parent |
1763 |
window for when it is detached and a dock window that it puts |
1764 |
its contents in when it is docked. The contents of a DockableWindow |
1765 |
must be a DockPanel. DockPanel itself derives from wxPanel. |
1766 |
|
1767 |
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
1768 |
message, not a LAYER_LEGEND_CHANGED message. |
1769 |
|
1770 |
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
1771 |
|
1772 |
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
1773 |
as one of the style properties for the fieldTypeText item to |
1774 |
be sure that its size is correct when the text changes. |
1775 |
|
1776 |
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
1777 |
DockableWindow. |
1778 |
|
1779 |
* Thuban/UI/legend.py: Added some more buttons and made the |
1780 |
LegendPanel a DockPanel. |
1781 |
|
1782 |
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
1783 |
and supporting functions for manipulating the sashes. |
1784 |
(MainWindow.ShowLegend): Create a DockableWindow with the |
1785 |
LegendPanel as the contents. |
1786 |
|
1787 |
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
1788 |
|
1789 |
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
1790 |
not LAYER_LEGEND_CHANGED, messages. |
1791 |
|
1792 |
2003-03-25 Jonathan Coles <[email protected]> |
1793 |
|
1794 |
* setup.py: Added custom script bdist_rpm_build_script so that |
1795 |
when the rpm is built the path to wx-config is correct. |
1796 |
|
1797 |
* setup.cfg: Added line saying to use the custom build script |
1798 |
|
1799 |
2003-03-20 Jonathan Coles <[email protected]> |
1800 |
|
1801 |
Initial implementation of the Legend. |
1802 |
|
1803 |
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
1804 |
Legend information and allows the user to add/modify classifications |
1805 |
and how the layers are drawn on the map. |
1806 |
|
1807 |
* setup.py: New command 'build_docs' which currently uses |
1808 |
happydoc to generate html documentation for Thuban. |
1809 |
|
1810 |
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
1811 |
Returns a string which is appropriately describes the group. |
1812 |
|
1813 |
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
1814 |
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
1815 |
|
1816 |
* Thuban/Model/map.py (Map): Rename messages and use new, more |
1817 |
specific, messages. |
1818 |
|
1819 |
* Thuban/Model/messages.py: New message to indicate that a layer's |
1820 |
data has changed (LAYER_CHANGED). New map messages to indicate |
1821 |
when layers have been added/removed/changed or if the stacking order |
1822 |
of the layers has changed. |
1823 |
|
1824 |
* Thuban/Model/session.py: Rename and use new messages. |
1825 |
|
1826 |
* Thuban/UI/classifier.py: Remember if any changes have actually |
1827 |
been applied so that if the dialog is cancelled without an application |
1828 |
of changes we don't have to set a new classification. |
1829 |
(ClassDataPreviewer): Pulled out the window specific code and put it |
1830 |
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
1831 |
symbols on any DC. |
1832 |
|
1833 |
* Thuban/UI/mainwindow.py: New code to open the legend. |
1834 |
|
1835 |
* Thuban/UI/view.py: Use new message names. |
1836 |
|
1837 |
2003-03-19 Jonathan Coles <[email protected]> |
1838 |
|
1839 |
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
1840 |
of Python, wxPython, and some other libraries. |
1841 |
|
1842 |
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
1843 |
version against what wxproj was compiled with. |
1844 |
(check_version_gtk): If wxproj was compiled with gtk then check |
1845 |
the given version against the version of the gtk library |
1846 |
currently being used. |
1847 |
|
1848 |
2003-03-14 Bernhard Herzog <[email protected]> |
1849 |
|
1850 |
* test/test_command.py: Run the tests when the module is run as a |
1851 |
script |
1852 |
|
1853 |
2003-03-14 Bernhard Herzog <[email protected]> |
1854 |
|
1855 |
Implement selection of multiple selected shapes in the same layer: |
1856 |
|
1857 |
- Introduce a new class to hold the selection. This basically |
1858 |
replaces the interactor which was nothing more than the |
1859 |
selection anyway. A major difference is of course that the new |
1860 |
selection class supports multiple selected shapes in one layer |
1861 |
|
1862 |
- Move the object that represents the selection from the |
1863 |
application to the canvas. The canvas is a better place than the |
1864 |
application because the selection represents which shapes and |
1865 |
layer of the map displayed by the canvas are selected and |
1866 |
affects how the map is drawn. |
1867 |
|
1868 |
- Make the selection and its messages publicly available through |
1869 |
the mainwindow. |
1870 |
|
1871 |
- The non-modal dialogs do not get a reference to the interactor |
1872 |
anymore as they can simply refer to their parent, the |
1873 |
mainwindow, for the what the interactor had to offer. |
1874 |
|
1875 |
* Thuban/UI/selection.py: New module with a class to represent the |
1876 |
selection. |
1877 |
|
1878 |
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
1879 |
these unused messages |
1880 |
|
1881 |
* Thuban/UI/application.py (ThubanApplication.OnInit) |
1882 |
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
1883 |
interactor is gone now. |
1884 |
(ThubanApplication.CreateMainWindow): There is no interactor |
1885 |
anymore so we pass None as the interactor argument for now for |
1886 |
compatibility. |
1887 |
|
1888 |
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
1889 |
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
1890 |
Unsubscribe, delegate messages according to the delegated_messages |
1891 |
class variable. |
1892 |
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
1893 |
attributes from instance variables as described with the |
1894 |
delegated_methods class variable. |
1895 |
(MapCanvas.__init__): New instance variable selection holding the |
1896 |
current selection |
1897 |
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
1898 |
pass them on to the renderer |
1899 |
(MapCanvas.SetMap): Clear the selection when a different map is |
1900 |
selected. |
1901 |
(MapCanvas.shape_selected): Simple force a complete redraw. The |
1902 |
selection class now takes care of only issueing SHAPES_SELECTED |
1903 |
messages when the set of selected shapes actually does change. |
1904 |
(MapCanvas.SelectShapeAt): The selection is now managed in |
1905 |
self.selection |
1906 |
|
1907 |
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
1908 |
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
1909 |
Unsubscribe, delegate messages according to the delegated_messages |
1910 |
class variable. |
1911 |
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
1912 |
attributes from instance variables as described with the |
1913 |
delegated_methods class variable. |
1914 |
(MainWindow.__init__): The interactor as ivar is gone. The |
1915 |
parameter is still there for compatibility. The selection messages |
1916 |
now come from the canvas. |
1917 |
(MainWindow.current_layer, MainWindow.has_selected_layer): |
1918 |
Delegate to the the canvas. |
1919 |
(MainWindow.LayerShowTable, MainWindow.Classify) |
1920 |
(MainWindow.identify_view_on_demand): The dialogs don't need the |
1921 |
interactor parameter anymore. |
1922 |
|
1923 |
* Thuban/UI/tableview.py (TableFrame.__init__) |
1924 |
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
1925 |
(LayerTableFrame.row_selected): The interactor is gone. It's job |
1926 |
from the dialog's point of view is now done by the mainwindow, |
1927 |
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
1928 |
of SELECTED_SHAPE |
1929 |
|
1930 |
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
1931 |
is gone. It's job from the dialog's point of view is now done by |
1932 |
the mainwindow, i.e. the parent. |
1933 |
|
1934 |
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
1935 |
gone. It's job from the dialog's point of view is now done by the |
1936 |
mainwindow, i.e. the parent. |
1937 |
|
1938 |
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
1939 |
gone. It's job from the dialog's point of view is now done by the |
1940 |
mainwindow, i.e. the parent. |
1941 |
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
1942 |
stored as self.mainwindow. The mainwindow is need so that the tree |
1943 |
can still subscribe to the selection messages. |
1944 |
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
1945 |
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
1946 |
selection is now accessible through the mainwindow. Subscribe to |
1947 |
SHAPES_SELECTED instead of SELECTED_SHAPE |
1948 |
|
1949 |
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
1950 |
SHAPES_SELECTED message now. |
1951 |
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
1952 |
so deal with multiple shapes |
1953 |
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
1954 |
gone. It's job from the dialog's point of view is now done by the |
1955 |
mainwindow, i.e. the parent. |
1956 |
|
1957 |
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
1958 |
parameter is now a list of shape ids. |
1959 |
(RecordTable.SetTable): The second parameter is now a list of |
1960 |
indices. |
1961 |
|
1962 |
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
1963 |
selected_shape parameter and ivar to selected_shapes. It's now a |
1964 |
list of shape ids. |
1965 |
(MapRenderer.draw_label_layer): Deal with multiple selected |
1966 |
shapes. Rearrange the code a bit so that the setup and shape type |
1967 |
distinctions are only executed once. |
1968 |
|
1969 |
* test/test_selection.py: Test cases for the selection class |
1970 |
|
1971 |
2003-03-11 Jonathan Coles <[email protected]> |
1972 |
|
1973 |
* Thuban/Model/load.py: Temporary fix so that the xml reader |
1974 |
doesn't cause Thuban to crash. |
1975 |
|
1976 |
* Thuban/Model/layer.py: Handle the cyclic references between |
1977 |
a layer and its classification better, and be sure to disconnect |
1978 |
the classification from the layer when the layer is destroyed |
1979 |
so that we don't maintain a cyclic reference that may not be |
1980 |
garbage collected. |
1981 |
|
1982 |
* Thuban/Model/classification.py: See comment for layer.py. |
1983 |
|
1984 |
2003-03-12 Jan-Oliver Wagner <[email protected]> |
1985 |
|
1986 |
* HOWTO-Release: New. Information on the steps for releasing |
1987 |
a new version of Thuban. |
1988 |
|
1989 |
2003-03-11 Jonathan Coles <[email protected]> |
1990 |
|
1991 |
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
1992 |
Use True instead of true. |
1993 |
(Classifier): Should have a single panel in which all the controls lie. |
1994 |
|
1995 |
* Thuban/UI/proj4dialog.py: Add normal border. |
1996 |
|
1997 |
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
1998 |
|
1999 |
* Thuban/UI/mainwindow.py: Use True instead of true. |
2000 |
|
2001 |
* setup.py: Update some definitions to use wxWindows2.4 files |
2002 |
|
2003 |
* Data/iceland_sample_class.thuban: Fixed file so that the |
2004 |
field_type information is present. |
2005 |
|
2006 |
2003-03-10 Jonathan Coles <[email protected]> |
2007 |
|
2008 |
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
2009 |
field type label grow so that when the text changes the |
2010 |
size is updated correctly. This may be a wxWindows bug. |
2011 |
|
2012 |
2003-03-10 Jonathan Coles <[email protected]> |
2013 |
|
2014 |
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
2015 |
SESSION_REPLACED. |
2016 |
|
2017 |
* Thuban/UI/classifier.py: Wrap text with _(). |
2018 |
(ClassGrid.CreateTable): Set dimensions and size hints here, |
2019 |
instead of in Reset, so we only set the size once. |
2020 |
|
2021 |
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
2022 |
|
2023 |
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
2024 |
Call Close() instead of Shutdown(). |
2025 |
|
2026 |
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
2027 |
|
2028 |
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
2029 |
Go back to using OnClose() instead of Shutdown(). |
2030 |
|
2031 |
2003-03-10 Jonathan Coles <[email protected]> |
2032 |
|
2033 |
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
2034 |
to know the old field index as well as the new one. |
2035 |
|
2036 |
2003-03-10 Jonathan Coles <[email protected]> |
2037 |
|
2038 |
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
2039 |
to correctly set the table information and call this from |
2040 |
__init__ and from _OnFieldSelect so that all the information |
2041 |
is up to date when the dialog opens and when a field is changed. |
2042 |
|
2043 |
2003-03-10 Jonathan Coles <[email protected]> |
2044 |
|
2045 |
* Thuban/Model/classification.py (Classification): Don't use |
2046 |
layer's message function directly, use the ClassChanged() method |
2047 |
when then classification changes. SetField/SetFieldType/SetLayer |
2048 |
must keep the information about field name and field type in |
2049 |
sync when an owning layer is set or removed. |
2050 |
|
2051 |
* Thuban/Model/layer.py: Added ClassChanged() so that the |
2052 |
classification can tell the layer when its data has changed. |
2053 |
(Layer.SetClassification): Accepts None as an arguement to |
2054 |
remove the current classification and correctly handles |
2055 |
adding a new classification. |
2056 |
|
2057 |
* Thuban/Model/load.py: Comment out print statement |
2058 |
|
2059 |
* test/test_classification.py, test/test_save.py: New and |
2060 |
improved tests. |
2061 |
|
2062 |
2003-03-07 Jonathan Coles <[email protected]> |
2063 |
|
2064 |
* Thuban/Model/classification.py: Implemented __copy__ and |
2065 |
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
2066 |
they can easily be copied by the classifier dialog. |
2067 |
(ClassGroupProperites.__init__): The default line color should |
2068 |
have been Color.Black. |
2069 |
|
2070 |
* Thuban/UI/classifier.py: Setting and Getting table values now |
2071 |
uses a consistent set of functions. |
2072 |
(Classifier): Now non-modal. Has field type label which changes |
2073 |
as the field changes. Keep track of buttons in a list so that |
2074 |
we can enable/disable the buttons when the None field is selected. |
2075 |
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
2076 |
|
2077 |
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
2078 |
does what OnClose did, but can be called by the application to |
2079 |
close a window. Needed when a session changes, and we have to |
2080 |
close the classifier windows. |
2081 |
|
2082 |
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
2083 |
Shuts down open dialogs. Used when a new session is created |
2084 |
or a session is opened. |
2085 |
(MainWindow.SaveSession): Should only call application.SaveSession() |
2086 |
if we don't call SaveSessionAs first. |
2087 |
(MainWindow.Classify): Allow different classifier dialogs for |
2088 |
different layers. |
2089 |
|
2090 |
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
2091 |
the parent class handle it. Add Shutdown() to unsubscibe from |
2092 |
event notification and call the parent Shutdown(). This was |
2093 |
necessary so the application can close the tree window. |
2094 |
|
2095 |
2003-03-06 Jonathan Coles <[email protected]> |
2096 |
|
2097 |
* Thuban/Model/classification.py: Minor documentation changes, |
2098 |
Addition of __eq__ and __ne__ methods. |
2099 |
(Classification.SetLayer): prevent recursion between this method |
2100 |
and Layer.SetClassification(). |
2101 |
|
2102 |
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
2103 |
|
2104 |
* Thuban/Model/layer.py (SetClassification): prevent recursion |
2105 |
between this method and Classification.SetLayer(). |
2106 |
|
2107 |
* test/test_classification.py, test/test_load.py, |
2108 |
test/test_session.py: Fixed and added tests for the classification |
2109 |
classes. |
2110 |
|
2111 |
2003-03-06 Bernhard Herzog <[email protected]> |
2112 |
|
2113 |
* Thuban/UI/classifier.py (ClassGrid.__init__) |
2114 |
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
2115 |
CreateTable because otherwise it triggers an assertion in |
2116 |
wxPython/wxGTK 2.4. |
2117 |
|
2118 |
2003-03-05 Jonathan Coles <[email protected]> |
2119 |
|
2120 |
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
2121 |
|
2122 |
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
2123 |
|
2124 |
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
2125 |
|
2126 |
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
2127 |
|
2128 |
2003-03-05 Jonathan Coles <[email protected]> |
2129 |
|
2130 |
* Thuban/UI/classifier.py: Added class documentation. |
2131 |
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
2132 |
Store just the groups in the table and generate the other |
2133 |
column information when it is requested. Add "None" field |
2134 |
to pull-down to select no classification. |
2135 |
|
2136 |
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
2137 |
(Str2Num): Only catch ValueError exceptions. |
2138 |
|
2139 |
* Thuban/Model/classification.py: Class documentation. Renaming |
2140 |
of methods with Stroke to Line. Groups are stored in a single |
2141 |
list with the default as the first element. Groups are searched |
2142 |
in the order they appear in the list. |
2143 |
|
2144 |
* Thuban/Model/color.py: Documentation. |
2145 |
|
2146 |
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
2147 |
the kind of data represented by a field. |
2148 |
|
2149 |
* Thuban/Model/load.py (ProcessSession): Use proper string |
2150 |
conversion function; fixes RTbug #1713. |
2151 |
|
2152 |
* Thuban/Model/save.py (Saver): Store field type information. |
2153 |
|
2154 |
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
2155 |
(Table): Add field_info_by_name() to retrieve field information |
2156 |
by specifying the field name, not the number. |
2157 |
|
2158 |
* Thuban/UI/mainwindow.py: Function name changes. |
2159 |
|
2160 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
2161 |
get the layer classification once. Don't try to classify |
2162 |
values when the field is None: just use the default properties. |
2163 |
|
2164 |
* Thuban/UI/view.py: Function name changes. |
2165 |
|
2166 |
* Doc/thuban.dtd: Add field_type attribute to a classification. |
2167 |
|
2168 |
2003-03-04 Bernhard Herzog <[email protected]> |
2169 |
|
2170 |
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
2171 |
the fill and stroke layer attributes optional with suitable |
2172 |
default values. Add the stroke_width layer attribute. Use correct |
2173 |
syntax for empty elements. Make the attribute list for labels |
2174 |
refer to the label element. |
2175 |
|
2176 |
2003-03-04 Bernhard Herzog <[email protected]> |
2177 |
|
2178 |
* setup.py (thuban_build_py.build): Add a comment about distutils in |
2179 |
Python 2.3 containing some of the functionality we implement in |
2180 |
setup.py ourselves. |
2181 |
|
2182 |
* Thuban/UI/classifier.py (ClassGrid.__init__): Set the table |
2183 |
before the selection mode. Doing it the other way round triggers |
2184 |
an assertion in wxWindows. |
2185 |
|
2186 |
* Thuban/Model/save.py (escape): Fix typo in doc-string |
2187 |
|
2188 |
* Thuban/Model/classification.py: Remove unnecessary wxPython |
2189 |
import |
2190 |
|
2191 |
2003-03-04 Jonathan Coles <[email protected]> |
2192 |
|
2193 |
* Thuban/Model/classification.py (ClassGroupRange.GetProperties): |
2194 |
Parameter 'value' should default to None. |
2195 |
|
2196 |
* Thuban/UI/mainwindow.py: Use Layer.GetClassification() since |
2197 |
the class attribute __classification is now private. |
2198 |
|
2199 |
* Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from |
2200 |
Classifier to ClassGrid. Added support for removing selected rows, |
2201 |
which including code for keeping track of when cells are selected, |
2202 |
and deselected. |
2203 |
(ClassTable): Support for added/removing rows. Fixed a problem |
2204 |
with __ParseInput whereby it would not allow strings (only numbers) |
2205 |
to be entered. |
2206 |
(Classifier): Added button and supporting code for removing |
2207 |
selected rows. |
2208 |
|
2209 |
2003-02-27 Jonathan Coles <[email protected]> |
2210 |
|
2211 |
* Thuban/common.py: Moved color conversion functions into |
2212 |
Thuban/UI/common.py. |
2213 |
(Str2Num): Now converts the float (not the string) to a long/int |
2214 |
so that an exception isn't thrown. |
2215 |
|
2216 |
* Thuban/UI/common.py: Common functions used in several UI modules |
2217 |
|
2218 |
* Thuban/Model/classification.py: Changed the class hierarchy |
2219 |
so that a Classification consists of Groups which return |
2220 |
Properties when a value matches a Group. |
2221 |
|
2222 |
* Thuban/Model/layer.py: Fixed name resolution problem. |
2223 |
|
2224 |
* Thuban/Model/load.py: Use new Classification and Group functions. |
2225 |
|
2226 |
* Thuban/Model/save.py (Saver.write_attribs): Fixes a test case |
2227 |
failure. |
2228 |
(Saver.write_classification): Use new Classification and Group |
2229 |
functions. |
2230 |
|
2231 |
* Thuban/UI/classifier.py: Changes to use new Classification and Group |
2232 |
functions. Fix to create a tuple with a single value instead of |
2233 |
simply returning the value. |
2234 |
|
2235 |
* Thuban/UI/renderer.py: Use new Classification and Group functions. |
2236 |
Use common.py functions. |
2237 |
|
2238 |
* Thuban/UI/tree.py: Use common.py functions. |
2239 |
|
2240 |
* test/test_classification.py: Use new Classification and Group |
2241 |
classes. |
2242 |
|
2243 |
2003-02-24 Jonathan Coles <[email protected]> |
2244 |
|
2245 |
* Thuban/common.py (Color2wxColour, wxColour2Color): Conversion |
2246 |
functions from Thuban color objects to wxWindow colour objects. |
2247 |
|
2248 |
* Thuban/Model/classification.py (Classification): Renamed |
2249 |
GetProperties() to GetClassData(). Used the new iterator |
2250 |
in TreeInfo(). |
2251 |
(ClassIterator): Iterator implementation to iterate over the |
2252 |
ClassData objects in a classification object. |
2253 |
|
2254 |
* Thuban/Model/save.py (Saver.write_classificaton): Uses |
2255 |
the new iterator to save the classification information. |
2256 |
|
2257 |
* Thuban/UI/classifier.py (SelectPropertiesDialog): Support |
2258 |
for changing the stroke and fill colors and previewing the |
2259 |
changes. |
2260 |
|
2261 |
* Thuban/UI/mainwindow.py (MainWindow.OpenSession, |
2262 |
MainWindow.SaveSessionAs): Text string changes so the dialogs |
2263 |
have more meaningful titles. |
2264 |
|
2265 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change |
2266 |
Classification method name from GetProperties to GetClassData. |
2267 |
|
2268 |
* Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls |
2269 |
instead of accessing now non-existent class variables. |
2270 |
|
2271 |
2003-02-24 Bernhard Herzog <[email protected]> |
2272 |
|
2273 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove |
2274 |
unneeded Shape() call. Rendering is substantially faster without |
2275 |
it and it avoids some problems with broken shape files. |
2276 |
|
2277 |
2003-02-20 Frank Koormann <[email protected]> |
2278 |
|
2279 |
Force minimal size of identify and label dialogs. The autosizing |
2280 |
looked too ugly. |
2281 |
|
2282 |
* Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns. |
2283 |
* Thuban/UI/labeldialog.py (LabelDialog.dialog_layout): |
2284 |
Set size of listctrl. |
2285 |
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
2286 |
Set size of dialog. |
2287 |
|
2288 |
2003-02-19 Jonathan Coles <[email protected]> |
2289 |
|
2290 |
* test/test_classification.py, test/test_layer.py, |
2291 |
test/test_load.py, test/test_map.py, test/test_session.py: |
2292 |
Updated the tests to use the new functions that are in the |
2293 |
respective classes. |
2294 |
|
2295 |
* Thuban/Model/classification.py (Classification): |
2296 |
Uses the new ClassData* classes. Modification messages are |
2297 |
passed up to the parent layer (if it exists). |
2298 |
(ClassData): New class to encapsulate the common data in each |
2299 |
classification property. |
2300 |
(ClassDataDefault): Represents the Default class. data. |
2301 |
(ClassDataPoint): Represents a single class. data point |
2302 |
(ClassDataRange): Represents a class. range |
2303 |
(ClassDataMap): Represents a class. map (unused). |
2304 |
|
2305 |
* Thuban/Model/color.py: Added Color.None to represent something |
2306 |
with no color. Color.Black represents the color black. |
2307 |
(NoColor): Helper class derived from Color to represent something |
2308 |
with no color. |
2309 |
|
2310 |
* Thuban/Model/layer.py (Layer): Removed references to fill, stroke, |
2311 |
stroke_width attributes. Made the 'classification' attribute private. |
2312 |
New methods for setting/getting the classification. |
2313 |
|
2314 |
* Thuban/Model/load.py (ProcessSession): Use new methods on Layer |
2315 |
to get the classifcation and use the new ClassData* classes to |
2316 |
hold the classification data. Use Str2Num to convert numbers |
2317 |
properly. |
2318 |
|
2319 |
* Thuban/Model/save.py (Saver): Use new Color and Classification |
2320 |
methods |
2321 |
|
2322 |
* Thuban/UI/classifier.py (ClassGrid): New class to represent a |
2323 |
custom grid. |
2324 |
(ClassTable): Support for editing Values and Labels and for |
2325 |
changing what type (point or range) of data is stored in each |
2326 |
property based on how the user enters the data. |
2327 |
(Classifier): Support for saving the new classifications and |
2328 |
launching the dialog to edit a property. |
2329 |
(SelectPropertiesDialog): New class for editing the visual |
2330 |
properties of a classification (stroke color, width, and fill color) |
2331 |
(ClassPreviewer): Took the Draw method from ClassRenderer and |
2332 |
made most of it into this new class. Intend to use this class in |
2333 |
the SelectPropertiesDialog for previewing changes. |
2334 |
|
2335 |
* Thuban/UI/renderer.py: Use new Color and Classification methods. |
2336 |
|
2337 |
* Thuban/UI/tree.py: Formatting changes. |
2338 |
|
2339 |
* Doc/thuban.dtd: Add 'label' element |
2340 |
|
2341 |
* Thuban/common.py: New. Contains common routines used throughout |
2342 |
the code. |
2343 |
(Str2Num): Takes a string and converts it to the "best" type of |
2344 |
number. |
2345 |
|
2346 |
2003-02-14 Bernhard Herzog <[email protected]> |
2347 |
|
2348 |
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |
2349 |
dragging flag is always set to 0 even when the tool implementation |
2350 |
raises an exception |
2351 |
|
2352 |
2003-02-11 Bernhard Herzog <[email protected]> |
2353 |
|
2354 |
* Thuban/UI/application.py (ThubanApplication.splash_screen): New |
2355 |
method to create a splash screen. |
2356 |
(ThubanApplication.ShowMainWindow): New. Show the main window. |
2357 |
Needed so the splash screen can display the mainwindow |
2358 |
(ThubanApplication.OnInit): Call the |
2359 |
new splash_screen method to determine whether the application |
2360 |
should display a splash screen. If it displays a splash screen do |
2361 |
not immediately show the main window. |
2362 |
|
2363 |
2003-02-11 Jonathan Coles <[email protected]> |
2364 |
|
2365 |
* Thuban/Model/classification.py: Added import line to fix |
2366 |
feature conflicts between running on python2.2 and python2.1. |
2367 |
|
2368 |
* Thuban/UI/classifier.py (ClassTable): Didn't need to hang |
2369 |
onto the clinfo parameter, so removed the deepcopy(). |
2370 |
|
2371 |
2003-02-10 Jonathan Coles <[email protected]> |
2372 |
|
2373 |
* Thuban/Model/save.py (Saver.open_element, Saver.close_element): |
2374 |
Added element_open variable to track opening and closing of tags |
2375 |
so that tags that don't span more than one line are closed with |
2376 |
/> instead of </tag_name>. Use the GetDefault*() methods of |
2377 |
the Classification class. |
2378 |
|
2379 |
* Thuban/Model/classification.py (Classificaton): Added set and |
2380 |
get methods for the default data. The class also takes a layer |
2381 |
reference so that modification messages can be sent. Fixed the |
2382 |
methods to use the new ClassData class. |
2383 |
(ClassData): New class to encapsulate the classification data |
2384 |
|
2385 |
* Thuban/Model/layer.py (Layer): Remove the |
2386 |
Set[Fill|Stroke|StrokeWidth]() methods. Code should call the |
2387 |
SetDefault*() methods on the layer's classification object. |
2388 |
(Layer.__init__): Use the new SetDefault*() methods in the |
2389 |
Classification class. |
2390 |
|
2391 |
* Thuban/Model/load.py (ProcessSession): Use the new ClassData |
2392 |
object instead of a dictionary. |
2393 |
|
2394 |
* Thuban/UI/classifier.py (ClassRenderer): New class to |
2395 |
draw the classifications in the dialog box's table. |
2396 |
(Classifier): Modified to use the ClassRenderer class. |
2397 |
|
2398 |
* Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*() |
2399 |
methods of the Classification class. |
2400 |
|
2401 |
* Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods |
2402 |
of the ClassData class. |
2403 |
|
2404 |
* test/test_classification.py, test/test_layer.py, |
2405 |
test/test_map.py, test/test_session.py: Fix the tests to work |
2406 |
with the above code changes. |
2407 |
|
2408 |
2003-02-03 Jonathan Coles <[email protected]> |
2409 |
|
2410 |
* Thuban/Model/classification.py (Classification): Added getNull() |
2411 |
to return the NullData reference |
2412 |
|
2413 |
* Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke, |
2414 |
Layer.SetStrokeWidth): Modified these functions to change the |
2415 |
null data in the classification rather than keep these values |
2416 |
directly in the Layer class. Menu options to change these values |
2417 |
work again. |
2418 |
|
2419 |
2003-01-28 Jonathan Coles <[email protected]> |
2420 |
|
2421 |
* Thuban/UI/classifier.py (Classifier): Resolved merging conflicts. |
2422 |
Fixed crashing problem on some systems. Dialog box shows |
2423 |
classification data. |
2424 |
|
2425 |
* Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing |
2426 |
Colors in the tree view. |
2427 |
|
2428 |
* Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build |
2429 |
the tree info for classifications. Commented out unnecessary lines. |
2430 |
|
2431 |
* Thuban/Model/classification.py (Classification.TreeInfo): New |
2432 |
function to add information about the classification into the |
2433 |
tree view. |
2434 |
|
2435 |
2003-01-27 Jan-Oliver Wagner <[email protected]> |
2436 |
|
2437 |
* Thuban/__init__.py (_): New. |
2438 |
|
2439 |
* Thuban/Model/classification.py, Thuban/Model/extension.py, |
2440 |
Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py, |
2441 |
Thuban/Model/session.py, Thuban/UI/application.py, |
2442 |
Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py, |
2443 |
Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py, |
2444 |
Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py, |
2445 |
Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py, |
2446 |
Thuban/Lib/fileutil.py: Replace user string by _() for i18n. |
2447 |
|
2448 |
2003-01-27 Jonathan Coles <[email protected]> |
2449 |
|
2450 |
* Thuban/Model/layer.py: Classification initialization calls. |
2451 |
|
2452 |
* Thuban/Model/classification.py: Created class to encapsulate |
2453 |
a layer classification. Supports specific data points and |
2454 |
ranges. |
2455 |
|
2456 |
* Thuban/Model/load.py: Added support for loading classification |
2457 |
information. |
2458 |
|
2459 |
* Thuban/Model/save.py: Added support for saving classification |
2460 |
information. |
2461 |
|
2462 |
* Thuban/UI/classifier.py: Initial class for a dialog box for |
2463 |
specifying classification information. |
2464 |
|
2465 |
* Thuban/UI/mainwindows.py: Support for opening the classifier |
2466 |
dialog. |
2467 |
|
2468 |
* Thuban/UI/renderer.py: Support for drawing a layer with the |
2469 |
classification information. |
2470 |
|
2471 |
* Data/iceland_sample_class.thuban: iceland_sample with |
2472 |
classification data. |
2473 |
|
2474 |
* test/test_classification: Tests for the Classification class. |
2475 |
|
2476 |
2002-12-09 Bernhard Herzog <[email protected]> |
2477 |
|
2478 |
* test/test_command.py: New. Tests for the command classes. |
2479 |
|
2480 |
* Thuban/UI/command.py (ToolCommand): New class for tool commands. |
2481 |
(Command.IsTool): New method to distinguish between command |
2482 |
switching tools and other commands. |
2483 |
|
2484 |
* Thuban/UI/view.py (MapCanvas.SelectTool): New method to select |
2485 |
the tool to avoid direct assignments to instance variables |
2486 |
(MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool) |
2487 |
(MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to |
2488 |
change the tool |
2489 |
|
2490 |
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an |
2491 |
active tool's command turns insensitive, disable the tool. |
2492 |
(_tool_command): Use the new ToolCommand class |
2493 |
|
2494 |
* Examples/simple_extensions/simple_tool.py (simple_tool): Use the |
2495 |
SelectTool method to change the tool |
2496 |
(iconfile): Use the ToolCommand class |
2497 |
|
2498 |
2002-12-03 Bernhard Herzog <[email protected]> |
2499 |
|
2500 |
* Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle |
2501 |
the case of selected items that are not children of Layers or Maps |
2502 |
properly. Previously this bug would trigger an assertion in |
2503 |
wxWindows. |
2504 |
|
2505 |
2002-11-06 Frank Koormann <[email protected]> |
2506 |
|
2507 |
* Thuban/UI/mainwindow.py: Altered the order of tools in the |
2508 |
toolbar: First now are all navigation tools (Zoom In/Out, Pan, |
2509 |
Full Extent). |
2510 |
|
2511 |
2002-10-23 Bernhard Herzog <[email protected]> |
2512 |
|
2513 |
* setup.py (setup call): version now 0.1.3 |
2514 |
|
2515 |
* MANIFEST.in: Add the files in test/ |
2516 |
|
2517 |
* test/README: Add note about tests requiring the iceland data |
2518 |
|
2519 |
* Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to |
2520 |
copyright notice. |
2521 |
|
2522 |
2002-10-18 Bernhard Herzog <[email protected]> |
2523 |
|
2524 |
* test/test_map.py |
2525 |
(TestMapWithContents.test_projected_bounding_box): Use an explicit |
2526 |
epsilon. |
2527 |
|
2528 |
* test/support.py (FloatComparisonMixin.assertFloatEqual) |
2529 |
(FloatComparisonMixin.assertFloatSeqEqual): give a more useful |
2530 |
message if the assertion fails and don't return the return value |
2531 |
of self.assert_. In assertFloatSeqEqual the return meant that not |
2532 |
all items of the sequence were compared. |
2533 |
|
2534 |
2002-09-20 Bernhard Herzog <[email protected]> |
2535 |
|
2536 |
* test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil |
2537 |
|
2538 |
* Thuban/Lib/fileutil.py: Fixup some whitespace and typos |
2539 |
|
2540 |
* test/test_map.py (TestMapWithContents.test_tree_info): Create |
2541 |
the string with the bounding box on the fly because of platform |
2542 |
differences in the way %g is handled. |
2543 |
|
2544 |
* test/test_layer.py (TestLayer.test_empty_layer): Create an empty |
2545 |
DBFfile too because Thuban layers can't yet cope missing DBF |
2546 |
files. |
2547 |
|
2548 |
2002-09-20 Bernhard Herzog <[email protected]> |
2549 |
|
2550 |
* test/test_menu.py: Use initthuban instead of |
2551 |
add_thuban_dir_to_path to initialize Thuban. |
2552 |
|
2553 |
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
2554 |
Mixin class for float comparisons |
2555 |
(SubscriberMixin): New. Mixin class to test messages sent through |
2556 |
the Connector class |
2557 |
|
2558 |
* test/README: Fix a typo and add the -v flag to the command for |
2559 |
individual tests |
2560 |
|
2561 |
* test/test_session.py: New. Test cases for Thuban.Model.session |
2562 |
|
2563 |
* test/test_proj.py: New. Test cases for Thuban.Model.proj |
2564 |
|
2565 |
* test/test_map.py: New. Test cases for Thuban.Model.map |
2566 |
|
2567 |
* test/test_layer.py: New. Test cases for Thuban.Model.layer |
2568 |
|
2569 |
* test/test_label.py: New. Test cases for Thuban.Model.label |
2570 |
|
2571 |
* test/test_connector.py: New. Test cases for Thuban.Lib.connector |
2572 |
|
2573 |
* test/test_color.py: New. Test cases for Thuban.Model.color |
2574 |
|
2575 |
* test/test_base.py: New. Test cases for Thuban.Model.base |
2576 |
|
2577 |
2002-09-13 Bernhard Herzog <[email protected]> |
2578 |
|
2579 |
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
2580 |
the CHANGED channel too. |
2581 |
|
2582 |
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
2583 |
CHANGED channel too. |
2584 |
(Map.__init__): Call the Modifiable constructor as well. |
2585 |
|
2586 |
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
2587 |
event if the modified flag changes. |
2588 |
(Modifiable.changed): Tweak the doc-string. |
2589 |
|
2590 |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
2591 |
(MainWindow.set_position_text): Put the code that puts the text |
2592 |
with the mouse position into the status bar into the new method |
2593 |
set_position_text so that it can overwritten in derived classes. |
2594 |
|
2595 |
2002-09-12 Bernhard Herzog <[email protected]> |
2596 |
|
2597 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
2598 |
message box on the main window. |
2599 |
|
2600 |
2002-09-11 Bernhard Herzog <[email protected]> |
2601 |
|
2602 |
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
2603 |
the 'E' because it's less likely to interfere with other menu |
2604 |
entries. |
2605 |
(MainWindow.build_menu): remove an incorrect comment. |
2606 |
|
2607 |
2002-09-10 Bernhard Herzog <[email protected]> |
2608 |
|
2609 |
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
2610 |
(_tool_command): Add sensitive parameter |
2611 |
(_has_visible_map): Sensitivity callback to tools and other |
2612 |
commands that require a visible map. Use it in map_zoom_in_tool, |
2613 |
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
2614 |
and map_full_extent |
2615 |
|
2616 |
2002-09-06 Bernhard Herzog <[email protected]> |
2617 |
|
2618 |
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
2619 |
VIEW_POSITION |
2620 |
|
2621 |
2002-09-04 Frank Koormann <[email protected]> |
2622 |
|
2623 |
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
2624 |
|
2625 |
2002-09-02 Bernhard Herzog <[email protected]> |
2626 |
|
2627 |
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
2628 |
wxWindows already and our implementation doesn't work correctly |
2629 |
with wxGTK 2.3: |
2630 |
(MapCanvas.__init__): Remove the instance variable |
2631 |
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
2632 |
be drawin |
2633 |
(MapCanvas.OnIdle): Removed. |
2634 |
|
2635 |
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
2636 |
a parameter to determine the size of the rectangle. |
2637 |
(MapCanvas.find_shape_at): Create the box around the point on a |
2638 |
layer by layer basis and make the size depend on the shape type. |
2639 |
This solves a problem with the selection of point shapes at the |
2640 |
border of the layer's bounding box |
2641 |
|
2642 |
2002-08-30 Bernhard Herzog <[email protected]> |
2643 |
|
2644 |
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
2645 |
for the sensitivity of remove layer. |
2646 |
(_can_remove_layer): New. Sensitivity callback for remove layer |
2647 |
(Command layer_remove): Use _can_remove_layer |
2648 |
|
2649 |
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
2650 |
determine whether a given layer can be deleted. |
2651 |
|
2652 |
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
2653 |
(MapCanvas.do_redraw): Get rid of the unused update_region |
2654 |
instance variable |
2655 |
|
2656 |
* Thuban/UI/view.py: Add/update some doc-strings. |
2657 |
|
2658 |
* test/: new subdirectory with a bunch of unit tests. |
2659 |
|
2660 |
* test/README, test/test_table.py, test/test_save.py, |
2661 |
test/test_menu.py, test/test_load.py: Initial set of tests and |
2662 |
brief instructions on how to run them |
2663 |
|
2664 |
2002-08-29 Bernhard Herzog <[email protected]> |
2665 |
|
2666 |
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle |
2667 |
arcs with multiple parts. |
2668 |
|
2669 |
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
2670 |
Handle degenrate rectangles. |
2671 |
|
2672 |
* Thuban/Model/table.py: Make writing records work correctly: |
2673 |
(Table.__init__): Keep track of whether the DBF is open for |
2674 |
writing |
2675 |
(Table.write_record): Open the DBF file for writing when necessary |
2676 |
|
2677 |
2002-08-27 Bernhard Herzog <[email protected]> |
2678 |
|
2679 |
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
2680 |
dbf files only for reading by default. Use a new writable dbf |
2681 |
object for writing. |
2682 |
|
2683 |
2002-08-26 Bernhard Herzog <[email protected]> |
2684 |
|
2685 |
* Thuban/UI/mainwindow.py: Refactor the context creation: |
2686 |
(MainWindow.Context): New method to return a context |
2687 |
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
2688 |
new method |
2689 |
|
2690 |
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
2691 |
layer table specific code from TableGrid into LayerTableGrid |
2692 |
(TableFrame, LayerTableFrame): Split the layer table specific code |
2693 |
from TableFrame into LayerTableFrame |
2694 |
(LayerTableGrid.select_shape): Remove a debug print |
2695 |
|
2696 |
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
2697 |
LayerTableFrame |
2698 |
|
2699 |
2002-08-23 Bernhard Herzog <[email protected]> |
2700 |
|
2701 |
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
2702 |
absolute filename. |
2703 |
|
2704 |
2002-08-22 Bernhard Herzog <[email protected]> |
2705 |
|
2706 |
* Thuban/Model/table.py (Table.write_record): New method to write |
2707 |
records. |
2708 |
(Table.__init__): Open the DBF file for writing too. |
2709 |
|
2710 |
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
2711 |
into the underlying table. |
2712 |
|
2713 |
* extensions/shapelib/shapefil.h (DBFCommit), |
2714 |
extensions/shapelib/dbfopen.c (DBFCommit): New API function to |
2715 |
commit any changes made to the DBF file. |
2716 |
|
2717 |
* Thuban/UI/mainwindow.py (make_check_current_tool) |
2718 |
(_tool_command): Put the code that generates the "checked" |
2719 |
callback into a separate function so that we can reuse it |
2720 |
elsewhere |
2721 |
|
2722 |
* Thuban/Model/save.py (Saver): New class to handle serializing a |
2723 |
session into an XML file. The main reason to introduce a class is |
2724 |
that applications built on Thuban can derive from it so that they |
2725 |
can save additional information in a session file. |
2726 |
(save_session): Delegate almost all the work to the Saver class. |
2727 |
Rename the filename argument to file because it may be a file like |
2728 |
object now. |
2729 |
|
2730 |
* Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility |
2731 |
code. Remove the little test code which would be executed when the |
2732 |
module is run as a script which didn't work anymore since it can't |
2733 |
import the other Thuban modules. |
2734 |
(ProcessSession, load_session): Refactor the ProcessSession to |
2735 |
have one method for each element start and end tag so that derived |
2736 |
classes can easily override the processing of individual tags. |
2737 |
Also, always parse with namespaces enabled because applications |
2738 |
built on top of Thuban will likely use namespaces if they extend |
2739 |
the session file format. |
2740 |
|
2741 |
2002-08-21 Bernhard Herzog <[email protected]> |
2742 |
|
2743 |
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
2744 |
because thubaninit_contents will do it for us. |
2745 |
|
2746 |
2002-08-16 Jan-Oliver Wagner <[email protected]> |
2747 |
|
2748 |
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
2749 |
tree window already open |
2750 |
|
2751 |
2002-08-15 Bernhard Herzog <[email protected]> |
2752 |
|
2753 |
* Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method |
2754 |
with self. |
2755 |
|
2756 |
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse |
2757 |
when we have actually captured it. |
2758 |
|
2759 |
* Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the |
2760 |
shapefile and destroy the table. |
2761 |
|
2762 |
* Thuban/Model/table.py (Table.Destroy): New. Close the DBF file. |
2763 |
|
2764 |
2002-08-14 Bernhard Herzog <[email protected]> |
2765 |
|
2766 |
* Thuban/UI/controls.py (RecordTable.__init__): Remove the unused |
2767 |
instance variable columns |
2768 |
(RecordTable.GetTypeName): row and col may be negative in some |
2769 |
cases. |
2770 |
|
2771 |
* setup.py (InstallLocal.initialize_options) |
2772 |
(InstallLocal.finalize_options, InstallLocal.user_options): New |
2773 |
option create-init-file to build a thubaninit.py when running |
2774 |
install_local |
2775 |
(InstallLocal.run): Create the thubaninit.py module when requested |
2776 |
(thubaninit_contents): Split the template into several parts and |
2777 |
create a new function thubaninit_contents that creates the |
2778 |
contents of a thubaninit module. |
2779 |
(ThubanInstall.run): Use the new function to create the thubaninit |
2780 |
module. |
2781 |
|
2782 |
2002-07-30 Bernhard Herzog <[email protected]> |
2783 |
|
2784 |
* Thuban/UI/application.py (ThubanApplication.OnExit): Do some |
2785 |
cleanup. |
2786 |
(ThubanApplication.MainLoop): Extend to automatically call OnExit. |
2787 |
|
2788 |
* Thuban/Model/session.py (Session.Destroy): Don't bypass the |
2789 |
direct base class' Destroy method. |
2790 |
|
2791 |
* Thuban/Model/map.py (Map.ClearLayers): New method to delete all |
2792 |
layers. |
2793 |
(Map.Destroy): Destroy the label_layer as well and call the |
2794 |
inherited Desatroymethod first so that no more messages are |
2795 |
issued. |
2796 |
(Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED |
2797 |
message if the stacking order actually has changed. Add |
2798 |
doc-strings. |
2799 |
(Map.BoundingBox): Correct the doc-string. |
2800 |
(Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers) |
2801 |
(Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings. |
2802 |
|
2803 |
* Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete |
2804 |
all labels. |
2805 |
|
2806 |
2002-07-29 Bernhard Herzog <[email protected]> |
2807 |
|
2808 |
* Thuban/Model/map.py (Map.subscribe_layer_channels) |
2809 |
(Map.unsubscribe_layer_channels): Put the code that (un)subscribes |
2810 |
to a layer's channels into separate methods. |
2811 |
(Map.RemoveLayer, Map.AddLayer): Call the new methods |
2812 |
(Map.Destroy): Unsubscribe from a layer's channels before |
2813 |
destroying it. |
2814 |
|
2815 |
* Thuban/UI/view.py (MapCanvas.find_shape_at): Change the |
2816 |
selected_layer parameter to searched_layer which is the layer to |
2817 |
search in. |
2818 |
(MapCanvas.SelectShapeAt): New parameter layer to restrict the |
2819 |
search to that layer. Return the selected layer and shape. |
2820 |
|
2821 |
* Examples/simple_extensions/simple_tool.py (simple_tool): Fix a |
2822 |
typo |
2823 |
|
2824 |
2002-07-24 Bernhard Herzog <[email protected]> |
2825 |
|
2826 |
* Thuban/UI/application.py (ThubanApplication.create_session): |
2827 |
Extend the doc string. |
2828 |
(ThubanApplication.subscribe_session) |
2829 |
(ThubanApplication.unsubscribe_session): New methods to |
2830 |
subscribe/unsubscribe to/from session channels. |
2831 |
(ThubanApplication.SetSession): Call the new methods here. |
2832 |
(ThubanApplication.maps_changed, ThubanApplication.set_map): |
2833 |
Renamed set_map to maps_changed. Its now a subscriber for |
2834 |
MAPS_CHANGED. |
2835 |
|
2836 |
* Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct |
2837 |
x-coordinate in case of simple clicks |
2838 |
|
2839 |
* Thuban/Model/base.py (Modifiable.changed): Apply the args tuple, |
2840 |
don't pass it as a parameter |
2841 |
|
2842 |
* Thuban/Model/session.py (Session.RemoveMap): New |
2843 |
|
2844 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial |
2845 |
window size into a parameter. |
2846 |
|
2847 |
2002-07-23 Bernhard Herzog <[email protected]> |
2848 |
|
2849 |
* Thuban/UI/menu.py (Menu.item_index): Also search for menus not |
2850 |
just commands. |
2851 |
|
2852 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Change the |
2853 |
parameter list a bit to allow setting the window title and the |
2854 |
initial message in the status bar. Update the callers. |
2855 |
|
2856 |
* Thuban/UI/application.py (ThubanApplication.OnInit) |
2857 |
(ThubanApplication.CreateMainWindow): Put the mainwindow |
2858 |
instantiation into a separate method so that it can be overridden |
2859 |
by a subclass. |
2860 |
|
2861 |
2002-07-19 Bernhard Herzog <[email protected]> |
2862 |
|
2863 |
* Thuban/Model/session.py: Issue a CHANGED message every time |
2864 |
another changed message is issued to make it easier to get |
2865 |
notified of changes. |
2866 |
(Session): Update the doc string |
2867 |
(Session.forward): Issue changed-events as CHANGED as well. |
2868 |
(Session.changed): Overwrite the inherited version to issue |
2869 |
CHANGED events as well. |
2870 |
|
2871 |
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
2872 |
CHANGED channel to be informed of changes. |
2873 |
(SessionTreeCtrl.session_channels): Not needed any longer. |
2874 |
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
2875 |
Only have to (un)subscribe CHANGED |
2876 |
|
2877 |
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
2878 |
|
2879 |
* Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around |
2880 |
for the wxPython locale bug to __init__.py so that it's |
2881 |
automatically executed by anybody using UI code from Thuban. |
2882 |
|
2883 |
2002-07-18 Bernhard Herzog <[email protected]> |
2884 |
|
2885 |
* Thuban/UI/main.py (main): app no longer needs to be global |
2886 |
|
2887 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add application |
2888 |
as parameter and store it in an instance variable |
2889 |
(MainWindow.invoke_command, MainWindow.update_command_ui) |
2890 |
(MainWindow.save_modified_session, MainWindow.NewSession) |
2891 |
(MainWindow.OpenSession, MainWindow.SaveSession) |
2892 |
(MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's |
2893 |
application object. |
2894 |
|
2895 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate |
2896 |
the main window with self. |
2897 |
|
2898 |
* Thuban/UI/context.py: New module with the context class |
2899 |
|
2900 |
* Thuban/UI/command.py (Command): Update doc string. |
2901 |
|
2902 |
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
2903 |
MainWindow.update_command_ui): Pass an instance of the context |
2904 |
class to the command's methods |
2905 |
(check_current_tool, call_method): Handle the new context |
2906 |
implementation |
2907 |
|
2908 |
* Examples/simple_extensions/simple_tool.py (simple_tool, |
2909 |
check_simple_tool): Handle the new context implementation |
2910 |
|
2911 |
* Examples/simple_extensions/simple_command.py (simple_command): |
2912 |
Handle the new context implementation. Update the comments about |
2913 |
the context. |
2914 |
|
2915 |
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
2916 |
doc-string |
2917 |
(ThubanApplication.Session): New method to return the session |
2918 |
object |
2919 |
|
2920 |
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
2921 |
interactor's selected_layer may not be a layer of the current |
2922 |
session when the tree is updated while a new session is being set. |
2923 |
|
2924 |
2002-07-17 Bernhard Herzog <[email protected]> |
2925 |
|
2926 |
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
2927 |
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
2928 |
update_tree into update_tree and add_items. The tree now uses a |
2929 |
more generic way to display the contents of the tree. |
2930 |
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
2931 |
|
2932 |
* Thuban/Model/layer.py (Layer.TreeInfo), |
2933 |
Thuban/Model/extension.py (Extension.TreeInfo), |
2934 |
Thuban/Model/map.py (Map.TreeInfo), |
2935 |
Thuban/Model/session.py (Session.TreeInfo): |
2936 |
Add TreeInfo methods to implement the new tree view update scheme |
2937 |
|
2938 |
2002-07-16 Bernhard Herzog <[email protected]> |
2939 |
|
2940 |
* Thuban/UI/application.py: Don't use "import from" for the |
2941 |
MainWindow. It can't always be resolved. |
2942 |
(ThubanApplication.OnInit): change reference to MainWindow |
2943 |
accordingly. |
2944 |
|
2945 |
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
2946 |
completely |
2947 |
|
2948 |
2002-07-10 Bernhard Herzog <[email protected]> |
2949 |
|
2950 |
* setup.py (create_init_module): New configurable variable whose |
2951 |
default depends on the platform we're running on. |
2952 |
(ThubanInstall.initialize_options): Initialize |
2953 |
self.create_init_module from the global create_init_module |
2954 |
(ThubanInstall.user_options): indictate that the options |
2955 |
create-init-module and init-module-dir have arguments. |
2956 |
|
2957 |
* setup.py: In the setup call change the version number to include |
2958 |
cvs. |
2959 |
|
2960 |
* MANIFEST.in: Add the files in Examples |
2961 |
|
2962 |
2002-07-09 Bernhard Herzog <[email protected]> |
2963 |
|
2964 |
* setup.py: In the setup call, use the thuban homepage as the |
2965 |
value of the url parameter. |
2966 |
|
2967 |
* Examples: New subdirectory for examples. |
2968 |
|
2969 |
* Examples/simple_extensions/simple_tool.xpm, |
2970 |
Examples/simple_extensions/simple_tool.py, |
2971 |
Examples/simple_extensions/simple_command.py, |
2972 |
Examples/simple_extensions/README: Simple examples showing how to |
2973 |
add new commands and tools. |
2974 |
|
2975 |
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
2976 |
bdist_rpm that we also have an install script. |
2977 |
(bdist_inno): Add 2002 to the copyright notice. |
2978 |
|
2979 |
* setup.py: Create a file in python's site-packages directory to |
2980 |
make installation of Thuban as a library easier. |
2981 |
(ThubanInstall.user_options): Add two new options, |
2982 |
create-init-module and init-module-dir |
2983 |
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
2984 |
filenames for installation in the default directories. |
2985 |
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
2986 |
the inherited methods to capture some filenames before they're |
2987 |
transformed too much by distutils. |
2988 |
(ThubanInstall.run): Create the init module if requested. |
2989 |
(ThubanInstall.thuban_init_filename): New method to return the |
2990 |
full name of the init module. |
2991 |
(ThubanInstall.get_outputs): Append the filename of the init |
2992 |
module. |
2993 |
|
2994 |
2002-07-08 Bernhard Herzog <[email protected]> |
2995 |
|
2996 |
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
2997 |
handle the prefix properly which means that the default for the |
2998 |
installation prefix should be /usr for RPMs and /usr/local when |
2999 |
doing a normal source install. |
3000 |
(bdist_rpm_install_script): Script to override the default install |
3001 |
commands in the specfile generated by the bdist_rpm command. |
3002 |
(thuban_bdist_rpm.user_options): Add a prefix option |
3003 |
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
3004 |
Create the script files for the spec files as empty files here |
3005 |
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
3006 |
to fill the script files with content. |
3007 |
|
3008 |
* Thuban/Model/save.py (relative_filename): Wrapper around |
3009 |
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
3010 |
argument. save_session now automatically uses this version, |
3011 |
solving a problem when saving to a relative filename. |
3012 |
|
3013 |
* setup.py: In the setup call, make sure that the library |
3014 |
directories are under $prefix/lib not directly under $prefix. |
3015 |
|
3016 |
2002-06-20 Jan-Oliver Wagner <[email protected]> |
3017 |
|
3018 |
* Thuban/Model/extension.py: new module to handle extension objects. |
3019 |
* Thuban/Model/messages.py: new messages for extensions. |
3020 |
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
3021 |
Session.AddExtension): new for handling extensions. |
3022 |
Also some other minor changes to round up extension handling. |
3023 |
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
3024 |
of Extension titles and title and names of its objects. |
3025 |
|
3026 |
2002-05-29 Bernhard Herzog <[email protected]> |
3027 |
|
3028 |
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
3029 |
the events for a command. |
3030 |
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
3031 |
Call bind_command_events to bind the events. add_toolbar_command |
3032 |
can now bind events too so that it's possible to have commands |
3033 |
that are only available through the toolbar. |
3034 |
(MainWindow.init_ids): New instance variable events_bound to keep |
3035 |
track of for which commands events have been bound. |
3036 |
|
3037 |
2002-05-28 Bernhard Herzog <[email protected]> |
3038 |
|
3039 |
* Thuban/UI/menu.py: New module to build and manage menus. |
3040 |
|
3041 |
* Thuban/UI/mainwindow.py: Remove some unused imports. |
3042 |
(MainWindow.__init__, main_menu): move the definition of the main |
3043 |
menu from __init__ to the Menu instance main_menu. |
3044 |
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
3045 |
build the menu bar and sub-menus from a menu description. |
3046 |
|
3047 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
3048 |
startup file |
3049 |
(ThubanApplication.read_startup_files): New method to run |
3050 |
~/.thuban/thubanstart.py |
3051 |
|
3052 |
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
3053 |
Move the toolbar definition to the Menu instance main_toolbar. |
3054 |
(MainWindow.build_toolbar): New method to build the toolbar |
3055 |
similar to the build_menu methods |
3056 |
|
3057 |
2002-05-23 Bernhard Herzog <[email protected]> |
3058 |
|
3059 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
3060 |
layer_outline_color. Fix it in the definition of the command too. |
3061 |
|
3062 |
* Thuban/UI/command.py (Command): Fix typo in doc string |
3063 |
|
3064 |
2002-05-22 Bernhard Herzog <[email protected]> |
3065 |
|
3066 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
3067 |
in the docstring |
3068 |
|
3069 |
2002-05-15 Bernhard Herzog <[email protected]> |
3070 |
|
3071 |
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
3072 |
when the shapefile is empty. |
3073 |
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
3074 |
now return None for empty shapefiles. Update doc-strings. |
3075 |
|
3076 |
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
3077 |
the layer's bbox being None. |
3078 |
|
3079 |
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
3080 |
layer's bbox being None. |
3081 |
|
3082 |
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
3083 |
necessary. |
3084 |
(MapCanvas.__init__): New instance variables, last_selected_layer |
3085 |
and last_selected_shape to determine how the selection has |
3086 |
changed. |
3087 |
|
3088 |
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
3089 |
AutoSizeColumns because it will cause a traversal of the entire |
3090 |
table which for large .dbf files will take a very long time. |
3091 |
|
3092 |
2002-05-14 Bernhard Herzog <[email protected]> |
3093 |
|
3094 |
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
3095 |
maximum depth for the tree than shapelib does by default. |
3096 |
|
3097 |
2002-05-10 Bernhard Herzog <[email protected]> |
3098 |
|
3099 |
* setup.py (py_modules): The shptree modules doesn't have a |
3100 |
wrapper, so don't include it in the py_modules |
3101 |
|
3102 |
2002-05-08 Bernhard Herzog <[email protected]> |
3103 |
|
3104 |
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
3105 |
const void * as in the qsort prototype |
3106 |
(SHPTreeFindLikelyShapes): Remove some unused variables. |
3107 |
|
3108 |
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
3109 |
maintains to redraw the window during a drag. |
3110 |
(MapCanvas.unprojected_rect_around_point): New method to determine |
3111 |
a small region around a point for hit-testing. |
3112 |
(MapCanvas.find_shape_at): Only test the shapes in a small region |
3113 |
around the point. |
3114 |
|
3115 |
* setup.py: Increment the version to 0.1.2 |
3116 |
|
3117 |
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
3118 |
debug print and set session to None after unsubscribing |
3119 |
|
3120 |
2002-05-07 Bernhard Herzog <[email protected]> |
3121 |
|
3122 |
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
3123 |
the file to have a .thuban extension. |
3124 |
|
3125 |
* Thuban/UI/tree.py (session_channels): New class constant with |
3126 |
all the session channels to subscribe to to update the tree |
3127 |
(SessionTreeCtrl.session_changed): Remember the session so that we |
3128 |
can unsubscribe properly. Use the new class constant to |
3129 |
unsubscribe from the old session and subscribe to the new one. |
3130 |
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
3131 |
subscriptions of the SessionTreeCtrl. |
3132 |
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
3133 |
|
3134 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
3135 |
Session Tree" command to the file menu. |
3136 |
|
3137 |
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
3138 |
as update_region to the renderer. |
3139 |
|
3140 |
* Thuban/UI/renderer.py |
3141 |
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
3142 |
update box is now directly a tuple, not a wxRect anymore. |
3143 |
|
3144 |
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
3145 |
prints. |
3146 |
|
3147 |
2002-05-07 Bernhard Herzog <[email protected]> |
3148 |
|
3149 |
* setup.py: Add the shptree extension module. See |
3150 |
extensions/pyshapelib/ChangeLog for more details. |
3151 |
|
3152 |
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
3153 |
extensions/shapelib/dbfopen.c: Really update to the versions of |
3154 |
shapelib 1.2.9. For some reason it wasn't really done on |
3155 |
2002-04-11. |
3156 |
|
3157 |
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
3158 |
shapelib 1.2.9. The only real difference is the use of qsort |
3159 |
instead of a bubble sort implementation |
3160 |
|
3161 |
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
3162 |
shapetree to hold the shapelib quadtree for the shapefile |
3163 |
(Layer.open_shapefile): Create the quad tree. |
3164 |
(Layer.ShapesInRegion): New method to return the ids of shapes in |
3165 |
a given region using the quad tree. |
3166 |
|
3167 |
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
3168 |
comment |
3169 |
(draw_polygon_shape): Accept both arcs and polygons. |
3170 |
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
3171 |
the api. |
3172 |
|
3173 |
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
3174 |
return the shape ids to be rendered in a given layer. |
3175 |
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
3176 |
ids. Use draw_polygon_shape to draw arc shapes as well. |
3177 |
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
3178 |
has to be updated |
3179 |
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
3180 |
calling it's ShapesInRegion method. |
3181 |
|
3182 |
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
3183 |
update_region for the update region. |
3184 |
(MapCanvas.OnPaint): Maintain the update region |
3185 |
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
3186 |
to the renderer when drawing the bitmap. Reset the update_region. |
3187 |
|
3188 |
2002-05-03 Bernhard Herzog <[email protected]> |
3189 |
|
3190 |
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
3191 |
MainWindow.OpenSession): Change the file extension of the session |
3192 |
files to .thuban |
3193 |
|
3194 |
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
3195 |
Move the map channels to be forwarded by the session into the |
3196 |
class constant with forwarded_channels. Also add |
3197 |
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
3198 |
forwarded_channels |
3199 |
|
3200 |
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
3201 |
typo and some rewording). |
3202 |
|
3203 |
2002-05-02 Bernhard Herzog <[email protected]> |
3204 |
|
3205 |
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
3206 |
around to speed up most redraws: |
3207 |
(MapCanvas.__init__): New instance variable bitmap which holds the |
3208 |
bitmap |
3209 |
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
3210 |
self.bitmap to draw. |
3211 |
(MapCanvas.full_redraw): New method to force a full redraw |
3212 |
including the bitmap |
3213 |
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
3214 |
make sure the bitmap is redrawn. |
3215 |
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
3216 |
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
3217 |
make sure the bitmap is redrawn. |
3218 |
(MapCanvas.OnSize): New method to handle size events so that the |
3219 |
bitmap can be redrawn. |
3220 |
|
3221 |
2002-04-29 Bernhard Herzog <[email protected]> |
3222 |
|
3223 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
3224 |
canvas' VIEW_POSITION event |
3225 |
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
3226 |
Update the text in the status-bar accordingly. |
3227 |
|
3228 |
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
3229 |
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
3230 |
called. |
3231 |
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
3232 |
current_position |
3233 |
(MapCanvas.set_current_position): New method to set |
3234 |
current_position. Issue a VIEW_POSITION event |
3235 |
(MapCanvas.CurrentPosition): New public method to return the value |
3236 |
of current_position. Should be called when the VIEW_POSITION event |
3237 |
is processed. |
3238 |
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
3239 |
Update the position. |
3240 |
(MapCanvas.OnLeaveWindow): Set the position to None. |
3241 |
|
3242 |
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
3243 |
position in the statusbar |
3244 |
|
3245 |
2002-04-26 Frank Koormann <[email protected]> |
3246 |
|
3247 |
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
3248 |
|
3249 |
2002-04-24 Frank Koormann <[email protected]> |
3250 |
|
3251 |
* Resources/Bitmaps/identify.xpm: shadow added |
3252 |
|
3253 |
* Resources/Bitmaps/fullextent.xpm: new |
3254 |
|
3255 |
2002-04-22 Jan-Oliver Wagner <[email protected]> |
3256 |
|
3257 |
* Thuban/UI/tree.py (update_tree): added test for None on map bounding |
3258 |
box |
3259 |
|
3260 |
2002-04-21 Jan-Oliver Wagner <[email protected]> |
3261 |
|
3262 |
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
3263 |
|
3264 |
* Thuban/UI/tree.py (update_tree): added added map extent |
3265 |
|
3266 |
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
3267 |
icon; added map_full_extend as tool |
3268 |
|
3269 |
2002-04-19 Jan-Oliver Wagner <[email protected]> |
3270 |
|
3271 |
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
3272 |
saving _new_ sessions |
3273 |
|
3274 |
* Thuban/Model/session.py (create_empty_session): new session |
3275 |
don't have a filename (set to None) |
3276 |
|
3277 |
* Thuban/UI/tree.py (update_tree): added filename and modified flag |
3278 |
|
3279 |
* Thuban/Model/load.py (ProcessSession): convert projection |
3280 |
parameters from unicode to regular string |
3281 |
|
3282 |
* Data/iceland_sample.session: Added UTM Zone 26 projection. |
3283 |
|
3284 |
2002-04-11 Bernhard Herzog <[email protected]> |
3285 |
|
3286 |
* extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c, |
3287 |
extensions/shapelib/dbfopen.c: Update to the versions of shapelib |
3288 |
1.2.9 |
3289 |
|
3290 |
* setup.py (Lib.wxproj extension): Don't link shpopen.c and put |
3291 |
the pyshapelib directoy into the list of include dirs, so that |
3292 |
pyshapelib_api.h can be found. |
3293 |
|
3294 |
* extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that |
3295 |
holds the pyshapelib C-API |
3296 |
(draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use |
3297 |
pyshapelib_api to access the shapelib functions. |
3298 |
(initwxproj): Import the c_api from the shapelib module and |
3299 |
initialize pyshapelib_api. |
3300 |
|
3301 |
2002-04-04 Bernhard Herzog <[email protected]> |
3302 |
|
3303 |
* setup.py (thuban_bdist_rpm.initialize_options): Use |
3304 |
initialize_options to create the scripts for the rpm. |
3305 |
|
3306 |
* extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use / |
3307 |
|
3308 |
2002-04-03 Bernhard Herzog <[email protected]> |
3309 |
|
3310 |
* setup.py: Increment version to 0.1.1 |
3311 |
|
3312 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
3313 |
Layer" and "Remove Layer" commands from the layer menu to the map |
3314 |
menu |
3315 |
|
3316 |
2002-02-15 Bernhard Herzog <[email protected]> |
3317 |
|
3318 |
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |
3319 |
argument (python <= 1.5.2 erroneously accepted multiuple |
3320 |
arguments) |
3321 |
|
3322 |
2002-02-04 Bernhard Herzog <[email protected]> |
3323 |
|
3324 |
* Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a |
3325 |
RecordGrid in the identifyview. |
3326 |
(IdentifyView.__init__): Use IdentifyGridCtrl instead of |
3327 |
IdentifyListCtrl. The grid allows editing of the values. |
3328 |
|
3329 |
* Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes |
3330 |
implementing a grid for a single row of a thuban table. |
3331 |
|
3332 |
* Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all |
3333 |
layers by default. Easier to use than the previous default of only |
3334 |
searching through the select layer which meant that if no layer |
3335 |
was selected, you couldn't select a shape. |
3336 |
|
3337 |
* Thuban/UI/tableview.py (TableGrid.__init__): Fix typo |
3338 |
|
3339 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the |
3340 |
stroke_width attribute |
3341 |
|
3342 |
* Thuban/Model/save.py (save_session): Write the new stroke_width |
3343 |
attribute |
3344 |
|
3345 |
* Thuban/Model/load.py (ProcessSession.startElement): Read the |
3346 |
stroke_width attribute |
3347 |
|
3348 |
* Thuban/Model/layer.py (Layer.__init__): New parameter and |
3349 |
instance variable stroke_width |
3350 |
(Layer.SetStrokeWidth): Set the stroke_width. |
3351 |
|
3352 |
2002-02-01 Bernhard Herzog <[email protected]> |
3353 |
|
3354 |
* extensions/thuban/wxproj.cpp (project_points): Fix two |
3355 |
off-by-one errors in the last loop that joins the various parts |
3356 |
together. |
3357 |
|
3358 |
2002-01-14 Bernhard Herzog <[email protected]> |
3359 |
|
3360 |
* setup.py (data_dist.make_distribution): Fix some typos |
3361 |
|
3362 |
2001-09-18 Bernhard Herzog <[email protected]> |
3363 |
|
3364 |
* README: Slight tweaking in preparation for the 0.1 release |
3365 |
|
3366 |
* setup.cfg: Add section for sdist to create both tgz and zip |
3367 |
archives |
3368 |
|
3369 |
* setup.py: increase version number to 0.1 |
3370 |
(data_dist): New command class for data distribution |
3371 |
|
3372 |
2001-09-14 Bernhard Herzog <[email protected]> |
3373 |
|
3374 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
3375 |
Handle the case of no layer (i.e. layer is None) properly. |
3376 |
|
3377 |
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
3378 |
Set the initial selection of the combo boxes to reflect the |
3379 |
projection we're starting with in a way that works on windows, |
3380 |
too. |
3381 |
|
3382 |
* Thuban/Lib/connector.py (Connector.print_connections): Print the |
3383 |
puiblisher's ids in hex to make it easier to compare them to the |
3384 |
standard repr of python methods |
3385 |
|
3386 |
* Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer |
3387 |
messages |
3388 |
|
3389 |
2001-09-13 Bernhard Herzog <[email protected]> |
3390 |
|
3391 |
* Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to |
3392 |
deselect the layer if no layer is selected |
3393 |
|
3394 |
* Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to |
3395 |
idle time when there actually is something to draw. If there's |
3396 |
nothing to draw simply clear the window |
3397 |
(MapCanvas.do_redraw): Call dc.EndDrawing and add some comments. |
3398 |
(MapCanvas.SetMap): force a redraw in all cases because |
3399 |
FitMapToWindow doesn't always do it. |
3400 |
(MapCanvas.ZoomFactor): Add an optional parameter, center, to |
3401 |
specify the point to move into the center of the window |
3402 |
(ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't |
3403 |
dragged, zoon in/out by a factor of 2 |
3404 |
(MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing |
3405 |
index, i.e. reversed drawing order) so that objects appearing to |
3406 |
be in from of others are selected first. This is probably mostly |
3407 |
relevant for point shapes where the symbols used may overlap |
3408 |
|
3409 |
* Thuban/Model/session.py (create_empty_session): Unset the |
3410 |
modified bit before returning it |
3411 |
|
3412 |
* Thuban/UI/mainwindow.py (MainWindow.NewSession): Use |
3413 |
create_empty_session session to create the new, empty session. |
3414 |
|
3415 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of |
3416 |
the tool bitmaps. |
3417 |
(MainWindow.OnClose, MainWindow.save_modified_session): Separate |
3418 |
the code that asks whether the session should be saved into the |
3419 |
new method save_modified_session. |
3420 |
(MainWindow.OpenSession, MainWindow.NewSession): Use the new |
3421 |
method to save modified session here too. |
3422 |
|
3423 |
2001-09-11 Bernhard Herzog <[email protected]> |
3424 |
|
3425 |
* setup.py (InnoIconItem): fix typo |
3426 |
|
3427 |
(thuban_bdist_inno.run): |
3428 |
(bdist_inno.run): Move the decision not to create symlinks on |
3429 |
non-nt platforms to thuban_bdist_inno and do it unconditinally |
3430 |
since we never want to create the symlinks here |
3431 |
|
3432 |
2001-09-10 Bernhard Herzog <[email protected]> |
3433 |
|
3434 |
* Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the |
3435 |
identify view immediately |
3436 |
|
3437 |
* Thuban/UI/controls.py: New file with two classes RecordListCtrl |
3438 |
and SelectableRecordListCtrl that implement the code shared by the |
3439 |
identify view and the label dialog |
3440 |
|
3441 |
* Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the |
3442 |
new class RecordListCtrl |
3443 |
|
3444 |
* Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the |
3445 |
return value of GetValue is None instead of using it as a boolean |
3446 |
directly so that Zero numbers are handled properly. |
3447 |
(LabelListCtrl): Derive from the new class |
3448 |
SelectableRecordListCtrl |
3449 |
|
3450 |
* Thuban/UI/proj4dialog.py (Proj4Dialog.__init__): |
3451 |
(Proj4Dialog.dialogLayout): Make the window resizable and set the |
3452 |
size of the text control explicitly to make the sizers work on |
3453 |
both Windows and X. |
3454 |
|
3455 |
2001-09-07 Bernhard Herzog <[email protected]> |
3456 |
|
3457 |
* Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter |
3458 |
that can limit the search to the currently selected layer. |
3459 |
(MapCanvas.SelectShapeAt): Make sure that the currently selected |
3460 |
layer stays selected even when no shape is found |
3461 |
(MapCanvas.FitRectToWindow): If the rect has zero with or zero |
3462 |
height do nothing (avoids zero division errors) |
3463 |
|
3464 |
2001-09-06 Bernhard Herzog <[email protected]> |
3465 |
|
3466 |
* Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__): |
3467 |
Correct the spelling of SessionTreeCtrl. dabbrev is too damn |
3468 |
convenient :-) |
3469 |
(SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce |
3470 |
a new instvar layer_to_item to map layers to tree items |
3471 |
(SessionTreeCtrl.layer_selected): Select the appropriate tree item |
3472 |
to match the current selection in the interactor |
3473 |
|
3474 |
* Thuban/UI/interactor.py (Interactor.SelectedLayer): |
3475 |
(Interactor.HasSelectedLayer): New methods to query the current |
3476 |
selection |
3477 |
|
3478 |
* Thuban/UI/mainwindow.py (MainWindow.current_layer): |
3479 |
(MainWindow.has_selected_layer): Simply call the appropriate |
3480 |
interactor method |
3481 |
|
3482 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): |
3483 |
(MainWindow.LayerShowTable): |
3484 |
(MainWindow.identify_view_on_demand): Store the interactor in an |
3485 |
instvar and use that reference instead of going through main.app |
3486 |
|
3487 |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
3488 |
* Thuban/UI/application.py (ThubanApplication.OnInit): |
3489 |
* Thuban/UI/main.py (main): Create the session tree view in main |
3490 |
with the new mainwindow method ShowSessionTree and not directly |
3491 |
the application's OnInit method |
3492 |
|
3493 |
* Thuban/UI/tree.py (myTreeCtrlPanel): |
3494 |
(SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a |
3495 |
TreeCtrl isntead of a panel. This affects most method since we now |
3496 |
refer to self instead of self.tree |
3497 |
(SessionTreeView): New class implementing a non-modal dialog |
3498 |
showing the session tree. |
3499 |
|
3500 |
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the |
3501 |
layer to the tableview dialog. |
3502 |
|
3503 |
* Thuban/UI/tableview.py: Add some doc-strings |
3504 |
(TableGrid): |
3505 |
(TableGrid.OnRangeSelect): |
3506 |
(TableGrid.OnSelectCell): |
3507 |
(TableFrame.__init__): |
3508 |
(TableFrame.row_selected): |
3509 |
Selecting rows in the grid view now updates the selected shapes |
3510 |
through the TableFrame. To achieve this we derive TableGrid from |
3511 |
Publisher and introduce the message type ROW_SELECTED which the |
3512 |
TableFrame subscribes to and which is issued by OnRangeSelect and |
3513 |
OnSelectCell |
3514 |
|
3515 |
(DataTable.SelectRow): Removed because it's no longer needed in |
3516 |
the row/shape selection scheme |
3517 |
|
3518 |
* Thuban/UI/dialogs.py: New file implementing common classes for |
3519 |
dialogs |
3520 |
|
3521 |
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
3522 |
the SELECTED_SHAPE message anymore. This is now handled by the |
3523 |
parent. |
3524 |
(TableGrid.select_shape): Only update the selection if the shape |
3525 |
is not None. |
3526 |
(TableFrame): Inherit from the new NonModalDialog class. |
3527 |
(TableFrame.__init__, TableFrame.select_shape): Handle the |
3528 |
SELECT_SHAPE message. |
3529 |
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
3530 |
SELECT_SHAPE |
3531 |
|
3532 |
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
3533 |
(MainWindow.add_dialog): |
3534 |
(MainWindow.dialog_open): |
3535 |
(MainWindow.remove_dialog): |
3536 |
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
3537 |
of opened non-modal dialogs. |
3538 |
|
3539 |
(MainWindow.__init__): Initialize the new non-modal dictionary |
3540 |
management code |
3541 |
(MainWindow.LayerShowTable): maintain separate dialogs for each |
3542 |
table using the non-modal dialog management code to only open a |
3543 |
view once for each table. |
3544 |
|
3545 |
(MainWindow.IdentifyTool): |
3546 |
(MainWindow.__init__): |
3547 |
(MainWindow.identify_view_on_demand): Don't open the identify view |
3548 |
in IdentifyTool anymore. This will be done automatically by the |
3549 |
new method identify_view_on_demand which handles the |
3550 |
SELECTED_SHAPE message so that the identify view will be opened on |
3551 |
demand |
3552 |
|
3553 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
3554 |
the interactor argument. The SELECTED_SHAPE message is now handled |
3555 |
by the parent. |
3556 |
(IdentifyView.__init__): Add the interactor argument so that we |
3557 |
can handle the SELECTED_SHAPE message here |
3558 |
(IdentifyView.selected_shape): New method to handle the |
3559 |
SELECTED_SHAPE messages |
3560 |
|
3561 |
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
3562 |
NonModalDialog class |
3563 |
(IdentifyView.OnClose): Extend the inherited version to |
3564 |
unsubscribe SELECT_SHAPE |
3565 |
|
3566 |
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
3567 |
|
3568 |
2001-09-05 Bernhard Herzog <[email protected]> |
3569 |
|
3570 |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
3571 |
|
3572 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
3573 |
interactor to pass through to the MapCanvas |
3574 |
|
3575 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
3576 |
argument to the MainWindow constructor to get rid of the ugly hack |
3577 |
that made main.app available early just so that the mapcanvas |
3578 |
could access the interactor object. |
3579 |
|
3580 |
2001-09-04 Bernhard Herzog <[email protected]> |
3581 |
|
3582 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
3583 |
that runs a modal message box |
3584 |
(MainWindow.OnClose): Use the new method |
3585 |
(MainWindow.RemoveLayer): Just do nothing in case no layer is |
3586 |
selected. The command should be grayed out anyway, so there's no |
3587 |
need to pop up a message box. |
3588 |
(MainWindow.AddLayer): Pop up a message box with an error message |
3589 |
if the shape file can't be opened |
3590 |
|
3591 |
* Thuban/Model/layer.py (Layer.__init__): Open the shapefile |
3592 |
immediately. This will cause an exception in case the file can't |
3593 |
be opened and we can display an appropriate message. |
3594 |
|
3595 |
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
3596 |
|
3597 |
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |
3598 |
specific bdist_rpm command. |
3599 |
|
3600 |
* Thuban/UI/main.py: Catch ImportError exceptions when importing |
3601 |
the locale module because it may not be available on some |
3602 |
installations. |
3603 |
|
3604 |
* extensions/pyprojection/LICENSE: Copy of the license text in |
3605 |
Projection.i. Having it in a separate file makes it easier to |
3606 |
refer to license text in e.g. RPMs |
3607 |
|
3608 |
2001-09-03 Bernhard Herzog <[email protected]> |
3609 |
|
3610 |
* setup.py: use wx-config instead of wxgtk-config because it's |
3611 |
more generic |
3612 |
|
3613 |
* setup.py (ThubanInstall.get_outputs): Add the symlink in |
3614 |
<prefix>/bin to the outputs |
3615 |
(ThubanInstall.link_file): New method to link files. We need this |
3616 |
because the standard copy_files refuses to link non-existing |
3617 |
files. |
3618 |
(ThubanInstall.run): Remove the leading install root from the |
3619 |
script filename if an install root was specified and use the new |
3620 |
link_file method |
3621 |
|
3622 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
3623 |
the window when the first layer is added to the map. |
3624 |
|
3625 |
* setup.py (ThubanInstall.run): Honor the build root (self.root) |
3626 |
when linking thuban.py to <prefix>/bin |
3627 |
|
3628 |
2001-08-31 Bernhard Herzog <[email protected]> |
3629 |
|
3630 |
* setup.py: In the setup call, the install parameters shouldn't |
3631 |
have trailing slashes because distutils on non-posix platforms |
3632 |
doesn't like that. The same applies to other directories like |
3633 |
"Resources/Bitmaps" |
3634 |
|
3635 |
In the configuration section for nt, move the wxWindows directory |
3636 |
optins into the part clearly marked as editable. |
3637 |
|
3638 |
(InstallLocal.initialize_options): |
3639 |
(InstallLocal.user_options): remove the currently unused debug |
3640 |
flag |
3641 |
(thuban_build_py.find_all_modules): Add this method so that it |
3642 |
works for our case of having packages and modules in one |
3643 |
distribution as well. |
3644 |
(ThubanInstall.initialize_options): |
3645 |
(ThubanInstall.finalize_options): |
3646 |
(ThubanInstall.user_options): |
3647 |
(ThubanInstall.boolean_options): Add new options, do-symlink and |
3648 |
extra files. Since these are the first ThubanInstall specific |
3649 |
options, override user_options and boolean_options |
3650 |
(ThubanInstall.run): Honor the new do-symlink and extra-files |
3651 |
options. |
3652 |
(ThubanInstall.get_outputs): Add to override the base-class's |
3653 |
version and add the extra-files to the outputs |
3654 |
(bdist_inno): New class for windows distributions with Inno Setup |
3655 |
(InnoIconItem): Helper class for bdist_inno |
3656 |
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
3657 |
this together with the appropriate parameters, to the setup call. |
3658 |
|
3659 |
* setup.cfg (bdist_inno): added new section for the inno setup |
3660 |
installer |
3661 |
|
3662 |
* Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var |
3663 |
changing_selection to avoid recursive selection events when |
3664 |
modifying the selection in response to a selection event. |
3665 |
(myTreeCtrlPanel.normalize_selection): Set the new inst var when |
3666 |
changing the tree's selection. |
3667 |
(myTreeCtrlPanel.OnSelChanged): Only normalize the selection when |
3668 |
we're not being called indirectly from normalize_selection. |
3669 |
|
3670 |
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call |
3671 |
event.Check only if the command is actuall checkable. |
3672 |
(MainWindow.__init__): Call the toolbar's Realize method to make |
3673 |
sure that the items are actually shown |
3674 |
|
3675 |
2001-08-28 Bernhard Herzog <[email protected]> |
3676 |
|
3677 |
* setup.py: Fix some doc strings |
3678 |
|
3679 |
* ChangeLog: started |
3680 |
|