/[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 595 by bh, Wed Apr 2 18:28:09 2003 UTC revision 850 by bh, Wed May 7 11:55:45 2003 UTC
# Line 1  Line 1 
1    2003-05-07  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
4            Add comments about the optimizations used.
5            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
6            Implement the ReadValue table interface method.
7    
8            * test/test_transientdb.py
9            (TestTransientTable.run_iceland_political_tests)
10            (TestTransientTable.test_transient_joined_table): Add tests for
11            ReadValue
12    
13    2003-05-07  Frank Koormann <[email protected]>
14    
15            * Resources/Bitmaps/fulllayerextent.xpm,
16            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
17            new icons.
18    
19    2003-05-06  Bernhard Herzog  <[email protected]>
20    
21            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
22            New. Simply delegate to the transient table's version.
23    
24            * test/test_transientdb.py
25            (TestTransientTable.test_auto_transient_table_query): New. Test
26            case for AutoTransientTable's SimpleQuery
27    
28    2003-05-06  Bernhard Herzog  <[email protected]>
29    
30            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
31            Implement a simple query method for the query dialog
32            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
33            the row index or shapeid.
34            (TransientTable.create): Insert the right value of the row index
35            (TransientJoinedTable.create): Copy the row index of the left
36            table to the joined result table
37    
38            * test/test_transientdb.py
39            (TestTransientTable.test_transient_table_read_twice): Fix
40            doc-string
41            (TestTransientTable.test_transient_table_query): New. Test for the
42            SimpleQuery method
43    
44    2003-05-06  Bernhard Herzog  <[email protected]>
45    
46            Convert all table users to use the new table interface. This only
47            covers Thuban itself, not GREAT-ER or other applications built on
48            Thuban yet, so the compatibility interface stays in place for the
49            time being but it now issues DeprecationWarnings.
50    
51            Finally, the new Table interface has a new method, HasColumn.
52    
53            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
54            issue deprecation warnings when they're. The warnings refer to the
55            caller of the method.
56            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
57            for the deprecation warnings
58    
59            * test/test_table.py: Ignore the deprecation warnings for the old
60            table in the tests in this module. The purpose of the tests is to
61            test the old interface, after all.
62    
63            * test/test_transientdb.py
64            (TestTransientTable.run_iceland_political_tests): Use the
65            constants for the types. Add a test for HasColumn
66            (TestTransientTable.test_transient_joined_table): Adapt to new
67            table interface. Add a test for HasColumn
68            (TestTransientTable.test_transient_table_read_twice): Adapt to new
69            table interface
70    
71            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
72            Adapt to new table interface
73    
74            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
75            new table interface
76    
77            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
78            (RecordTable.SetTable): Adapt to new table interface
79    
80            * Thuban/UI/classifier.py (Classifier.__init__)
81            (Classifier.__init__): Adapt to new table interface
82    
83            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
84            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
85            to new table interface
86    
87            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
88            (AutoTransientTable.HasColumn): Implement the new table interface
89            method
90            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
91            (AutoTransientTable.UniqueValues): Adapt to new table interface
92    
93            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
94            Adapt to new table interface
95    
96            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
97            simplify opening shapefiles a bit easier.
98            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
99            (TestLayer.test_point_layer): Use the new helper method
100            (TestLayer.test_get_field_type): New. Test for the GetFieldType
101            method
102    
103            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
104            the new table method
105    
106            * test/test_memory_table.py (TestMemoryTable.test_has_column):
107            Test for the new table method HasColumn
108    
109    2003-05-06  Jonathan Coles   <[email protected]>
110    
111            Addresses the "Selection Extent" wish of RTbug #1787.
112    
113            * Resources/Bitmaps/fulllayerextent.xpm,
114            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
115            extent. These are just place holders for the real bitmaps.
116    
117            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
118            calculate the bounding box once (the first time compute_bbox() is
119            called).
120            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
121            the bounding box for the shapes in lat/long coordinates.
122    
123            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
124            option.
125            (MainWindow.has_selected_shapes): New. Returns true if there are
126            any selected shapes.
127            (MainWindow.FullSelectionExtent): New. Calls
128            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
129            (_has_selected_shapes): New. Returns true if there are any
130            selected shapes.
131    
132            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
133            true if there are any selected shapes.
134    
135            * Thuban/UI/view.py (MapCanvas): Added delegated method
136            HasSelectedShapes.
137            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
138            shapes on the canvas using the map projection (if any).
139    
140            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
141            for Layer.ShapesBoundingBox().
142    
143    2003-05-06  Bernhard Herzog  <[email protected]>
144    
145            * Resources/Projections/defaults.proj: Fix spelling of Mercator
146    
147    2003-05-05  Jonathan Coles   <[email protected]>
148    
149            Addresses the "Full Layer Extent" wish of RTbug #1787.
150    
151            * Resources/Projections/defaults.proj: Added UK National Grid.
152    
153            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
154            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
155            when the user selects the menu option.
156    
157            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
158            scales the given layer on the canvas using the map projection.
159    
160    2003-05-05  Bernhard Herzog  <[email protected]>
161    
162            Convert the table implementations to a new table interface. All
163            tables use a common mixin class to provide backwards compatibility
164            until all table users have been updated.
165    
166            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
167            provide backwards compatibility for table classes implementing the
168            new interface
169            (DBFTable, MemoryTable): Implement the new table interface. Use
170            OldTableInterfaceMixin as base for compatibility
171            (DBFColumn, MemoryColumn): New. Column description for DBFTable
172            and MemoryTable resp.
173    
174            * test/test_dbf_table.py: New. Test cases for the DBFTable with
175            the new table interface.
176    
177            * test/test_memory_table.py: New. Test cases for the MemoryTable
178            with the new table interface.
179    
180            * test/test_table.py: Document the all tests in this file as only
181            for backwards compatibility. The equivalent tests for the new
182            interface are in test_memory_table.py and test_dbf_table.py
183            (MemoryTableTest.test_read): field_info should be returning tuples
184            with four items
185            (MemoryTableTest.test_write): Make doc-string a more precise.
186    
187            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
188            table interface. Derive from from OldTableInterfaceMixin for
189            compatibility.
190            (TransientTableBase.create): New intance variable column_map to
191            map from names and indices to column objects
192            (TransientTable.create): Use the new table interface of the input
193            table
194            (AutoTransientTable): Convert to new table interface. Derive from
195            from OldTableInterfaceMixin for compatibility.
196            (AutoTransientTable.write_record): Removed. It's not implemented
197            yet and we still have to decide how to handle writing with the new
198            table and data framework.
199    
200            * test/test_transientdb.py
201            (TestTransientTable.run_iceland_political_tests)
202            (TestTransientTable.test_transient_joined_table): Use the new
203            table interface
204    
205    2003-05-05  Jonathan Coles   <[email protected]>
206    
207            This is namely a collection of UI updates to improve user interactivity.
208            Tabbing between controls now exists and you can use ESC to close dialog
209            boxes; ENTER will active the default button.
210    
211            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
212            order that the controls are created so that tabbing works correctly.
213            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
214            wxDialog can handle the default button correctly.
215            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
216            same reasons as for OnOK.
217            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
218            when we ask the table for the maximum/minimum values of a field
219            which could take a very long time.
220    
221            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
222            order that the controls are created so that tabbing works correctly.
223            (SelectPropertiesDialog.__init__): Rearrange the order that the
224            controls are created so that tabbing works correctly.
225    
226            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
227            to derive from a wxDialog but behave like the original implementation
228            which was derived from a wxFrame. wxDialog provides useful key
229            handling functionality like ESC calling OnCancel and ENTER calling
230            OnOK which is lost with wxFrame.
231    
232            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
233            new dialogs.
234    
235            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
236            order that the controls are created so that tabbing works correctly.
237            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
238            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
239            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
240            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
241            can provide the "UK National Grid" as a default projection.
242            (UTMPanel.__init__): Rearrange the order that the controls are
243            created so that tabbing works correctly.
244    
245    2003-05-05  Bernhard Herzog  <[email protected]>
246    
247            * extensions/thuban/wxproj.cpp: Fix some of the comments.
248            (project_point): If a map projection but no layer projection is
249            given, convert degrees to radians before applying the map
250            projection.
251    
252            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
253            (TableGrid.allow_messages): New methods to make it possible to
254            inhibit message sending.
255            (TableGrid.issue): Only send the message if not inhibited.
256            (LayerTableGrid.select_shape): Use the new methods to make sure
257            that no ROW_SELECTED message is sent while we're updating the
258            selected rows to match the selected shapes.
259    
260    2003-05-02  Jan-Oliver Wagner <[email protected]>
261    
262            Implementation of MemoryTable.
263    
264            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
265            implementation that operates on a list of tuples. All of the data
266            are kept in the memory.
267    
268            * test/test_table.py (MemoryTableTest): New.
269    
270            * test/test_transientdb.py (SimpleTable): Removed.
271            (TestTransientTable.test_transient_joined_table,
272            (TestTransientTable.test_transient_table_read_twice): Replaced
273            SimpleTable by MemoryTable.
274    
275    2003-04-30  Jonathan Coles   <[email protected]>
276    
277            * Data/iceland_sample.thuban: Now contains correct projections
278            for each of the layers.
279    
280            * Resources/Projections/defaults.proj: Geographic projection
281            contains unit conversion parameter.
282    
283    2003-04-30  Jonathan Coles   <[email protected]>
284    
285            The most important part of this putback is the projection changes.
286            It should now be possible to specify the projection that a layer
287            is in and then specify a different projection for the map. The
288            projection dialog has an extra parameter for a geographic projection
289            which lets the user select if the input is in degrees or radians.
290    
291            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
292            to say that the parameter is a tuple of unprojected
293            points (which is what the callers to this method were assuming).
294            Also, since the points are unprojected we need to projected them.
295    
296            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
297            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
298            groups are selected, move the layer up/down. Fixes RTbug #1833.
299    
300            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
301    
302            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
303            parameter in call to SetClientData.
304            (GeoPanel): Add support for selecting the units that the
305            source data is in (Radians or Degrees).
306    
307            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
308            the rendering loop by reducing the number of if's, removing the
309            unnecessary try/except block, and checking if the old group
310            is the same as the new one (which happens a lot if there is
311            no classification, or lots of shapes are in the same group).
312    
313            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
314            around the redraw routine to try to catch problems that the user
315            may create by selecting invalid projections for the data set and
316            map. Clears the display if there are any problems and prints the
317            error.
318            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
319            rectangle.
320    
321            * extensions/thuban/wxproj.cpp (project_point): First invert the
322            supplied point (which should be in projected coordinates) using
323            the layer's projection and then project the point using the
324            map's projection.
325            (project_points): Use project_point() to project each point.
326    
327    2003-04-30  Jan-Oliver Wagner <[email protected]>
328    
329            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
330            don't set the Classification to None if the classfication field
331            is None (ie only a DEFAULT).
332    
333    2003-04-30  Bernhard Herzog  <[email protected]>
334    
335            * Thuban/UI/view.py: Fix some typos.
336    
337            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
338            not pop up the dialog if the selection becomes empty (this could
339            happen if e.g. a new selection is opened while the identify tool
340            is active and dialog had been closed)
341    
342    2003-04-30  Bernhard Herzog  <[email protected]>
343    
344            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
345            instance variable read_record_last_result
346            (TransientTableBase.read_record): Make sure reading the same
347            record twice works. The implementation uses the new instance
348            variable read_record_last_result
349    
350            * test/test_transientdb.py
351            (TestTransientTable.test_transient_table_read_twice): New test
352            case for the above bug-fix.
353    
354    2003-04-29  Jonathan Coles   <[email protected]>
355    
356            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
357    
358            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
359    
360            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
361            (ClassTable.SetValueAsCustom): Rename keyword argument in
362            ClassGroup* constructors to match argument name.
363    
364    2003-04-29  Bernhard Herzog  <[email protected]>
365    
366            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
367            transient DB if it exists to make sure it doesn't leave a journal
368            file in the temp directory.
369    
370            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
371            self.conn to None after closing the connection to make sure it's
372            not closed twice
373    
374    2003-04-29  Jonathan Coles   <[email protected]>
375    
376            Add a visible parameter in the layer XML tag. The default value is
377            "true". If anything other than "false" is specified we also assume
378            "true". Addresses RTbug #1025.
379    
380            * Doc/thuban.dtd: Add visible parameter to a layer.
381    
382            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
383            of visible from 1 to True.
384            (Layer.__init__): Change default value of visible from 1 to True.
385    
386            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
387            parameter.
388    
389            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
390            parameter.
391    
392            * test/test_load.py: Add new test data contents_test_visible.
393            (LoadSessionTest.setUp): save test data.
394            (LoadSessionTest.testLayerVisibility): Test if the visible flag
395            is loaded correctly.
396    
397            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
398            for saving an invisible layer.
399    
400    2003-04-29  Jonathan Coles   <[email protected]>
401    
402            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
403            legend dialog box and tell it to change its map to the one
404            supplied to SetMap(). Fixes RTbug #1770.
405    
406    2003-04-29  Bernhard Herzog  <[email protected]>
407    
408            Next step of table implementation. Introduce a transient database
409            using SQLite that some of the data is copied to on demand. This
410            allows us to do joins and other operations that require an index
411            for good performance with reasonable efficiency. Thuban now needs
412            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
413            haven't tested that.
414            
415            * Thuban/Model/transientdb.py: New. Transient database
416            implementation.
417    
418            * test/test_transientdb.py: New. Tests for the transient DB
419            classes.
420    
421            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
422            classes to help automatically remove temporary files and
423            directories.
424            (Session.__init__): New instance variables temp_dir for the
425            temporary directory and transient_db for the SQLite database
426            (Session.temp_directory): New. Create a temporary directory if not
427            yet done and return its name. Use AutoRemoveDir to have it
428            automatically deleted
429            (Session.TransientDB): Instantiate the transient database if not
430            done yet and return it.
431    
432            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
433            AutoTransientTable so that data is copied to the transient DB on
434            demand.
435            (SimpleStore): New class that simply combines a table and a
436            shapefile
437    
438            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
439            DBFTable and update its doc-string to reflect the fact that this
440            is only the table interface to a DBF file. Table is now an alias
441            for DBFTable for temporary backwards compatibility.
442    
443            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
444            the last reference to the session goes away so that the temporary
445            files are removed properly.
446    
447            * test/test_load.py (LoadSessionTest.tearDown): Remove the
448            reference to the session to make sure the temporary files are
449            removed.
450    
451    2003-04-29  Bernhard Herzog  <[email protected]>
452    
453            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
454            the __parser instance variable into a normal local variable in
455            read. It's only used there and read will never be called more than
456            once. Plus it introduces a reference cycle that keeps can keep the
457            session object alive for a long time.
458    
459    2003-04-29  Jonathan Coles   <[email protected]>
460    
461            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
462            Projection an immutable item. Fixes RTbug #1825.
463            (Projection.__init__): Initialize instance variables here.
464            (ProjFile.Replace): New. Replace the given projection object with
465            the new projection object. This solves the problem of needing the
466            mutator Projection.SetProjection() in the ProjFrame class and
467            allows a projection to change parameters without changing its
468            location in the file.
469    
470            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
471            be of type wxSAVE and should verify overwriting a file.
472    
473            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
474            ProjFile.Replace() method instead of the mutator
475            Projection.SetProjection(). Also requires that we reassign the
476            client data to the new projection.
477    
478            * test/test_proj.py (TestProjection.test): Test GetName() and
479            GetAllParameters()
480            (TestProjFile.test): Remove tests for Set*() methods. Add tests
481            for Replace().
482    
483    2003-04-25  Jonathan Coles   <[email protected]>
484    
485            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
486            to save the name of the projection.
487    
488            * test/test_save.py (SaveSessionTest.testLayerProjection): New
489            test to verify layer projections are saved correctly.
490    
491    2003-04-25  Jonathan Coles   <[email protected]>
492    
493            * Thuban/Model/proj.py (Projection.SetName): Set the name
494            to "Unknown" if name is None.
495            (Projection.SetAllParameters): New. Set the projection's
496            parameter list to the one supplied.
497            (Projection.SetProjection): New. Set the projection's
498            properties to those of the supplied Projection.
499    
500            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
501            the dialog title to include the map's title.
502            (MainWindow.LayerProjection): Set the dialog title to include
503            the layer's title.
504    
505            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
506            error dialogs into a single method call.
507            (ProjFrame.__VerifyButtons): Add more states to check.
508            (ProjFrame.__GetProjection): Return the current state of an
509            edited projection or None.
510            (ProjFrame.__FillAvailList): Remove checks for states that
511            shouldn't exist.
512            (ProjFrame._OnNew): Clear all selected items and supply
513            a projection panel if necessary.
514    
515            * test/test_proj.py (TestProjFile.test): Add tests for
516            ProjFile.SetAllParameters, ProjFile.SetProjection,
517            ProjFile.SetName.
518    
519    2003-04-25  Jonathan Coles   <[email protected]>
520    
521            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
522            takes an optional argument to select the current projection.
523            This does not guarantee that the item is visible due to
524            limited wxWindows functionality. Fixes RTBug #1821.
525    
526    2003-04-25  Jonathan Coles   <[email protected]>
527    
528            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
529            the projection name and use it when constructing the Projection
530            object.
531    
532            * Thuban/Model/proj.py (Projection.__init__): Change the default
533            value for 'name' to None and then test if name is equal to None
534            in the body of the constructor. This way the caller doesn't have to
535            know what the default value should be. Namely, useful in load.py
536            where we have to pick a default value if the 'name' parameter
537            doesn't exist in the XML file.
538    
539            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
540            Tests a file where a layer has a projection.
541    
542    2003-04-25  Jonathan Coles   <[email protected]>
543    
544            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
545            tree for projection information.
546    
547            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
548            XMLReader.GetFileName.
549            (SessionLoader): Added support for loading projection tags that
550            appear inside a layer.
551    
552            * Thuban/Model/proj.py (ProjFile): Document the class. Move
553            back to using a list because the order of the projections in
554            the file is important to maintain. Fixes RTbug #1817.
555    
556            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
557            to ProjFile.GetFilename.
558    
559            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
560            information.
561    
562            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
563            ProjFrame._OnSaveAs. Removed old dead code from previous
564            implementation.
565            (ProjFrame._OnExport): Add support for exporting more than one
566            projection to a single file.
567            (ProjFrame.__FillAvailList): use string formatting (% operator)
568            to build strings that are (partly) translated. Fixes RTbug #1818.
569    
570            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
571            class.
572    
573    2003-04-24  Bernhard Herzog  <[email protected]>
574    
575            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
576    
577            * po/fr.po: New. French translation by Daniel Calvelo Aros
578    
579            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
580            empty strings.
581    
582    2003-04-24  Jonathan Coles   <[email protected]>
583    
584            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
585            implement the interface that the ProjFrame dialog expects.
586    
587            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
588            name of the projection to be changed.
589            (ProjFile): Use a dictionary instead of a list so that removing
590            projections is easier and we are sure about uniqueness.
591            (ProjFile.Remove): Remove the given projection object.
592    
593            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
594            Return a list with only one projection file instead of searching for
595            any projection file. This simplifies many things if the user can
596            only have one system file and one user file.
597    
598            * Thuban/UI/classgen.py: Change all references to
599            genCombo to genChoice.
600    
601            * Thuban/UI/mainwindow.py: Add a Projection option under the
602            layer menu.
603            (MainWindow.LayerProjection): New. Open up a projection window
604            for a layer.
605    
606            * Thuban/UI/projdialog.py: Large changes to how the dialog is
607            laid out. Use three panels instead of one. One for the list of
608            projections, one for the edit controls, and one for the buttons.
609            Fixed resizing problems so that the dialog resizes correctly
610            when the projection panel changes. Added import/export, save, and
611            new buttons/functionality.
612    
613    2003-04-24  Bernhard Herzog  <[email protected]>
614    
615            First step towards table management. Introduce a simple data
616            abstraction so that we replace the data a layer uses more easily
617            in the next step.
618    
619            * Thuban/Model/data.py: New file with a simple data abstraction
620            that bundles shapefile and dbffile into one object.
621    
622            * Thuban/Model/session.py (Session.OpenShapefile): New method to
623            open shapefiles and return a shape store object
624    
625            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
626            object instead of a shapefile filename. This introduces a new
627            instance variable store holding the datastore. For intermediate
628            backwards compatibility keep the old instance variables.
629            (open_shapefile): Removed. No longer needed with the shape store.
630            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
631            get the shape store used by a layer.
632            (Layer.Destroy): No need to explicitly destroy the shapefile or
633            table anymore.
634    
635            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
636            (MainWindow.AddLayer): Use the session's OpenShapefile method to
637            open shapefiles
638    
639            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
640            session's OpenShapefile method to open shapefiles
641    
642            * test/test_classification.py
643            (TestClassification.test_classification): Use the session's
644            OpenShapefile method to open shapefiles and build the filename in
645            a more platform independed way
646    
647            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
648            Implement to have a session to use in the tests
649            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
650            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
651            session's OpenShapefile method to open shapefiles
652            (TestLayerLegend.setUp): Instantiate a session so that we can use
653            it to open shapefiles.
654            (TestLayerLegend.tearDown): Make sure that all references to
655            layers and session are removed otherwise we may get a resource
656            leak
657    
658            * test/test_map.py (TestMapAddLayer.test_add_layer)
659            (TestMapWithContents.setUp): Instantiate a session so that we can
660            use it to open shapefiles.
661            (TestMapWithContents.tearDown): Make sure that all references to
662            layers, maps and sessions are removed otherwise we may get a
663            resource leak
664            ("__main__"): use support.run_tests() so that more info about
665            uncollected garbage is printed
666    
667            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
668            session's OpenShapefile method to open shapefiles
669            ("__main__"): use support.run_tests() so that more info about
670            uncollected garbage is printed
671    
672            * test/test_selection.py (TestSelection.tearDown): Make sure that
673            all references to the session and the selection are removed
674            otherwise we may get a resource leak
675            (TestSelection.get_layer): Instantiate a session so that we can
676            use it to open shapefiles.
677            ("__main__"): use support.run_tests() so that more info about
678            uncollected garbage is printed
679    
680            * test/test_session.py (TestSessionBase.tearDown)
681            (TestSessionWithContent.tearDown): Make sure that all references
682            to the session and layers are removed otherwise we may get a
683            resource leak
684            (TestSessionWithContent.setUp): Use the session's OpenShapefile
685            method to open shapefiles
686    
687    2003-04-24  Jonathan Coles   <[email protected]>
688    
689            * Thuban/Model/load.py (XMLReader.read): Should have been checking
690            if the file_or_filename object had the 'read' attribute.
691    
692    2003-04-23  Jonathan Coles   <[email protected]>
693    
694            * Thuban/Model/resource.py: Fixes RTbug #1813.
695            (ReadProjFile): Add documentation about which exceptions are raised.
696            Always pass the exceptions up to the caller.
697            (GetProjFiles): If the directory can't be read return an empty list.
698            If any of the proj files can't be read skip that file and go
699            on to the next one.
700    
701            * test/test_proj.py: Added test cases to handle nonexistent files,
702            unreadable files, and files that don't parse correctly.
703    
704    2003-04-23  Jonathan Coles   <[email protected]>
705    
706            Projection dialog. Allows the user to select from a list
707            of projection templates and optionally edit them and save new ones.
708    
709            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
710            (ProjPanel): Base class for projection specific panels.
711            (TMPanel): Projection panel for Transverse Mercartor.
712            (UTMPanel): Projection panel for Universal Transverse Mercartor.
713            (LCCPanel): Projection panel for Lambert Conic Conformal.
714            (GeoPanel): Projetion panel for Geographic Projection.
715    
716    2003-04-23  Jonathan Coles   <[email protected]>
717    
718            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
719            promote symmetry. There now exists XMLReader and XMLWriter.
720            (XMLReader.read): New. Call to read the given file descriptor or
721            filename.
722            (XMLReader.close): New. Make sure the file is closed.
723            (XMLReader.GetFileName): New. Return just the file name that is being
724            read from.
725            (XMLReader.GetDirectory): New. Return just the directory of the file
726            that is being read.
727            (XMLReader.AddDispatchers): New. Take a dictionary which contains
728            the names of functions to call as the XML tree is parsed.
729            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
730            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
731            (SessionLoader): Removed class variables start_dispatcher and
732            end_dispatcher since this functionality is now part of a class
733            instance. Fixes RTbug #1808.
734            (SessionLoader.__init__): Add dispatcher functions.
735            (load_xmlfile): Code was moved into the XMLReader.read().
736            (load_session): Use modified SessionLoader.
737    
738            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
739            map's projection.
740    
741            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
742            GetAllParameters.
743            (Projection.GetParameter): Returns the value for the given parameter.
744    
745            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
746            (GetProjFiles): Renamed from GetProjections. Now returns a list
747            of ProjFile objects.
748            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
749            a list of ProjFile objects whose files are not user defined.
750            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
751            list of ProjFile objects whose files are user defined.
752            (ProjFileReader): Extend new XMLReader.
753    
754            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
755            promote symmetry.
756    
757            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
758            control instead of a wxComboBox. wxChoice controls do not generate
759            events as the uses highlights possible choices which fixes problems
760            with resizing the dialog when the use selects an option.
761    
762            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
763            control instead of a wxComboBox.
764    
765            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
766            dialog.
767    
768            * test/test_proj.py (TestProjection.test): New tests for GetParameter
769            method.
770    
771    2003-04-22  Bernhard Herzog  <[email protected]>
772    
773            * Thuban/UI/mainwindow.py: Remove some unused imports and global
774            constants
775    
776            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
777            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
778    
779    2003-04-17  Bernhard Herzog  <[email protected]>
780    
781            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
782            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
783            anymore.
784            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
785            (Layer.ShapeType, Layer.Shape): No need to call
786            self.open_shapefile since it's always called in __init__
787    
788            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
789            In wxPython 2.4 there's no need to extend MainLoop anymore since
790            wxPython itself makes sure OnExit is called.
791    
792    2003-04-16  Jonathan Coles   <[email protected]>
793    
794            Initial putback of projection management code. Includes new
795            classes to read and write projection files. The current load
796            and save classes were abstracted a bit so they could be reused.
797            The Projection class was extended to provide new methods and
798            have a name.
799    
800            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
801            general XML reading methods that were part of ProcessSession.
802    
803            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
804            name.
805            (ProjFile): New. Represents a file that contains projection
806            information.
807    
808            * Thuban/Model/resource.py: New. Contains general utilities
809            for read and writing projection files.
810    
811            * Thuban/Model/save.py (XMLSaver): New. Contains all the
812            general XML writing methods that were part of SessionSaver.
813            (SessionSaver): Renamed from Saver.
814    
815            * test/test_proj.py: New test cases for the projection
816            file read and write functions.
817    
818    2003-04-16  Jonathan Coles   <[email protected]>
819    
820            * Thuban/Model/classification.py: Use repr() around values
821            in the ClassGroup*.__repr__() methods so it is clearer when
822            a value is a string and when it is a number.
823    
824            * test/test_load.py: Rework the classification test to test
825            that we can load old files.
826            (testLabels): Test a file where the groups have labels.
827    
828    2003-04-16  Bernhard Herzog  <[email protected]>
829    
830            Safer implementation of the performance enhancements of the
831            low-level renderer:
832            
833            * extensions/thuban/wxproj.cpp (extract_projection)
834            (extract_pointer): Rename extract_projection to extract_pointer
835            and redefine its purpose to return the pointer stored in a CObject
836            returned by the object's cobject method. Update all callers.
837            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
838            handling of these low-level parameters so that each s_draw_info
839            instance is handled as a CObject at python level that also
840            contains real references to the actual python objects which
841            contain the values in the struct. Add free_draw_info as the
842            destructor.
843            (draw_polygon_shape): Add the py_draw_info parameter which must a
844            cobject containing an s_draw_info pointer.
845    
846            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
847            method to instantiat the low-level render parameter
848            (MapRenderer.draw_shape_layer): Use the new method. Remove some
849            commented out code.
850            (MapRenderer.draw_polygon_shape): Make the first parameter not the
851            layer but the low-level render parameter
852            (ScreenRenderer.draw_shape_layer): Use the low-level render
853            parameter.
854    
855    2003-04-15  Jonathan Coles   <[email protected]>
856    
857            * Thuban/Model/classification.py: Implemented __repr__ for
858            the ClassGroup* classes to make debugging a bit easier.
859            (ClassGroup.SetLabel): Check that the string is an instance
860            of StringTypes not StringType. Accounts for Unicode strings.
861    
862            * Thuban/Model/color.py: Implemented __repr__ to make
863            debugging a bit easier.
864    
865            * Thuban/Model/save.py (Saver.write_classification): Need to
866            save the group label.
867    
868            * test/test_load.py (testClassification): New. Loads the
869            iceland_sample_test.thuban file and checks if it was loaded
870            correctly.
871    
872    2003-04-15  Jonathan Coles   <[email protected]>
873    
874            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
875            to improve rendering performance by initializing the variables
876            that are not change each time draw_polygon_shape() is called.
877            The values are stored in a global struct draw_info.
878            (draw_polygon_shape): Removed initialization code that is
879            now in draw_polygon_init().
880    
881            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
882            drawing initialization call to draw_polygon_init()
883            (MapRenderer.draw_polygon_shape): Use new signature of
884            draw_polygon_shape.
885    
886            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
887            weirdness by setting the range to (1, maxint).
888    
889            * Thuban/Model/classification.py (ClassGroupProperties): Make
890            instance variables private and optimize comparison operator
891            by first checking if the color references are the same.
892            (ClassGroupSingleton): Make instance variables private.
893            (ClassGroupRange): Make instance variables private.
894    
895            * HOWTO-Release: Filled in missing steps for releasing packages.
896    
897    2003-04-15  Bernhard Herzog  <[email protected]>
898    
899            First stab at internationalized messages:
900    
901            * Thuban/__init__.py (_): Implement the translation function for
902            real using the python gettext module.
903    
904            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
905            translate empty strings.
906    
907            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
908            Add a missing space to a warning message
909    
910            * po/README: New. Notes about the management of the translation
911            files.
912    
913            * po/Makefile: New. Makefile to help manage the translation files.
914    
915            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
916    
917            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
918            translations and support files in po/
919    
920            * setup.py (data_files): Add the *.mo files to the data_files too
921    
922            * README: Add note about the translations when building from CVS
923    
924    2003-04-14  Jonathan Coles   <[email protected]>
925    
926            * Thuban/UI/dock.py: Fixes some window resizing problems most
927            noticable under windows. Always assume the button bitmaps will
928            be there. Code clean up.
929            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
930            images for the dock/undock button to the same images.
931            Work around for RTbug #1801.
932    
933            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
934            be allowed to grow within the sizer. Fixes a bug under Windows
935            where the toolbar wasn't being drawn.
936    
937    2003-04-14  Frank Koormann   <[email protected]>
938    
939            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
940            Updated design to try to make the button functionality more
941            transparent.
942    
943    2003-04-14  Jonathan Coles   <[email protected]>
944    
945            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
946            finalize the intialization of the panel.
947    
948            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
949            creation of the panel. Should be the last thing called in the
950            initializer of a subclass.
951    
952            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
953            set the current selections in the combo boxes. This is needed
954            under Windows.
955    
956            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
957            level panel to the dialog so that the background colors are
958            consistent under Windows.
959    
960    2003-04-11  Jonathan Coles   <[email protected]>
961    
962            * Thuban/UI/classgen.py: Change color ramps to start at white
963            not black.
964    
965            * Thuban/UI/legend.py: Enable/disable the legend buttons when
966            the legend changes. Fixes RTbug #1793.
967    
968            * test/test_classification.py: Added test for copying of
969            classifications.
970    
971    2003-04-11  Jonathan Coles   <[email protected]>
972    
973            * Thuban/UI/resource.py: New. Centralize the loading of resources
974            such as bitmaps.
975    
976            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
977            added images to the move buttons, added 'reverse' button.
978            (CustomRampPanel.__init__): Added images to the move buttons.
979            (GreyRamp): New. Generates a ramp from white to black.
980            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
981    
982            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
983            ID_PROPERTY_*.
984            (Classifier.__init__): Minor changes to the layout.
985            (Classifier._OnTitleChanged): Listen for when the user edits the
986            title and update the dialog's title and the layer's title.
987    
988            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
989    
990            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
991            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
992            if the layer's title changes.
993    
994            * Thuban/UI/mainwindow.py: Added new menu item and associated code
995            to open a dialog to rename the map.
996            (MainWindow): Use new resource class to import bitmaps.
997    
998    2003-04-11  Jonathan Coles   <[email protected]>
999    
1000            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
1001            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
1002            Resources/Bitmaps/group_use_none.xpm,
1003            Resources/Bitmaps/group_use_not.xpm,
1004            Resources/Bitmaps/hide_layer.xpm,
1005            Resources/Bitmaps/layer_properties.xpm,
1006            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
1007            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
1008            New.
1009    
1010    2003-04-10  Jonathan Coles   <[email protected]>
1011    
1012            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
1013            Should pass group to ClassGroup constructor.
1014    
1015    2003-04-10  Jonathan Coles   <[email protected]>
1016    
1017            * Thuban/Model/classification.py: (ClassGroup): Move all the common
1018            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
1019            here. Implement SetVisible(), IsVisible().
1020            (ClassGroup.__init__): Add group parameter which acts as a copy
1021            constructor.
1022    
1023            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
1024            "Visible" check boxes.
1025            (Classifier): Rename the buttons and refactor the code to match
1026            the new labels.
1027    
1028            * Thuban/UI/legend.py: Classify button is now called "Properties".
1029            Refactored the code to change variable names.
1030            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
1031    
1032            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
1033            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
1034            renamed to MainWindow.LayerEditProperties.
1035            (MainWindow.ToggleLegend): Don't include map name in legend title.
1036            (MainWindow.SetMap): Added the map name to the window title.
1037            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
1038            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
1039            Functionality is found in the layer properties dialog.
1040    
1041            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
1042            draw visible groups.
1043    
1044    2003-04-09  Jonathan Coles   <[email protected]>
1045    
1046            * Thuban/UI/classgen.py: Modifications to allow simple
1047            addition and selection of new color schemes.
1048            (MonochromaticRamp): New. Generates a ramp between two colors.
1049            (RedRamp): New. Generates a ramp of all red.
1050            (GreenRamp): New. Generates a ramp of all green.
1051            (BlueRamp): New. Generates a ramp of all blue.
1052    
1053    2003-04-09  Jonathan Coles   <[email protected]>
1054    
1055            * Thuban/Model/classification.py (Classification.__deepcopy__):
1056            Need to copy over field and fieldType attributes.
1057    
1058            * Thuban/Model/table.py (Table.field_range): New. Retrive the
1059            maximum and minimum values over the entire table for a given
1060            field.
1061            (Table.GetUniqueValues): New. Retrieve all the unique values
1062            in the table for a given field.
1063    
1064            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
1065            (GenUniquePanel): New. Controls to allow the user to select
1066            which unique field values they would like in the classification.
1067            (CustomRampPanel): Code that was in ClassGenDialog that allows
1068            the user to select the properties for a custom ramp.
1069            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
1070    
1071            * Thuban/UI/classifier.py: Removed a lot of debugging code.
1072            (Classifier._SetClassification): Callback method so that the
1073            class generator can set the classification in the grid.
1074            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
1075            editing of a group properties class into a wxWindows control.
1076    
1077            * Thuban/UI/dock.py: It was decided that if the user closes
1078            a dockable window the window should simply hide itself. That
1079            way if the user wants to show the dock again it appears in the
1080            same place as it was when it was closed.
1081            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
1082            (DockableWindow._OnButtonClose): Hide the window instead of
1083            destroying it.
1084            (DockableWindow._OnClose): Hide the window instead of
1085            destroying it.
1086    
1087            * Thuban/UI/legend.py (LegendTree): Use a private method to
1088            consistently set the font and style of the text. Fixes RTbug #1786.
1089    
1090            * Thuban/UI/mainwindow.py: Import just the Classifier class.
1091    
1092    2003-04-07  Bernhard Herzog  <[email protected]>
1093    
1094            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
1095            to the map module
1096    
1097    2003-04-07  Bernhard Herzog  <[email protected]>
1098    
1099            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
1100            favor of ToggleSessionTree
1101            (MainWindow.ToggleSessionTree): New method to toggle visibility of
1102            the session tree.
1103            (MainWindow.SessionTreeShown): New method to return whether the
1104            session tree is currently shown.
1105            (MainWindow.ToggleLegend): New method to toggle visibility of the
1106            legend
1107            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
1108            LegendShown
1109            (MainWindow.LegendShown): New method to return whether the legend
1110            is currently shown.
1111            (_method_command): Add checked parameter so we can define check
1112            menu items
1113            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
1114            mainwindow methods.
1115            (show_session_tree, show_legend commands): Removed.
1116            (toggle_session_tree, toggle_legend commands): New commands to
1117            toggle the visibility of the dialogs
1118    
1119    2003-04-07  Jonathan Coles   <[email protected]>
1120    
1121            * Thuban/UI/classgen.py: Fix Windows problem.
1122    
1123            * Thuban/UI/dock.py: Fix Windows problem.
1124    
1125            * Thuban/UI/mainwindow.py: Use False instead of false.
1126            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
1127    
1128    2003-04-07  Jonathan Coles   <[email protected]>
1129    
1130            Since we now say that the order of the groups in a classification
1131            matters, it makes sense to be able to manipulate that order. Most
1132            of the changes to Thuban/Model/classification.py are to that end.
1133    
1134            * Thuban/Model/classification.py (Classification.AppendGroup,
1135            Classification.InsertGroup, Classification.ReplaceGroup,
1136            Classification.RemoveGroup, Classification.GetGroup): Do as the
1137            names imply.
1138            (Classification.FindGroup): This was called GetGroup, but GetGroup
1139            takes an index, while FindGroup takes a value.
1140            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
1141            REFERENCE. Currently there is a cyclic reference between the layer
1142            and its classification. If the classification doesn't need to know
1143            its owning layer we can change this, since it may make sense to be
1144            able to use the same classification with different layers.
1145    
1146            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
1147    
1148            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
1149            not AddGroup()
1150    
1151            * Thuban/UI/classifier.py: Now that we can depend on the order in
1152            a Classification and have methods to manipulate that order we don't
1153            need to use our own data structures in the grid. We can simply make
1154            the grid/table access the information they need from a copy of
1155            the classification object.
1156            (Classifier._OnCloseBtn): Event handler for when the user clicks
1157            'Close'. This is needed so if the user applies changes and then
1158            continues to change the table the user has the option of discarding
1159            the most recent changes and keeping what they applied.
1160    
1161            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
1162            into the same group.
1163    
1164            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
1165            with a really old version of proj, PJ_VERSION won't even be defined.
1166            If it isn't defined then just compile so that the function always
1167            returns Py_False.
1168    
1169            * test/test_classification.py: Fix tests to use the renamed methods.
1170            Still need to write tests for the new methods.
1171    
1172    2003-04-04  Jonathan Coles   <[email protected]>
1173    
1174            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
1175            call to SetSelection out of the method and before the call
1176            to __SelectField in __init__. This prevents a recursion of events
1177            when _OnFieldSelect is triggered by the user.
1178    
1179    2003-04-04  Jonathan Coles   <[email protected]>
1180    
1181            * Thuban/Model/classification.py: Rename Color.None to
1182            Color.Transparent.
1183            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
1184            Don't bother copying the color, since Colors are immutable.
1185    
1186            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
1187            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
1188            Thuban/UI/renderer.py, Thuban/UI/view.py:
1189            Rename Color.None to Color.Transparent.
1190        
1191            * test/test_classification.py, test/test_load.py: Rename Color.None
1192            to Color.Transparent.
1193    
1194    2003-04-04  Jonathan Coles   <[email protected]>
1195    
1196            * Thuban/Model/classification.py: Fix assert calls.
1197            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
1198            Copy the color parameter rather than hold onto a reference.
1199    
1200            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
1201            the color object.
1202            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
1203            are sure there exists only one refernce to Color.None in the system.
1204            This allows us to use 'is' rather than the comparision functions.
1205            
1206            * Thuban/Model/save.py: Fix assert calls.
1207            
1208            * Thuban/UI/classifier.py: Fix assert calls.
1209            (ClassGrid._OnCellDClick): Call up to the classifier to open the
1210            dialog to edit the groups properties.
1211            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
1212            correctly if a cell is resized.
1213            (ClassTable.SetClassification): New. Changes the classification
1214            that is in the table.
1215            (ClassTable.__SetRow): Allow groups to be prepended.
1216            (Classifier): New code for opening the EditProperties and
1217            GenerateRanges dialogs.
1218            (SelectPropertiesDialog.__GetColor): Only set the color in the
1219            color dialog if the current color is not None.
1220            
1221            * Thuban/UI/dock.py: Fix assert calls.
1222            
1223            * Thuban/UI/legend.py: Fix assert calls.
1224            
1225            * Thuban/UI/renderer.py: Fix assert calls.
1226            
1227            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
1228            classifications.
1229            (GenRangePanel): Panel specific to range generation.
1230            (GenSingletonPanel): Panel specific to singleton generation.
1231            (ClassGenerator): Class responsible for actually generating
1232            the classification from the data gathered in the dialog box.
1233            (PropertyRamp): Generates properties whose values range from
1234            a starting property to an ending property.
1235    
1236    2003-04-03  Bernhard Herzog  <[email protected]>
1237    
1238            * test/support.py (print_garbage_information): New function that
1239            prints information about still connected messages and memory
1240            leaks.
1241            (run_suite): Removed.
1242            (run_tests): New function for use as a replacement of
1243            unittest.main in the test_* files. This one calls
1244            print_garbage_information at the end.
1245    
1246            * test/runtests.py (main): Use support.print_garbage_information
1247    
1248            * test/test_layer.py: Use support.run_tests instead of
1249            unittest.main so we get memory leak information
1250            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1251            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
1252            (TestLayerLegend.test_visibility): Call the layer's Destroy method
1253            to fix a memory leak.
1254    
1255            * test/test_classification.py: Use support.run_tests instead of
1256            unittest.main so we get memory leak information
1257            (TestClassification.test_classification): Call the layer's Destroy
1258            method to fix a memory leak.
1259    
1260  2003-04-02  Bernhard Herzog  <[email protected]>  2003-04-02  Bernhard Herzog  <[email protected]>
1261    
1262          * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):          * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):

Legend:
Removed from v.595  
changed lines
  Added in v.850

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26