/[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 569 by jonathan, Fri Mar 28 17:06:11 2003 UTC revision 952 by frank, Wed May 21 14:21:23 2003 UTC
# Line 1  Line 1 
1    2003-05-21  Frank Koormann  <[email protected]>
2    
3            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
4            OnClose() to keep in sync with extensions. Internally Thuban
5            still uses "underscored" names.
6    
7    2003-05-20  Jonathan Coles   <[email protected]>
8    
9            This puts back Raster layer support. These layers support projections
10            through the GDAL library. Currently, the CVS version is being used.
11            There are no Debian packages available although this may change soon.
12            A GDAL driver was extended to support writing to memory rather to
13            files.
14    
15            There is still some work that needs to be done, such as some error
16            handling when loading invalid images or when there is a problem
17            projecting the image. This putback simply checks in the majority
18            of the work.
19    
20            * setup.py: Add gdalwarp library extension.
21    
22            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
23            Defaults to False, but can be overridden by subclasses if they
24            support classification.
25            (RasterLayer): New. Defines a new layer that represents an
26            image.
27    
28            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
29            tag handler.
30            (SessionLoader.start_layer): Encode the filename.
31            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
32            New. Supports reading a rasterlayer tag.
33    
34            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
35    
36            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
37            get a string in Latin1. If we get such as string convert it to
38            unicode first, otherwise leave if alone before encoding.
39            (SessionSaver.write_layer): Add support for writing both Layers
40            and RasterLayers.
41    
42            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
43            The right argument may not be a string, it could also be a Column.
44    
45            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
46            Make initial window size 600x400. Fixes RTBug #1872.
47    
48            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
49            the dialog is constructed so that we can support layers that
50            do not have classifications.
51            (Classifier._OnTry): Only build a classification if the layer
52            supports one.
53    
54            * Thuban/UI/legend.py: Change all checks that a layer is an
55            instance of Layer into checks against BaseLayer.
56            (LegendTree.__FillTreeLayer): Only add children to a branch if
57            the layer supports classification.
58    
59            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
60            MainWindow.OpenSession): Don't proceed with an action if the
61            user chooses Cancel when they are asked to save changes.
62            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
63            user to select an image file. Create a new RasterLayer and add
64            it to the map.
65    
66            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
67            for rendering RasterLayer layers.
68            (MapRenderer.draw_raster_layer): Actually method that calls
69            the GDALWarp python wrapper and constructs an image from the
70            data returned.
71    
72            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
73            Choices symbols to match those used in the table query method.
74            Replace deprecated method calls on table with new method names.
75    
76            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
77            how small the scale can get. This still needs more testing.
78    
79            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
80            Provides a driver to output in .bmp format.
81    
82            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
83            New. Provides IO routines which write to memory, rather than a file.
84    
85            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
86            of the gdalwarp utility provided in GDAL. Added function calls
87            that can be accessed from python.
88    
89            * Data/iceland_sample_raster.thuban: New. Sample file that uses
90            a raster layer.
91    
92            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
93            layer image data.
94    
95            * Doc/thuban.dtd: Added rasterlayer attribute definition.
96    
97            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
98            tests associated with the raster layer code.
99    
100            * test/test_transientdb.py
101            (TestTransientTable.test_auto_transient_table_query): Added a test
102            for using a Column object as the "right" parameter to a query.
103    
104    2003-05-19  Frank Koormann  <[email protected]>
105    
106            * Thuban/version.py (get_changelog_date):
107            Catch exceptions if ChangeLog does not exist.
108    
109            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
110    
111    2003-05-19  Frank Koormann  <[email protected]>
112    
113            Extended version information for Thuban
114    
115            * Thuban/version.py: New, version information for Thuban: Last
116            modification date and last ChangeLog entry date.
117    
118            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
119            information: Display Thuban, wxPython and Python version.
120    
121    2003-05-16  Bernhard Herzog  <[email protected]>
122    
123            * Thuban/Model/save.py: Remove some unused imports including the
124            __future__ import for nested_scopes as Thuban relies on Python 2.2
125            now.
126            (XMLWriter.encode): Remove the special case for a None argument.
127            In the saver encode is always called with a string argument.
128    
129    2003-05-16  Bernhard Herzog  <[email protected]>
130    
131            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
132            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
133            of the bug was that e.g. float("1.2") would fail. Thuban now
134            requires 2.4.x.
135            
136    2003-05-16  Frank Koormann   <[email protected]>
137    
138            Printing enhancement and WMF export (under Win32)
139    
140            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
141            ScreenRenderer. Renders Map, Legend and Scalebar for export.
142            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
143            PrintRender.
144    
145            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
146            to fullfil information needed for PrinterRenderer.
147            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
148            (MapCanvas.Print): Adapted to new MapPrintout.
149            (OutputTransform): General calculations to transform from canvas
150            coordinates to export/printing devices.
151    
152            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
153            new method_command to call ExportMap, with platform dependency (only
154            __WXMSW__)
155      
156            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
157            of scalebar drawing area as new parameters.
158            
159            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
160    
161            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
162            Update to extended scalebar.DrawScalebar header.
163    
164            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
165    
166            * test/test_scalebar.py: Made test executable as standalone.
167    
168    2003-05-16  Bernhard Herzog  <[email protected]>
169    
170            * Thuban/Model/table.py (Table): Remove this compatibility alias
171            for DBFTable.
172    
173            * test/test_table.py: Import DBFTable as Table because that alias
174            doesn't exist anymore.
175    
176            * Thuban/UI/classgen.py: Remove some unused imports
177    
178    2003-05-14  Jonathan Coles   <[email protected]>
179    
180            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
181            Fix docstring.
182            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
183            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
184            values of the supplied range to determine the beginning and end
185            bounds of the generated classes.
186    
187            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
188            do not have a leading 0 (.5 is now accepted as well as 0.5).
189    
190            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
191            call to ClassGenerator.GenUniformDistribution.
192    
193            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
194            layout bug with the 'Projection' label.
195    
196            * test/support.py (FloatTestCase): New. Needed for the Range tests.
197    
198            * test/test_range.py: New. Imported from SciParam.
199    
200    2003-05-12  Jonathan Coles   <[email protected]>
201    
202            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
203            to table.UniqueValues() with calls that retrieve all the values
204            from the table. This will need to be replaced by a method on table
205            which can simply return the list (perhaps more efficiently).
206    
207    2003-05-12  Jonathan Coles   <[email protected]>
208    
209            The return value of ClassGenerator.CalculateQuantiles has changed.
210            Refer to the documentation for details.
211    
212            * test/test_classgen.py: Modified Quantile tests to use the
213            new return values.
214    
215            * Thuban/Model/classgen.py
216            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
217            use new return values from CalculateQuantiles to produce the correct
218            range bounds in the Classification.
219            (ClassGenerator.CalculateQuantiles): Add more comments describing
220            the return values and parameters. Make minor adjustments to improve
221            the legibility of the code. Fix problem with adjusted not being set
222            in most cases.
223    
224    2003-05-12  Frank Koormann <[email protected]>
225            
226            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
227            and latin1. Fixes #1851 finally.
228    
229    2003-05-09  Jonathan Coles   <[email protected]>
230    
231            * test/test_classgen.py: New. Tests the Quantile algorithm.
232    
233            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
234            Clean up debugging statement, add comments, fix a small bug in the
235            returned adjusted percentiles.
236            
237    2003-05-09  Jonathan Coles   <[email protected]>
238    
239            Introduces Range class from SciParam into the ClassGroupRange class,
240            and such ranges can now be saved and loaded from disk.
241    
242            Quantiles are now available in the Classification Generator.
243    
244            Initial support for building Queries on a table. Doesn't do anything
245            but run some tests.
246    
247            * Thuban/Model/classification.py: Explicit imports.
248            (ClassGroupRange): Use the Range class to store the underlying
249            range information. The interface remains the same, except for
250            GetRange(), and you can also supply a Range object as the min
251            parameter to SetRange or __init__.
252    
253            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
254            string appropriately for use in Thuban. Fixes RTbug #1851.
255            (SessionLoader.end_projection): Handle the context of the
256            projection tag a bit better by looking at what objects are not
257            None. There was an assumption that a projection tag for a map
258            could occur before any layers.
259            (SessionLoader.start_clrange): Provide backward compatibility for
260            reading min/max values as well as the new range parameter.
261    
262            * Thuban/Model/map.py: Explicit imports.
263    
264            * Thuban/Model/resource.py: Import _.
265            (ProjFileSaver.write): write header using projfile.dtd.
266    
267            * Thuban/Model/save.py: Explicit imports.
268            (XMLWriter.encode): New. Encode the given string from a format
269            used by Thuban into UTF-8. Fixes RTbug #1851.
270    
271            * Thuban/UI/classgen.py: Explicit imports.
272            (ClassGenDialog.__init__): Clean up the code and add support
273            for Quantiles.
274            (ClassGenDialog.OnOK): Add support for Quantiles.
275            (GenQuantilesPanel): New. Input panel for Quantiles.
276            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
277            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
278    
279            * Thuban/Model/classgen.py: New. Contains all the classes named above.
280    
281            * Thuban/UI/classifier.py: Explicit imports.
282            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
283            ClassTable.SetValueAsCustom): Reworked to use new Range class.
284    
285            * Thuban/UI/legend.py: Explicit imports.
286    
287            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
288            a Table menu and associated method calls.
289            (MainWindow.choose_color): Removed. No longer needed.
290    
291            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
292            should be disabled if no projection is selected in the available
293            list.
294    
295            * Thuban/UI/renderer.py: Explicit imports.
296    
297            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
298            with correctly selecting the rows and issuing the right events.
299            Be sure to call Skip() to allow the grid to do some of its own
300            handling which allows the rows to actually be selected.
301            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
302            selecting multiple shapes.
303            (LayerTableFrame): Support for building Queries.
304            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
305    
306            * Thuban/UI/tree.py: Explicit imports.
307    
308            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
309            table view can call it.
310    
311            * test/test_classification.py: Explicit imports.
312            (TestClassification.test_ClassGroupRange): Fix test for new
313            Range class.
314    
315            * Doc/thuban.dtd: Add range parameter for clrange.
316    
317            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
318            object in ClassGroupRange, and also uesd for inputting ranges in
319            the classifer table and elsewhere.
320    
321            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
322            yet.
323    
324    2003-05-09  Frank Koormann <[email protected]>
325    
326            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
327    
328    2003-05-08  Frank Koormann <[email protected]>
329    
330            Coding style updates
331    
332            * test/test_scalebar.py: Replaced tab indentation by spaces.
333    
334            * Thuban/UI/scalebar.py: Explicit imports.
335    
336    2003-05-08  Frank Koormann <[email protected]>
337    
338            * Thuban/UI/scalebar.py
339            (ScaleBar.DrawScalebar): Format string bug fixed.
340    
341    2003-05-08  Frank Koormann <[email protected]>
342    
343            Reorganization of scalebar component (no wx in Thuban/Model)
344    
345            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
346            (deriveInterval):
347            Calculate scalebar interval and unit which fits in width for scale.
348            (roundInterval): Round float.
349    
350            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
351    
352            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
353    
354            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
355    
356    2003-05-08  Frank Koormann <[email protected]>
357    
358            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
359            Initialize ScaleBar with canvas.map
360    
361            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
362            round intervals to display smarter lengths
363            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
364            layer. If the maps has no projection applied grey the scalebar.
365    
366    2003-05-07  Frank Koormann <[email protected]>
367            
368            Basic Scalebar features added.
369    
370            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
371    
372            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
373            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
374            and the renderer.
375    
376            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
377    
378            * Thuban/UI/messages.py: SCALE_CHANGED added.
379    
380    2003-05-07  Bernhard Herzog  <[email protected]>
381    
382            * Thuban/Model/session.py (Session.__init__): New instance
383            variable shapestores to hold a list of all open shapestore objects
384            (Session.ShapeStores): New. Accessor method for the shapestores
385            list.
386            (Session._add_shapestore, Session._clean_weak_store_refs): New.
387            Internal methods to maintain the shapestores list.
388            (Session.Tables): New. Return all tables open in the session.
389            (Session.OpenShapefile): Insert the new ShapeStore into the
390            shapestores list.
391    
392            * test/test_session.py (TestSessionSimple.test_initial_state): Add
393            tests for ShapeStores and Tables
394            (TestSessionWithContent.test_shape_stores)
395            (TestSessionWithContent.test_tables): New. Test cases for
396            ShapeStores and Tables
397    
398    2003-05-07  Bernhard Herzog  <[email protected]>
399    
400            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
401            Add comments about the optimizations used.
402            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
403            Implement the ReadValue table interface method.
404    
405            * test/test_transientdb.py
406            (TestTransientTable.run_iceland_political_tests)
407            (TestTransientTable.test_transient_joined_table): Add tests for
408            ReadValue
409    
410    2003-05-07  Frank Koormann <[email protected]>
411    
412            * Resources/Bitmaps/fulllayerextent.xpm,
413            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
414            new icons.
415    
416    2003-05-06  Bernhard Herzog  <[email protected]>
417    
418            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
419            New. Simply delegate to the transient table's version.
420    
421            * test/test_transientdb.py
422            (TestTransientTable.test_auto_transient_table_query): New. Test
423            case for AutoTransientTable's SimpleQuery
424    
425    2003-05-06  Bernhard Herzog  <[email protected]>
426    
427            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
428            Implement a simple query method for the query dialog
429            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
430            the row index or shapeid.
431            (TransientTable.create): Insert the right value of the row index
432            (TransientJoinedTable.create): Copy the row index of the left
433            table to the joined result table
434    
435            * test/test_transientdb.py
436            (TestTransientTable.test_transient_table_read_twice): Fix
437            doc-string
438            (TestTransientTable.test_transient_table_query): New. Test for the
439            SimpleQuery method
440    
441    2003-05-06  Bernhard Herzog  <[email protected]>
442    
443            Convert all table users to use the new table interface. This only
444            covers Thuban itself, not GREAT-ER or other applications built on
445            Thuban yet, so the compatibility interface stays in place for the
446            time being but it now issues DeprecationWarnings.
447    
448            Finally, the new Table interface has a new method, HasColumn.
449    
450            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
451            issue deprecation warnings when they're. The warnings refer to the
452            caller of the method.
453            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
454            for the deprecation warnings
455    
456            * test/test_table.py: Ignore the deprecation warnings for the old
457            table in the tests in this module. The purpose of the tests is to
458            test the old interface, after all.
459    
460            * test/test_transientdb.py
461            (TestTransientTable.run_iceland_political_tests): Use the
462            constants for the types. Add a test for HasColumn
463            (TestTransientTable.test_transient_joined_table): Adapt to new
464            table interface. Add a test for HasColumn
465            (TestTransientTable.test_transient_table_read_twice): Adapt to new
466            table interface
467    
468            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
469            Adapt to new table interface
470    
471            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
472            new table interface
473    
474            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
475            (RecordTable.SetTable): Adapt to new table interface
476    
477            * Thuban/UI/classifier.py (Classifier.__init__)
478            (Classifier.__init__): Adapt to new table interface
479    
480            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
481            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
482            to new table interface
483    
484            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
485            (AutoTransientTable.HasColumn): Implement the new table interface
486            method
487            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
488            (AutoTransientTable.UniqueValues): Adapt to new table interface
489    
490            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
491            Adapt to new table interface
492    
493            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
494            simplify opening shapefiles a bit easier.
495            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
496            (TestLayer.test_point_layer): Use the new helper method
497            (TestLayer.test_get_field_type): New. Test for the GetFieldType
498            method
499    
500            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
501            the new table method
502    
503            * test/test_memory_table.py (TestMemoryTable.test_has_column):
504            Test for the new table method HasColumn
505    
506    2003-05-06  Jonathan Coles   <[email protected]>
507    
508            Addresses the "Selection Extent" wish of RTbug #1787.
509    
510            * Resources/Bitmaps/fulllayerextent.xpm,
511            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
512            extent. These are just place holders for the real bitmaps.
513    
514            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
515            calculate the bounding box once (the first time compute_bbox() is
516            called).
517            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
518            the bounding box for the shapes in lat/long coordinates.
519    
520            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
521            option.
522            (MainWindow.has_selected_shapes): New. Returns true if there are
523            any selected shapes.
524            (MainWindow.FullSelectionExtent): New. Calls
525            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
526            (_has_selected_shapes): New. Returns true if there are any
527            selected shapes.
528    
529            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
530            true if there are any selected shapes.
531    
532            * Thuban/UI/view.py (MapCanvas): Added delegated method
533            HasSelectedShapes.
534            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
535            shapes on the canvas using the map projection (if any).
536    
537            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
538            for Layer.ShapesBoundingBox().
539    
540    2003-05-06  Bernhard Herzog  <[email protected]>
541    
542            * Resources/Projections/defaults.proj: Fix spelling of Mercator
543    
544    2003-05-05  Jonathan Coles   <[email protected]>
545    
546            Addresses the "Full Layer Extent" wish of RTbug #1787.
547    
548            * Resources/Projections/defaults.proj: Added UK National Grid.
549    
550            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
551            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
552            when the user selects the menu option.
553    
554            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
555            scales the given layer on the canvas using the map projection.
556    
557    2003-05-05  Bernhard Herzog  <[email protected]>
558    
559            Convert the table implementations to a new table interface. All
560            tables use a common mixin class to provide backwards compatibility
561            until all table users have been updated.
562    
563            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
564            provide backwards compatibility for table classes implementing the
565            new interface
566            (DBFTable, MemoryTable): Implement the new table interface. Use
567            OldTableInterfaceMixin as base for compatibility
568            (DBFColumn, MemoryColumn): New. Column description for DBFTable
569            and MemoryTable resp.
570    
571            * test/test_dbf_table.py: New. Test cases for the DBFTable with
572            the new table interface.
573    
574            * test/test_memory_table.py: New. Test cases for the MemoryTable
575            with the new table interface.
576    
577            * test/test_table.py: Document the all tests in this file as only
578            for backwards compatibility. The equivalent tests for the new
579            interface are in test_memory_table.py and test_dbf_table.py
580            (MemoryTableTest.test_read): field_info should be returning tuples
581            with four items
582            (MemoryTableTest.test_write): Make doc-string a more precise.
583    
584            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
585            table interface. Derive from from OldTableInterfaceMixin for
586            compatibility.
587            (TransientTableBase.create): New intance variable column_map to
588            map from names and indices to column objects
589            (TransientTable.create): Use the new table interface of the input
590            table
591            (AutoTransientTable): Convert to new table interface. Derive from
592            from OldTableInterfaceMixin for compatibility.
593            (AutoTransientTable.write_record): Removed. It's not implemented
594            yet and we still have to decide how to handle writing with the new
595            table and data framework.
596    
597            * test/test_transientdb.py
598            (TestTransientTable.run_iceland_political_tests)
599            (TestTransientTable.test_transient_joined_table): Use the new
600            table interface
601    
602    2003-05-05  Jonathan Coles   <[email protected]>
603    
604            This is namely a collection of UI updates to improve user interactivity.
605            Tabbing between controls now exists and you can use ESC to close dialog
606            boxes; ENTER will active the default button.
607    
608            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
609            order that the controls are created so that tabbing works correctly.
610            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
611            wxDialog can handle the default button correctly.
612            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
613            same reasons as for OnOK.
614            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
615            when we ask the table for the maximum/minimum values of a field
616            which could take a very long time.
617    
618            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
619            order that the controls are created so that tabbing works correctly.
620            (SelectPropertiesDialog.__init__): Rearrange the order that the
621            controls are created so that tabbing works correctly.
622    
623            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
624            to derive from a wxDialog but behave like the original implementation
625            which was derived from a wxFrame. wxDialog provides useful key
626            handling functionality like ESC calling OnCancel and ENTER calling
627            OnOK which is lost with wxFrame.
628    
629            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
630            new dialogs.
631    
632            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
633            order that the controls are created so that tabbing works correctly.
634            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
635            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
636            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
637            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
638            can provide the "UK National Grid" as a default projection.
639            (UTMPanel.__init__): Rearrange the order that the controls are
640            created so that tabbing works correctly.
641    
642    2003-05-05  Bernhard Herzog  <[email protected]>
643    
644            * extensions/thuban/wxproj.cpp: Fix some of the comments.
645            (project_point): If a map projection but no layer projection is
646            given, convert degrees to radians before applying the map
647            projection.
648    
649            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
650            (TableGrid.allow_messages): New methods to make it possible to
651            inhibit message sending.
652            (TableGrid.issue): Only send the message if not inhibited.
653            (LayerTableGrid.select_shape): Use the new methods to make sure
654            that no ROW_SELECTED message is sent while we're updating the
655            selected rows to match the selected shapes.
656    
657    2003-05-02  Jan-Oliver Wagner <[email protected]>
658    
659            Implementation of MemoryTable.
660    
661            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
662            implementation that operates on a list of tuples. All of the data
663            are kept in the memory.
664    
665            * test/test_table.py (MemoryTableTest): New.
666    
667            * test/test_transientdb.py (SimpleTable): Removed.
668            (TestTransientTable.test_transient_joined_table,
669            (TestTransientTable.test_transient_table_read_twice): Replaced
670            SimpleTable by MemoryTable.
671    
672    2003-04-30  Jonathan Coles   <[email protected]>
673    
674            * Data/iceland_sample.thuban: Now contains correct projections
675            for each of the layers.
676    
677            * Resources/Projections/defaults.proj: Geographic projection
678            contains unit conversion parameter.
679    
680    2003-04-30  Jonathan Coles   <[email protected]>
681    
682            The most important part of this putback is the projection changes.
683            It should now be possible to specify the projection that a layer
684            is in and then specify a different projection for the map. The
685            projection dialog has an extra parameter for a geographic projection
686            which lets the user select if the input is in degrees or radians.
687    
688            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
689            to say that the parameter is a tuple of unprojected
690            points (which is what the callers to this method were assuming).
691            Also, since the points are unprojected we need to projected them.
692    
693            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
694            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
695            groups are selected, move the layer up/down. Fixes RTbug #1833.
696    
697            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
698    
699            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
700            parameter in call to SetClientData.
701            (GeoPanel): Add support for selecting the units that the
702            source data is in (Radians or Degrees).
703    
704            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
705            the rendering loop by reducing the number of if's, removing the
706            unnecessary try/except block, and checking if the old group
707            is the same as the new one (which happens a lot if there is
708            no classification, or lots of shapes are in the same group).
709    
710            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
711            around the redraw routine to try to catch problems that the user
712            may create by selecting invalid projections for the data set and
713            map. Clears the display if there are any problems and prints the
714            error.
715            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
716            rectangle.
717    
718            * extensions/thuban/wxproj.cpp (project_point): First invert the
719            supplied point (which should be in projected coordinates) using
720            the layer's projection and then project the point using the
721            map's projection.
722            (project_points): Use project_point() to project each point.
723    
724    2003-04-30  Jan-Oliver Wagner <[email protected]>
725    
726            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
727            don't set the Classification to None if the classfication field
728            is None (ie only a DEFAULT).
729    
730    2003-04-30  Bernhard Herzog  <[email protected]>
731    
732            * Thuban/UI/view.py: Fix some typos.
733    
734            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
735            not pop up the dialog if the selection becomes empty (this could
736            happen if e.g. a new selection is opened while the identify tool
737            is active and dialog had been closed)
738    
739    2003-04-30  Bernhard Herzog  <[email protected]>
740    
741            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
742            instance variable read_record_last_result
743            (TransientTableBase.read_record): Make sure reading the same
744            record twice works. The implementation uses the new instance
745            variable read_record_last_result
746    
747            * test/test_transientdb.py
748            (TestTransientTable.test_transient_table_read_twice): New test
749            case for the above bug-fix.
750    
751    2003-04-29  Jonathan Coles   <[email protected]>
752    
753            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
754    
755            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
756    
757            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
758            (ClassTable.SetValueAsCustom): Rename keyword argument in
759            ClassGroup* constructors to match argument name.
760    
761    2003-04-29  Bernhard Herzog  <[email protected]>
762    
763            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
764            transient DB if it exists to make sure it doesn't leave a journal
765            file in the temp directory.
766    
767            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
768            self.conn to None after closing the connection to make sure it's
769            not closed twice
770    
771    2003-04-29  Jonathan Coles   <[email protected]>
772    
773            Add a visible parameter in the layer XML tag. The default value is
774            "true". If anything other than "false" is specified we also assume
775            "true". Addresses RTbug #1025.
776    
777            * Doc/thuban.dtd: Add visible parameter to a layer.
778    
779            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
780            of visible from 1 to True.
781            (Layer.__init__): Change default value of visible from 1 to True.
782    
783            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
784            parameter.
785    
786            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
787            parameter.
788    
789            * test/test_load.py: Add new test data contents_test_visible.
790            (LoadSessionTest.setUp): save test data.
791            (LoadSessionTest.testLayerVisibility): Test if the visible flag
792            is loaded correctly.
793    
794            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
795            for saving an invisible layer.
796    
797    2003-04-29  Jonathan Coles   <[email protected]>
798    
799            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
800            legend dialog box and tell it to change its map to the one
801            supplied to SetMap(). Fixes RTbug #1770.
802    
803    2003-04-29  Bernhard Herzog  <[email protected]>
804    
805            Next step of table implementation. Introduce a transient database
806            using SQLite that some of the data is copied to on demand. This
807            allows us to do joins and other operations that require an index
808            for good performance with reasonable efficiency. Thuban now needs
809            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
810            haven't tested that.
811            
812            * Thuban/Model/transientdb.py: New. Transient database
813            implementation.
814    
815            * test/test_transientdb.py: New. Tests for the transient DB
816            classes.
817    
818            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
819            classes to help automatically remove temporary files and
820            directories.
821            (Session.__init__): New instance variables temp_dir for the
822            temporary directory and transient_db for the SQLite database
823            (Session.temp_directory): New. Create a temporary directory if not
824            yet done and return its name. Use AutoRemoveDir to have it
825            automatically deleted
826            (Session.TransientDB): Instantiate the transient database if not
827            done yet and return it.
828    
829            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
830            AutoTransientTable so that data is copied to the transient DB on
831            demand.
832            (SimpleStore): New class that simply combines a table and a
833            shapefile
834    
835            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
836            DBFTable and update its doc-string to reflect the fact that this
837            is only the table interface to a DBF file. Table is now an alias
838            for DBFTable for temporary backwards compatibility.
839    
840            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
841            the last reference to the session goes away so that the temporary
842            files are removed properly.
843    
844            * test/test_load.py (LoadSessionTest.tearDown): Remove the
845            reference to the session to make sure the temporary files are
846            removed.
847    
848    2003-04-29  Bernhard Herzog  <[email protected]>
849    
850            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
851            the __parser instance variable into a normal local variable in
852            read. It's only used there and read will never be called more than
853            once. Plus it introduces a reference cycle that keeps can keep the
854            session object alive for a long time.
855    
856    2003-04-29  Jonathan Coles   <[email protected]>
857    
858            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
859            Projection an immutable item. Fixes RTbug #1825.
860            (Projection.__init__): Initialize instance variables here.
861            (ProjFile.Replace): New. Replace the given projection object with
862            the new projection object. This solves the problem of needing the
863            mutator Projection.SetProjection() in the ProjFrame class and
864            allows a projection to change parameters without changing its
865            location in the file.
866    
867            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
868            be of type wxSAVE and should verify overwriting a file.
869    
870            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
871            ProjFile.Replace() method instead of the mutator
872            Projection.SetProjection(). Also requires that we reassign the
873            client data to the new projection.
874    
875            * test/test_proj.py (TestProjection.test): Test GetName() and
876            GetAllParameters()
877            (TestProjFile.test): Remove tests for Set*() methods. Add tests
878            for Replace().
879    
880    2003-04-25  Jonathan Coles   <[email protected]>
881    
882            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
883            to save the name of the projection.
884    
885            * test/test_save.py (SaveSessionTest.testLayerProjection): New
886            test to verify layer projections are saved correctly.
887    
888    2003-04-25  Jonathan Coles   <[email protected]>
889    
890            * Thuban/Model/proj.py (Projection.SetName): Set the name
891            to "Unknown" if name is None.
892            (Projection.SetAllParameters): New. Set the projection's
893            parameter list to the one supplied.
894            (Projection.SetProjection): New. Set the projection's
895            properties to those of the supplied Projection.
896    
897            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
898            the dialog title to include the map's title.
899            (MainWindow.LayerProjection): Set the dialog title to include
900            the layer's title.
901    
902            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
903            error dialogs into a single method call.
904            (ProjFrame.__VerifyButtons): Add more states to check.
905            (ProjFrame.__GetProjection): Return the current state of an
906            edited projection or None.
907            (ProjFrame.__FillAvailList): Remove checks for states that
908            shouldn't exist.
909            (ProjFrame._OnNew): Clear all selected items and supply
910            a projection panel if necessary.
911    
912            * test/test_proj.py (TestProjFile.test): Add tests for
913            ProjFile.SetAllParameters, ProjFile.SetProjection,
914            ProjFile.SetName.
915    
916    2003-04-25  Jonathan Coles   <[email protected]>
917    
918            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
919            takes an optional argument to select the current projection.
920            This does not guarantee that the item is visible due to
921            limited wxWindows functionality. Fixes RTBug #1821.
922    
923    2003-04-25  Jonathan Coles   <[email protected]>
924    
925            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
926            the projection name and use it when constructing the Projection
927            object.
928    
929            * Thuban/Model/proj.py (Projection.__init__): Change the default
930            value for 'name' to None and then test if name is equal to None
931            in the body of the constructor. This way the caller doesn't have to
932            know what the default value should be. Namely, useful in load.py
933            where we have to pick a default value if the 'name' parameter
934            doesn't exist in the XML file.
935    
936            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
937            Tests a file where a layer has a projection.
938    
939    2003-04-25  Jonathan Coles   <[email protected]>
940    
941            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
942            tree for projection information.
943    
944            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
945            XMLReader.GetFileName.
946            (SessionLoader): Added support for loading projection tags that
947            appear inside a layer.
948    
949            * Thuban/Model/proj.py (ProjFile): Document the class. Move
950            back to using a list because the order of the projections in
951            the file is important to maintain. Fixes RTbug #1817.
952    
953            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
954            to ProjFile.GetFilename.
955    
956            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
957            information.
958    
959            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
960            ProjFrame._OnSaveAs. Removed old dead code from previous
961            implementation.
962            (ProjFrame._OnExport): Add support for exporting more than one
963            projection to a single file.
964            (ProjFrame.__FillAvailList): use string formatting (% operator)
965            to build strings that are (partly) translated. Fixes RTbug #1818.
966    
967            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
968            class.
969    
970    2003-04-24  Bernhard Herzog  <[email protected]>
971    
972            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
973    
974            * po/fr.po: New. French translation by Daniel Calvelo Aros
975    
976            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
977            empty strings.
978    
979    2003-04-24  Jonathan Coles   <[email protected]>
980    
981            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
982            implement the interface that the ProjFrame dialog expects.
983    
984            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
985            name of the projection to be changed.
986            (ProjFile): Use a dictionary instead of a list so that removing
987            projections is easier and we are sure about uniqueness.
988            (ProjFile.Remove): Remove the given projection object.
989    
990            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
991            Return a list with only one projection file instead of searching for
992            any projection file. This simplifies many things if the user can
993            only have one system file and one user file.
994    
995            * Thuban/UI/classgen.py: Change all references to
996            genCombo to genChoice.
997    
998            * Thuban/UI/mainwindow.py: Add a Projection option under the
999            layer menu.
1000            (MainWindow.LayerProjection): New. Open up a projection window
1001            for a layer.
1002    
1003            * Thuban/UI/projdialog.py: Large changes to how the dialog is
1004            laid out. Use three panels instead of one. One for the list of
1005            projections, one for the edit controls, and one for the buttons.
1006            Fixed resizing problems so that the dialog resizes correctly
1007            when the projection panel changes. Added import/export, save, and
1008            new buttons/functionality.
1009    
1010    2003-04-24  Bernhard Herzog  <[email protected]>
1011    
1012            First step towards table management. Introduce a simple data
1013            abstraction so that we replace the data a layer uses more easily
1014            in the next step.
1015    
1016            * Thuban/Model/data.py: New file with a simple data abstraction
1017            that bundles shapefile and dbffile into one object.
1018    
1019            * Thuban/Model/session.py (Session.OpenShapefile): New method to
1020            open shapefiles and return a shape store object
1021    
1022            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
1023            object instead of a shapefile filename. This introduces a new
1024            instance variable store holding the datastore. For intermediate
1025            backwards compatibility keep the old instance variables.
1026            (open_shapefile): Removed. No longer needed with the shape store.
1027            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
1028            get the shape store used by a layer.
1029            (Layer.Destroy): No need to explicitly destroy the shapefile or
1030            table anymore.
1031    
1032            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
1033            (MainWindow.AddLayer): Use the session's OpenShapefile method to
1034            open shapefiles
1035    
1036            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
1037            session's OpenShapefile method to open shapefiles
1038    
1039            * test/test_classification.py
1040            (TestClassification.test_classification): Use the session's
1041            OpenShapefile method to open shapefiles and build the filename in
1042            a more platform independed way
1043    
1044            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
1045            Implement to have a session to use in the tests
1046            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1047            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
1048            session's OpenShapefile method to open shapefiles
1049            (TestLayerLegend.setUp): Instantiate a session so that we can use
1050            it to open shapefiles.
1051            (TestLayerLegend.tearDown): Make sure that all references to
1052            layers and session are removed otherwise we may get a resource
1053            leak
1054    
1055            * test/test_map.py (TestMapAddLayer.test_add_layer)
1056            (TestMapWithContents.setUp): Instantiate a session so that we can
1057            use it to open shapefiles.
1058            (TestMapWithContents.tearDown): Make sure that all references to
1059            layers, maps and sessions are removed otherwise we may get a
1060            resource leak
1061            ("__main__"): use support.run_tests() so that more info about
1062            uncollected garbage is printed
1063    
1064            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
1065            session's OpenShapefile method to open shapefiles
1066            ("__main__"): use support.run_tests() so that more info about
1067            uncollected garbage is printed
1068    
1069            * test/test_selection.py (TestSelection.tearDown): Make sure that
1070            all references to the session and the selection are removed
1071            otherwise we may get a resource leak
1072            (TestSelection.get_layer): Instantiate a session so that we can
1073            use it to open shapefiles.
1074            ("__main__"): use support.run_tests() so that more info about
1075            uncollected garbage is printed
1076    
1077            * test/test_session.py (TestSessionBase.tearDown)
1078            (TestSessionWithContent.tearDown): Make sure that all references
1079            to the session and layers are removed otherwise we may get a
1080            resource leak
1081            (TestSessionWithContent.setUp): Use the session's OpenShapefile
1082            method to open shapefiles
1083    
1084    2003-04-24  Jonathan Coles   <[email protected]>
1085    
1086            * Thuban/Model/load.py (XMLReader.read): Should have been checking
1087            if the file_or_filename object had the 'read' attribute.
1088    
1089    2003-04-23  Jonathan Coles   <[email protected]>
1090    
1091            * Thuban/Model/resource.py: Fixes RTbug #1813.
1092            (ReadProjFile): Add documentation about which exceptions are raised.
1093            Always pass the exceptions up to the caller.
1094            (GetProjFiles): If the directory can't be read return an empty list.
1095            If any of the proj files can't be read skip that file and go
1096            on to the next one.
1097    
1098            * test/test_proj.py: Added test cases to handle nonexistent files,
1099            unreadable files, and files that don't parse correctly.
1100    
1101    2003-04-23  Jonathan Coles   <[email protected]>
1102    
1103            Projection dialog. Allows the user to select from a list
1104            of projection templates and optionally edit them and save new ones.
1105    
1106            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
1107            (ProjPanel): Base class for projection specific panels.
1108            (TMPanel): Projection panel for Transverse Mercartor.
1109            (UTMPanel): Projection panel for Universal Transverse Mercartor.
1110            (LCCPanel): Projection panel for Lambert Conic Conformal.
1111            (GeoPanel): Projetion panel for Geographic Projection.
1112    
1113    2003-04-23  Jonathan Coles   <[email protected]>
1114    
1115            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
1116            promote symmetry. There now exists XMLReader and XMLWriter.
1117            (XMLReader.read): New. Call to read the given file descriptor or
1118            filename.
1119            (XMLReader.close): New. Make sure the file is closed.
1120            (XMLReader.GetFileName): New. Return just the file name that is being
1121            read from.
1122            (XMLReader.GetDirectory): New. Return just the directory of the file
1123            that is being read.
1124            (XMLReader.AddDispatchers): New. Take a dictionary which contains
1125            the names of functions to call as the XML tree is parsed.
1126            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
1127            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
1128            (SessionLoader): Removed class variables start_dispatcher and
1129            end_dispatcher since this functionality is now part of a class
1130            instance. Fixes RTbug #1808.
1131            (SessionLoader.__init__): Add dispatcher functions.
1132            (load_xmlfile): Code was moved into the XMLReader.read().
1133            (load_session): Use modified SessionLoader.
1134    
1135            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
1136            map's projection.
1137    
1138            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
1139            GetAllParameters.
1140            (Projection.GetParameter): Returns the value for the given parameter.
1141    
1142            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
1143            (GetProjFiles): Renamed from GetProjections. Now returns a list
1144            of ProjFile objects.
1145            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
1146            a list of ProjFile objects whose files are not user defined.
1147            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
1148            list of ProjFile objects whose files are user defined.
1149            (ProjFileReader): Extend new XMLReader.
1150    
1151            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
1152            promote symmetry.
1153    
1154            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
1155            control instead of a wxComboBox. wxChoice controls do not generate
1156            events as the uses highlights possible choices which fixes problems
1157            with resizing the dialog when the use selects an option.
1158    
1159            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
1160            control instead of a wxComboBox.
1161    
1162            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
1163            dialog.
1164    
1165            * test/test_proj.py (TestProjection.test): New tests for GetParameter
1166            method.
1167    
1168    2003-04-22  Bernhard Herzog  <[email protected]>
1169    
1170            * Thuban/UI/mainwindow.py: Remove some unused imports and global
1171            constants
1172    
1173            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
1174            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
1175    
1176    2003-04-17  Bernhard Herzog  <[email protected]>
1177    
1178            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
1179            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
1180            anymore.
1181            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
1182            (Layer.ShapeType, Layer.Shape): No need to call
1183            self.open_shapefile since it's always called in __init__
1184    
1185            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
1186            In wxPython 2.4 there's no need to extend MainLoop anymore since
1187            wxPython itself makes sure OnExit is called.
1188    
1189    2003-04-16  Jonathan Coles   <[email protected]>
1190    
1191            Initial putback of projection management code. Includes new
1192            classes to read and write projection files. The current load
1193            and save classes were abstracted a bit so they could be reused.
1194            The Projection class was extended to provide new methods and
1195            have a name.
1196    
1197            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
1198            general XML reading methods that were part of ProcessSession.
1199    
1200            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
1201            name.
1202            (ProjFile): New. Represents a file that contains projection
1203            information.
1204    
1205            * Thuban/Model/resource.py: New. Contains general utilities
1206            for read and writing projection files.
1207    
1208            * Thuban/Model/save.py (XMLSaver): New. Contains all the
1209            general XML writing methods that were part of SessionSaver.
1210            (SessionSaver): Renamed from Saver.
1211    
1212            * test/test_proj.py: New test cases for the projection
1213            file read and write functions.
1214    
1215    2003-04-16  Jonathan Coles   <[email protected]>
1216    
1217            * Thuban/Model/classification.py: Use repr() around values
1218            in the ClassGroup*.__repr__() methods so it is clearer when
1219            a value is a string and when it is a number.
1220    
1221            * test/test_load.py: Rework the classification test to test
1222            that we can load old files.
1223            (testLabels): Test a file where the groups have labels.
1224    
1225    2003-04-16  Bernhard Herzog  <[email protected]>
1226    
1227            Safer implementation of the performance enhancements of the
1228            low-level renderer:
1229            
1230            * extensions/thuban/wxproj.cpp (extract_projection)
1231            (extract_pointer): Rename extract_projection to extract_pointer
1232            and redefine its purpose to return the pointer stored in a CObject
1233            returned by the object's cobject method. Update all callers.
1234            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
1235            handling of these low-level parameters so that each s_draw_info
1236            instance is handled as a CObject at python level that also
1237            contains real references to the actual python objects which
1238            contain the values in the struct. Add free_draw_info as the
1239            destructor.
1240            (draw_polygon_shape): Add the py_draw_info parameter which must a
1241            cobject containing an s_draw_info pointer.
1242    
1243            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
1244            method to instantiat the low-level render parameter
1245            (MapRenderer.draw_shape_layer): Use the new method. Remove some
1246            commented out code.
1247            (MapRenderer.draw_polygon_shape): Make the first parameter not the
1248            layer but the low-level render parameter
1249            (ScreenRenderer.draw_shape_layer): Use the low-level render
1250            parameter.
1251    
1252    2003-04-15  Jonathan Coles   <[email protected]>
1253    
1254            * Thuban/Model/classification.py: Implemented __repr__ for
1255            the ClassGroup* classes to make debugging a bit easier.
1256            (ClassGroup.SetLabel): Check that the string is an instance
1257            of StringTypes not StringType. Accounts for Unicode strings.
1258    
1259            * Thuban/Model/color.py: Implemented __repr__ to make
1260            debugging a bit easier.
1261    
1262            * Thuban/Model/save.py (Saver.write_classification): Need to
1263            save the group label.
1264    
1265            * test/test_load.py (testClassification): New. Loads the
1266            iceland_sample_test.thuban file and checks if it was loaded
1267            correctly.
1268    
1269    2003-04-15  Jonathan Coles   <[email protected]>
1270    
1271            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
1272            to improve rendering performance by initializing the variables
1273            that are not change each time draw_polygon_shape() is called.
1274            The values are stored in a global struct draw_info.
1275            (draw_polygon_shape): Removed initialization code that is
1276            now in draw_polygon_init().
1277    
1278            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
1279            drawing initialization call to draw_polygon_init()
1280            (MapRenderer.draw_polygon_shape): Use new signature of
1281            draw_polygon_shape.
1282    
1283            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
1284            weirdness by setting the range to (1, maxint).
1285    
1286            * Thuban/Model/classification.py (ClassGroupProperties): Make
1287            instance variables private and optimize comparison operator
1288            by first checking if the color references are the same.
1289            (ClassGroupSingleton): Make instance variables private.
1290            (ClassGroupRange): Make instance variables private.
1291    
1292            * HOWTO-Release: Filled in missing steps for releasing packages.
1293    
1294    2003-04-15  Bernhard Herzog  <[email protected]>
1295    
1296            First stab at internationalized messages:
1297    
1298            * Thuban/__init__.py (_): Implement the translation function for
1299            real using the python gettext module.
1300    
1301            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
1302            translate empty strings.
1303    
1304            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
1305            Add a missing space to a warning message
1306    
1307            * po/README: New. Notes about the management of the translation
1308            files.
1309    
1310            * po/Makefile: New. Makefile to help manage the translation files.
1311    
1312            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
1313    
1314            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
1315            translations and support files in po/
1316    
1317            * setup.py (data_files): Add the *.mo files to the data_files too
1318    
1319            * README: Add note about the translations when building from CVS
1320    
1321    2003-04-14  Jonathan Coles   <[email protected]>
1322    
1323            * Thuban/UI/dock.py: Fixes some window resizing problems most
1324            noticable under windows. Always assume the button bitmaps will
1325            be there. Code clean up.
1326            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
1327            images for the dock/undock button to the same images.
1328            Work around for RTbug #1801.
1329    
1330            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
1331            be allowed to grow within the sizer. Fixes a bug under Windows
1332            where the toolbar wasn't being drawn.
1333    
1334    2003-04-14  Frank Koormann   <[email protected]>
1335    
1336            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
1337            Updated design to try to make the button functionality more
1338            transparent.
1339    
1340    2003-04-14  Jonathan Coles   <[email protected]>
1341    
1342            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
1343            finalize the intialization of the panel.
1344    
1345            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
1346            creation of the panel. Should be the last thing called in the
1347            initializer of a subclass.
1348    
1349            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
1350            set the current selections in the combo boxes. This is needed
1351            under Windows.
1352    
1353            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
1354            level panel to the dialog so that the background colors are
1355            consistent under Windows.
1356    
1357    2003-04-11  Jonathan Coles   <[email protected]>
1358    
1359            * Thuban/UI/classgen.py: Change color ramps to start at white
1360            not black.
1361    
1362            * Thuban/UI/legend.py: Enable/disable the legend buttons when
1363            the legend changes. Fixes RTbug #1793.
1364    
1365            * test/test_classification.py: Added test for copying of
1366            classifications.
1367    
1368    2003-04-11  Jonathan Coles   <[email protected]>
1369    
1370            * Thuban/UI/resource.py: New. Centralize the loading of resources
1371            such as bitmaps.
1372    
1373            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
1374            added images to the move buttons, added 'reverse' button.
1375            (CustomRampPanel.__init__): Added images to the move buttons.
1376            (GreyRamp): New. Generates a ramp from white to black.
1377            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
1378    
1379            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
1380            ID_PROPERTY_*.
1381            (Classifier.__init__): Minor changes to the layout.
1382            (Classifier._OnTitleChanged): Listen for when the user edits the
1383            title and update the dialog's title and the layer's title.
1384    
1385            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
1386    
1387            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
1388            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
1389            if the layer's title changes.
1390    
1391            * Thuban/UI/mainwindow.py: Added new menu item and associated code
1392            to open a dialog to rename the map.
1393            (MainWindow): Use new resource class to import bitmaps.
1394    
1395    2003-04-11  Jonathan Coles   <[email protected]>
1396    
1397            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
1398            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
1399            Resources/Bitmaps/group_use_none.xpm,
1400            Resources/Bitmaps/group_use_not.xpm,
1401            Resources/Bitmaps/hide_layer.xpm,
1402            Resources/Bitmaps/layer_properties.xpm,
1403            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
1404            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
1405            New.
1406    
1407    2003-04-10  Jonathan Coles   <[email protected]>
1408    
1409            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
1410            Should pass group to ClassGroup constructor.
1411    
1412    2003-04-10  Jonathan Coles   <[email protected]>
1413    
1414            * Thuban/Model/classification.py: (ClassGroup): Move all the common
1415            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
1416            here. Implement SetVisible(), IsVisible().
1417            (ClassGroup.__init__): Add group parameter which acts as a copy
1418            constructor.
1419    
1420            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
1421            "Visible" check boxes.
1422            (Classifier): Rename the buttons and refactor the code to match
1423            the new labels.
1424    
1425            * Thuban/UI/legend.py: Classify button is now called "Properties".
1426            Refactored the code to change variable names.
1427            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
1428    
1429            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
1430            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
1431            renamed to MainWindow.LayerEditProperties.
1432            (MainWindow.ToggleLegend): Don't include map name in legend title.
1433            (MainWindow.SetMap): Added the map name to the window title.
1434            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
1435            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
1436            Functionality is found in the layer properties dialog.
1437    
1438            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
1439            draw visible groups.
1440    
1441    2003-04-09  Jonathan Coles   <[email protected]>
1442    
1443            * Thuban/UI/classgen.py: Modifications to allow simple
1444            addition and selection of new color schemes.
1445            (MonochromaticRamp): New. Generates a ramp between two colors.
1446            (RedRamp): New. Generates a ramp of all red.
1447            (GreenRamp): New. Generates a ramp of all green.
1448            (BlueRamp): New. Generates a ramp of all blue.
1449    
1450    2003-04-09  Jonathan Coles   <[email protected]>
1451    
1452            * Thuban/Model/classification.py (Classification.__deepcopy__):
1453            Need to copy over field and fieldType attributes.
1454    
1455            * Thuban/Model/table.py (Table.field_range): New. Retrive the
1456            maximum and minimum values over the entire table for a given
1457            field.
1458            (Table.GetUniqueValues): New. Retrieve all the unique values
1459            in the table for a given field.
1460    
1461            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
1462            (GenUniquePanel): New. Controls to allow the user to select
1463            which unique field values they would like in the classification.
1464            (CustomRampPanel): Code that was in ClassGenDialog that allows
1465            the user to select the properties for a custom ramp.
1466            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
1467    
1468            * Thuban/UI/classifier.py: Removed a lot of debugging code.
1469            (Classifier._SetClassification): Callback method so that the
1470            class generator can set the classification in the grid.
1471            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
1472            editing of a group properties class into a wxWindows control.
1473    
1474            * Thuban/UI/dock.py: It was decided that if the user closes
1475            a dockable window the window should simply hide itself. That
1476            way if the user wants to show the dock again it appears in the
1477            same place as it was when it was closed.
1478            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
1479            (DockableWindow._OnButtonClose): Hide the window instead of
1480            destroying it.
1481            (DockableWindow._OnClose): Hide the window instead of
1482            destroying it.
1483    
1484            * Thuban/UI/legend.py (LegendTree): Use a private method to
1485            consistently set the font and style of the text. Fixes RTbug #1786.
1486    
1487            * Thuban/UI/mainwindow.py: Import just the Classifier class.
1488    
1489    2003-04-07  Bernhard Herzog  <[email protected]>
1490    
1491            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
1492            to the map module
1493    
1494    2003-04-07  Bernhard Herzog  <[email protected]>
1495    
1496            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
1497            favor of ToggleSessionTree
1498            (MainWindow.ToggleSessionTree): New method to toggle visibility of
1499            the session tree.
1500            (MainWindow.SessionTreeShown): New method to return whether the
1501            session tree is currently shown.
1502            (MainWindow.ToggleLegend): New method to toggle visibility of the
1503            legend
1504            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
1505            LegendShown
1506            (MainWindow.LegendShown): New method to return whether the legend
1507            is currently shown.
1508            (_method_command): Add checked parameter so we can define check
1509            menu items
1510            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
1511            mainwindow methods.
1512            (show_session_tree, show_legend commands): Removed.
1513            (toggle_session_tree, toggle_legend commands): New commands to
1514            toggle the visibility of the dialogs
1515    
1516    2003-04-07  Jonathan Coles   <[email protected]>
1517    
1518            * Thuban/UI/classgen.py: Fix Windows problem.
1519    
1520            * Thuban/UI/dock.py: Fix Windows problem.
1521    
1522            * Thuban/UI/mainwindow.py: Use False instead of false.
1523            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
1524    
1525    2003-04-07  Jonathan Coles   <[email protected]>
1526    
1527            Since we now say that the order of the groups in a classification
1528            matters, it makes sense to be able to manipulate that order. Most
1529            of the changes to Thuban/Model/classification.py are to that end.
1530    
1531            * Thuban/Model/classification.py (Classification.AppendGroup,
1532            Classification.InsertGroup, Classification.ReplaceGroup,
1533            Classification.RemoveGroup, Classification.GetGroup): Do as the
1534            names imply.
1535            (Classification.FindGroup): This was called GetGroup, but GetGroup
1536            takes an index, while FindGroup takes a value.
1537            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
1538            REFERENCE. Currently there is a cyclic reference between the layer
1539            and its classification. If the classification doesn't need to know
1540            its owning layer we can change this, since it may make sense to be
1541            able to use the same classification with different layers.
1542    
1543            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
1544    
1545            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
1546            not AddGroup()
1547    
1548            * Thuban/UI/classifier.py: Now that we can depend on the order in
1549            a Classification and have methods to manipulate that order we don't
1550            need to use our own data structures in the grid. We can simply make
1551            the grid/table access the information they need from a copy of
1552            the classification object.
1553            (Classifier._OnCloseBtn): Event handler for when the user clicks
1554            'Close'. This is needed so if the user applies changes and then
1555            continues to change the table the user has the option of discarding
1556            the most recent changes and keeping what they applied.
1557    
1558            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
1559            into the same group.
1560    
1561            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
1562            with a really old version of proj, PJ_VERSION won't even be defined.
1563            If it isn't defined then just compile so that the function always
1564            returns Py_False.
1565    
1566            * test/test_classification.py: Fix tests to use the renamed methods.
1567            Still need to write tests for the new methods.
1568    
1569    2003-04-04  Jonathan Coles   <[email protected]>
1570    
1571            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
1572            call to SetSelection out of the method and before the call
1573            to __SelectField in __init__. This prevents a recursion of events
1574            when _OnFieldSelect is triggered by the user.
1575    
1576    2003-04-04  Jonathan Coles   <[email protected]>
1577    
1578            * Thuban/Model/classification.py: Rename Color.None to
1579            Color.Transparent.
1580            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
1581            Don't bother copying the color, since Colors are immutable.
1582    
1583            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
1584            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
1585            Thuban/UI/renderer.py, Thuban/UI/view.py:
1586            Rename Color.None to Color.Transparent.
1587        
1588            * test/test_classification.py, test/test_load.py: Rename Color.None
1589            to Color.Transparent.
1590    
1591    2003-04-04  Jonathan Coles   <[email protected]>
1592    
1593            * Thuban/Model/classification.py: Fix assert calls.
1594            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
1595            Copy the color parameter rather than hold onto a reference.
1596    
1597            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
1598            the color object.
1599            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
1600            are sure there exists only one refernce to Color.None in the system.
1601            This allows us to use 'is' rather than the comparision functions.
1602            
1603            * Thuban/Model/save.py: Fix assert calls.
1604            
1605            * Thuban/UI/classifier.py: Fix assert calls.
1606            (ClassGrid._OnCellDClick): Call up to the classifier to open the
1607            dialog to edit the groups properties.
1608            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
1609            correctly if a cell is resized.
1610            (ClassTable.SetClassification): New. Changes the classification
1611            that is in the table.
1612            (ClassTable.__SetRow): Allow groups to be prepended.
1613            (Classifier): New code for opening the EditProperties and
1614            GenerateRanges dialogs.
1615            (SelectPropertiesDialog.__GetColor): Only set the color in the
1616            color dialog if the current color is not None.
1617            
1618            * Thuban/UI/dock.py: Fix assert calls.
1619            
1620            * Thuban/UI/legend.py: Fix assert calls.
1621            
1622            * Thuban/UI/renderer.py: Fix assert calls.
1623            
1624            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
1625            classifications.
1626            (GenRangePanel): Panel specific to range generation.
1627            (GenSingletonPanel): Panel specific to singleton generation.
1628            (ClassGenerator): Class responsible for actually generating
1629            the classification from the data gathered in the dialog box.
1630            (PropertyRamp): Generates properties whose values range from
1631            a starting property to an ending property.
1632    
1633    2003-04-03  Bernhard Herzog  <[email protected]>
1634    
1635            * test/support.py (print_garbage_information): New function that
1636            prints information about still connected messages and memory
1637            leaks.
1638            (run_suite): Removed.
1639            (run_tests): New function for use as a replacement of
1640            unittest.main in the test_* files. This one calls
1641            print_garbage_information at the end.
1642    
1643            * test/runtests.py (main): Use support.print_garbage_information
1644    
1645            * test/test_layer.py: Use support.run_tests instead of
1646            unittest.main so we get memory leak information
1647            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1648            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
1649            (TestLayerLegend.test_visibility): Call the layer's Destroy method
1650            to fix a memory leak.
1651    
1652            * test/test_classification.py: Use support.run_tests instead of
1653            unittest.main so we get memory leak information
1654            (TestClassification.test_classification): Call the layer's Destroy
1655            method to fix a memory leak.
1656    
1657    2003-04-02  Bernhard Herzog  <[email protected]>
1658    
1659            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
1660            Handle the reference counts of the return value and errors in
1661            PyArg_ParseTuple correctly.
1662    
1663            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
1664            sure the filename is absolute to avoid problems when saving the
1665            session again
1666    
1667            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
1668    
1669    2003-04-01  Jonathan Coles   <[email protected]>
1670    
1671            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
1672            that there actually are points in the returned list of points
1673            before trying to index into the list. The list may be empty if
1674            the shape is a Null Shape.
1675    
1676    2003-04-01  Bernhard Herzog  <[email protected]>
1677    
1678            * test/test_map.py: Don't use from <module> import *
1679    
1680    2003-04-01  Jonathan Coles   <[email protected]>
1681    
1682            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
1683            LAYER_LEGEND_CHANGED
1684    
1685            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
1686            self.Destroy() to close the window after yesterday's changes.
1687    
1688            * test/test_map.py, test/test_session.py: Fix messages that
1689            are sent from maps and layers.
1690    
1691    2003-03-31  Jonathan Coles   <[email protected]>
1692    
1693            * Thuban/UI/classifier.py: Commented out some debugging statements.
1694            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
1695            RTbug #1769.
1696    
1697            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
1698            position (although position doesn't work yet under GTK).
1699            (DockableWindow.Destroy): New. Called when the window must be
1700            closed. Namely needed when the DockFrame closes and must close
1701            its children.
1702            (DockFrame): Listen for EVT_CLOSE and destroy all children.
1703    
1704            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
1705            when then window is told to close.
1706            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
1707            comment in source for more info.
1708    
1709            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
1710    
1711            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
1712            symmetry with other such methods.
1713            (MainWindow.ShowLegend): Show the legend docked by default.
1714    
1715  2003-03-28  Jonathan Coles   <[email protected]>  2003-03-28  Jonathan Coles   <[email protected]>
1716    
1717          * Thuban/UI/classifier.py: Support for highlighting a specific          * Thuban/UI/classifier.py: Support for highlighting a specific

Legend:
Removed from v.569  
changed lines
  Added in v.952

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26