/[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 720 by jonathan, Wed Apr 23 10:40:12 2003 UTC revision 735 by jonathan, Fri Apr 25 09:11:39 2003 UTC
# Line 1  Line 1 
1    2003-04-25  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
4            tree for projection information.
5    
6            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
7            XMLReader.GetFileName.
8            (SessionLoader): Added support for loading projection tags that
9            appear inside a layer.
10    
11            * Thuban/Model/proj.py (ProjFile): Document the class. Move
12            back to using a list because the order of the projections in
13            the file is important to maintain. Fixes RTbug #1817.
14    
15            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
16            to ProjFile.GetFilename.
17    
18            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
19            information.
20    
21            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
22            ProjFrame._OnSaveAs. Removed old dead code from previous
23            implementation.
24            (ProjFrame._OnExport): Add support for exporting more than one
25            projection to a single file.
26            (ProjFrame.__FillAvailList): use string formatting (% operator)
27            to build strings that are (partly) translated. Fixes RTbug #1818.
28    
29            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
30            class.
31    
32    2003-04-24  Bernhard Herzog  <[email protected]>
33    
34            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
35    
36            * po/fr.po: New. French translation by Daniel Calvelo Aros
37    
38            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
39            empty strings.
40    
41    2003-04-24  Jonathan Coles   <[email protected]>
42    
43            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
44            implement the interface that the ProjFrame dialog expects.
45    
46            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
47            name of the projection to be changed.
48            (ProjFile): Use a dictionary instead of a list so that removing
49            projections is easier and we are sure about uniqueness.
50            (ProjFile.Remove): Remove the given projection object.
51    
52            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
53            Return a list with only one projection file instead of searching for
54            any projection file. This simplifies many things if the user can
55            only have one system file and one user file.
56    
57            * Thuban/UI/classgen.py: Change all references to
58            genCombo to genChoice.
59    
60            * Thuban/UI/mainwindow.py: Add a Projection option under the
61            layer menu.
62            (MainWindow.LayerProjection): New. Open up a projection window
63            for a layer.
64    
65            * Thuban/UI/projdialog.py: Large changes to how the dialog is
66            laid out. Use three panels instead of one. One for the list of
67            projections, one for the edit controls, and one for the buttons.
68            Fixed resizing problems so that the dialog resizes correctly
69            when the projection panel changes. Added import/export, save, and
70            new buttons/functionality.
71    
72    2003-04-24  Bernhard Herzog  <[email protected]>
73    
74            First step towards table management. Introduce a simple data
75            abstraction so that we replace the data a layer uses more easily
76            in the next step.
77    
78            * Thuban/Model/data.py: New file with a simple data abstraction
79            that bundles shapefile and dbffile into one object.
80    
81            * Thuban/Model/session.py (Session.OpenShapefile): New method to
82            open shapefiles and return a shape store object
83    
84            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
85            object instead of a shapefile filename. This introduces a new
86            instance variable store holding the datastore. For intermediate
87            backwards compatibility keep the old instance variables.
88            (open_shapefile): Removed. No longer needed with the shape store.
89            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
90            get the shape store used by a layer.
91            (Layer.Destroy): No need to explicitly destroy the shapefile or
92            table anymore.
93    
94            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
95            (MainWindow.AddLayer): Use the session's OpenShapefile method to
96            open shapefiles
97    
98            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
99            session's OpenShapefile method to open shapefiles
100    
101            * test/test_classification.py
102            (TestClassification.test_classification): Use the session's
103            OpenShapefile method to open shapefiles and build the filename in
104            a more platform independed way
105    
106            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
107            Implement to have a session to use in the tests
108            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
109            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
110            session's OpenShapefile method to open shapefiles
111            (TestLayerLegend.setUp): Instantiate a session so that we can use
112            it to open shapefiles.
113            (TestLayerLegend.tearDown): Make sure that all references to
114            layers and session are removed otherwise we may get a resource
115            leak
116    
117            * test/test_map.py (TestMapAddLayer.test_add_layer)
118            (TestMapWithContents.setUp): Instantiate a session so that we can
119            use it to open shapefiles.
120            (TestMapWithContents.tearDown): Make sure that all references to
121            layers, maps and sessions are removed otherwise we may get a
122            resource leak
123            ("__main__"): use support.run_tests() so that more info about
124            uncollected garbage is printed
125    
126            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
127            session's OpenShapefile method to open shapefiles
128            ("__main__"): use support.run_tests() so that more info about
129            uncollected garbage is printed
130    
131            * test/test_selection.py (TestSelection.tearDown): Make sure that
132            all references to the session and the selection are removed
133            otherwise we may get a resource leak
134            (TestSelection.get_layer): Instantiate a session so that we can
135            use it to open shapefiles.
136            ("__main__"): use support.run_tests() so that more info about
137            uncollected garbage is printed
138    
139            * test/test_session.py (TestSessionBase.tearDown)
140            (TestSessionWithContent.tearDown): Make sure that all references
141            to the session and layers are removed otherwise we may get a
142            resource leak
143            (TestSessionWithContent.setUp): Use the session's OpenShapefile
144            method to open shapefiles
145    
146    2003-04-24  Jonathan Coles   <[email protected]>
147    
148            * Thuban/Model/load.py (XMLReader.read): Should have been checking
149            if the file_or_filename object had the 'read' attribute.
150    
151  2003-04-23  Jonathan Coles   <[email protected]>  2003-04-23  Jonathan Coles   <[email protected]>
152    
153          * Thuban/Model/resource.py: Fixes RTbug #1813.          * Thuban/Model/resource.py: Fixes RTbug #1813.

Legend:
Removed from v.720  
changed lines
  Added in v.735

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26