1 |
2003-04-25 Jonathan Coles <[email protected]> |
2003-04-25 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/proj.py (Projection): Removed Set*() methods to make |
4 |
|
Projection an immutable item. Fixes RTbug #1825. |
5 |
|
(Projection.__init__): Initialize instance variables here. |
6 |
|
(ProjFile.Replace): New. Replace the given projection object with |
7 |
|
the new projection object. This solves the problem of needing the |
8 |
|
mutator Projection.SetProjection() in the ProjFrame class and |
9 |
|
allows a projection to change parameters without changing its |
10 |
|
location in the file. |
11 |
|
|
12 |
|
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should |
13 |
|
be of type wxSAVE and should verify overwriting a file. |
14 |
|
|
15 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new |
16 |
|
ProjFile.Replace() method instead of the mutator |
17 |
|
Projection.SetProjection(). Also requires that we reassign the |
18 |
|
client data to the new projection. |
19 |
|
|
20 |
|
* test/test_proj.py (TestProjection.test): Test GetName() and |
21 |
|
GetAllParameters() |
22 |
|
(TestProjFile.test): Remove tests for Set*() methods. Add tests |
23 |
|
for Replace(). |
24 |
|
|
25 |
|
2003-04-25 Jonathan Coles <[email protected]> |
26 |
|
|
27 |
* Thuban/Model/save.py (SessionSaver.write_projection): Make sure |
* Thuban/Model/save.py (SessionSaver.write_projection): Make sure |
28 |
to save the name of the projection. |
to save the name of the projection. |
29 |
|
|