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

Legend:
Removed from v.575  
changed lines
  Added in v.975

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26