/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

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

revision 669 by jonathan, Mon Apr 14 17:13:08 2003 UTC revision 721 by jonathan, Thu Apr 24 10:11:55 2003 UTC
# Line 1  Line 1 
1    2003-04-24  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/load.py (XMLReader.read): Should have been checking
4            if the file_or_filename object had the 'read' attribute.
5    
6    2003-04-23  Jonathan Coles   <[email protected]>
7    
8            * Thuban/Model/resource.py: Fixes RTbug #1813.
9            (ReadProjFile): Add documentation about which exceptions are raised.
10            Always pass the exceptions up to the caller.
11            (GetProjFiles): If the directory can't be read return an empty list.
12            If any of the proj files can't be read skip that file and go
13            on to the next one.
14    
15            * test/test_proj.py: Added test cases to handle nonexistent files,
16            unreadable files, and files that don't parse correctly.
17    
18    2003-04-23  Jonathan Coles   <[email protected]>
19    
20            Projection dialog. Allows the user to select from a list
21            of projection templates and optionally edit them and save new ones.
22    
23            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
24            (ProjPanel): Base class for projection specific panels.
25            (TMPanel): Projection panel for Transverse Mercartor.
26            (UTMPanel): Projection panel for Universal Transverse Mercartor.
27            (LCCPanel): Projection panel for Lambert Conic Conformal.
28            (GeoPanel): Projetion panel for Geographic Projection.
29    
30    2003-04-23  Jonathan Coles   <[email protected]>
31    
32            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
33            promote symmetry. There now exists XMLReader and XMLWriter.
34            (XMLReader.read): New. Call to read the given file descriptor or
35            filename.
36            (XMLReader.close): New. Make sure the file is closed.
37            (XMLReader.GetFileName): New. Return just the file name that is being
38            read from.
39            (XMLReader.GetDirectory): New. Return just the directory of the file
40            that is being read.
41            (XMLReader.AddDispatchers): New. Take a dictionary which contains
42            the names of functions to call as the XML tree is parsed.
43            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
44            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
45            (SessionLoader): Removed class variables start_dispatcher and
46            end_dispatcher since this functionality is now part of a class
47            instance. Fixes RTbug #1808.
48            (SessionLoader.__init__): Add dispatcher functions.
49            (load_xmlfile): Code was moved into the XMLReader.read().
50            (load_session): Use modified SessionLoader.
51    
52            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
53            map's projection.
54    
55            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
56            GetAllParameters.
57            (Projection.GetParameter): Returns the value for the given parameter.
58    
59            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
60            (GetProjFiles): Renamed from GetProjections. Now returns a list
61            of ProjFile objects.
62            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
63            a list of ProjFile objects whose files are not user defined.
64            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
65            list of ProjFile objects whose files are user defined.
66            (ProjFileReader): Extend new XMLReader.
67    
68            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
69            promote symmetry.
70    
71            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
72            control instead of a wxComboBox. wxChoice controls do not generate
73            events as the uses highlights possible choices which fixes problems
74            with resizing the dialog when the use selects an option.
75    
76            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
77            control instead of a wxComboBox.
78    
79            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
80            dialog.
81    
82            * test/test_proj.py (TestProjection.test): New tests for GetParameter
83            method.
84    
85    2003-04-22  Bernhard Herzog  <[email protected]>
86    
87            * Thuban/UI/mainwindow.py: Remove some unused imports and global
88            constants
89    
90            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
91            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
92    
93    2003-04-17  Bernhard Herzog  <[email protected]>
94    
95            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
96            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
97            anymore.
98            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
99            (Layer.ShapeType, Layer.Shape): No need to call
100            self.open_shapefile since it's always called in __init__
101    
102            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
103            In wxPython 2.4 there's no need to extend MainLoop anymore since
104            wxPython itself makes sure OnExit is called.
105    
106    2003-04-16  Jonathan Coles   <[email protected]>
107    
108            Initial putback of projection management code. Includes new
109            classes to read and write projection files. The current load
110            and save classes were abstracted a bit so they could be reused.
111            The Projection class was extended to provide new methods and
112            have a name.
113    
114            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
115            general XML reading methods that were part of ProcessSession.
116    
117            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
118            name.
119            (ProjFile): New. Represents a file that contains projection
120            information.
121    
122            * Thuban/Model/resource.py: New. Contains general utilities
123            for read and writing projection files.
124    
125            * Thuban/Model/save.py (XMLSaver): New. Contains all the
126            general XML writing methods that were part of SessionSaver.
127            (SessionSaver): Renamed from Saver.
128    
129            * test/test_proj.py: New test cases for the projection
130            file read and write functions.
131    
132    2003-04-16  Jonathan Coles   <[email protected]>
133    
134            * Thuban/Model/classification.py: Use repr() around values
135            in the ClassGroup*.__repr__() methods so it is clearer when
136            a value is a string and when it is a number.
137    
138            * test/test_load.py: Rework the classification test to test
139            that we can load old files.
140            (testLabels): Test a file where the groups have labels.
141    
142    2003-04-16  Bernhard Herzog  <[email protected]>
143    
144            Safer implementation of the performance enhancements of the
145            low-level renderer:
146            
147            * extensions/thuban/wxproj.cpp (extract_projection)
148            (extract_pointer): Rename extract_projection to extract_pointer
149            and redefine its purpose to return the pointer stored in a CObject
150            returned by the object's cobject method. Update all callers.
151            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
152            handling of these low-level parameters so that each s_draw_info
153            instance is handled as a CObject at python level that also
154            contains real references to the actual python objects which
155            contain the values in the struct. Add free_draw_info as the
156            destructor.
157            (draw_polygon_shape): Add the py_draw_info parameter which must a
158            cobject containing an s_draw_info pointer.
159    
160            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
161            method to instantiat the low-level render parameter
162            (MapRenderer.draw_shape_layer): Use the new method. Remove some
163            commented out code.
164            (MapRenderer.draw_polygon_shape): Make the first parameter not the
165            layer but the low-level render parameter
166            (ScreenRenderer.draw_shape_layer): Use the low-level render
167            parameter.
168    
169    2003-04-15  Jonathan Coles   <[email protected]>
170    
171            * Thuban/Model/classification.py: Implemented __repr__ for
172            the ClassGroup* classes to make debugging a bit easier.
173            (ClassGroup.SetLabel): Check that the string is an instance
174            of StringTypes not StringType. Accounts for Unicode strings.
175    
176            * Thuban/Model/color.py: Implemented __repr__ to make
177            debugging a bit easier.
178    
179            * Thuban/Model/save.py (Saver.write_classification): Need to
180            save the group label.
181    
182            * test/test_load.py (testClassification): New. Loads the
183            iceland_sample_test.thuban file and checks if it was loaded
184            correctly.
185    
186    2003-04-15  Jonathan Coles   <[email protected]>
187    
188            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
189            to improve rendering performance by initializing the variables
190            that are not change each time draw_polygon_shape() is called.
191            The values are stored in a global struct draw_info.
192            (draw_polygon_shape): Removed initialization code that is
193            now in draw_polygon_init().
194    
195            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
196            drawing initialization call to draw_polygon_init()
197            (MapRenderer.draw_polygon_shape): Use new signature of
198            draw_polygon_shape.
199    
200            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
201            weirdness by setting the range to (1, maxint).
202    
203            * Thuban/Model/classification.py (ClassGroupProperties): Make
204            instance variables private and optimize comparison operator
205            by first checking if the color references are the same.
206            (ClassGroupSingleton): Make instance variables private.
207            (ClassGroupRange): Make instance variables private.
208    
209            * HOWTO-Release: Filled in missing steps for releasing packages.
210    
211    2003-04-15  Bernhard Herzog  <[email protected]>
212    
213            First stab at internationalized messages:
214    
215            * Thuban/__init__.py (_): Implement the translation function for
216            real using the python gettext module.
217    
218            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
219            translate empty strings.
220    
221            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
222            Add a missing space to a warning message
223    
224            * po/README: New. Notes about the management of the translation
225            files.
226    
227            * po/Makefile: New. Makefile to help manage the translation files.
228    
229            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
230    
231            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
232            translations and support files in po/
233    
234            * setup.py (data_files): Add the *.mo files to the data_files too
235    
236            * README: Add note about the translations when building from CVS
237    
238  2003-04-14  Jonathan Coles   <[email protected]>  2003-04-14  Jonathan Coles   <[email protected]>
239    
240          * Thuban/UI/dock.py: Fixes some window resizing problems most          * Thuban/UI/dock.py: Fixes some window resizing problems most

Legend:
Removed from v.669  
changed lines
  Added in v.721

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26