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 |
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 |
* Thuban/Model/layer.py (Layer.GetProjection): New. Needed to |
103 |
implement the interface that the ProjFrame dialog expects. |
implement the interface that the ProjFrame dialog expects. |
104 |
|
|