1 |
2003-04-25 Jonathan Coles <[email protected]> |
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 |
* Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the |
63 |
tree for projection information. |
tree for projection information. |
64 |
|
|