/[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 734 by bh, Thu Apr 24 19:14:16 2003 UTC revision 817 by jonathan, Mon May 5 15:05:36 2003 UTC
# Line 1  Line 1 
1    2003-05-05  Jonathan Coles   <[email protected]>
2    
3            This is namely a collection of UI updates to improve user interactivity.
4            Tabbing between controls now exists and you can use ESC to close dialog
5            boxes; ENTER will active the default button.
6    
7            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
8            order that the controls are created so that tabbing works correctly.
9            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
10            wxDialog can handle the default button correctly.
11            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
12            same reasons as for OnOK.
13            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
14            when we ask the table for the maximum/minimum values of a field
15            which could take a very long time.
16    
17            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
18            order that the controls are created so that tabbing works correctly.
19            (SelectPropertiesDialog.__init__): Rearrange the order that the
20            controls are created so that tabbing works correctly.
21    
22            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
23            to derive from a wxDialog but behave like the original implementation
24            which was derived from a wxFrame. wxDialog provides useful key
25            handling functionality like ESC calling OnCancel and ENTER calling
26            OnOK which is lost with wxFrame.
27    
28            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
29            new dialogs.
30    
31            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
32            order that the controls are created so that tabbing works correctly.
33            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
34            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
35            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
36            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
37            can provide the "UK National Grid" as a default projection.
38            (UTMPanel.__init__): Rearrange the order that the controls are
39            created so that tabbing works correctly.
40    
41    2003-05-05  Bernhard Herzog  <[email protected]>
42    
43            * extensions/thuban/wxproj.cpp: Fix some of the comments.
44            (project_point): If a map projection but no layer projection is
45            given, convert degrees to radians before applying the map
46            projection.
47    
48            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
49            (TableGrid.allow_messages): New methods to make it possible to
50            inhibit message sending.
51            (TableGrid.issue): Only send the message if not inhibited.
52            (LayerTableGrid.select_shape): Use the new methods to make sure
53            that no ROW_SELECTED message is sent while we're updating the
54            selected rows to match the selected shapes.
55    
56    2003-05-02  Jan-Oliver Wagner <[email protected]>
57    
58            Implementation of MemoryTable.
59    
60            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
61            implementation that operates on a list of tuples. All of the data
62            are kept in the memory.
63    
64            * test/test_table.py (MemoryTableTest): New.
65    
66            * test/test_transientdb.py (SimpleTable): Removed.
67            (TestTransientTable.test_transient_joined_table,
68            (TestTransientTable.test_transient_table_read_twice): Replaced
69            SimpleTable by MemoryTable.
70    
71    2003-04-30  Jonathan Coles   <[email protected]>
72    
73            * Data/iceland_sample.thuban: Now contains correct projections
74            for each of the layers.
75    
76            * Resources/Projections/defaults.proj: Geographic projection
77            contains unit conversion parameter.
78    
79    2003-04-30  Jonathan Coles   <[email protected]>
80    
81            The most important part of this putback is the projection changes.
82            It should now be possible to specify the projection that a layer
83            is in and then specify a different projection for the map. The
84            projection dialog has an extra parameter for a geographic projection
85            which lets the user select if the input is in degrees or radians.
86    
87            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
88            to say that the parameter is a tuple of unprojected
89            points (which is what the callers to this method were assuming).
90            Also, since the points are unprojected we need to projected them.
91    
92            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
93            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
94            groups are selected, move the layer up/down. Fixes RTbug #1833.
95    
96            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
97    
98            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
99            parameter in call to SetClientData.
100            (GeoPanel): Add support for selecting the units that the
101            source data is in (Radians or Degrees).
102    
103            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
104            the rendering loop by reducing the number of if's, removing the
105            unnecessary try/except block, and checking if the old group
106            is the same as the new one (which happens a lot if there is
107            no classification, or lots of shapes are in the same group).
108    
109            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
110            around the redraw routine to try to catch problems that the user
111            may create by selecting invalid projections for the data set and
112            map. Clears the display if there are any problems and prints the
113            error.
114            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
115            rectangle.
116    
117            * extensions/thuban/wxproj.cpp (project_point): First invert the
118            supplied point (which should be in projected coordinates) using
119            the layer's projection and then project the point using the
120            map's projection.
121            (project_points): Use project_point() to project each point.
122    
123    2003-04-30  Jan-Oliver Wagner <[email protected]>
124    
125            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
126            don't set the Classification to None if the classfication field
127            is None (ie only a DEFAULT).
128    
129    2003-04-30  Bernhard Herzog  <[email protected]>
130    
131            * Thuban/UI/view.py: Fix some typos.
132    
133            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
134            not pop up the dialog if the selection becomes empty (this could
135            happen if e.g. a new selection is opened while the identify tool
136            is active and dialog had been closed)
137    
138    2003-04-30  Bernhard Herzog  <[email protected]>
139    
140            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
141            instance variable read_record_last_result
142            (TransientTableBase.read_record): Make sure reading the same
143            record twice works. The implementation uses the new instance
144            variable read_record_last_result
145    
146            * test/test_transientdb.py
147            (TestTransientTable.test_transient_table_read_twice): New test
148            case for the above bug-fix.
149    
150    2003-04-29  Jonathan Coles   <[email protected]>
151    
152            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
153    
154            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
155    
156            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
157            (ClassTable.SetValueAsCustom): Rename keyword argument in
158            ClassGroup* constructors to match argument name.
159    
160    2003-04-29  Bernhard Herzog  <[email protected]>
161    
162            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
163            transient DB if it exists to make sure it doesn't leave a journal
164            file in the temp directory.
165    
166            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
167            self.conn to None after closing the connection to make sure it's
168            not closed twice
169    
170    2003-04-29  Jonathan Coles   <[email protected]>
171    
172            Add a visible parameter in the layer XML tag. The default value is
173            "true". If anything other than "false" is specified we also assume
174            "true". Addresses RTbug #1025.
175    
176            * Doc/thuban.dtd: Add visible parameter to a layer.
177    
178            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
179            of visible from 1 to True.
180            (Layer.__init__): Change default value of visible from 1 to True.
181    
182            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
183            parameter.
184    
185            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
186            parameter.
187    
188            * test/test_load.py: Add new test data contents_test_visible.
189            (LoadSessionTest.setUp): save test data.
190            (LoadSessionTest.testLayerVisibility): Test if the visible flag
191            is loaded correctly.
192    
193            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
194            for saving an invisible layer.
195    
196    2003-04-29  Jonathan Coles   <[email protected]>
197    
198            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
199            legend dialog box and tell it to change its map to the one
200            supplied to SetMap(). Fixes RTbug #1770.
201    
202    2003-04-29  Bernhard Herzog  <[email protected]>
203    
204            Next step of table implementation. Introduce a transient database
205            using SQLite that some of the data is copied to on demand. This
206            allows us to do joins and other operations that require an index
207            for good performance with reasonable efficiency. Thuban now needs
208            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
209            haven't tested that.
210            
211            * Thuban/Model/transientdb.py: New. Transient database
212            implementation.
213    
214            * test/test_transientdb.py: New. Tests for the transient DB
215            classes.
216    
217            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
218            classes to help automatically remove temporary files and
219            directories.
220            (Session.__init__): New instance variables temp_dir for the
221            temporary directory and transient_db for the SQLite database
222            (Session.temp_directory): New. Create a temporary directory if not
223            yet done and return its name. Use AutoRemoveDir to have it
224            automatically deleted
225            (Session.TransientDB): Instantiate the transient database if not
226            done yet and return it.
227    
228            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
229            AutoTransientTable so that data is copied to the transient DB on
230            demand.
231            (SimpleStore): New class that simply combines a table and a
232            shapefile
233    
234            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
235            DBFTable and update its doc-string to reflect the fact that this
236            is only the table interface to a DBF file. Table is now an alias
237            for DBFTable for temporary backwards compatibility.
238    
239            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
240            the last reference to the session goes away so that the temporary
241            files are removed properly.
242    
243            * test/test_load.py (LoadSessionTest.tearDown): Remove the
244            reference to the session to make sure the temporary files are
245            removed.
246    
247    2003-04-29  Bernhard Herzog  <[email protected]>
248    
249            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
250            the __parser instance variable into a normal local variable in
251            read. It's only used there and read will never be called more than
252            once. Plus it introduces a reference cycle that keeps can keep the
253            session object alive for a long time.
254    
255    2003-04-29  Jonathan Coles   <[email protected]>
256    
257            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
258            Projection an immutable item. Fixes RTbug #1825.
259            (Projection.__init__): Initialize instance variables here.
260            (ProjFile.Replace): New. Replace the given projection object with
261            the new projection object. This solves the problem of needing the
262            mutator Projection.SetProjection() in the ProjFrame class and
263            allows a projection to change parameters without changing its
264            location in the file.
265    
266            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
267            be of type wxSAVE and should verify overwriting a file.
268    
269            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
270            ProjFile.Replace() method instead of the mutator
271            Projection.SetProjection(). Also requires that we reassign the
272            client data to the new projection.
273    
274            * test/test_proj.py (TestProjection.test): Test GetName() and
275            GetAllParameters()
276            (TestProjFile.test): Remove tests for Set*() methods. Add tests
277            for Replace().
278    
279    2003-04-25  Jonathan Coles   <[email protected]>
280    
281            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
282            to save the name of the projection.
283    
284            * test/test_save.py (SaveSessionTest.testLayerProjection): New
285            test to verify layer projections are saved correctly.
286    
287    2003-04-25  Jonathan Coles   <[email protected]>
288    
289            * Thuban/Model/proj.py (Projection.SetName): Set the name
290            to "Unknown" if name is None.
291            (Projection.SetAllParameters): New. Set the projection's
292            parameter list to the one supplied.
293            (Projection.SetProjection): New. Set the projection's
294            properties to those of the supplied Projection.
295    
296            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
297            the dialog title to include the map's title.
298            (MainWindow.LayerProjection): Set the dialog title to include
299            the layer's title.
300    
301            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
302            error dialogs into a single method call.
303            (ProjFrame.__VerifyButtons): Add more states to check.
304            (ProjFrame.__GetProjection): Return the current state of an
305            edited projection or None.
306            (ProjFrame.__FillAvailList): Remove checks for states that
307            shouldn't exist.
308            (ProjFrame._OnNew): Clear all selected items and supply
309            a projection panel if necessary.
310    
311            * test/test_proj.py (TestProjFile.test): Add tests for
312            ProjFile.SetAllParameters, ProjFile.SetProjection,
313            ProjFile.SetName.
314    
315    2003-04-25  Jonathan Coles   <[email protected]>
316    
317            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
318            takes an optional argument to select the current projection.
319            This does not guarantee that the item is visible due to
320            limited wxWindows functionality. Fixes RTBug #1821.
321    
322    2003-04-25  Jonathan Coles   <[email protected]>
323    
324            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
325            the projection name and use it when constructing the Projection
326            object.
327    
328            * Thuban/Model/proj.py (Projection.__init__): Change the default
329            value for 'name' to None and then test if name is equal to None
330            in the body of the constructor. This way the caller doesn't have to
331            know what the default value should be. Namely, useful in load.py
332            where we have to pick a default value if the 'name' parameter
333            doesn't exist in the XML file.
334    
335            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
336            Tests a file where a layer has a projection.
337    
338    2003-04-25  Jonathan Coles   <[email protected]>
339    
340            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
341            tree for projection information.
342    
343            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
344            XMLReader.GetFileName.
345            (SessionLoader): Added support for loading projection tags that
346            appear inside a layer.
347    
348            * Thuban/Model/proj.py (ProjFile): Document the class. Move
349            back to using a list because the order of the projections in
350            the file is important to maintain. Fixes RTbug #1817.
351    
352            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
353            to ProjFile.GetFilename.
354    
355            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
356            information.
357    
358            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
359            ProjFrame._OnSaveAs. Removed old dead code from previous
360            implementation.
361            (ProjFrame._OnExport): Add support for exporting more than one
362            projection to a single file.
363            (ProjFrame.__FillAvailList): use string formatting (% operator)
364            to build strings that are (partly) translated. Fixes RTbug #1818.
365    
366            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
367            class.
368    
369  2003-04-24  Bernhard Herzog  <[email protected]>  2003-04-24  Bernhard Herzog  <[email protected]>
370    
371          * po/es.po: Updated Spanish translation by Daniel Calvelo Aros          * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
# Line 7  Line 375 
375          * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate          * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
376          empty strings.          empty strings.
377    
378  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-24  Jonathan Coles   <[email protected]>
379    
380          * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to          * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
381          implement the interface that the ProjFrame dialog expects.          implement the interface that the ProjFrame dialog expects.

Legend:
Removed from v.734  
changed lines
  Added in v.817

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26