/[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 688 by jonathan, Wed Apr 16 13:46:48 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]>  2003-04-16  Jonathan Coles   <[email protected]>
133    
134          * Thuban/Model/classification.py: Use repr() around values          * Thuban/Model/classification.py: Use repr() around values

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26