1 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/messages.py (PROJECTION_ADDED) |
4 |
|
(PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for |
5 |
|
the ProjFile objects |
6 |
|
|
7 |
|
* Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can |
8 |
|
easily send messages when the projections change |
9 |
|
(ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages |
10 |
|
when the change was successful |
11 |
|
|
12 |
|
* test/test_proj.py (TestProjFile.setUp): Subscribe to some of the |
13 |
|
proj file messages |
14 |
|
(TestProjFile.test_add_remove) |
15 |
|
(TestProjFile.test_remove_non_existing) |
16 |
|
(TestProjFile.test_replace) |
17 |
|
(TestProjFile.test_replace_non_existing): Test whether the right |
18 |
|
messages are sent |
19 |
|
|
20 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
21 |
|
|
22 |
|
* test/test_proj.py (TestProjFile.test): Refactor into several |
23 |
|
tests |
24 |
|
(TestProjFile.test_add_remove) |
25 |
|
(TestProjFile.test_remove_non_existing) |
26 |
|
(TestProjFile.test_replace) |
27 |
|
(TestProjFile.test_replace_non_existing): Some of the new |
28 |
|
individual test cases |
29 |
|
(TestProjFileSimple): New class for the rest of the test cases |
30 |
|
that came out of the refactoring |
31 |
|
(ProjFileTest): Derive from xmlsupport.ValidationTest so that the |
32 |
|
derived classes don't have to |
33 |
|
|
34 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
Add an optional EPSG code to the projection objects and extend the |
37 |
|
.proj file format accordingly. |
38 |
|
|
39 |
|
* Resources/XML/projfile.dtd (element projection): Add epsg |
40 |
|
attribute |
41 |
|
|
42 |
|
* Thuban/Model/proj.py (Projection.__init__): New parameter and |
43 |
|
instance variable epsg. Update doc-string |
44 |
|
(Projection.EPSGCode, Projection.Label): New methods to provide |
45 |
|
access to EPSG code and a label for use in dialogs |
46 |
|
|
47 |
|
* Thuban/Model/resource.py (ProjFileReader.start_projection) |
48 |
|
(ProjFileReader.end_projection, ProjFileSaver.write_projfile): |
49 |
|
Handle the epsg code attribute when reading or writing proj files |
50 |
|
|
51 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave) |
52 |
|
(ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail) |
53 |
|
(ProjFrame.__FillAvailList): Use the projection's Label method to |
54 |
|
get the string for the list box |
55 |
|
|
56 |
|
* test/test_proj.py (TestProjection.test_label) |
57 |
|
(TestProjection.test_label_epsg) |
58 |
|
(TestProjection.test_epsgcode_for_non_epsg_projection) |
59 |
|
(TestProjection.test_epsgcode_for_real_epsg_projection): New tests |
60 |
|
for the label and EPSGCode methods |
61 |
|
(WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write) |
62 |
|
(WriteProjFileTests.test_write_empty_file): Create the ProjFile |
63 |
|
objects in the test cases and put the expected contents into the |
64 |
|
test case methods too. Update doTestWrite accordingly |
65 |
|
(TestLoadingProjFile) |
66 |
|
(TestLoadingProjFileWithEmptyProjectionlist): New classes with the |
67 |
|
read tests from TestProjFile. |
68 |
|
(TestProjFile.doTestRead, TestProjFile.testRead): Removed. These |
69 |
|
tests are now in the new classes. |
70 |
|
(sample_projfile, sample_projfile_data) |
71 |
|
(sample_projfile2, sample_projfile_data2): Removed. Not used |
72 |
|
anymore. |
73 |
|
(TestProjFile.test_read_unreadable_file): No need to reset the |
74 |
|
permissions at the end anymore since we use a unique filename |
75 |
|
|
76 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
77 |
|
|
78 |
|
* test/test_proj.py: Some more refactoring of the test cases |
79 |
|
(ProjFileTest): New base class for the proj file tests. |
80 |
|
(TestProjFile): Derive from ProjFileTest |
81 |
|
(TestProjFile.test_read_unreadable_file) |
82 |
|
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use |
83 |
|
the new filename method to get a unique filename |
84 |
|
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed. |
85 |
|
(WriteProjFileTests): New class for proj file write tests. |
86 |
|
Contains the write test that were in TestProjFile originally. |
87 |
|
|
88 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
89 |
|
|
90 |
|
* test/test_proj.py (TestProjFile.testRead) |
91 |
|
(TestProjFile.test_read_non_existing_file) |
92 |
|
(TestProjFile.test_read_unreadable_file) |
93 |
|
(TestProjFile.test_read_empty_file): Split into several methods. |
94 |
|
|
95 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
96 |
|
|
97 |
|
* Thuban/UI/sizers.py: New file with custom sizers. |
98 |
|
|
99 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate |
100 |
|
all projection type specific panels and put them into a |
101 |
|
NotebookLikeSizer. This way the dialog doesn't change its size |
102 |
|
when a different projection is selected |
103 |
|
(ProjFrame.__init__): Rename projection_panels |
104 |
|
projection_panel_defs and reuse projection_panels for a list of |
105 |
|
the instantiated panels. |
106 |
|
(ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail) |
107 |
|
(ProjFrame.__DoOnProjChoice): Changes due to the new handling of |
108 |
|
the panels |
109 |
|
(UnknownProjPanel._DoLayout): Place the newlines in the message |
110 |
|
differently to make the panel narrower. |
111 |
|
(TMPanel._DoLayout): Layout the parameters in one column. |
112 |
|
|
113 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
114 |
|
|
115 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |
116 |
|
that contains all the setup for the dialog's widgets, layout and |
117 |
|
event handling. |
118 |
|
(__): Call build_dialog to build the dialog. |
119 |
|
(ProjFrame.__set_properties, ProjFrame.__do_layout): Removed. |
120 |
|
Their functionality is now in build_dialog |
121 |
|
(ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons) |
122 |
|
(ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail) |
123 |
|
(ProjFrame.__DoOnProjChoice): Small updates due to slightly |
124 |
|
different widget names and hierarchy introduced with build_dialog. |
125 |
|
|
126 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
127 |
|
|
128 |
|
* README: Fix typo. |
129 |
|
|
130 |
|
2003-10-09 Bernhard Herzog <[email protected]> |
131 |
|
|
132 |
|
* Thuban/Model/proj.py (ProjFile.Add): Do not check whether the |
133 |
|
projection is already in the list. This is *a lot* faster when |
134 |
|
loading files with hundreds of projections since it saves a linear |
135 |
|
search. OTOH this will allow adding the same projection to the |
136 |
|
user.proj file multiple times in the projection dialog but we'll |
137 |
|
deal with that later |
138 |
|
|
139 |
|
2003-10-09 Jan-Oliver Wagner <[email protected]> |
140 |
|
|
141 |
|
* devtools: New. Directory for developer tools that are not intended |
142 |
|
for the regular user. |
143 |
|
|
144 |
|
* devtools/create_epsg.py: New. Convert the epsg file of proj into |
145 |
|
a python .proj file. |
146 |
|
|
147 |
|
2003-10-09 Bernhard Herzog <[email protected]> |
148 |
|
|
149 |
|
* test/test_proj.py |
150 |
|
(TestProjection.test_get_parameter_without_equals_sign): New. Test |
151 |
|
whether GetParameter handles parameters without "=" sign correctly |
152 |
|
|
153 |
|
* Thuban/Model/proj.py (Projection.GetParameter): Handle |
154 |
|
parameters that do not contain a "=". Update the doc-string |
155 |
|
|
156 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
157 |
|
|
158 |
|
* Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the |
159 |
|
length limit on the projname text control |
160 |
|
|
161 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
162 |
|
|
163 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo) |
164 |
|
(TestProjection.test_get_projection_units_normal): New. Tests for |
165 |
|
the Projection.GetProjectedUnits method |
166 |
|
|
167 |
2003-10-08 Jan-Oliver Wagner <[email protected]> |
2003-10-08 Jan-Oliver Wagner <[email protected]> |
168 |
|
|
169 |
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |