/[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 734 by bh, Thu Apr 24 19:14:16 2003 UTC
# Line 1  Line 1 
1    2003-04-24  Bernhard Herzog  <[email protected]>
2    
3            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
4    
5            * po/fr.po: New. French translation by Daniel Calvelo Aros
6    
7            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
8            empty strings.
9    
10    2003-04-25  Jonathan Coles   <[email protected]>
11    
12            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
13            implement the interface that the ProjFrame dialog expects.
14    
15            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
16            name of the projection to be changed.
17            (ProjFile): Use a dictionary instead of a list so that removing
18            projections is easier and we are sure about uniqueness.
19            (ProjFile.Remove): Remove the given projection object.
20    
21            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
22            Return a list with only one projection file instead of searching for
23            any projection file. This simplifies many things if the user can
24            only have one system file and one user file.
25    
26            * Thuban/UI/classgen.py: Change all references to
27            genCombo to genChoice.
28    
29            * Thuban/UI/mainwindow.py: Add a Projection option under the
30            layer menu.
31            (MainWindow.LayerProjection): New. Open up a projection window
32            for a layer.
33    
34            * Thuban/UI/projdialog.py: Large changes to how the dialog is
35            laid out. Use three panels instead of one. One for the list of
36            projections, one for the edit controls, and one for the buttons.
37            Fixed resizing problems so that the dialog resizes correctly
38            when the projection panel changes. Added import/export, save, and
39            new buttons/functionality.
40    
41    2003-04-24  Bernhard Herzog  <[email protected]>
42    
43            First step towards table management. Introduce a simple data
44            abstraction so that we replace the data a layer uses more easily
45            in the next step.
46    
47            * Thuban/Model/data.py: New file with a simple data abstraction
48            that bundles shapefile and dbffile into one object.
49    
50            * Thuban/Model/session.py (Session.OpenShapefile): New method to
51            open shapefiles and return a shape store object
52    
53            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
54            object instead of a shapefile filename. This introduces a new
55            instance variable store holding the datastore. For intermediate
56            backwards compatibility keep the old instance variables.
57            (open_shapefile): Removed. No longer needed with the shape store.
58            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
59            get the shape store used by a layer.
60            (Layer.Destroy): No need to explicitly destroy the shapefile or
61            table anymore.
62    
63            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
64            (MainWindow.AddLayer): Use the session's OpenShapefile method to
65            open shapefiles
66    
67            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
68            session's OpenShapefile method to open shapefiles
69    
70            * test/test_classification.py
71            (TestClassification.test_classification): Use the session's
72            OpenShapefile method to open shapefiles and build the filename in
73            a more platform independed way
74    
75            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
76            Implement to have a session to use in the tests
77            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
78            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
79            session's OpenShapefile method to open shapefiles
80            (TestLayerLegend.setUp): Instantiate a session so that we can use
81            it to open shapefiles.
82            (TestLayerLegend.tearDown): Make sure that all references to
83            layers and session are removed otherwise we may get a resource
84            leak
85    
86            * test/test_map.py (TestMapAddLayer.test_add_layer)
87            (TestMapWithContents.setUp): Instantiate a session so that we can
88            use it to open shapefiles.
89            (TestMapWithContents.tearDown): Make sure that all references to
90            layers, maps and sessions are removed otherwise we may get a
91            resource leak
92            ("__main__"): use support.run_tests() so that more info about
93            uncollected garbage is printed
94    
95            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
96            session's OpenShapefile method to open shapefiles
97            ("__main__"): use support.run_tests() so that more info about
98            uncollected garbage is printed
99    
100            * test/test_selection.py (TestSelection.tearDown): Make sure that
101            all references to the session and the selection are removed
102            otherwise we may get a resource leak
103            (TestSelection.get_layer): Instantiate a session so that we can
104            use it to open shapefiles.
105            ("__main__"): use support.run_tests() so that more info about
106            uncollected garbage is printed
107    
108            * test/test_session.py (TestSessionBase.tearDown)
109            (TestSessionWithContent.tearDown): Make sure that all references
110            to the session and layers are removed otherwise we may get a
111            resource leak
112            (TestSessionWithContent.setUp): Use the session's OpenShapefile
113            method to open shapefiles
114    
115    2003-04-24  Jonathan Coles   <[email protected]>
116    
117            * Thuban/Model/load.py (XMLReader.read): Should have been checking
118            if the file_or_filename object had the 'read' attribute.
119    
120    2003-04-23  Jonathan Coles   <[email protected]>
121    
122            * Thuban/Model/resource.py: Fixes RTbug #1813.
123            (ReadProjFile): Add documentation about which exceptions are raised.
124            Always pass the exceptions up to the caller.
125            (GetProjFiles): If the directory can't be read return an empty list.
126            If any of the proj files can't be read skip that file and go
127            on to the next one.
128    
129            * test/test_proj.py: Added test cases to handle nonexistent files,
130            unreadable files, and files that don't parse correctly.
131    
132    2003-04-23  Jonathan Coles   <[email protected]>
133    
134            Projection dialog. Allows the user to select from a list
135            of projection templates and optionally edit them and save new ones.
136    
137            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
138            (ProjPanel): Base class for projection specific panels.
139            (TMPanel): Projection panel for Transverse Mercartor.
140            (UTMPanel): Projection panel for Universal Transverse Mercartor.
141            (LCCPanel): Projection panel for Lambert Conic Conformal.
142            (GeoPanel): Projetion panel for Geographic Projection.
143    
144    2003-04-23  Jonathan Coles   <[email protected]>
145    
146            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
147            promote symmetry. There now exists XMLReader and XMLWriter.
148            (XMLReader.read): New. Call to read the given file descriptor or
149            filename.
150            (XMLReader.close): New. Make sure the file is closed.
151            (XMLReader.GetFileName): New. Return just the file name that is being
152            read from.
153            (XMLReader.GetDirectory): New. Return just the directory of the file
154            that is being read.
155            (XMLReader.AddDispatchers): New. Take a dictionary which contains
156            the names of functions to call as the XML tree is parsed.
157            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
158            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
159            (SessionLoader): Removed class variables start_dispatcher and
160            end_dispatcher since this functionality is now part of a class
161            instance. Fixes RTbug #1808.
162            (SessionLoader.__init__): Add dispatcher functions.
163            (load_xmlfile): Code was moved into the XMLReader.read().
164            (load_session): Use modified SessionLoader.
165    
166            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
167            map's projection.
168    
169            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
170            GetAllParameters.
171            (Projection.GetParameter): Returns the value for the given parameter.
172    
173            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
174            (GetProjFiles): Renamed from GetProjections. Now returns a list
175            of ProjFile objects.
176            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
177            a list of ProjFile objects whose files are not user defined.
178            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
179            list of ProjFile objects whose files are user defined.
180            (ProjFileReader): Extend new XMLReader.
181    
182            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
183            promote symmetry.
184    
185            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
186            control instead of a wxComboBox. wxChoice controls do not generate
187            events as the uses highlights possible choices which fixes problems
188            with resizing the dialog when the use selects an option.
189    
190            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
191            control instead of a wxComboBox.
192    
193            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
194            dialog.
195    
196            * test/test_proj.py (TestProjection.test): New tests for GetParameter
197            method.
198    
199    2003-04-22  Bernhard Herzog  <[email protected]>
200    
201            * Thuban/UI/mainwindow.py: Remove some unused imports and global
202            constants
203    
204            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
205            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
206    
207    2003-04-17  Bernhard Herzog  <[email protected]>
208    
209            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
210            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
211            anymore.
212            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
213            (Layer.ShapeType, Layer.Shape): No need to call
214            self.open_shapefile since it's always called in __init__
215    
216            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
217            In wxPython 2.4 there's no need to extend MainLoop anymore since
218            wxPython itself makes sure OnExit is called.
219    
220    2003-04-16  Jonathan Coles   <[email protected]>
221    
222            Initial putback of projection management code. Includes new
223            classes to read and write projection files. The current load
224            and save classes were abstracted a bit so they could be reused.
225            The Projection class was extended to provide new methods and
226            have a name.
227    
228            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
229            general XML reading methods that were part of ProcessSession.
230    
231            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
232            name.
233            (ProjFile): New. Represents a file that contains projection
234            information.
235    
236            * Thuban/Model/resource.py: New. Contains general utilities
237            for read and writing projection files.
238    
239            * Thuban/Model/save.py (XMLSaver): New. Contains all the
240            general XML writing methods that were part of SessionSaver.
241            (SessionSaver): Renamed from Saver.
242    
243            * test/test_proj.py: New test cases for the projection
244            file read and write functions.
245    
246    2003-04-16  Jonathan Coles   <[email protected]>
247    
248            * Thuban/Model/classification.py: Use repr() around values
249            in the ClassGroup*.__repr__() methods so it is clearer when
250            a value is a string and when it is a number.
251    
252            * test/test_load.py: Rework the classification test to test
253            that we can load old files.
254            (testLabels): Test a file where the groups have labels.
255    
256    2003-04-16  Bernhard Herzog  <[email protected]>
257    
258            Safer implementation of the performance enhancements of the
259            low-level renderer:
260            
261            * extensions/thuban/wxproj.cpp (extract_projection)
262            (extract_pointer): Rename extract_projection to extract_pointer
263            and redefine its purpose to return the pointer stored in a CObject
264            returned by the object's cobject method. Update all callers.
265            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
266            handling of these low-level parameters so that each s_draw_info
267            instance is handled as a CObject at python level that also
268            contains real references to the actual python objects which
269            contain the values in the struct. Add free_draw_info as the
270            destructor.
271            (draw_polygon_shape): Add the py_draw_info parameter which must a
272            cobject containing an s_draw_info pointer.
273    
274            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
275            method to instantiat the low-level render parameter
276            (MapRenderer.draw_shape_layer): Use the new method. Remove some
277            commented out code.
278            (MapRenderer.draw_polygon_shape): Make the first parameter not the
279            layer but the low-level render parameter
280            (ScreenRenderer.draw_shape_layer): Use the low-level render
281            parameter.
282    
283    2003-04-15  Jonathan Coles   <[email protected]>
284    
285            * Thuban/Model/classification.py: Implemented __repr__ for
286            the ClassGroup* classes to make debugging a bit easier.
287            (ClassGroup.SetLabel): Check that the string is an instance
288            of StringTypes not StringType. Accounts for Unicode strings.
289    
290            * Thuban/Model/color.py: Implemented __repr__ to make
291            debugging a bit easier.
292    
293            * Thuban/Model/save.py (Saver.write_classification): Need to
294            save the group label.
295    
296            * test/test_load.py (testClassification): New. Loads the
297            iceland_sample_test.thuban file and checks if it was loaded
298            correctly.
299    
300    2003-04-15  Jonathan Coles   <[email protected]>
301    
302            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
303            to improve rendering performance by initializing the variables
304            that are not change each time draw_polygon_shape() is called.
305            The values are stored in a global struct draw_info.
306            (draw_polygon_shape): Removed initialization code that is
307            now in draw_polygon_init().
308    
309            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
310            drawing initialization call to draw_polygon_init()
311            (MapRenderer.draw_polygon_shape): Use new signature of
312            draw_polygon_shape.
313    
314            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
315            weirdness by setting the range to (1, maxint).
316    
317            * Thuban/Model/classification.py (ClassGroupProperties): Make
318            instance variables private and optimize comparison operator
319            by first checking if the color references are the same.
320            (ClassGroupSingleton): Make instance variables private.
321            (ClassGroupRange): Make instance variables private.
322    
323            * HOWTO-Release: Filled in missing steps for releasing packages.
324    
325    2003-04-15  Bernhard Herzog  <[email protected]>
326    
327            First stab at internationalized messages:
328    
329            * Thuban/__init__.py (_): Implement the translation function for
330            real using the python gettext module.
331    
332            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
333            translate empty strings.
334    
335            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
336            Add a missing space to a warning message
337    
338            * po/README: New. Notes about the management of the translation
339            files.
340    
341            * po/Makefile: New. Makefile to help manage the translation files.
342    
343            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
344    
345            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
346            translations and support files in po/
347    
348            * setup.py (data_files): Add the *.mo files to the data_files too
349    
350            * README: Add note about the translations when building from CVS
351    
352    2003-04-14  Jonathan Coles   <[email protected]>
353    
354            * Thuban/UI/dock.py: Fixes some window resizing problems most
355            noticable under windows. Always assume the button bitmaps will
356            be there. Code clean up.
357            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
358            images for the dock/undock button to the same images.
359            Work around for RTbug #1801.
360    
361            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
362            be allowed to grow within the sizer. Fixes a bug under Windows
363            where the toolbar wasn't being drawn.
364    
365    2003-04-14  Frank Koormann   <[email protected]>
366    
367            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
368            Updated design to try to make the button functionality more
369            transparent.
370    
371    2003-04-14  Jonathan Coles   <[email protected]>
372    
373            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
374            finalize the intialization of the panel.
375    
376            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
377            creation of the panel. Should be the last thing called in the
378            initializer of a subclass.
379    
380            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
381            set the current selections in the combo boxes. This is needed
382            under Windows.
383    
384            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
385            level panel to the dialog so that the background colors are
386            consistent under Windows.
387    
388    2003-04-11  Jonathan Coles   <[email protected]>
389    
390            * Thuban/UI/classgen.py: Change color ramps to start at white
391            not black.
392    
393            * Thuban/UI/legend.py: Enable/disable the legend buttons when
394            the legend changes. Fixes RTbug #1793.
395    
396            * test/test_classification.py: Added test for copying of
397            classifications.
398    
399    2003-04-11  Jonathan Coles   <[email protected]>
400    
401            * Thuban/UI/resource.py: New. Centralize the loading of resources
402            such as bitmaps.
403    
404            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
405            added images to the move buttons, added 'reverse' button.
406            (CustomRampPanel.__init__): Added images to the move buttons.
407            (GreyRamp): New. Generates a ramp from white to black.
408            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
409    
410            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
411            ID_PROPERTY_*.
412            (Classifier.__init__): Minor changes to the layout.
413            (Classifier._OnTitleChanged): Listen for when the user edits the
414            title and update the dialog's title and the layer's title.
415    
416            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
417    
418            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
419            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
420            if the layer's title changes.
421    
422            * Thuban/UI/mainwindow.py: Added new menu item and associated code
423            to open a dialog to rename the map.
424            (MainWindow): Use new resource class to import bitmaps.
425    
426    2003-04-11  Jonathan Coles   <[email protected]>
427    
428            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
429            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
430            Resources/Bitmaps/group_use_none.xpm,
431            Resources/Bitmaps/group_use_not.xpm,
432            Resources/Bitmaps/hide_layer.xpm,
433            Resources/Bitmaps/layer_properties.xpm,
434            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
435            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
436            New.
437    
438    2003-04-10  Jonathan Coles   <[email protected]>
439    
440            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
441            Should pass group to ClassGroup constructor.
442    
443    2003-04-10  Jonathan Coles   <[email protected]>
444    
445            * Thuban/Model/classification.py: (ClassGroup): Move all the common
446            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
447            here. Implement SetVisible(), IsVisible().
448            (ClassGroup.__init__): Add group parameter which acts as a copy
449            constructor.
450    
451            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
452            "Visible" check boxes.
453            (Classifier): Rename the buttons and refactor the code to match
454            the new labels.
455    
456            * Thuban/UI/legend.py: Classify button is now called "Properties".
457            Refactored the code to change variable names.
458            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
459    
460            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
461            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
462            renamed to MainWindow.LayerEditProperties.
463            (MainWindow.ToggleLegend): Don't include map name in legend title.
464            (MainWindow.SetMap): Added the map name to the window title.
465            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
466            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
467            Functionality is found in the layer properties dialog.
468    
469            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
470            draw visible groups.
471    
472  2003-04-09  Jonathan Coles   <[email protected]>  2003-04-09  Jonathan Coles   <[email protected]>
473    
474          * 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.734

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26