1 |
|
2003-04-25 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/save.py (SessionSaver.write_projection): Make sure |
4 |
|
to save the name of the projection. |
5 |
|
|
6 |
|
* test/test_save.py (SaveSessionTest.testLayerProjection): New |
7 |
|
test to verify layer projections are saved correctly. |
8 |
|
|
9 |
|
2003-04-25 Jonathan Coles <[email protected]> |
10 |
|
|
11 |
|
* Thuban/Model/proj.py (Projection.SetName): Set the name |
12 |
|
to "Unknown" if name is None. |
13 |
|
(Projection.SetAllParameters): New. Set the projection's |
14 |
|
parameter list to the one supplied. |
15 |
|
(Projection.SetProjection): New. Set the projection's |
16 |
|
properties to those of the supplied Projection. |
17 |
|
|
18 |
|
* Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set |
19 |
|
the dialog title to include the map's title. |
20 |
|
(MainWindow.LayerProjection): Set the dialog title to include |
21 |
|
the layer's title. |
22 |
|
|
23 |
|
* Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate |
24 |
|
error dialogs into a single method call. |
25 |
|
(ProjFrame.__VerifyButtons): Add more states to check. |
26 |
|
(ProjFrame.__GetProjection): Return the current state of an |
27 |
|
edited projection or None. |
28 |
|
(ProjFrame.__FillAvailList): Remove checks for states that |
29 |
|
shouldn't exist. |
30 |
|
(ProjFrame._OnNew): Clear all selected items and supply |
31 |
|
a projection panel if necessary. |
32 |
|
|
33 |
|
* test/test_proj.py (TestProjFile.test): Add tests for |
34 |
|
ProjFile.SetAllParameters, ProjFile.SetProjection, |
35 |
|
ProjFile.SetName. |
36 |
|
|
37 |
|
2003-04-25 Jonathan Coles <[email protected]> |
38 |
|
|
39 |
|
* Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now |
40 |
|
takes an optional argument to select the current projection. |
41 |
|
This does not guarantee that the item is visible due to |
42 |
|
limited wxWindows functionality. Fixes RTBug #1821. |
43 |
|
|
44 |
|
2003-04-25 Jonathan Coles <[email protected]> |
45 |
|
|
46 |
|
* Thuban/Model/load.py (SessionLoader.start_projection): Remember |
47 |
|
the projection name and use it when constructing the Projection |
48 |
|
object. |
49 |
|
|
50 |
|
* Thuban/Model/proj.py (Projection.__init__): Change the default |
51 |
|
value for 'name' to None and then test if name is equal to None |
52 |
|
in the body of the constructor. This way the caller doesn't have to |
53 |
|
know what the default value should be. Namely, useful in load.py |
54 |
|
where we have to pick a default value if the 'name' parameter |
55 |
|
doesn't exist in the XML file. |
56 |
|
|
57 |
|
* test/test_load.py (LoadSessionTest.testLayerProjection): New. |
58 |
|
Tests a file where a layer has a projection. |
59 |
|
|
60 |
|
2003-04-25 Jonathan Coles <[email protected]> |
61 |
|
|
62 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the |
63 |
|
tree for projection information. |
64 |
|
|
65 |
|
* Thuban/Model/load.py (XMLReader.GetFilename): Renamed from |
66 |
|
XMLReader.GetFileName. |
67 |
|
(SessionLoader): Added support for loading projection tags that |
68 |
|
appear inside a layer. |
69 |
|
|
70 |
|
* Thuban/Model/proj.py (ProjFile): Document the class. Move |
71 |
|
back to using a list because the order of the projections in |
72 |
|
the file is important to maintain. Fixes RTbug #1817. |
73 |
|
|
74 |
|
* Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName |
75 |
|
to ProjFile.GetFilename. |
76 |
|
|
77 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Save projection |
78 |
|
information. |
79 |
|
|
80 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from |
81 |
|
ProjFrame._OnSaveAs. Removed old dead code from previous |
82 |
|
implementation. |
83 |
|
(ProjFrame._OnExport): Add support for exporting more than one |
84 |
|
projection to a single file. |
85 |
|
(ProjFrame.__FillAvailList): use string formatting (% operator) |
86 |
|
to build strings that are (partly) translated. Fixes RTbug #1818. |
87 |
|
|
88 |
|
* test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile |
89 |
|
class. |
90 |
|
|
91 |
|
2003-04-24 Bernhard Herzog <[email protected]> |
92 |
|
|
93 |
|
* po/es.po: Updated Spanish translation by Daniel Calvelo Aros |
94 |
|
|
95 |
|
* po/fr.po: New. French translation by Daniel Calvelo Aros |
96 |
|
|
97 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate |
98 |
|
empty strings. |
99 |
|
|
100 |
|
2003-04-24 Jonathan Coles <[email protected]> |
101 |
|
|
102 |
|
* Thuban/Model/layer.py (Layer.GetProjection): New. Needed to |
103 |
|
implement the interface that the ProjFrame dialog expects. |
104 |
|
|
105 |
|
* Thuban/Model/proj.py (Projection.SetName): New. Allows the |
106 |
|
name of the projection to be changed. |
107 |
|
(ProjFile): Use a dictionary instead of a list so that removing |
108 |
|
projections is easier and we are sure about uniqueness. |
109 |
|
(ProjFile.Remove): Remove the given projection object. |
110 |
|
|
111 |
|
* Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles): |
112 |
|
Return a list with only one projection file instead of searching for |
113 |
|
any projection file. This simplifies many things if the user can |
114 |
|
only have one system file and one user file. |
115 |
|
|
116 |
|
* Thuban/UI/classgen.py: Change all references to |
117 |
|
genCombo to genChoice. |
118 |
|
|
119 |
|
* Thuban/UI/mainwindow.py: Add a Projection option under the |
120 |
|
layer menu. |
121 |
|
(MainWindow.LayerProjection): New. Open up a projection window |
122 |
|
for a layer. |
123 |
|
|
124 |
|
* Thuban/UI/projdialog.py: Large changes to how the dialog is |
125 |
|
laid out. Use three panels instead of one. One for the list of |
126 |
|
projections, one for the edit controls, and one for the buttons. |
127 |
|
Fixed resizing problems so that the dialog resizes correctly |
128 |
|
when the projection panel changes. Added import/export, save, and |
129 |
|
new buttons/functionality. |
130 |
|
|
131 |
|
2003-04-24 Bernhard Herzog <[email protected]> |
132 |
|
|
133 |
|
First step towards table management. Introduce a simple data |
134 |
|
abstraction so that we replace the data a layer uses more easily |
135 |
|
in the next step. |
136 |
|
|
137 |
|
* Thuban/Model/data.py: New file with a simple data abstraction |
138 |
|
that bundles shapefile and dbffile into one object. |
139 |
|
|
140 |
|
* Thuban/Model/session.py (Session.OpenShapefile): New method to |
141 |
|
open shapefiles and return a shape store object |
142 |
|
|
143 |
|
* Thuban/Model/layer.py (Layer.__init__): Pass the data as a store |
144 |
|
object instead of a shapefile filename. This introduces a new |
145 |
|
instance variable store holding the datastore. For intermediate |
146 |
|
backwards compatibility keep the old instance variables. |
147 |
|
(open_shapefile): Removed. No longer needed with the shape store. |
148 |
|
(Layer.SetShapeStore, Layer.ShapeStore): New methods to set and |
149 |
|
get the shape store used by a layer. |
150 |
|
(Layer.Destroy): No need to explicitly destroy the shapefile or |
151 |
|
table anymore. |
152 |
|
|
153 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer) |
154 |
|
(MainWindow.AddLayer): Use the session's OpenShapefile method to |
155 |
|
open shapefiles |
156 |
|
|
157 |
|
* Thuban/Model/load.py (ProcessSession.start_layer): Use the |
158 |
|
session's OpenShapefile method to open shapefiles |
159 |
|
|
160 |
|
* test/test_classification.py |
161 |
|
(TestClassification.test_classification): Use the session's |
162 |
|
OpenShapefile method to open shapefiles and build the filename in |
163 |
|
a more platform independed way |
164 |
|
|
165 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
166 |
|
Implement to have a session to use in the tests |
167 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
168 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the |
169 |
|
session's OpenShapefile method to open shapefiles |
170 |
|
(TestLayerLegend.setUp): Instantiate a session so that we can use |
171 |
|
it to open shapefiles. |
172 |
|
(TestLayerLegend.tearDown): Make sure that all references to |
173 |
|
layers and session are removed otherwise we may get a resource |
174 |
|
leak |
175 |
|
|
176 |
|
* test/test_map.py (TestMapAddLayer.test_add_layer) |
177 |
|
(TestMapWithContents.setUp): Instantiate a session so that we can |
178 |
|
use it to open shapefiles. |
179 |
|
(TestMapWithContents.tearDown): Make sure that all references to |
180 |
|
layers, maps and sessions are removed otherwise we may get a |
181 |
|
resource leak |
182 |
|
("__main__"): use support.run_tests() so that more info about |
183 |
|
uncollected garbage is printed |
184 |
|
|
185 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer): Use the |
186 |
|
session's OpenShapefile method to open shapefiles |
187 |
|
("__main__"): use support.run_tests() so that more info about |
188 |
|
uncollected garbage is printed |
189 |
|
|
190 |
|
* test/test_selection.py (TestSelection.tearDown): Make sure that |
191 |
|
all references to the session and the selection are removed |
192 |
|
otherwise we may get a resource leak |
193 |
|
(TestSelection.get_layer): Instantiate a session so that we can |
194 |
|
use it to open shapefiles. |
195 |
|
("__main__"): use support.run_tests() so that more info about |
196 |
|
uncollected garbage is printed |
197 |
|
|
198 |
|
* test/test_session.py (TestSessionBase.tearDown) |
199 |
|
(TestSessionWithContent.tearDown): Make sure that all references |
200 |
|
to the session and layers are removed otherwise we may get a |
201 |
|
resource leak |
202 |
|
(TestSessionWithContent.setUp): Use the session's OpenShapefile |
203 |
|
method to open shapefiles |
204 |
|
|
205 |
|
2003-04-24 Jonathan Coles <[email protected]> |
206 |
|
|
207 |
|
* Thuban/Model/load.py (XMLReader.read): Should have been checking |
208 |
|
if the file_or_filename object had the 'read' attribute. |
209 |
|
|
210 |
|
2003-04-23 Jonathan Coles <[email protected]> |
211 |
|
|
212 |
|
* Thuban/Model/resource.py: Fixes RTbug #1813. |
213 |
|
(ReadProjFile): Add documentation about which exceptions are raised. |
214 |
|
Always pass the exceptions up to the caller. |
215 |
|
(GetProjFiles): If the directory can't be read return an empty list. |
216 |
|
If any of the proj files can't be read skip that file and go |
217 |
|
on to the next one. |
218 |
|
|
219 |
|
* test/test_proj.py: Added test cases to handle nonexistent files, |
220 |
|
unreadable files, and files that don't parse correctly. |
221 |
|
|
222 |
|
2003-04-23 Jonathan Coles <[email protected]> |
223 |
|
|
224 |
|
Projection dialog. Allows the user to select from a list |
225 |
|
of projection templates and optionally edit them and save new ones. |
226 |
|
|
227 |
|
* Thuban/UI/projdialog.py (ProjFrame): New. Main dialog. |
228 |
|
(ProjPanel): Base class for projection specific panels. |
229 |
|
(TMPanel): Projection panel for Transverse Mercartor. |
230 |
|
(UTMPanel): Projection panel for Universal Transverse Mercartor. |
231 |
|
(LCCPanel): Projection panel for Lambert Conic Conformal. |
232 |
|
(GeoPanel): Projetion panel for Geographic Projection. |
233 |
|
|
234 |
|
2003-04-23 Jonathan Coles <[email protected]> |
235 |
|
|
236 |
|
* Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to |
237 |
|
promote symmetry. There now exists XMLReader and XMLWriter. |
238 |
|
(XMLReader.read): New. Call to read the given file descriptor or |
239 |
|
filename. |
240 |
|
(XMLReader.close): New. Make sure the file is closed. |
241 |
|
(XMLReader.GetFileName): New. Return just the file name that is being |
242 |
|
read from. |
243 |
|
(XMLReader.GetDirectory): New. Return just the directory of the file |
244 |
|
that is being read. |
245 |
|
(XMLReader.AddDispatchers): New. Take a dictionary which contains |
246 |
|
the names of functions to call as the XML tree is parsed. |
247 |
|
(XMLReader.startElementNS): Updated to use new dispatcher dictionary. |
248 |
|
(XMLReader.endElementNS): Updated to use new dispatcher dictionary. |
249 |
|
(SessionLoader): Removed class variables start_dispatcher and |
250 |
|
end_dispatcher since this functionality is now part of a class |
251 |
|
instance. Fixes RTbug #1808. |
252 |
|
(SessionLoader.__init__): Add dispatcher functions. |
253 |
|
(load_xmlfile): Code was moved into the XMLReader.read(). |
254 |
|
(load_session): Use modified SessionLoader. |
255 |
|
|
256 |
|
* Thuban/Model/map.py (Map.GetProjection): New. Returns the |
257 |
|
map's projection. |
258 |
|
|
259 |
|
* Thuban/Model/proj.py (Projection.GetParameters): Renamed to |
260 |
|
GetAllParameters. |
261 |
|
(Projection.GetParameter): Returns the value for the given parameter. |
262 |
|
|
263 |
|
* Thuban/Model/resource.py: Use XMLReader and XMLWriter. |
264 |
|
(GetProjFiles): Renamed from GetProjections. Now returns a list |
265 |
|
of ProjFile objects. |
266 |
|
(GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns |
267 |
|
a list of ProjFile objects whose files are not user defined. |
268 |
|
(GetUserProjFiles): Renamed from GetUserProjections. Returns a |
269 |
|
list of ProjFile objects whose files are user defined. |
270 |
|
(ProjFileReader): Extend new XMLReader. |
271 |
|
|
272 |
|
* Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to |
273 |
|
promote symmetry. |
274 |
|
|
275 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice |
276 |
|
control instead of a wxComboBox. wxChoice controls do not generate |
277 |
|
events as the uses highlights possible choices which fixes problems |
278 |
|
with resizing the dialog when the use selects an option. |
279 |
|
|
280 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice |
281 |
|
control instead of a wxComboBox. |
282 |
|
|
283 |
|
* Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection |
284 |
|
dialog. |
285 |
|
|
286 |
|
* test/test_proj.py (TestProjection.test): New tests for GetParameter |
287 |
|
method. |
288 |
|
|
289 |
|
2003-04-22 Bernhard Herzog <[email protected]> |
290 |
|
|
291 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports and global |
292 |
|
constants |
293 |
|
|
294 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
295 |
|
(IdentifyGridCtrl.selected_shape): Use table, not shapetable. |
296 |
|
|
297 |
|
2003-04-17 Bernhard Herzog <[email protected]> |
298 |
|
|
299 |
|
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
300 |
|
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used |
301 |
|
anymore. |
302 |
|
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes) |
303 |
|
(Layer.ShapeType, Layer.Shape): No need to call |
304 |
|
self.open_shapefile since it's always called in __init__ |
305 |
|
|
306 |
|
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
307 |
|
In wxPython 2.4 there's no need to extend MainLoop anymore since |
308 |
|
wxPython itself makes sure OnExit is called. |
309 |
|
|
310 |
|
2003-04-16 Jonathan Coles <[email protected]> |
311 |
|
|
312 |
|
Initial putback of projection management code. Includes new |
313 |
|
classes to read and write projection files. The current load |
314 |
|
and save classes were abstracted a bit so they could be reused. |
315 |
|
The Projection class was extended to provide new methods and |
316 |
|
have a name. |
317 |
|
|
318 |
|
* Thuban/Model/load.py (XMLProcessor): New. Contains all the |
319 |
|
general XML reading methods that were part of ProcessSession. |
320 |
|
|
321 |
|
* Thuban/Model/proj.py (Projection.__init__): Accepts an optional |
322 |
|
name. |
323 |
|
(ProjFile): New. Represents a file that contains projection |
324 |
|
information. |
325 |
|
|
326 |
|
* Thuban/Model/resource.py: New. Contains general utilities |
327 |
|
for read and writing projection files. |
328 |
|
|
329 |
|
* Thuban/Model/save.py (XMLSaver): New. Contains all the |
330 |
|
general XML writing methods that were part of SessionSaver. |
331 |
|
(SessionSaver): Renamed from Saver. |
332 |
|
|
333 |
|
* test/test_proj.py: New test cases for the projection |
334 |
|
file read and write functions. |
335 |
|
|
336 |
|
2003-04-16 Jonathan Coles <[email protected]> |
337 |
|
|
338 |
|
* Thuban/Model/classification.py: Use repr() around values |
339 |
|
in the ClassGroup*.__repr__() methods so it is clearer when |
340 |
|
a value is a string and when it is a number. |
341 |
|
|
342 |
|
* test/test_load.py: Rework the classification test to test |
343 |
|
that we can load old files. |
344 |
|
(testLabels): Test a file where the groups have labels. |
345 |
|
|
346 |
|
2003-04-16 Bernhard Herzog <[email protected]> |
347 |
|
|
348 |
|
Safer implementation of the performance enhancements of the |
349 |
|
low-level renderer: |
350 |
|
|
351 |
|
* extensions/thuban/wxproj.cpp (extract_projection) |
352 |
|
(extract_pointer): Rename extract_projection to extract_pointer |
353 |
|
and redefine its purpose to return the pointer stored in a CObject |
354 |
|
returned by the object's cobject method. Update all callers. |
355 |
|
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
356 |
|
handling of these low-level parameters so that each s_draw_info |
357 |
|
instance is handled as a CObject at python level that also |
358 |
|
contains real references to the actual python objects which |
359 |
|
contain the values in the struct. Add free_draw_info as the |
360 |
|
destructor. |
361 |
|
(draw_polygon_shape): Add the py_draw_info parameter which must a |
362 |
|
cobject containing an s_draw_info pointer. |
363 |
|
|
364 |
|
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
365 |
|
method to instantiat the low-level render parameter |
366 |
|
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
367 |
|
commented out code. |
368 |
|
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
369 |
|
layer but the low-level render parameter |
370 |
|
(ScreenRenderer.draw_shape_layer): Use the low-level render |
371 |
|
parameter. |
372 |
|
|
373 |
|
2003-04-15 Jonathan Coles <[email protected]> |
374 |
|
|
375 |
|
* Thuban/Model/classification.py: Implemented __repr__ for |
376 |
|
the ClassGroup* classes to make debugging a bit easier. |
377 |
|
(ClassGroup.SetLabel): Check that the string is an instance |
378 |
|
of StringTypes not StringType. Accounts for Unicode strings. |
379 |
|
|
380 |
|
* Thuban/Model/color.py: Implemented __repr__ to make |
381 |
|
debugging a bit easier. |
382 |
|
|
383 |
|
* Thuban/Model/save.py (Saver.write_classification): Need to |
384 |
|
save the group label. |
385 |
|
|
386 |
|
* test/test_load.py (testClassification): New. Loads the |
387 |
|
iceland_sample_test.thuban file and checks if it was loaded |
388 |
|
correctly. |
389 |
|
|
390 |
|
2003-04-15 Jonathan Coles <[email protected]> |
391 |
|
|
392 |
|
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
393 |
|
to improve rendering performance by initializing the variables |
394 |
|
that are not change each time draw_polygon_shape() is called. |
395 |
|
The values are stored in a global struct draw_info. |
396 |
|
(draw_polygon_shape): Removed initialization code that is |
397 |
|
now in draw_polygon_init(). |
398 |
|
|
399 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
400 |
|
drawing initialization call to draw_polygon_init() |
401 |
|
(MapRenderer.draw_polygon_shape): Use new signature of |
402 |
|
draw_polygon_shape. |
403 |
|
|
404 |
|
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
405 |
|
weirdness by setting the range to (1, maxint). |
406 |
|
|
407 |
|
* Thuban/Model/classification.py (ClassGroupProperties): Make |
408 |
|
instance variables private and optimize comparison operator |
409 |
|
by first checking if the color references are the same. |
410 |
|
(ClassGroupSingleton): Make instance variables private. |
411 |
|
(ClassGroupRange): Make instance variables private. |
412 |
|
|
413 |
|
* HOWTO-Release: Filled in missing steps for releasing packages. |
414 |
|
|
415 |
|
2003-04-15 Bernhard Herzog <[email protected]> |
416 |
|
|
417 |
|
First stab at internationalized messages: |
418 |
|
|
419 |
|
* Thuban/__init__.py (_): Implement the translation function for |
420 |
|
real using the python gettext module. |
421 |
|
|
422 |
|
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
423 |
|
translate empty strings. |
424 |
|
|
425 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
426 |
|
Add a missing space to a warning message |
427 |
|
|
428 |
|
* po/README: New. Notes about the management of the translation |
429 |
|
files. |
430 |
|
|
431 |
|
* po/Makefile: New. Makefile to help manage the translation files. |
432 |
|
|
433 |
|
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
434 |
|
|
435 |
|
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
436 |
|
translations and support files in po/ |
437 |
|
|
438 |
|
* setup.py (data_files): Add the *.mo files to the data_files too |
439 |
|
|
440 |
|
* README: Add note about the translations when building from CVS |
441 |
|
|
442 |
|
2003-04-14 Jonathan Coles <[email protected]> |
443 |
|
|
444 |
|
* Thuban/UI/dock.py: Fixes some window resizing problems most |
445 |
|
noticable under windows. Always assume the button bitmaps will |
446 |
|
be there. Code clean up. |
447 |
|
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
448 |
|
images for the dock/undock button to the same images. |
449 |
|
Work around for RTbug #1801. |
450 |
|
|
451 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
452 |
|
be allowed to grow within the sizer. Fixes a bug under Windows |
453 |
|
where the toolbar wasn't being drawn. |
454 |
|
|
455 |
|
2003-04-14 Frank Koormann <[email protected]> |
456 |
|
|
457 |
|
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
458 |
|
Updated design to try to make the button functionality more |
459 |
|
transparent. |
460 |
|
|
461 |
|
2003-04-14 Jonathan Coles <[email protected]> |
462 |
|
|
463 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
464 |
|
finalize the intialization of the panel. |
465 |
|
|
466 |
|
* Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the |
467 |
|
creation of the panel. Should be the last thing called in the |
468 |
|
initializer of a subclass. |
469 |
|
|
470 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively |
471 |
|
set the current selections in the combo boxes. This is needed |
472 |
|
under Windows. |
473 |
|
|
474 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add a top |
475 |
|
level panel to the dialog so that the background colors are |
476 |
|
consistent under Windows. |
477 |
|
|
478 |
|
2003-04-11 Jonathan Coles <[email protected]> |
479 |
|
|
480 |
|
* Thuban/UI/classgen.py: Change color ramps to start at white |
481 |
|
not black. |
482 |
|
|
483 |
|
* Thuban/UI/legend.py: Enable/disable the legend buttons when |
484 |
|
the legend changes. Fixes RTbug #1793. |
485 |
|
|
486 |
|
* test/test_classification.py: Added test for copying of |
487 |
|
classifications. |
488 |
|
|
489 |
|
2003-04-11 Jonathan Coles <[email protected]> |
490 |
|
|
491 |
|
* Thuban/UI/resource.py: New. Centralize the loading of resources |
492 |
|
such as bitmaps. |
493 |
|
|
494 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons, |
495 |
|
added images to the move buttons, added 'reverse' button. |
496 |
|
(CustomRampPanel.__init__): Added images to the move buttons. |
497 |
|
(GreyRamp): New. Generates a ramp from white to black. |
498 |
|
(HotToColdRamp): New. Generates a ramp from cold to hot colors. |
499 |
|
|
500 |
|
* Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to |
501 |
|
ID_PROPERTY_*. |
502 |
|
(Classifier.__init__): Minor changes to the layout. |
503 |
|
(Classifier._OnTitleChanged): Listen for when the user edits the |
504 |
|
title and update the dialog's title and the layer's title. |
505 |
|
|
506 |
|
* Thuban/UI/dock.py: Use new bitmaps for the control buttons. |
507 |
|
|
508 |
|
* Thuban/UI/legend.py: Use new bitmaps for the control buttons. |
509 |
|
(LegendTree._OnMsgLayerTitleChanged): Change the displayed title |
510 |
|
if the layer's title changes. |
511 |
|
|
512 |
|
* Thuban/UI/mainwindow.py: Added new menu item and associated code |
513 |
|
to open a dialog to rename the map. |
514 |
|
(MainWindow): Use new resource class to import bitmaps. |
515 |
|
|
516 |
|
2003-04-11 Jonathan Coles <[email protected]> |
517 |
|
|
518 |
|
* Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm, |
519 |
|
Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm, |
520 |
|
Resources/Bitmaps/group_use_none.xpm, |
521 |
|
Resources/Bitmaps/group_use_not.xpm, |
522 |
|
Resources/Bitmaps/hide_layer.xpm, |
523 |
|
Resources/Bitmaps/layer_properties.xpm, |
524 |
|
Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm, |
525 |
|
Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm: |
526 |
|
New. |
527 |
|
|
528 |
|
2003-04-10 Jonathan Coles <[email protected]> |
529 |
|
|
530 |
|
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
531 |
|
Should pass group to ClassGroup constructor. |
532 |
|
|
533 |
|
2003-04-10 Jonathan Coles <[email protected]> |
534 |
|
|
535 |
|
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
536 |
|
methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__) |
537 |
|
here. Implement SetVisible(), IsVisible(). |
538 |
|
(ClassGroup.__init__): Add group parameter which acts as a copy |
539 |
|
constructor. |
540 |
|
|
541 |
|
* Thuban/UI/classifier.py (ClassTable): Add a new column for the |
542 |
|
"Visible" check boxes. |
543 |
|
(Classifier): Rename the buttons and refactor the code to match |
544 |
|
the new labels. |
545 |
|
|
546 |
|
* Thuban/UI/legend.py: Classify button is now called "Properties". |
547 |
|
Refactored the code to change variable names. |
548 |
|
(LegendTree.__FillTreeLayer): Only list a group if it is visible. |
549 |
|
|
550 |
|
* Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to |
551 |
|
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties |
552 |
|
renamed to MainWindow.LayerEditProperties. |
553 |
|
(MainWindow.ToggleLegend): Don't include map name in legend title. |
554 |
|
(MainWindow.SetMap): Added the map name to the window title. |
555 |
|
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill, |
556 |
|
MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed. |
557 |
|
Functionality is found in the layer properties dialog. |
558 |
|
|
559 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
560 |
|
draw visible groups. |
561 |
|
|
562 |
|
2003-04-09 Jonathan Coles <[email protected]> |
563 |
|
|
564 |
|
* Thuban/UI/classgen.py: Modifications to allow simple |
565 |
|
addition and selection of new color schemes. |
566 |
|
(MonochromaticRamp): New. Generates a ramp between two colors. |
567 |
|
(RedRamp): New. Generates a ramp of all red. |
568 |
|
(GreenRamp): New. Generates a ramp of all green. |
569 |
|
(BlueRamp): New. Generates a ramp of all blue. |
570 |
|
|
571 |
|
2003-04-09 Jonathan Coles <[email protected]> |
572 |
|
|
573 |
|
* Thuban/Model/classification.py (Classification.__deepcopy__): |
574 |
|
Need to copy over field and fieldType attributes. |
575 |
|
|
576 |
|
* Thuban/Model/table.py (Table.field_range): New. Retrive the |
577 |
|
maximum and minimum values over the entire table for a given |
578 |
|
field. |
579 |
|
(Table.GetUniqueValues): New. Retrieve all the unique values |
580 |
|
in the table for a given field. |
581 |
|
|
582 |
|
* Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel. |
583 |
|
(GenUniquePanel): New. Controls to allow the user to select |
584 |
|
which unique field values they would like in the classification. |
585 |
|
(CustomRampPanel): Code that was in ClassGenDialog that allows |
586 |
|
the user to select the properties for a custom ramp. |
587 |
|
(ClassGenerator.GenUniformDistribution): Was called GenerateRanges. |
588 |
|
|
589 |
|
* Thuban/UI/classifier.py: Removed a lot of debugging code. |
590 |
|
(Classifier._SetClassification): Callback method so that the |
591 |
|
class generator can set the classification in the grid. |
592 |
|
(ClassGroupPropertiesCtrl): New. Encapsulates the drawing and |
593 |
|
editing of a group properties class into a wxWindows control. |
594 |
|
|
595 |
|
* Thuban/UI/dock.py: It was decided that if the user closes |
596 |
|
a dockable window the window should simply hide itself. That |
597 |
|
way if the user wants to show the dock again it appears in the |
598 |
|
same place as it was when it was closed. |
599 |
|
(DockableWindow.Destroy): Call renamed method OnDockDestroy(). |
600 |
|
(DockableWindow._OnButtonClose): Hide the window instead of |
601 |
|
destroying it. |
602 |
|
(DockableWindow._OnClose): Hide the window instead of |
603 |
|
destroying it. |
604 |
|
|
605 |
|
* Thuban/UI/legend.py (LegendTree): Use a private method to |
606 |
|
consistently set the font and style of the text. Fixes RTbug #1786. |
607 |
|
|
608 |
|
* Thuban/UI/mainwindow.py: Import just the Classifier class. |
609 |
|
|
610 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
611 |
|
|
612 |
|
* Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item |
613 |
|
to the map module |
614 |
|
|
615 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
616 |
|
|
617 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in |
618 |
|
favor of ToggleSessionTree |
619 |
|
(MainWindow.ToggleSessionTree): New method to toggle visibility of |
620 |
|
the session tree. |
621 |
|
(MainWindow.SessionTreeShown): New method to return whether the |
622 |
|
session tree is currently shown. |
623 |
|
(MainWindow.ToggleLegend): New method to toggle visibility of the |
624 |
|
legend |
625 |
|
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and |
626 |
|
LegendShown |
627 |
|
(MainWindow.LegendShown): New method to return whether the legend |
628 |
|
is currently shown. |
629 |
|
(_method_command): Add checked parameter so we can define check |
630 |
|
menu items |
631 |
|
(_has_tree_window_shown, _has_legend_shown): Use the appropriate |
632 |
|
mainwindow methods. |
633 |
|
(show_session_tree, show_legend commands): Removed. |
634 |
|
(toggle_session_tree, toggle_legend commands): New commands to |
635 |
|
toggle the visibility of the dialogs |
636 |
|
|
637 |
|
2003-04-07 Jonathan Coles <[email protected]> |
638 |
|
|
639 |
|
* Thuban/UI/classgen.py: Fix Windows problem. |
640 |
|
|
641 |
|
* Thuban/UI/dock.py: Fix Windows problem. |
642 |
|
|
643 |
|
* Thuban/UI/mainwindow.py: Use False instead of false. |
644 |
|
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
645 |
|
|
646 |
|
2003-04-07 Jonathan Coles <[email protected]> |
647 |
|
|
648 |
|
Since we now say that the order of the groups in a classification |
649 |
|
matters, it makes sense to be able to manipulate that order. Most |
650 |
|
of the changes to Thuban/Model/classification.py are to that end. |
651 |
|
|
652 |
|
* Thuban/Model/classification.py (Classification.AppendGroup, |
653 |
|
Classification.InsertGroup, Classification.ReplaceGroup, |
654 |
|
Classification.RemoveGroup, Classification.GetGroup): Do as the |
655 |
|
names imply. |
656 |
|
(Classification.FindGroup): This was called GetGroup, but GetGroup |
657 |
|
takes an index, while FindGroup takes a value. |
658 |
|
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
659 |
|
REFERENCE. Currently there is a cyclic reference between the layer |
660 |
|
and its classification. If the classification doesn't need to know |
661 |
|
its owning layer we can change this, since it may make sense to be |
662 |
|
able to use the same classification with different layers. |
663 |
|
|
664 |
|
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
665 |
|
|
666 |
|
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
667 |
|
not AddGroup() |
668 |
|
|
669 |
|
* Thuban/UI/classifier.py: Now that we can depend on the order in |
670 |
|
a Classification and have methods to manipulate that order we don't |
671 |
|
need to use our own data structures in the grid. We can simply make |
672 |
|
the grid/table access the information they need from a copy of |
673 |
|
the classification object. |
674 |
|
(Classifier._OnCloseBtn): Event handler for when the user clicks |
675 |
|
'Close'. This is needed so if the user applies changes and then |
676 |
|
continues to change the table the user has the option of discarding |
677 |
|
the most recent changes and keeping what they applied. |
678 |
|
|
679 |
|
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
680 |
|
into the same group. |
681 |
|
|
682 |
|
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
683 |
|
with a really old version of proj, PJ_VERSION won't even be defined. |
684 |
|
If it isn't defined then just compile so that the function always |
685 |
|
returns Py_False. |
686 |
|
|
687 |
|
* test/test_classification.py: Fix tests to use the renamed methods. |
688 |
|
Still need to write tests for the new methods. |
689 |
|
|
690 |
|
2003-04-04 Jonathan Coles <[email protected]> |
691 |
|
|
692 |
|
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
693 |
|
call to SetSelection out of the method and before the call |
694 |
|
to __SelectField in __init__. This prevents a recursion of events |
695 |
|
when _OnFieldSelect is triggered by the user. |
696 |
|
|
697 |
|
2003-04-04 Jonathan Coles <[email protected]> |
698 |
|
|
699 |
|
* Thuban/Model/classification.py: Rename Color.None to |
700 |
|
Color.Transparent. |
701 |
|
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
702 |
|
Don't bother copying the color, since Colors are immutable. |
703 |
|
|
704 |
|
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
705 |
|
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
706 |
|
Thuban/UI/renderer.py, Thuban/UI/view.py: |
707 |
|
Rename Color.None to Color.Transparent. |
708 |
|
|
709 |
|
* test/test_classification.py, test/test_load.py: Rename Color.None |
710 |
|
to Color.Transparent. |
711 |
|
|
712 |
|
2003-04-04 Jonathan Coles <[email protected]> |
713 |
|
|
714 |
|
* Thuban/Model/classification.py: Fix assert calls. |
715 |
|
(ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill): |
716 |
|
Copy the color parameter rather than hold onto a reference. |
717 |
|
|
718 |
|
* Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy |
719 |
|
the color object. |
720 |
|
(NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we |
721 |
|
are sure there exists only one refernce to Color.None in the system. |
722 |
|
This allows us to use 'is' rather than the comparision functions. |
723 |
|
|
724 |
|
* Thuban/Model/save.py: Fix assert calls. |
725 |
|
|
726 |
|
* Thuban/UI/classifier.py: Fix assert calls. |
727 |
|
(ClassGrid._OnCellDClick): Call up to the classifier to open the |
728 |
|
dialog to edit the groups properties. |
729 |
|
(ClassGrid._OnCellResize): Make sure that the scollbars are drawn |
730 |
|
correctly if a cell is resized. |
731 |
|
(ClassTable.SetClassification): New. Changes the classification |
732 |
|
that is in the table. |
733 |
|
(ClassTable.__SetRow): Allow groups to be prepended. |
734 |
|
(Classifier): New code for opening the EditProperties and |
735 |
|
GenerateRanges dialogs. |
736 |
|
(SelectPropertiesDialog.__GetColor): Only set the color in the |
737 |
|
color dialog if the current color is not None. |
738 |
|
|
739 |
|
* Thuban/UI/dock.py: Fix assert calls. |
740 |
|
|
741 |
|
* Thuban/UI/legend.py: Fix assert calls. |
742 |
|
|
743 |
|
* Thuban/UI/renderer.py: Fix assert calls. |
744 |
|
|
745 |
|
* Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating |
746 |
|
classifications. |
747 |
|
(GenRangePanel): Panel specific to range generation. |
748 |
|
(GenSingletonPanel): Panel specific to singleton generation. |
749 |
|
(ClassGenerator): Class responsible for actually generating |
750 |
|
the classification from the data gathered in the dialog box. |
751 |
|
(PropertyRamp): Generates properties whose values range from |
752 |
|
a starting property to an ending property. |
753 |
|
|
754 |
|
2003-04-03 Bernhard Herzog <[email protected]> |
755 |
|
|
756 |
|
* test/support.py (print_garbage_information): New function that |
757 |
|
prints information about still connected messages and memory |
758 |
|
leaks. |
759 |
|
(run_suite): Removed. |
760 |
|
(run_tests): New function for use as a replacement of |
761 |
|
unittest.main in the test_* files. This one calls |
762 |
|
print_garbage_information at the end. |
763 |
|
|
764 |
|
* test/runtests.py (main): Use support.print_garbage_information |
765 |
|
|
766 |
|
* test/test_layer.py: Use support.run_tests instead of |
767 |
|
unittest.main so we get memory leak information |
768 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
769 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
770 |
|
(TestLayerLegend.test_visibility): Call the layer's Destroy method |
771 |
|
to fix a memory leak. |
772 |
|
|
773 |
|
* test/test_classification.py: Use support.run_tests instead of |
774 |
|
unittest.main so we get memory leak information |
775 |
|
(TestClassification.test_classification): Call the layer's Destroy |
776 |
|
method to fix a memory leak. |
777 |
|
|
778 |
|
2003-04-02 Bernhard Herzog <[email protected]> |
779 |
|
|
780 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
781 |
|
Handle the reference counts of the return value and errors in |
782 |
|
PyArg_ParseTuple correctly. |
783 |
|
|
784 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
785 |
|
sure the filename is absolute to avoid problems when saving the |
786 |
|
session again |
787 |
|
|
788 |
|
* Thuban/Model/table.py: Remove unnecessary import. Fix a typo. |
789 |
|
|
790 |
|
2003-04-01 Jonathan Coles <[email protected]> |
791 |
|
|
792 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check |
793 |
|
that there actually are points in the returned list of points |
794 |
|
before trying to index into the list. The list may be empty if |
795 |
|
the shape is a Null Shape. |
796 |
|
|
797 |
|
2003-04-01 Bernhard Herzog <[email protected]> |
798 |
|
|
799 |
|
* test/test_map.py: Don't use from <module> import * |
800 |
|
|
801 |
|
2003-04-01 Jonathan Coles <[email protected]> |
802 |
|
|
803 |
|
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
804 |
|
LAYER_LEGEND_CHANGED |
805 |
|
|
806 |
|
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
807 |
|
self.Destroy() to close the window after yesterday's changes. |
808 |
|
|
809 |
|
* test/test_map.py, test/test_session.py: Fix messages that |
810 |
|
are sent from maps and layers. |
811 |
|
|
812 |
|
2003-03-31 Jonathan Coles <[email protected]> |
813 |
|
|
814 |
|
* Thuban/UI/classifier.py: Commented out some debugging statements. |
815 |
|
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
816 |
|
RTbug #1769. |
817 |
|
|
818 |
|
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
819 |
|
position (although position doesn't work yet under GTK). |
820 |
|
(DockableWindow.Destroy): New. Called when the window must be |
821 |
|
closed. Namely needed when the DockFrame closes and must close |
822 |
|
its children. |
823 |
|
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
824 |
|
|
825 |
|
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
826 |
|
when then window is told to close. |
827 |
|
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
828 |
|
comment in source for more info. |
829 |
|
|
830 |
|
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
831 |
|
|
832 |
|
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
833 |
|
symmetry with other such methods. |
834 |
|
(MainWindow.ShowLegend): Show the legend docked by default. |
835 |
|
|
836 |
|
2003-03-28 Jonathan Coles <[email protected]> |
837 |
|
|
838 |
|
* Thuban/UI/classifier.py: Support for highlighting a specific |
839 |
|
group within the grid when the classification dialog is opened. |
840 |
|
Also contains a lot of debugging printouts which will later |
841 |
|
be removed. |
842 |
|
|
843 |
|
* Thuban/UI/dock.py: Complete rework on the dock code so that |
844 |
|
that it is fairly removed from the rest of the Thuban application. |
845 |
|
It is easy to add new docks which the rest of the program having |
846 |
|
to be aware of them. |
847 |
|
|
848 |
|
* Thuban/UI/legend.py: Modifications to support selecting a |
849 |
|
specific group in the classification dialog. Changed how layers |
850 |
|
are drawn when the layer is visible/invisible. |
851 |
|
|
852 |
|
* Thuban/UI/mainwindow.py: Removed legend specific code and |
853 |
|
replaced it with calls to the new dock code. |
854 |
|
|
855 |
|
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
856 |
|
to check if scale > 0. Trying to track down a divide by zero. |
857 |
|
|
858 |
|
2003-03-26 Jonathan Coles <[email protected]> |
859 |
|
|
860 |
|
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
861 |
|
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
862 |
|
now part of DockableWindow. |
863 |
|
(LegendPanel.DoOnSelChanged): Select the current layer in the |
864 |
|
map. |
865 |
|
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
866 |
|
with the selected layer and/or group. |
867 |
|
|
868 |
|
2003-03-26 Jonathan Coles <[email protected]> |
869 |
|
|
870 |
|
This putback contains the code for dockable windows. There is |
871 |
|
no support in wxWindows as of this date for windows that can |
872 |
|
attach themselves to other windows. |
873 |
|
|
874 |
|
The current model contains a DockableWindow which has a parent |
875 |
|
window for when it is detached and a dock window that it puts |
876 |
|
its contents in when it is docked. The contents of a DockableWindow |
877 |
|
must be a DockPanel. DockPanel itself derives from wxPanel. |
878 |
|
|
879 |
|
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
880 |
|
message, not a LAYER_LEGEND_CHANGED message. |
881 |
|
|
882 |
|
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
883 |
|
|
884 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
885 |
|
as one of the style properties for the fieldTypeText item to |
886 |
|
be sure that its size is correct when the text changes. |
887 |
|
|
888 |
|
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
889 |
|
DockableWindow. |
890 |
|
|
891 |
|
* Thuban/UI/legend.py: Added some more buttons and made the |
892 |
|
LegendPanel a DockPanel. |
893 |
|
|
894 |
|
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
895 |
|
and supporting functions for manipulating the sashes. |
896 |
|
(MainWindow.ShowLegend): Create a DockableWindow with the |
897 |
|
LegendPanel as the contents. |
898 |
|
|
899 |
|
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
900 |
|
|
901 |
|
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
902 |
|
not LAYER_LEGEND_CHANGED, messages. |
903 |
|
|
904 |
|
2003-03-25 Jonathan Coles <[email protected]> |
905 |
|
|
906 |
|
* setup.py: Added custom script bdist_rpm_build_script so that |
907 |
|
when the rpm is built the path to wx-config is correct. |
908 |
|
|
909 |
|
* setup.cfg: Added line saying to use the custom build script |
910 |
|
|
911 |
|
2003-03-20 Jonathan Coles <[email protected]> |
912 |
|
|
913 |
|
Initial implementation of the Legend. |
914 |
|
|
915 |
|
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
916 |
|
Legend information and allows the user to add/modify classifications |
917 |
|
and how the layers are drawn on the map. |
918 |
|
|
919 |
|
* setup.py: New command 'build_docs' which currently uses |
920 |
|
happydoc to generate html documentation for Thuban. |
921 |
|
|
922 |
|
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
923 |
|
Returns a string which is appropriately describes the group. |
924 |
|
|
925 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
926 |
|
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
927 |
|
|
928 |
|
* Thuban/Model/map.py (Map): Rename messages and use new, more |
929 |
|
specific, messages. |
930 |
|
|
931 |
|
* Thuban/Model/messages.py: New message to indicate that a layer's |
932 |
|
data has changed (LAYER_CHANGED). New map messages to indicate |
933 |
|
when layers have been added/removed/changed or if the stacking order |
934 |
|
of the layers has changed. |
935 |
|
|
936 |
|
* Thuban/Model/session.py: Rename and use new messages. |
937 |
|
|
938 |
|
* Thuban/UI/classifier.py: Remember if any changes have actually |
939 |
|
been applied so that if the dialog is cancelled without an application |
940 |
|
of changes we don't have to set a new classification. |
941 |
|
(ClassDataPreviewer): Pulled out the window specific code and put it |
942 |
|
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
943 |
|
symbols on any DC. |
944 |
|
|
945 |
|
* Thuban/UI/mainwindow.py: New code to open the legend. |
946 |
|
|
947 |
|
* Thuban/UI/view.py: Use new message names. |
948 |
|
|
949 |
|
2003-03-19 Jonathan Coles <[email protected]> |
950 |
|
|
951 |
|
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
952 |
|
of Python, wxPython, and some other libraries. |
953 |
|
|
954 |
|
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
955 |
|
version against what wxproj was compiled with. |
956 |
|
(check_version_gtk): If wxproj was compiled with gtk then check |
957 |
|
the given version against the version of the gtk library |
958 |
|
currently being used. |
959 |
|
|
960 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
961 |
|
|
962 |
|
* test/test_command.py: Run the tests when the module is run as a |
963 |
|
script |
964 |
|
|
965 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
966 |
|
|
967 |
|
Implement selection of multiple selected shapes in the same layer: |
968 |
|
|
969 |
|
- Introduce a new class to hold the selection. This basically |
970 |
|
replaces the interactor which was nothing more than the |
971 |
|
selection anyway. A major difference is of course that the new |
972 |
|
selection class supports multiple selected shapes in one layer |
973 |
|
|
974 |
|
- Move the object that represents the selection from the |
975 |
|
application to the canvas. The canvas is a better place than the |
976 |
|
application because the selection represents which shapes and |
977 |
|
layer of the map displayed by the canvas are selected and |
978 |
|
affects how the map is drawn. |
979 |
|
|
980 |
|
- Make the selection and its messages publicly available through |
981 |
|
the mainwindow. |
982 |
|
|
983 |
|
- The non-modal dialogs do not get a reference to the interactor |
984 |
|
anymore as they can simply refer to their parent, the |
985 |
|
mainwindow, for the what the interactor had to offer. |
986 |
|
|
987 |
|
* Thuban/UI/selection.py: New module with a class to represent the |
988 |
|
selection. |
989 |
|
|
990 |
|
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
991 |
|
these unused messages |
992 |
|
|
993 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
994 |
|
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
995 |
|
interactor is gone now. |
996 |
|
(ThubanApplication.CreateMainWindow): There is no interactor |
997 |
|
anymore so we pass None as the interactor argument for now for |
998 |
|
compatibility. |
999 |
|
|
1000 |
|
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
1001 |
|
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
1002 |
|
Unsubscribe, delegate messages according to the delegated_messages |
1003 |
|
class variable. |
1004 |
|
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
1005 |
|
attributes from instance variables as described with the |
1006 |
|
delegated_methods class variable. |
1007 |
|
(MapCanvas.__init__): New instance variable selection holding the |
1008 |
|
current selection |
1009 |
|
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
1010 |
|
pass them on to the renderer |
1011 |
|
(MapCanvas.SetMap): Clear the selection when a different map is |
1012 |
|
selected. |
1013 |
|
(MapCanvas.shape_selected): Simple force a complete redraw. The |
1014 |
|
selection class now takes care of only issueing SHAPES_SELECTED |
1015 |
|
messages when the set of selected shapes actually does change. |
1016 |
|
(MapCanvas.SelectShapeAt): The selection is now managed in |
1017 |
|
self.selection |
1018 |
|
|
1019 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
1020 |
|
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
1021 |
|
Unsubscribe, delegate messages according to the delegated_messages |
1022 |
|
class variable. |
1023 |
|
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
1024 |
|
attributes from instance variables as described with the |
1025 |
|
delegated_methods class variable. |
1026 |
|
(MainWindow.__init__): The interactor as ivar is gone. The |
1027 |
|
parameter is still there for compatibility. The selection messages |
1028 |
|
now come from the canvas. |
1029 |
|
(MainWindow.current_layer, MainWindow.has_selected_layer): |
1030 |
|
Delegate to the the canvas. |
1031 |
|
(MainWindow.LayerShowTable, MainWindow.Classify) |
1032 |
|
(MainWindow.identify_view_on_demand): The dialogs don't need the |
1033 |
|
interactor parameter anymore. |
1034 |
|
|
1035 |
|
* Thuban/UI/tableview.py (TableFrame.__init__) |
1036 |
|
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
1037 |
|
(LayerTableFrame.row_selected): The interactor is gone. It's job |
1038 |
|
from the dialog's point of view is now done by the mainwindow, |
1039 |
|
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
1040 |
|
of SELECTED_SHAPE |
1041 |
|
|
1042 |
|
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
1043 |
|
is gone. It's job from the dialog's point of view is now done by |
1044 |
|
the mainwindow, i.e. the parent. |
1045 |
|
|
1046 |
|
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
1047 |
|
gone. It's job from the dialog's point of view is now done by the |
1048 |
|
mainwindow, i.e. the parent. |
1049 |
|
|
1050 |
|
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
1051 |
|
gone. It's job from the dialog's point of view is now done by the |
1052 |
|
mainwindow, i.e. the parent. |
1053 |
|
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
1054 |
|
stored as self.mainwindow. The mainwindow is need so that the tree |
1055 |
|
can still subscribe to the selection messages. |
1056 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
1057 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
1058 |
|
selection is now accessible through the mainwindow. Subscribe to |
1059 |
|
SHAPES_SELECTED instead of SELECTED_SHAPE |
1060 |
|
|
1061 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
1062 |
|
SHAPES_SELECTED message now. |
1063 |
|
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
1064 |
|
so deal with multiple shapes |
1065 |
|
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
1066 |
|
gone. It's job from the dialog's point of view is now done by the |
1067 |
|
mainwindow, i.e. the parent. |
1068 |
|
|
1069 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
1070 |
|
parameter is now a list of shape ids. |
1071 |
|
(RecordTable.SetTable): The second parameter is now a list of |
1072 |
|
indices. |
1073 |
|
|
1074 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
1075 |
|
selected_shape parameter and ivar to selected_shapes. It's now a |
1076 |
|
list of shape ids. |
1077 |
|
(MapRenderer.draw_label_layer): Deal with multiple selected |
1078 |
|
shapes. Rearrange the code a bit so that the setup and shape type |
1079 |
|
distinctions are only executed once. |
1080 |
|
|
1081 |
|
* test/test_selection.py: Test cases for the selection class |
1082 |
|
|
1083 |
|
2003-03-11 Jonathan Coles <[email protected]> |
1084 |
|
|
1085 |
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
1086 |
|
doesn't cause Thuban to crash. |
1087 |
|
|
1088 |
|
* Thuban/Model/layer.py: Handle the cyclic references between |
1089 |
|
a layer and its classification better, and be sure to disconnect |
1090 |
|
the classification from the layer when the layer is destroyed |
1091 |
|
so that we don't maintain a cyclic reference that may not be |
1092 |
|
garbage collected. |
1093 |
|
|
1094 |
|
* Thuban/Model/classification.py: See comment for layer.py. |
1095 |
|
|
1096 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
1097 |
|
|
1098 |
|
* HOWTO-Release: New. Information on the steps for releasing |
1099 |
|
a new version of Thuban. |
1100 |
|
|
1101 |
|
2003-03-11 Jonathan Coles <[email protected]> |
1102 |
|
|
1103 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
1104 |
|
Use True instead of true. |
1105 |
|
(Classifier): Should have a single panel in which all the controls lie. |
1106 |
|
|
1107 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
1108 |
|
|
1109 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
1110 |
|
|
1111 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
1112 |
|
|
1113 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
1114 |
|
|
1115 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
1116 |
|
field_type information is present. |
1117 |
|
|
1118 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1119 |
|
|
1120 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
1121 |
|
field type label grow so that when the text changes the |
1122 |
|
size is updated correctly. This may be a wxWindows bug. |
1123 |
|
|
1124 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1125 |
|
|
1126 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
1127 |
|
SESSION_REPLACED. |
1128 |
|
|
1129 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
1130 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
1131 |
|
instead of in Reset, so we only set the size once. |
1132 |
|
|
1133 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
1134 |
|
|
1135 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
1136 |
|
Call Close() instead of Shutdown(). |
1137 |
|
|
1138 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
1139 |
|
|
1140 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
1141 |
|
Go back to using OnClose() instead of Shutdown(). |
1142 |
|
|
1143 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1144 |
|
|
1145 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
1146 |
|
to know the old field index as well as the new one. |
1147 |
|
|
1148 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1149 |
|
|
1150 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
1151 |
|
to correctly set the table information and call this from |
1152 |
|
__init__ and from _OnFieldSelect so that all the information |
1153 |
|
is up to date when the dialog opens and when a field is changed. |
1154 |
|
|
1155 |
|
2003-03-10 Jonathan Coles <[email protected]> |
1156 |
|
|
1157 |
|
* Thuban/Model/classification.py (Classification): Don't use |
1158 |
|
layer's message function directly, use the ClassChanged() method |
1159 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
1160 |
|
must keep the information about field name and field type in |
1161 |
|
sync when an owning layer is set or removed. |
1162 |
|
|
1163 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
1164 |
|
classification can tell the layer when its data has changed. |
1165 |
|
(Layer.SetClassification): Accepts None as an arguement to |
1166 |
|
remove the current classification and correctly handles |
1167 |
|
adding a new classification. |
1168 |
|
|
1169 |
|
* Thuban/Model/load.py: Comment out print statement |
1170 |
|
|
1171 |
|
* test/test_classification.py, test/test_save.py: New and |
1172 |
|
improved tests. |
1173 |
|
|
1174 |
|
2003-03-07 Jonathan Coles <[email protected]> |
1175 |
|
|
1176 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
1177 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
1178 |
|
they can easily be copied by the classifier dialog. |
1179 |
|
(ClassGroupProperites.__init__): The default line color should |
1180 |
|
have been Color.Black. |
1181 |
|
|
1182 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
1183 |
|
uses a consistent set of functions. |
1184 |
|
(Classifier): Now non-modal. Has field type label which changes |
1185 |
|
as the field changes. Keep track of buttons in a list so that |
1186 |
|
we can enable/disable the buttons when the None field is selected. |
1187 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
1188 |
|
|
1189 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
1190 |
|
does what OnClose did, but can be called by the application to |
1191 |
|
close a window. Needed when a session changes, and we have to |
1192 |
|
close the classifier windows. |
1193 |
|
|
1194 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
1195 |
|
Shuts down open dialogs. Used when a new session is created |
1196 |
|
or a session is opened. |
1197 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
1198 |
|
if we don't call SaveSessionAs first. |
1199 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
1200 |
|
different layers. |
1201 |
|
|
1202 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
1203 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
1204 |
|
event notification and call the parent Shutdown(). This was |
1205 |
|
necessary so the application can close the tree window. |
1206 |
|
|
1207 |
|
2003-03-06 Jonathan Coles <[email protected]> |
1208 |
|
|
1209 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
1210 |
|
Addition of __eq__ and __ne__ methods. |
1211 |
|
(Classification.SetLayer): prevent recursion between this method |
1212 |
|
and Layer.SetClassification(). |
1213 |
|
|
1214 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
1215 |
|
|
1216 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
1217 |
|
between this method and Classification.SetLayer(). |
1218 |
|
|
1219 |
|
* test/test_classification.py, test/test_load.py, |
1220 |
|
test/test_session.py: Fixed and added tests for the classification |
1221 |
|
classes. |
1222 |
|
|
1223 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
1224 |
|
|
1225 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
1226 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
1227 |
|
CreateTable because otherwise it triggers an assertion in |
1228 |
|
wxPython/wxGTK 2.4. |
1229 |
|
|
1230 |
|
2003-03-05 Jonathan Coles <[email protected]> |
1231 |
|
|
1232 |
|
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
1233 |
|
|
1234 |
|
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
1235 |
|
|
1236 |
|
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
1237 |
|
|
1238 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
1239 |
|
|
1240 |
|
2003-03-05 Jonathan Coles <[email protected]> |
1241 |
|
|
1242 |
|
* Thuban/UI/classifier.py: Added class documentation. |
1243 |
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
1244 |
|
Store just the groups in the table and generate the other |
1245 |
|
column information when it is requested. Add "None" field |
1246 |
|
to pull-down to select no classification. |
1247 |
|
|
1248 |
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
1249 |
|
(Str2Num): Only catch ValueError exceptions. |
1250 |
|
|
1251 |
|
* Thuban/Model/classification.py: Class documentation. Renaming |
1252 |
|
of methods with Stroke to Line. Groups are stored in a single |
1253 |
|
list with the default as the first element. Groups are searched |
1254 |
|
in the order they appear in the list. |
1255 |
|
|
1256 |
|
* Thuban/Model/color.py: Documentation. |
1257 |
|
|
1258 |
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
1259 |
|
the kind of data represented by a field. |
1260 |
|
|
1261 |
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
1262 |
|
conversion function; fixes RTbug #1713. |
1263 |
|
|
1264 |
|
* Thuban/Model/save.py (Saver): Store field type information. |
1265 |
|
|
1266 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
1267 |
|
(Table): Add field_info_by_name() to retrieve field information |
1268 |
|
by specifying the field name, not the number. |
1269 |
|
|
1270 |
|
* Thuban/UI/mainwindow.py: Function name changes. |
1271 |
|
|
1272 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
1273 |
|
get the layer classification once. Don't try to classify |
1274 |
|
values when the field is None: just use the default properties. |
1275 |
|
|
1276 |
|
* Thuban/UI/view.py: Function name changes. |
1277 |
|
|
1278 |
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
1279 |
|
|
1280 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
1281 |
|
|
1282 |
|
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
1283 |
|
the fill and stroke layer attributes optional with suitable |
1284 |
|
default values. Add the stroke_width layer attribute. Use correct |
1285 |
|
syntax for empty elements. Make the attribute list for labels |
1286 |
|
refer to the label element. |
1287 |
|
|
1288 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
1289 |
|
|
1290 |
|
* setup.py (thuban_build_py.build): Add a comment about distutils in |
1291 |
|
Python 2.3 containing some of the functionality we implement in |
1292 |
|
setup.py ourselves. |
1293 |
|
|
1294 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Set the table |
1295 |
|
before the selection mode. Doing it the other way round triggers |
1296 |
|
an assertion in wxWindows. |
1297 |
|
|
1298 |
|
* Thuban/Model/save.py (escape): Fix typo in doc-string |
1299 |
|
|
1300 |
|
* Thuban/Model/classification.py: Remove unnecessary wxPython |
1301 |
|
import |
1302 |
|
|
1303 |
|
2003-03-04 Jonathan Coles <[email protected]> |
1304 |
|
|
1305 |
|
* Thuban/Model/classification.py (ClassGroupRange.GetProperties): |
1306 |
|
Parameter 'value' should default to None. |
1307 |
|
|
1308 |
|
* Thuban/UI/mainwindow.py: Use Layer.GetClassification() since |
1309 |
|
the class attribute __classification is now private. |
1310 |
|
|
1311 |
|
* Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from |
1312 |
|
Classifier to ClassGrid. Added support for removing selected rows, |
1313 |
|
which including code for keeping track of when cells are selected, |
1314 |
|
and deselected. |
1315 |
|
(ClassTable): Support for added/removing rows. Fixed a problem |
1316 |
|
with __ParseInput whereby it would not allow strings (only numbers) |
1317 |
|
to be entered. |
1318 |
|
(Classifier): Added button and supporting code for removing |
1319 |
|
selected rows. |
1320 |
|
|
1321 |
|
2003-02-27 Jonathan Coles <[email protected]> |
1322 |
|
|
1323 |
|
* Thuban/common.py: Moved color conversion functions into |
1324 |
|
Thuban/UI/common.py. |
1325 |
|
(Str2Num): Now converts the float (not the string) to a long/int |
1326 |
|
so that an exception isn't thrown. |
1327 |
|
|
1328 |
|
* Thuban/UI/common.py: Common functions used in several UI modules |
1329 |
|
|
1330 |
|
* Thuban/Model/classification.py: Changed the class hierarchy |
1331 |
|
so that a Classification consists of Groups which return |
1332 |
|
Properties when a value matches a Group. |
1333 |
|
|
1334 |
|
* Thuban/Model/layer.py: Fixed name resolution problem. |
1335 |
|
|
1336 |
|
* Thuban/Model/load.py: Use new Classification and Group functions. |
1337 |
|
|
1338 |
|
* Thuban/Model/save.py (Saver.write_attribs): Fixes a test case |
1339 |
|
failure. |
1340 |
|
(Saver.write_classification): Use new Classification and Group |
1341 |
|
functions. |
1342 |
|
|
1343 |
|
* Thuban/UI/classifier.py: Changes to use new Classification and Group |
1344 |
|
functions. Fix to create a tuple with a single value instead of |
1345 |
|
simply returning the value. |
1346 |
|
|
1347 |
|
* Thuban/UI/renderer.py: Use new Classification and Group functions. |
1348 |
|
Use common.py functions. |
1349 |
|
|
1350 |
|
* Thuban/UI/tree.py: Use common.py functions. |
1351 |
|
|
1352 |
|
* test/test_classification.py: Use new Classification and Group |
1353 |
|
classes. |
1354 |
|
|
1355 |
|
2003-02-24 Jonathan Coles <[email protected]> |
1356 |
|
|
1357 |
|
* Thuban/common.py (Color2wxColour, wxColour2Color): Conversion |
1358 |
|
functions from Thuban color objects to wxWindow colour objects. |
1359 |
|
|
1360 |
|
* Thuban/Model/classification.py (Classification): Renamed |
1361 |
|
GetProperties() to GetClassData(). Used the new iterator |
1362 |
|
in TreeInfo(). |
1363 |
|
(ClassIterator): Iterator implementation to iterate over the |
1364 |
|
ClassData objects in a classification object. |
1365 |
|
|
1366 |
|
* Thuban/Model/save.py (Saver.write_classificaton): Uses |
1367 |
|
the new iterator to save the classification information. |
1368 |
|
|
1369 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog): Support |
1370 |
|
for changing the stroke and fill colors and previewing the |
1371 |
|
changes. |
1372 |
|
|
1373 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenSession, |
1374 |
|
MainWindow.SaveSessionAs): Text string changes so the dialogs |
1375 |
|
have more meaningful titles. |
1376 |
|
|
1377 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change |
1378 |
|
Classification method name from GetProperties to GetClassData. |
1379 |
|
|
1380 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls |
1381 |
|
instead of accessing now non-existent class variables. |
1382 |
|
|
1383 |
|
2003-02-24 Bernhard Herzog <[email protected]> |
1384 |
|
|
1385 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove |
1386 |
|
unneeded Shape() call. Rendering is substantially faster without |
1387 |
|
it and it avoids some problems with broken shape files. |
1388 |
|
|
1389 |
|
2003-02-20 Frank Koormann <[email protected]> |
1390 |
|
|
1391 |
|
Force minimal size of identify and label dialogs. The autosizing |
1392 |
|
looked too ugly. |
1393 |
|
|
1394 |
|
* Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns. |
1395 |
|
* Thuban/UI/labeldialog.py (LabelDialog.dialog_layout): |
1396 |
|
Set size of listctrl. |
1397 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
1398 |
|
Set size of dialog. |
1399 |
|
|
1400 |
|
2003-02-19 Jonathan Coles <[email protected]> |
1401 |
|
|
1402 |
|
* test/test_classification.py, test/test_layer.py, |
1403 |
|
test/test_load.py, test/test_map.py, test/test_session.py: |
1404 |
|
Updated the tests to use the new functions that are in the |
1405 |
|
respective classes. |
1406 |
|
|
1407 |
|
* Thuban/Model/classification.py (Classification): |
1408 |
|
Uses the new ClassData* classes. Modification messages are |
1409 |
|
passed up to the parent layer (if it exists). |
1410 |
|
(ClassData): New class to encapsulate the common data in each |
1411 |
|
classification property. |
1412 |
|
(ClassDataDefault): Represents the Default class. data. |
1413 |
|
(ClassDataPoint): Represents a single class. data point |
1414 |
|
(ClassDataRange): Represents a class. range |
1415 |
|
(ClassDataMap): Represents a class. map (unused). |
1416 |
|
|
1417 |
|
* Thuban/Model/color.py: Added Color.None to represent something |
1418 |
|
with no color. Color.Black represents the color black. |
1419 |
|
(NoColor): Helper class derived from Color to represent something |
1420 |
|
with no color. |
1421 |
|
|
1422 |
|
* Thuban/Model/layer.py (Layer): Removed references to fill, stroke, |
1423 |
|
stroke_width attributes. Made the 'classification' attribute private. |
1424 |
|
New methods for setting/getting the classification. |
1425 |
|
|
1426 |
|
* Thuban/Model/load.py (ProcessSession): Use new methods on Layer |
1427 |
|
to get the classifcation and use the new ClassData* classes to |
1428 |
|
hold the classification data. Use Str2Num to convert numbers |
1429 |
|
properly. |
1430 |
|
|
1431 |
|
* Thuban/Model/save.py (Saver): Use new Color and Classification |
1432 |
|
methods |
1433 |
|
|
1434 |
|
* Thuban/UI/classifier.py (ClassGrid): New class to represent a |
1435 |
|
custom grid. |
1436 |
|
(ClassTable): Support for editing Values and Labels and for |
1437 |
|
changing what type (point or range) of data is stored in each |
1438 |
|
property based on how the user enters the data. |
1439 |
|
(Classifier): Support for saving the new classifications and |
1440 |
|
launching the dialog to edit a property. |
1441 |
|
(SelectPropertiesDialog): New class for editing the visual |
1442 |
|
properties of a classification (stroke color, width, and fill color) |
1443 |
|
(ClassPreviewer): Took the Draw method from ClassRenderer and |
1444 |
|
made most of it into this new class. Intend to use this class in |
1445 |
|
the SelectPropertiesDialog for previewing changes. |
1446 |
|
|
1447 |
|
* Thuban/UI/renderer.py: Use new Color and Classification methods. |
1448 |
|
|
1449 |
|
* Thuban/UI/tree.py: Formatting changes. |
1450 |
|
|
1451 |
|
* Doc/thuban.dtd: Add 'label' element |
1452 |
|
|
1453 |
|
* Thuban/common.py: New. Contains common routines used throughout |
1454 |
|
the code. |
1455 |
|
(Str2Num): Takes a string and converts it to the "best" type of |
1456 |
|
number. |
1457 |
|
|
1458 |
|
2003-02-14 Bernhard Herzog <[email protected]> |
1459 |
|
|
1460 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |
1461 |
|
dragging flag is always set to 0 even when the tool implementation |
1462 |
|
raises an exception |
1463 |
|
|
1464 |
|
2003-02-11 Bernhard Herzog <[email protected]> |
1465 |
|
|
1466 |
|
* Thuban/UI/application.py (ThubanApplication.splash_screen): New |
1467 |
|
method to create a splash screen. |
1468 |
|
(ThubanApplication.ShowMainWindow): New. Show the main window. |
1469 |
|
Needed so the splash screen can display the mainwindow |
1470 |
|
(ThubanApplication.OnInit): Call the |
1471 |
|
new splash_screen method to determine whether the application |
1472 |
|
should display a splash screen. If it displays a splash screen do |
1473 |
|
not immediately show the main window. |
1474 |
|
|
1475 |
|
2003-02-11 Jonathan Coles <[email protected]> |
1476 |
|
|
1477 |
|
* Thuban/Model/classification.py: Added import line to fix |
1478 |
|
feature conflicts between running on python2.2 and python2.1. |
1479 |
|
|
1480 |
|
* Thuban/UI/classifier.py (ClassTable): Didn't need to hang |
1481 |
|
onto the clinfo parameter, so removed the deepcopy(). |
1482 |
|
|
1483 |
|
2003-02-10 Jonathan Coles <[email protected]> |
1484 |
|
|
1485 |
|
* Thuban/Model/save.py (Saver.open_element, Saver.close_element): |
1486 |
|
Added element_open variable to track opening and closing of tags |
1487 |
|
so that tags that don't span more than one line are closed with |
1488 |
|
/> instead of </tag_name>. Use the GetDefault*() methods of |
1489 |
|
the Classification class. |
1490 |
|
|
1491 |
|
* Thuban/Model/classification.py (Classificaton): Added set and |
1492 |
|
get methods for the default data. The class also takes a layer |
1493 |
|
reference so that modification messages can be sent. Fixed the |
1494 |
|
methods to use the new ClassData class. |
1495 |
|
(ClassData): New class to encapsulate the classification data |
1496 |
|
|
1497 |
|
* Thuban/Model/layer.py (Layer): Remove the |
1498 |
|
Set[Fill|Stroke|StrokeWidth]() methods. Code should call the |
1499 |
|
SetDefault*() methods on the layer's classification object. |
1500 |
|
(Layer.__init__): Use the new SetDefault*() methods in the |
1501 |
|
Classification class. |
1502 |
|
|
1503 |
|
* Thuban/Model/load.py (ProcessSession): Use the new ClassData |
1504 |
|
object instead of a dictionary. |
1505 |
|
|
1506 |
|
* Thuban/UI/classifier.py (ClassRenderer): New class to |
1507 |
|
draw the classifications in the dialog box's table. |
1508 |
|
(Classifier): Modified to use the ClassRenderer class. |
1509 |
|
|
1510 |
|
* Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*() |
1511 |
|
methods of the Classification class. |
1512 |
|
|
1513 |
|
* Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods |
1514 |
|
of the ClassData class. |
1515 |
|
|
1516 |
|
* test/test_classification.py, test/test_layer.py, |
1517 |
|
test/test_map.py, test/test_session.py: Fix the tests to work |
1518 |
|
with the above code changes. |
1519 |
|
|
1520 |
|
2003-02-03 Jonathan Coles <[email protected]> |
1521 |
|
|
1522 |
|
* Thuban/Model/classification.py (Classification): Added getNull() |
1523 |
|
to return the NullData reference |
1524 |
|
|
1525 |
|
* Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke, |
1526 |
|
Layer.SetStrokeWidth): Modified these functions to change the |
1527 |
|
null data in the classification rather than keep these values |
1528 |
|
directly in the Layer class. Menu options to change these values |
1529 |
|
work again. |
1530 |
|
|
1531 |
|
2003-01-28 Jonathan Coles <[email protected]> |
1532 |
|
|
1533 |
|
* Thuban/UI/classifier.py (Classifier): Resolved merging conflicts. |
1534 |
|
Fixed crashing problem on some systems. Dialog box shows |
1535 |
|
classification data. |
1536 |
|
|
1537 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing |
1538 |
|
Colors in the tree view. |
1539 |
|
|
1540 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build |
1541 |
|
the tree info for classifications. Commented out unnecessary lines. |
1542 |
|
|
1543 |
|
* Thuban/Model/classification.py (Classification.TreeInfo): New |
1544 |
|
function to add information about the classification into the |
1545 |
|
tree view. |
1546 |
|
|
1547 |
|
2003-01-27 Jan-Oliver Wagner <[email protected]> |
1548 |
|
|
1549 |
|
* Thuban/__init__.py (_): New. |
1550 |
|
|
1551 |
|
* Thuban/Model/classification.py, Thuban/Model/extension.py, |
1552 |
|
Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py, |
1553 |
|
Thuban/Model/session.py, Thuban/UI/application.py, |
1554 |
|
Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py, |
1555 |
|
Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py, |
1556 |
|
Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py, |
1557 |
|
Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py, |
1558 |
|
Thuban/Lib/fileutil.py: Replace user string by _() for i18n. |
1559 |
|
|
1560 |
|
2003-01-27 Jonathan Coles <[email protected]> |
1561 |
|
|
1562 |
|
* Thuban/Model/layer.py: Classification initialization calls. |
1563 |
|
|
1564 |
|
* Thuban/Model/classification.py: Created class to encapsulate |
1565 |
|
a layer classification. Supports specific data points and |
1566 |
|
ranges. |
1567 |
|
|
1568 |
|
* Thuban/Model/load.py: Added support for loading classification |
1569 |
|
information. |
1570 |
|
|
1571 |
|
* Thuban/Model/save.py: Added support for saving classification |
1572 |
|
information. |
1573 |
|
|
1574 |
|
* Thuban/UI/classifier.py: Initial class for a dialog box for |
1575 |
|
specifying classification information. |
1576 |
|
|
1577 |
|
* Thuban/UI/mainwindows.py: Support for opening the classifier |
1578 |
|
dialog. |
1579 |
|
|
1580 |
|
* Thuban/UI/renderer.py: Support for drawing a layer with the |
1581 |
|
classification information. |
1582 |
|
|
1583 |
|
* Data/iceland_sample_class.thuban: iceland_sample with |
1584 |
|
classification data. |
1585 |
|
|
1586 |
|
* test/test_classification: Tests for the Classification class. |
1587 |
|
|
1588 |
|
2002-12-09 Bernhard Herzog <[email protected]> |
1589 |
|
|
1590 |
|
* test/test_command.py: New. Tests for the command classes. |
1591 |
|
|
1592 |
|
* Thuban/UI/command.py (ToolCommand): New class for tool commands. |
1593 |
|
(Command.IsTool): New method to distinguish between command |
1594 |
|
switching tools and other commands. |
1595 |
|
|
1596 |
|
* Thuban/UI/view.py (MapCanvas.SelectTool): New method to select |
1597 |
|
the tool to avoid direct assignments to instance variables |
1598 |
|
(MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool) |
1599 |
|
(MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to |
1600 |
|
change the tool |
1601 |
|
|
1602 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an |
1603 |
|
active tool's command turns insensitive, disable the tool. |
1604 |
|
(_tool_command): Use the new ToolCommand class |
1605 |
|
|
1606 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Use the |
1607 |
|
SelectTool method to change the tool |
1608 |
|
(iconfile): Use the ToolCommand class |
1609 |
|
|
1610 |
|
2002-12-03 Bernhard Herzog <[email protected]> |
1611 |
|
|
1612 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle |
1613 |
|
the case of selected items that are not children of Layers or Maps |
1614 |
|
properly. Previously this bug would trigger an assertion in |
1615 |
|
wxWindows. |
1616 |
|
|
1617 |
|
2002-11-06 Frank Koormann <[email protected]> |
1618 |
|
|
1619 |
|
* Thuban/UI/mainwindow.py: Altered the order of tools in the |
1620 |
|
toolbar: First now are all navigation tools (Zoom In/Out, Pan, |
1621 |
|
Full Extent). |
1622 |
|
|
1623 |
|
2002-10-23 Bernhard Herzog <[email protected]> |
1624 |
|
|
1625 |
|
* setup.py (setup call): version now 0.1.3 |
1626 |
|
|
1627 |
|
* MANIFEST.in: Add the files in test/ |
1628 |
|
|
1629 |
|
* test/README: Add note about tests requiring the iceland data |
1630 |
|
|
1631 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to |
1632 |
|
copyright notice. |
1633 |
|
|
1634 |
|
2002-10-18 Bernhard Herzog <[email protected]> |
1635 |
|
|
1636 |
|
* test/test_map.py |
1637 |
|
(TestMapWithContents.test_projected_bounding_box): Use an explicit |
1638 |
|
epsilon. |
1639 |
|
|
1640 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual) |
1641 |
|
(FloatComparisonMixin.assertFloatSeqEqual): give a more useful |
1642 |
|
message if the assertion fails and don't return the return value |
1643 |
|
of self.assert_. In assertFloatSeqEqual the return meant that not |
1644 |
|
all items of the sequence were compared. |
1645 |
|
|
1646 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
1647 |
|
|
1648 |
|
* test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil |
1649 |
|
|
1650 |
|
* Thuban/Lib/fileutil.py: Fixup some whitespace and typos |
1651 |
|
|
1652 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): Create |
1653 |
|
the string with the bounding box on the fly because of platform |
1654 |
|
differences in the way %g is handled. |
1655 |
|
|
1656 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Create an empty |
1657 |
|
DBFfile too because Thuban layers can't yet cope missing DBF |
1658 |
|
files. |
1659 |
|
|
1660 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
1661 |
|
|
1662 |
|
* test/test_menu.py: Use initthuban instead of |
1663 |
|
add_thuban_dir_to_path to initialize Thuban. |
1664 |
|
|
1665 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
1666 |
|
Mixin class for float comparisons |
1667 |
|
(SubscriberMixin): New. Mixin class to test messages sent through |
1668 |
|
the Connector class |
1669 |
|
|
1670 |
|
* test/README: Fix a typo and add the -v flag to the command for |
1671 |
|
individual tests |
1672 |
|
|
1673 |
|
* test/test_session.py: New. Test cases for Thuban.Model.session |
1674 |
|
|
1675 |
|
* test/test_proj.py: New. Test cases for Thuban.Model.proj |
1676 |
|
|
1677 |
|
* test/test_map.py: New. Test cases for Thuban.Model.map |
1678 |
|
|
1679 |
|
* test/test_layer.py: New. Test cases for Thuban.Model.layer |
1680 |
|
|
1681 |
|
* test/test_label.py: New. Test cases for Thuban.Model.label |
1682 |
|
|
1683 |
|
* test/test_connector.py: New. Test cases for Thuban.Lib.connector |
1684 |
|
|
1685 |
|
* test/test_color.py: New. Test cases for Thuban.Model.color |
1686 |
|
|
1687 |
|
* test/test_base.py: New. Test cases for Thuban.Model.base |
1688 |
|
|
1689 |
|
2002-09-13 Bernhard Herzog <[email protected]> |
1690 |
|
|
1691 |
|
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
1692 |
|
the CHANGED channel too. |
1693 |
|
|
1694 |
|
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
1695 |
|
CHANGED channel too. |
1696 |
|
(Map.__init__): Call the Modifiable constructor as well. |
1697 |
|
|
1698 |
|
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
1699 |
|
event if the modified flag changes. |
1700 |
|
(Modifiable.changed): Tweak the doc-string. |
1701 |
|
|
1702 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
1703 |
|
(MainWindow.set_position_text): Put the code that puts the text |
1704 |
|
with the mouse position into the status bar into the new method |
1705 |
|
set_position_text so that it can overwritten in derived classes. |
1706 |
|
|
1707 |
|
2002-09-12 Bernhard Herzog <[email protected]> |
1708 |
|
|
1709 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
1710 |
|
message box on the main window. |
1711 |
|
|
1712 |
|
2002-09-11 Bernhard Herzog <[email protected]> |
1713 |
|
|
1714 |
|
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
1715 |
|
the 'E' because it's less likely to interfere with other menu |
1716 |
|
entries. |
1717 |
|
(MainWindow.build_menu): remove an incorrect comment. |
1718 |
|
|
1719 |
|
2002-09-10 Bernhard Herzog <[email protected]> |
1720 |
|
|
1721 |
|
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
1722 |
|
(_tool_command): Add sensitive parameter |
1723 |
|
(_has_visible_map): Sensitivity callback to tools and other |
1724 |
|
commands that require a visible map. Use it in map_zoom_in_tool, |
1725 |
|
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
1726 |
|
and map_full_extent |
1727 |
|
|
1728 |
|
2002-09-06 Bernhard Herzog <[email protected]> |
1729 |
|
|
1730 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
1731 |
|
VIEW_POSITION |
1732 |
|
|
1733 |
|
2002-09-04 Frank Koormann <[email protected]> |
1734 |
|
|
1735 |
|
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
1736 |
|
|
1737 |
|
2002-09-02 Bernhard Herzog <[email protected]> |
1738 |
|
|
1739 |
|
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
1740 |
|
wxWindows already and our implementation doesn't work correctly |
1741 |
|
with wxGTK 2.3: |
1742 |
|
(MapCanvas.__init__): Remove the instance variable |
1743 |
|
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
1744 |
|
be drawin |
1745 |
|
(MapCanvas.OnIdle): Removed. |
1746 |
|
|
1747 |
|
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
1748 |
|
a parameter to determine the size of the rectangle. |
1749 |
|
(MapCanvas.find_shape_at): Create the box around the point on a |
1750 |
|
layer by layer basis and make the size depend on the shape type. |
1751 |
|
This solves a problem with the selection of point shapes at the |
1752 |
|
border of the layer's bounding box |
1753 |
|
|
1754 |
|
2002-08-30 Bernhard Herzog <[email protected]> |
1755 |
|
|
1756 |
|
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
1757 |
|
for the sensitivity of remove layer. |
1758 |
|
(_can_remove_layer): New. Sensitivity callback for remove layer |
1759 |
|
(Command layer_remove): Use _can_remove_layer |
1760 |
|
|
1761 |
|
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
1762 |
|
determine whether a given layer can be deleted. |
1763 |
|
|
1764 |
|
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
1765 |
|
(MapCanvas.do_redraw): Get rid of the unused update_region |
1766 |
|
instance variable |
1767 |
|
|
1768 |
|
* Thuban/UI/view.py: Add/update some doc-strings. |
1769 |
|
|
1770 |
|
* test/: new subdirectory with a bunch of unit tests. |
1771 |
|
|
1772 |
|
* test/README, test/test_table.py, test/test_save.py, |
1773 |
|
test/test_menu.py, test/test_load.py: Initial set of tests and |
1774 |
|
brief instructions on how to run them |
1775 |
|
|
1776 |
|
2002-08-29 Bernhard Herzog <[email protected]> |
1777 |
|
|
1778 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle |
1779 |
|
arcs with multiple parts. |
1780 |
|
|
1781 |
|
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
1782 |
|
Handle degenrate rectangles. |
1783 |
|
|
1784 |
|
* Thuban/Model/table.py: Make writing records work correctly: |
1785 |
|
(Table.__init__): Keep track of whether the DBF is open for |
1786 |
|
writing |
1787 |
|
(Table.write_record): Open the DBF file for writing when necessary |
1788 |
|
|
1789 |
|
2002-08-27 Bernhard Herzog <[email protected]> |
1790 |
|
|
1791 |
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
1792 |
|
dbf files only for reading by default. Use a new writable dbf |
1793 |
|
object for writing. |
1794 |
|
|
1795 |
|
2002-08-26 Bernhard Herzog <[email protected]> |
1796 |
|
|
1797 |
|
* Thuban/UI/mainwindow.py: Refactor the context creation: |
1798 |
|
(MainWindow.Context): New method to return a context |
1799 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
1800 |
|
new method |
1801 |
|
|
1802 |
|
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
1803 |
|
layer table specific code from TableGrid into LayerTableGrid |
1804 |
|
(TableFrame, LayerTableFrame): Split the layer table specific code |
1805 |
|
from TableFrame into LayerTableFrame |
1806 |
|
(LayerTableGrid.select_shape): Remove a debug print |
1807 |
|
|
1808 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
1809 |
|
LayerTableFrame |
1810 |
|
|
1811 |
|
2002-08-23 Bernhard Herzog <[email protected]> |
1812 |
|
|
1813 |
|
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
1814 |
|
absolute filename. |
1815 |
|
|
1816 |
2002-08-22 Bernhard Herzog <[email protected]> |
2002-08-22 Bernhard Herzog <[email protected]> |
1817 |
|
|
1818 |
* Thuban/Model/table.py (Table.write_record): New method to write |
* Thuban/Model/table.py (Table.write_record): New method to write |
1819 |
records. |
records. |
1820 |
(Table.__init__): Open the DBF file for writing too. |
(Table.__init__): Open the DBF file for writing too. |
1821 |
|
|
1822 |
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
1823 |
into the underlying table. |
into the underlying table. |
1855 |
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
1856 |
because thubaninit_contents will do it for us. |
because thubaninit_contents will do it for us. |
1857 |
|
|
1858 |
2002-08-16 Jan-Oliver Wagner <[email protected]> |
2002-08-16 Jan-Oliver Wagner <[email protected]> |
1859 |
|
|
1860 |
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
1861 |
tree window already open |
tree window already open |
1983 |
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
1984 |
CHANGED channel to be informed of changes. |
CHANGED channel to be informed of changes. |
1985 |
(SessionTreeCtrl.session_channels): Not needed any longer. |
(SessionTreeCtrl.session_channels): Not needed any longer. |
1986 |
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
1987 |
Only have to (un)subscribe CHANGED |
Only have to (un)subscribe CHANGED |
1988 |
|
|
1989 |
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
2044 |
* Thuban/Model/layer.py (Layer.TreeInfo), |
* Thuban/Model/layer.py (Layer.TreeInfo), |
2045 |
Thuban/Model/extension.py (Extension.TreeInfo), |
Thuban/Model/extension.py (Extension.TreeInfo), |
2046 |
Thuban/Model/map.py (Map.TreeInfo), |
Thuban/Model/map.py (Map.TreeInfo), |
2047 |
Thuban/Model/session.py (Session.TreeInfo): |
Thuban/Model/session.py (Session.TreeInfo): |
2048 |
Add TreeInfo methods to implement the new tree view update scheme |
Add TreeInfo methods to implement the new tree view update scheme |
2049 |
|
|
2050 |
2002-07-16 Bernhard Herzog <[email protected]> |
2002-07-16 Bernhard Herzog <[email protected]> |
2125 |
* setup.py: In the setup call, make sure that the library |
* setup.py: In the setup call, make sure that the library |
2126 |
directories are under $prefix/lib not directly under $prefix. |
directories are under $prefix/lib not directly under $prefix. |
2127 |
|
|
2128 |
2002-06-20 Jan-Oliver Wagner <[email protected]> |
2002-06-20 Jan-Oliver Wagner <[email protected]> |
2129 |
|
|
2130 |
* Thuban/Model/extension.py: new module to handle extension objects. |
* Thuban/Model/extension.py: new module to handle extension objects. |
2131 |
* Thuban/Model/messages.py: new messages for extensions. |
* Thuban/Model/messages.py: new messages for extensions. |
2354 |
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
2355 |
position in the statusbar |
position in the statusbar |
2356 |
|
|
2357 |
2002-04-26 Frank Koormann <[email protected]> |
2002-04-26 Frank Koormann <[email protected]> |
2358 |
|
|
2359 |
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
2360 |
|
|
2361 |
2002-04-24 Frank Koormann <[email protected]> |
2002-04-24 Frank Koormann <[email protected]> |
2362 |
|
|
2363 |
* Resources/Bitmaps/identify.xpm: shadow added |
* Resources/Bitmaps/identify.xpm: shadow added |
2364 |
|
|
2365 |
* Resources/Bitmaps/fullextent.xpm: new |
* Resources/Bitmaps/fullextent.xpm: new |
|
|
|
|
2002-04-22 Jan-Oliver Wagner <[email protected]> |
|
2366 |
|
|
2367 |
* Thuban/UI/tree.py (update_tree): added test for None on map bounding box |
2002-04-22 Jan-Oliver Wagner <[email protected]> |
2368 |
|
|
2369 |
|
* Thuban/UI/tree.py (update_tree): added test for None on map bounding |
2370 |
|
box |
2371 |
|
|
2372 |
2002-04-21 Jan-Oliver Wagner <[email protected]> |
2002-04-21 Jan-Oliver Wagner <[email protected]> |
2373 |
|
|
2374 |
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
2375 |
|
|
2376 |
* Thuban/UI/tree.py (update_tree): added added map extent |
* Thuban/UI/tree.py (update_tree): added added map extent |
2377 |
|
|
2378 |
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
2379 |
icon; added map_full_extend as tool |
icon; added map_full_extend as tool |
2380 |
|
|
2381 |
2002-04-19 Jan-Oliver Wagner <[email protected]> |
2002-04-19 Jan-Oliver Wagner <[email protected]> |
2382 |
|
|
2383 |
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
2384 |
saving _new_ sessions |
saving _new_ sessions |
2480 |
|
|
2481 |
* setup.py: increase version number to 0.1 |
* setup.py: increase version number to 0.1 |
2482 |
(data_dist): New command class for data distribution |
(data_dist): New command class for data distribution |
|
|
|
2483 |
|
|
2484 |
2001-09-14 Bernhard Herzog <[email protected]> |
2001-09-14 Bernhard Herzog <[email protected]> |
2485 |
|
|
2486 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
2487 |
Handle the case of no layer (i.e. layer is None) properly. |
Handle the case of no layer (i.e. layer is None) properly. |
2488 |
|
|
2489 |
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
2490 |
Set the initial selection of the combo boxes to reflect the |
Set the initial selection of the combo boxes to reflect the |
2491 |
projection we're starting with in a way that works on windows, |
projection we're starting with in a way that works on windows, |
2492 |
too. |
too. |
2596 |
(MainWindow.identify_view_on_demand): Store the interactor in an |
(MainWindow.identify_view_on_demand): Store the interactor in an |
2597 |
instvar and use that reference instead of going through main.app |
instvar and use that reference instead of going through main.app |
2598 |
|
|
2599 |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
2600 |
* Thuban/UI/application.py (ThubanApplication.OnInit): |
* Thuban/UI/application.py (ThubanApplication.OnInit): |
2601 |
* Thuban/UI/main.py (main): Create the session tree view in main |
* Thuban/UI/main.py (main): Create the session tree view in main |
2602 |
with the new mainwindow method ShowSessionTree and not directly |
with the new mainwindow method ShowSessionTree and not directly |
2603 |
the application's OnInit method |
the application's OnInit method |
2613 |
layer to the tableview dialog. |
layer to the tableview dialog. |
2614 |
|
|
2615 |
* Thuban/UI/tableview.py: Add some doc-strings |
* Thuban/UI/tableview.py: Add some doc-strings |
2616 |
(TableGrid): |
(TableGrid): |
2617 |
(TableGrid.OnRangeSelect): |
(TableGrid.OnRangeSelect): |
2618 |
(TableGrid.OnSelectCell): |
(TableGrid.OnSelectCell): |
2619 |
(TableFrame.__init__): |
(TableFrame.__init__): |
2680 |
2001-09-05 Bernhard Herzog <[email protected]> |
2001-09-05 Bernhard Herzog <[email protected]> |
2681 |
|
|
2682 |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
2683 |
|
|
2684 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
2685 |
interactor to pass through to the MapCanvas |
interactor to pass through to the MapCanvas |
2686 |
|
|
2687 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
2688 |
argument to the MainWindow constructor to get rid of the ugly hack |
argument to the MainWindow constructor to get rid of the ugly hack |
2689 |
that made main.app available early just so that the mapcanvas |
that made main.app available early just so that the mapcanvas |
2730 |
(ThubanInstall.run): Remove the leading install root from the |
(ThubanInstall.run): Remove the leading install root from the |
2731 |
script filename if an install root was specified and use the new |
script filename if an install root was specified and use the new |
2732 |
link_file method |
link_file method |
2733 |
|
|
2734 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
2735 |
the window when the first layer is added to the map. |
the window when the first layer is added to the map. |
2736 |
|
|
2767 |
(InnoIconItem): Helper class for bdist_inno |
(InnoIconItem): Helper class for bdist_inno |
2768 |
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
2769 |
this together with the appropriate parameters, to the setup call. |
this together with the appropriate parameters, to the setup call. |
2770 |
|
|
2771 |
* setup.cfg (bdist_inno): added new section for the inno setup |
* setup.cfg (bdist_inno): added new section for the inno setup |
2772 |
installer |
installer |
2773 |
|
|