/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1783 by bh, Mon Oct 6 17:32:31 2003 UTC revision 1837 by frank, Tue Oct 21 09:29:52 2003 UTC
# Line 1  Line 1 
1    2003-10-21  Frank Koormann   <[email protected]>
2    
3            Popup menu for legend. Scheduled for the 1.2 release this was too
4            simple to implement: The popup menu is bound to the legend tree, while
5            the events are hanlded by its anchestor, the legend panel. This
6            allows reuse of all the event handlers already implemented for the
7            legend toolbar buttons.
8    
9            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
10            to add handlers for the events issued by the popup menu.
11            (LegendPanel._OnToggleVisibility): Handler for toggling layer
12            visibility event
13            (LegendPanel._OnProjection): Handler for layer projection event.
14            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
15            (LegendTree._OnRightClick): Event handler for right click, select item
16            and pop up menu.
17            (LegendTree.ToggleVisibility): Toggle layer visibility
18            (LegendTree.LayerProjection): Raise layer projection dialog for
19            current layer.
20    
21    2003-10-21  Bernhard Herzog  <[email protected]>
22    
23            * Resources/Projections/defaults.proj: Use correct DOCTYPE
24            declaration. The top-level element is projectionlist not projfile
25    
26    2003-10-20  Bernhard Herzog  <[email protected]>
27    
28            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
29            method to write a projfile and display a busy cursor and error
30            dialogs.
31            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
32            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
33            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
34            busy cursor while loading the user and system prj files.
35    
36    2003-10-16  Bernhard Herzog  <[email protected]>
37    
38            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
39            ProjFile objects
40            (clear_proj_file_cache): New function to clear the cache. Mainly
41            useful for use by the test suite
42            (read_proj_file): Use the cache.
43    
44            * test/test_proj.py (TestProjFile): Clarify the doc-string
45            (ProjFileReadTests): Update doc-string
46            (ProjFileReadTests.test_get_system_proj_file): Check whether the
47            system proj files is cached.
48            (ProjFileLoadTestCase): New base class for the proj file tests
49            derived from support.FileLoadTestCase to provide some common
50            behavior.
51            (TestLoadingProjFile)
52            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
53            (TestProjFileWithInvalidParameters.file_contents): Derive from
54            ProjFileLoadTestCase
55            (TestLoadingProjFile.test_caching): New. Test whether the cache
56            works
57    
58    2003-10-16      Silke Reimer    <[email protected]>
59    
60            * debian/*: New directory with configuration files for building a thuban
61              deb-package.
62    
63    2003-10-14  Bernhard Herzog  <[email protected]>
64    
65            * test/test_proj.py: Execute support.run_tests when run as
66            __main__ so that missing unsubscribes are detected
67            (TestProjFile.tearDown): Destroy the proj_file properly
68    
69    2003-10-14  Bernhard Herzog  <[email protected]>
70    
71            * Thuban/Model/messages.py (PROJECTION_ADDED)
72            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
73            the ProjFile objects
74    
75            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
76            easily send messages when the projections change
77            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
78            when the change was successful
79    
80            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
81            proj file messages
82            (TestProjFile.test_add_remove)
83            (TestProjFile.test_remove_non_existing)
84            (TestProjFile.test_replace)
85            (TestProjFile.test_replace_non_existing): Test whether the right
86            messages are sent
87    
88    2003-10-14  Bernhard Herzog  <[email protected]>
89    
90            * test/test_proj.py (TestProjFile.test): Refactor into several
91            tests
92            (TestProjFile.test_add_remove)
93            (TestProjFile.test_remove_non_existing)
94            (TestProjFile.test_replace)
95            (TestProjFile.test_replace_non_existing): Some of the new
96            individual test cases
97            (TestProjFileSimple): New class for the rest of the test cases
98            that came out of the refactoring
99            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
100            derived classes don't have to
101    
102    2003-10-13  Bernhard Herzog  <[email protected]>
103    
104            Add an optional EPSG code to the projection objects and extend the
105            .proj file format accordingly.
106    
107            * Resources/XML/projfile.dtd (element projection): Add epsg
108            attribute
109    
110            * Thuban/Model/proj.py (Projection.__init__): New parameter and
111            instance variable epsg. Update doc-string
112            (Projection.EPSGCode, Projection.Label): New methods to provide
113            access to EPSG code and a label for use in dialogs
114    
115            * Thuban/Model/resource.py (ProjFileReader.start_projection)
116            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
117            Handle the epsg code attribute when reading or writing proj files
118    
119            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
120            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
121            (ProjFrame.__FillAvailList): Use the projection's Label method to
122            get the string for the list box
123    
124            * test/test_proj.py (TestProjection.test_label)
125            (TestProjection.test_label_epsg)
126            (TestProjection.test_epsgcode_for_non_epsg_projection)
127            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
128            for the label and EPSGCode methods
129            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
130            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
131            objects in the test cases and put the expected contents into the
132            test case methods too. Update doTestWrite accordingly
133            (TestLoadingProjFile)
134            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
135            read tests from TestProjFile.
136            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
137            tests are now in the new classes.
138            (sample_projfile, sample_projfile_data)
139            (sample_projfile2, sample_projfile_data2): Removed. Not used
140            anymore.
141            (TestProjFile.test_read_unreadable_file): No need to reset the
142            permissions at the end anymore since we use a unique filename
143    
144    2003-10-13  Bernhard Herzog  <[email protected]>
145    
146            * test/test_proj.py: Some more refactoring of the test cases
147            (ProjFileTest): New base class for the proj file tests.
148            (TestProjFile): Derive from ProjFileTest
149            (TestProjFile.test_read_unreadable_file)
150            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
151            the new filename method to get a unique filename
152            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
153            (WriteProjFileTests): New class for proj file write tests.
154            Contains the write test that were in TestProjFile originally.
155    
156    2003-10-13  Bernhard Herzog  <[email protected]>
157    
158            * test/test_proj.py (TestProjFile.testRead)
159            (TestProjFile.test_read_non_existing_file)
160            (TestProjFile.test_read_unreadable_file)
161            (TestProjFile.test_read_empty_file): Split into several methods.
162    
163    2003-10-10  Bernhard Herzog  <[email protected]>
164    
165            * Thuban/UI/sizers.py: New file with custom sizers.
166    
167            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
168            all projection type specific panels and put them into a
169            NotebookLikeSizer. This way the dialog doesn't change its size
170            when a different projection is selected
171            (ProjFrame.__init__): Rename projection_panels
172            projection_panel_defs and reuse projection_panels for a list of
173            the instantiated panels.
174            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
175            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
176            the panels
177            (UnknownProjPanel._DoLayout): Place the newlines in the message
178            differently to make the panel narrower.
179            (TMPanel._DoLayout): Layout the parameters in one column.
180    
181    2003-10-10  Bernhard Herzog  <[email protected]>
182    
183            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
184            that contains all the setup for the dialog's widgets, layout and
185            event handling.
186            (__): Call build_dialog to build the dialog.
187            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
188            Their functionality is now in build_dialog
189            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
190            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
191            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
192            different widget names and hierarchy introduced with build_dialog.
193    
194    2003-10-10  Bernhard Herzog  <[email protected]>
195    
196            * README: Fix typo.
197    
198    2003-10-09  Bernhard Herzog  <[email protected]>
199    
200            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
201            projection is already in the list. This is *a lot* faster when
202            loading files with hundreds of projections since it saves a linear
203            search. OTOH this will allow adding the same projection to the
204            user.proj file multiple times in the projection dialog but we'll
205            deal with that later
206    
207    2003-10-09  Jan-Oliver Wagner <[email protected]>
208    
209            * devtools: New. Directory for developer tools that are not intended
210            for the regular user.
211    
212            * devtools/create_epsg.py: New. Convert the epsg file of proj into
213            a python .proj file.
214    
215    2003-10-09  Bernhard Herzog  <[email protected]>
216    
217            * test/test_proj.py
218            (TestProjection.test_get_parameter_without_equals_sign): New. Test
219            whether GetParameter handles parameters without "=" sign correctly
220    
221            * Thuban/Model/proj.py (Projection.GetParameter): Handle
222            parameters that do not contain a "=". Update the doc-string
223    
224    2003-10-08  Bernhard Herzog  <[email protected]>
225    
226            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
227            length limit on the projname text control
228    
229    2003-10-08  Bernhard Herzog  <[email protected]>
230    
231            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
232            (TestProjection.test_get_projection_units_normal): New. Tests for
233            the Projection.GetProjectedUnits method
234    
235    2003-10-08  Jan-Oliver Wagner <[email protected]>
236    
237            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
238            Added missing 'val' parameter.
239    
240    2003-10-08  Bernhard Herzog  <[email protected]>
241    
242            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
243            projection type of the currently selected projection is not known,
244            i.e. there's no panel for it, use the UnknownProjPanel
245            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
246            the actual replacing of the proj panel into the new method
247            _show_proj_panel.
248            (UnknownProjPanel): Add doc-string.
249            (UnknownProjPanel._DoLayout): Insert a newline into the text so
250            that the panel is not so wide.
251    
252    2003-10-08  Bernhard Herzog  <[email protected]>
253    
254            * Thuban/Model/resource.py (read_proj_file): Return the warnings
255            too. Update the doc-string
256            (get_proj_files): Removed. It wasn't used anywhere
257            (get_system_proj_files, get_system_proj_file): Rename to
258            get_system_proj_file and return the ProjFile object and not a list
259            of ProjFile objects. Update the callers.
260            (get_user_proj_files, get_user_proj_file): Rename to
261            get_user_proj_file return the ProjFile object and not a list of
262            ProjFile objects. Update the callers.
263            (ProjFileReader.__init__): New instance variable for the warnings.
264            Rename the __pf ivar to projfile. Update the methods referring to
265            __pf
266            (ProjFileReader.end_projection): Catch any errors raised when
267            instantiating the projection and record that as an error. The
268            projection will not be in the final ProjFile object.
269            (ProjFileReader.GetWarnings): New method to return the warnings.
270    
271            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
272            show the warnings from the projfile reader
273            (ProjFrame._OnImport): Deal with any warnings returned by
274            read_proj_file
275            (ProjFrame.__FillAvailList): Deal with any warnings returned by
276            get_system_proj_file or get_user_proj_file.
277    
278            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
279            (TestProjFileWithInvalidParameters.file_contents): New test cases
280            to test whether read_proj_file handles invalid projection
281            parameters correctly
282            (TestProjFile.test_get_system_proj_file): New. Simple test for
283            resource.get_system_proj_file
284    
285    2003-10-07  Bernhard Herzog  <[email protected]>
286    
287            * test/test_derivedshapestore.py
288            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
289            properly so that the temporary directories get deleted correctly
290    
291  2003-10-06  Bernhard Herzog  <[email protected]>  2003-10-06  Bernhard Herzog  <[email protected]>
292    
293          Handle the title changes in a proper MVC way.          Handle the title changes in a proper MVC way.

Legend:
Removed from v.1783  
changed lines
  Added in v.1837

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26