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

Legend:
Removed from v.619  
changed lines
  Added in v.852

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26