/[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 634 by jonathan, Wed Apr 9 15:41:58 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]>
239    
240            * Thuban/UI/dock.py: Fixes some window resizing problems most
241            noticable under windows. Always assume the button bitmaps will
242            be there. Code clean up.
243            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
244            images for the dock/undock button to the same images.
245            Work around for RTbug #1801.
246    
247            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
248            be allowed to grow within the sizer. Fixes a bug under Windows
249            where the toolbar wasn't being drawn.
250    
251    2003-04-14  Frank Koormann   <[email protected]>
252    
253            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
254            Updated design to try to make the button functionality more
255            transparent.
256    
257    2003-04-14  Jonathan Coles   <[email protected]>
258    
259            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
260            finalize the intialization of the panel.
261    
262            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
263            creation of the panel. Should be the last thing called in the
264            initializer of a subclass.
265    
266            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
267            set the current selections in the combo boxes. This is needed
268            under Windows.
269    
270            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
271            level panel to the dialog so that the background colors are
272            consistent under Windows.
273    
274    2003-04-11  Jonathan Coles   <[email protected]>
275    
276            * Thuban/UI/classgen.py: Change color ramps to start at white
277            not black.
278    
279            * Thuban/UI/legend.py: Enable/disable the legend buttons when
280            the legend changes. Fixes RTbug #1793.
281    
282            * test/test_classification.py: Added test for copying of
283            classifications.
284    
285    2003-04-11  Jonathan Coles   <[email protected]>
286    
287            * Thuban/UI/resource.py: New. Centralize the loading of resources
288            such as bitmaps.
289    
290            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
291            added images to the move buttons, added 'reverse' button.
292            (CustomRampPanel.__init__): Added images to the move buttons.
293            (GreyRamp): New. Generates a ramp from white to black.
294            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
295    
296            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
297            ID_PROPERTY_*.
298            (Classifier.__init__): Minor changes to the layout.
299            (Classifier._OnTitleChanged): Listen for when the user edits the
300            title and update the dialog's title and the layer's title.
301    
302            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
303    
304            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
305            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
306            if the layer's title changes.
307    
308            * Thuban/UI/mainwindow.py: Added new menu item and associated code
309            to open a dialog to rename the map.
310            (MainWindow): Use new resource class to import bitmaps.
311    
312    2003-04-11  Jonathan Coles   <[email protected]>
313    
314            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
315            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
316            Resources/Bitmaps/group_use_none.xpm,
317            Resources/Bitmaps/group_use_not.xpm,
318            Resources/Bitmaps/hide_layer.xpm,
319            Resources/Bitmaps/layer_properties.xpm,
320            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
321            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
322            New.
323    
324    2003-04-10  Jonathan Coles   <[email protected]>
325    
326            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
327            Should pass group to ClassGroup constructor.
328    
329    2003-04-10  Jonathan Coles   <[email protected]>
330    
331            * Thuban/Model/classification.py: (ClassGroup): Move all the common
332            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
333            here. Implement SetVisible(), IsVisible().
334            (ClassGroup.__init__): Add group parameter which acts as a copy
335            constructor.
336    
337            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
338            "Visible" check boxes.
339            (Classifier): Rename the buttons and refactor the code to match
340            the new labels.
341    
342            * Thuban/UI/legend.py: Classify button is now called "Properties".
343            Refactored the code to change variable names.
344            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
345    
346            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
347            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
348            renamed to MainWindow.LayerEditProperties.
349            (MainWindow.ToggleLegend): Don't include map name in legend title.
350            (MainWindow.SetMap): Added the map name to the window title.
351            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
352            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
353            Functionality is found in the layer properties dialog.
354    
355            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
356            draw visible groups.
357    
358  2003-04-09  Jonathan Coles   <[email protected]>  2003-04-09  Jonathan Coles   <[email protected]>
359    
360          * Thuban/UI/classgen.py: Modifications to allow simple          * Thuban/UI/classgen.py: Modifications to allow simple

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26