1 |
|
2003-10-13 Bernhard Herzog <bh@intevation.de> |
2 |
|
|
3 |
|
* test/test_proj.py: Some more refactoring of the test cases |
4 |
|
(ProjFileTest): New base class for the proj file tests. |
5 |
|
(TestProjFile): Derive from ProjFileTest |
6 |
|
(TestProjFile.test_read_unreadable_file) |
7 |
|
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use |
8 |
|
the new filename method to get a unique filename |
9 |
|
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed. |
10 |
|
(WriteProjFileTests): New class for proj file write tests. |
11 |
|
Contains the write test that were in TestProjFile originally. |
12 |
|
|
13 |
|
2003-10-13 Bernhard Herzog <bh@intevation.de> |
14 |
|
|
15 |
|
* test/test_proj.py (TestProjFile.testRead) |
16 |
|
(TestProjFile.test_read_non_existing_file) |
17 |
|
(TestProjFile.test_read_unreadable_file) |
18 |
|
(TestProjFile.test_read_empty_file): Split into several methods. |
19 |
|
|
20 |
|
2003-10-10 Bernhard Herzog <bh@intevation.de> |
21 |
|
|
22 |
|
* Thuban/UI/sizers.py: New file with custom sizers. |
23 |
|
|
24 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate |
25 |
|
all projection type specific panels and put them into a |
26 |
|
NotebookLikeSizer. This way the dialog doesn't change its size |
27 |
|
when a different projection is selected |
28 |
|
(ProjFrame.__init__): Rename projection_panels |
29 |
|
projection_panel_defs and reuse projection_panels for a list of |
30 |
|
the instantiated panels. |
31 |
|
(ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail) |
32 |
|
(ProjFrame.__DoOnProjChoice): Changes due to the new handling of |
33 |
|
the panels |
34 |
|
(UnknownProjPanel._DoLayout): Place the newlines in the message |
35 |
|
differently to make the panel narrower. |
36 |
|
(TMPanel._DoLayout): Layout the parameters in one column. |
37 |
|
|
38 |
|
2003-10-10 Bernhard Herzog <bh@intevation.de> |
39 |
|
|
40 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |
41 |
|
that contains all the setup for the dialog's widgets, layout and |
42 |
|
event handling. |
43 |
|
(__): Call build_dialog to build the dialog. |
44 |
|
(ProjFrame.__set_properties, ProjFrame.__do_layout): Removed. |
45 |
|
Their functionality is now in build_dialog |
46 |
|
(ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons) |
47 |
|
(ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail) |
48 |
|
(ProjFrame.__DoOnProjChoice): Small updates due to slightly |
49 |
|
different widget names and hierarchy introduced with build_dialog. |
50 |
|
|
51 |
|
2003-10-10 Bernhard Herzog <bh@intevation.de> |
52 |
|
|
53 |
|
* README: Fix typo. |
54 |
|
|
55 |
|
2003-10-09 Bernhard Herzog <bh@intevation.de> |
56 |
|
|
57 |
|
* Thuban/Model/proj.py (ProjFile.Add): Do not check whether the |
58 |
|
projection is already in the list. This is *a lot* faster when |
59 |
|
loading files with hundreds of projections since it saves a linear |
60 |
|
search. OTOH this will allow adding the same projection to the |
61 |
|
user.proj file multiple times in the projection dialog but we'll |
62 |
|
deal with that later |
63 |
|
|
64 |
|
2003-10-09 Jan-Oliver Wagner <jan@intevation.de> |
65 |
|
|
66 |
|
* devtools: New. Directory for developer tools that are not intended |
67 |
|
for the regular user. |
68 |
|
|
69 |
|
* devtools/create_epsg.py: New. Convert the epsg file of proj into |
70 |
|
a python .proj file. |
71 |
|
|
72 |
|
2003-10-09 Bernhard Herzog <bh@intevation.de> |
73 |
|
|
74 |
|
* test/test_proj.py |
75 |
|
(TestProjection.test_get_parameter_without_equals_sign): New. Test |
76 |
|
whether GetParameter handles parameters without "=" sign correctly |
77 |
|
|
78 |
|
* Thuban/Model/proj.py (Projection.GetParameter): Handle |
79 |
|
parameters that do not contain a "=". Update the doc-string |
80 |
|
|
81 |
|
2003-10-08 Bernhard Herzog <bh@intevation.de> |
82 |
|
|
83 |
|
* Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the |
84 |
|
length limit on the projname text control |
85 |
|
|
86 |
|
2003-10-08 Bernhard Herzog <bh@intevation.de> |
87 |
|
|
88 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo) |
89 |
|
(TestProjection.test_get_projection_units_normal): New. Tests for |
90 |
|
the Projection.GetProjectedUnits method |
91 |
|
|
92 |
|
2003-10-08 Jan-Oliver Wagner <jan@intevation.de> |
93 |
|
|
94 |
|
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |
95 |
|
Added missing 'val' parameter. |
96 |
|
|
97 |
|
2003-10-08 Bernhard Herzog <bh@intevation.de> |
98 |
|
|
99 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the |
100 |
|
projection type of the currently selected projection is not known, |
101 |
|
i.e. there's no panel for it, use the UnknownProjPanel |
102 |
|
(ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split |
103 |
|
the actual replacing of the proj panel into the new method |
104 |
|
_show_proj_panel. |
105 |
|
(UnknownProjPanel): Add doc-string. |
106 |
|
(UnknownProjPanel._DoLayout): Insert a newline into the text so |
107 |
|
that the panel is not so wide. |
108 |
|
|
109 |
2003-10-08 Bernhard Herzog <bh@intevation.de> |
2003-10-08 Bernhard Herzog <bh@intevation.de> |
110 |
|
|
111 |
* Thuban/Model/resource.py (read_proj_file): Return the warnings |
* Thuban/Model/resource.py (read_proj_file): Return the warnings |