/[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 70 by bh, Thu Oct 18 14:52:30 2001 UTC revision 958 by bh, Wed May 21 17:12:30 2003 UTC
# Line 1  Line 1 
1    2003-05-21  Bernhard Herzog  <[email protected]>
2    
3            * test/test_load.py: Remove unused imports and restructure the
4            test code
5            (LoadSessionTest): Split into one class for each test and turn
6            LoadSessionTest itself into the base class for all such session
7            tests.
8            (ClassificationTest): New base class for load tests that test
9            classifications
10            (TestSingleLayer, TestLayerVisibility, TestClassification)
11            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
12            for the individual tests
13    
14            * test/support.py (FileLoadTestCase.filename): New base class for
15            file loading tests
16    
17    2003-05-21  Jan-Oliver Wagner <[email protected]>
18    
19            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
20            Mercator' to 'UTM Zone 32' as a more convenient example.
21            Added 'Gauss Krueger Zone 6'.
22    
23            * Data/iceland_sample_raster.thuban: political polygon now
24            filled transparent to have the raster image visible at once.
25    
26    2003-05-21  Frank Koormann  <[email protected]>
27    
28            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
29            OnClose() to keep in sync with extensions. Internally Thuban
30            still uses "underscored" names.
31    
32    2003-05-20  Jonathan Coles   <[email protected]>
33    
34            This puts back Raster layer support. These layers support projections
35            through the GDAL library. Currently, the CVS version is being used.
36            There are no Debian packages available although this may change soon.
37            A GDAL driver was extended to support writing to memory rather to
38            files.
39    
40            There is still some work that needs to be done, such as some error
41            handling when loading invalid images or when there is a problem
42            projecting the image. This putback simply checks in the majority
43            of the work.
44    
45            * setup.py: Add gdalwarp library extension.
46    
47            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
48            Defaults to False, but can be overridden by subclasses if they
49            support classification.
50            (RasterLayer): New. Defines a new layer that represents an
51            image.
52    
53            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
54            tag handler.
55            (SessionLoader.start_layer): Encode the filename.
56            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
57            New. Supports reading a rasterlayer tag.
58    
59            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
60    
61            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
62            get a string in Latin1. If we get such as string convert it to
63            unicode first, otherwise leave if alone before encoding.
64            (SessionSaver.write_layer): Add support for writing both Layers
65            and RasterLayers.
66    
67            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
68            The right argument may not be a string, it could also be a Column.
69    
70            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
71            Make initial window size 600x400. Fixes RTBug #1872.
72    
73            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
74            the dialog is constructed so that we can support layers that
75            do not have classifications.
76            (Classifier._OnTry): Only build a classification if the layer
77            supports one.
78    
79            * Thuban/UI/legend.py: Change all checks that a layer is an
80            instance of Layer into checks against BaseLayer.
81            (LegendTree.__FillTreeLayer): Only add children to a branch if
82            the layer supports classification.
83    
84            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
85            MainWindow.OpenSession): Don't proceed with an action if the
86            user chooses Cancel when they are asked to save changes.
87            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
88            user to select an image file. Create a new RasterLayer and add
89            it to the map.
90    
91            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
92            for rendering RasterLayer layers.
93            (MapRenderer.draw_raster_layer): Actually method that calls
94            the GDALWarp python wrapper and constructs an image from the
95            data returned.
96    
97            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
98            Choices symbols to match those used in the table query method.
99            Replace deprecated method calls on table with new method names.
100    
101            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
102            how small the scale can get. This still needs more testing.
103    
104            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
105            Provides a driver to output in .bmp format.
106    
107            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
108            New. Provides IO routines which write to memory, rather than a file.
109    
110            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
111            of the gdalwarp utility provided in GDAL. Added function calls
112            that can be accessed from python.
113    
114            * Data/iceland_sample_raster.thuban: New. Sample file that uses
115            a raster layer.
116    
117            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
118            layer image data.
119    
120            * Doc/thuban.dtd: Added rasterlayer attribute definition.
121    
122            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
123            tests associated with the raster layer code.
124    
125            * test/test_transientdb.py
126            (TestTransientTable.test_auto_transient_table_query): Added a test
127            for using a Column object as the "right" parameter to a query.
128    
129    2003-05-19  Frank Koormann  <[email protected]>
130    
131            * Thuban/version.py (get_changelog_date):
132            Catch exceptions if ChangeLog does not exist.
133    
134            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
135    
136    2003-05-19  Frank Koormann  <[email protected]>
137    
138            Extended version information for Thuban
139    
140            * Thuban/version.py: New, version information for Thuban: Last
141            modification date and last ChangeLog entry date.
142    
143            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
144            information: Display Thuban, wxPython and Python version.
145    
146    2003-05-16  Bernhard Herzog  <[email protected]>
147    
148            * Thuban/Model/save.py: Remove some unused imports including the
149            __future__ import for nested_scopes as Thuban relies on Python 2.2
150            now.
151            (XMLWriter.encode): Remove the special case for a None argument.
152            In the saver encode is always called with a string argument.
153    
154    2003-05-16  Bernhard Herzog  <[email protected]>
155    
156            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
157            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
158            of the bug was that e.g. float("1.2") would fail. Thuban now
159            requires 2.4.x.
160            
161    2003-05-16  Frank Koormann   <[email protected]>
162    
163            Printing enhancement and WMF export (under Win32)
164    
165            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
166            ScreenRenderer. Renders Map, Legend and Scalebar for export.
167            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
168            PrintRender.
169    
170            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
171            to fullfil information needed for PrinterRenderer.
172            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
173            (MapCanvas.Print): Adapted to new MapPrintout.
174            (OutputTransform): General calculations to transform from canvas
175            coordinates to export/printing devices.
176    
177            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
178            new method_command to call ExportMap, with platform dependency (only
179            __WXMSW__)
180      
181            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
182            of scalebar drawing area as new parameters.
183            
184            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
185    
186            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
187            Update to extended scalebar.DrawScalebar header.
188    
189            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
190    
191            * test/test_scalebar.py: Made test executable as standalone.
192    
193    2003-05-16  Bernhard Herzog  <[email protected]>
194    
195            * Thuban/Model/table.py (Table): Remove this compatibility alias
196            for DBFTable.
197    
198            * test/test_table.py: Import DBFTable as Table because that alias
199            doesn't exist anymore.
200    
201            * Thuban/UI/classgen.py: Remove some unused imports
202    
203    2003-05-14  Jonathan Coles   <[email protected]>
204    
205            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
206            Fix docstring.
207            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
208            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
209            values of the supplied range to determine the beginning and end
210            bounds of the generated classes.
211    
212            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
213            do not have a leading 0 (.5 is now accepted as well as 0.5).
214    
215            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
216            call to ClassGenerator.GenUniformDistribution.
217    
218            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
219            layout bug with the 'Projection' label.
220    
221            * test/support.py (FloatTestCase): New. Needed for the Range tests.
222    
223            * test/test_range.py: New. Imported from SciParam.
224    
225    2003-05-12  Jonathan Coles   <[email protected]>
226    
227            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
228            to table.UniqueValues() with calls that retrieve all the values
229            from the table. This will need to be replaced by a method on table
230            which can simply return the list (perhaps more efficiently).
231    
232    2003-05-12  Jonathan Coles   <[email protected]>
233    
234            The return value of ClassGenerator.CalculateQuantiles has changed.
235            Refer to the documentation for details.
236    
237            * test/test_classgen.py: Modified Quantile tests to use the
238            new return values.
239    
240            * Thuban/Model/classgen.py
241            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
242            use new return values from CalculateQuantiles to produce the correct
243            range bounds in the Classification.
244            (ClassGenerator.CalculateQuantiles): Add more comments describing
245            the return values and parameters. Make minor adjustments to improve
246            the legibility of the code. Fix problem with adjusted not being set
247            in most cases.
248    
249    2003-05-12  Frank Koormann <[email protected]>
250            
251            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
252            and latin1. Fixes #1851 finally.
253    
254    2003-05-09  Jonathan Coles   <[email protected]>
255    
256            * test/test_classgen.py: New. Tests the Quantile algorithm.
257    
258            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
259            Clean up debugging statement, add comments, fix a small bug in the
260            returned adjusted percentiles.
261            
262    2003-05-09  Jonathan Coles   <[email protected]>
263    
264            Introduces Range class from SciParam into the ClassGroupRange class,
265            and such ranges can now be saved and loaded from disk.
266    
267            Quantiles are now available in the Classification Generator.
268    
269            Initial support for building Queries on a table. Doesn't do anything
270            but run some tests.
271    
272            * Thuban/Model/classification.py: Explicit imports.
273            (ClassGroupRange): Use the Range class to store the underlying
274            range information. The interface remains the same, except for
275            GetRange(), and you can also supply a Range object as the min
276            parameter to SetRange or __init__.
277    
278            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
279            string appropriately for use in Thuban. Fixes RTbug #1851.
280            (SessionLoader.end_projection): Handle the context of the
281            projection tag a bit better by looking at what objects are not
282            None. There was an assumption that a projection tag for a map
283            could occur before any layers.
284            (SessionLoader.start_clrange): Provide backward compatibility for
285            reading min/max values as well as the new range parameter.
286    
287            * Thuban/Model/map.py: Explicit imports.
288    
289            * Thuban/Model/resource.py: Import _.
290            (ProjFileSaver.write): write header using projfile.dtd.
291    
292            * Thuban/Model/save.py: Explicit imports.
293            (XMLWriter.encode): New. Encode the given string from a format
294            used by Thuban into UTF-8. Fixes RTbug #1851.
295    
296            * Thuban/UI/classgen.py: Explicit imports.
297            (ClassGenDialog.__init__): Clean up the code and add support
298            for Quantiles.
299            (ClassGenDialog.OnOK): Add support for Quantiles.
300            (GenQuantilesPanel): New. Input panel for Quantiles.
301            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
302            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
303    
304            * Thuban/Model/classgen.py: New. Contains all the classes named above.
305    
306            * Thuban/UI/classifier.py: Explicit imports.
307            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
308            ClassTable.SetValueAsCustom): Reworked to use new Range class.
309    
310            * Thuban/UI/legend.py: Explicit imports.
311    
312            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
313            a Table menu and associated method calls.
314            (MainWindow.choose_color): Removed. No longer needed.
315    
316            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
317            should be disabled if no projection is selected in the available
318            list.
319    
320            * Thuban/UI/renderer.py: Explicit imports.
321    
322            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
323            with correctly selecting the rows and issuing the right events.
324            Be sure to call Skip() to allow the grid to do some of its own
325            handling which allows the rows to actually be selected.
326            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
327            selecting multiple shapes.
328            (LayerTableFrame): Support for building Queries.
329            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
330    
331            * Thuban/UI/tree.py: Explicit imports.
332    
333            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
334            table view can call it.
335    
336            * test/test_classification.py: Explicit imports.
337            (TestClassification.test_ClassGroupRange): Fix test for new
338            Range class.
339    
340            * Doc/thuban.dtd: Add range parameter for clrange.
341    
342            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
343            object in ClassGroupRange, and also uesd for inputting ranges in
344            the classifer table and elsewhere.
345    
346            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
347            yet.
348    
349    2003-05-09  Frank Koormann <[email protected]>
350    
351            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
352    
353    2003-05-08  Frank Koormann <[email protected]>
354    
355            Coding style updates
356    
357            * test/test_scalebar.py: Replaced tab indentation by spaces.
358    
359            * Thuban/UI/scalebar.py: Explicit imports.
360    
361    2003-05-08  Frank Koormann <[email protected]>
362    
363            * Thuban/UI/scalebar.py
364            (ScaleBar.DrawScalebar): Format string bug fixed.
365    
366    2003-05-08  Frank Koormann <[email protected]>
367    
368            Reorganization of scalebar component (no wx in Thuban/Model)
369    
370            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
371            (deriveInterval):
372            Calculate scalebar interval and unit which fits in width for scale.
373            (roundInterval): Round float.
374    
375            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
376    
377            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
378    
379            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
380    
381    2003-05-08  Frank Koormann <[email protected]>
382    
383            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
384            Initialize ScaleBar with canvas.map
385    
386            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
387            round intervals to display smarter lengths
388            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
389            layer. If the maps has no projection applied grey the scalebar.
390    
391    2003-05-07  Frank Koormann <[email protected]>
392            
393            Basic Scalebar features added.
394    
395            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
396    
397            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
398            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
399            and the renderer.
400    
401            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
402    
403            * Thuban/UI/messages.py: SCALE_CHANGED added.
404    
405    2003-05-07  Bernhard Herzog  <[email protected]>
406    
407            * Thuban/Model/session.py (Session.__init__): New instance
408            variable shapestores to hold a list of all open shapestore objects
409            (Session.ShapeStores): New. Accessor method for the shapestores
410            list.
411            (Session._add_shapestore, Session._clean_weak_store_refs): New.
412            Internal methods to maintain the shapestores list.
413            (Session.Tables): New. Return all tables open in the session.
414            (Session.OpenShapefile): Insert the new ShapeStore into the
415            shapestores list.
416    
417            * test/test_session.py (TestSessionSimple.test_initial_state): Add
418            tests for ShapeStores and Tables
419            (TestSessionWithContent.test_shape_stores)
420            (TestSessionWithContent.test_tables): New. Test cases for
421            ShapeStores and Tables
422    
423    2003-05-07  Bernhard Herzog  <[email protected]>
424    
425            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
426            Add comments about the optimizations used.
427            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
428            Implement the ReadValue table interface method.
429    
430            * test/test_transientdb.py
431            (TestTransientTable.run_iceland_political_tests)
432            (TestTransientTable.test_transient_joined_table): Add tests for
433            ReadValue
434    
435    2003-05-07  Frank Koormann <[email protected]>
436    
437            * Resources/Bitmaps/fulllayerextent.xpm,
438            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
439            new icons.
440    
441    2003-05-06  Bernhard Herzog  <[email protected]>
442    
443            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
444            New. Simply delegate to the transient table's version.
445    
446            * test/test_transientdb.py
447            (TestTransientTable.test_auto_transient_table_query): New. Test
448            case for AutoTransientTable's SimpleQuery
449    
450    2003-05-06  Bernhard Herzog  <[email protected]>
451    
452            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
453            Implement a simple query method for the query dialog
454            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
455            the row index or shapeid.
456            (TransientTable.create): Insert the right value of the row index
457            (TransientJoinedTable.create): Copy the row index of the left
458            table to the joined result table
459    
460            * test/test_transientdb.py
461            (TestTransientTable.test_transient_table_read_twice): Fix
462            doc-string
463            (TestTransientTable.test_transient_table_query): New. Test for the
464            SimpleQuery method
465    
466    2003-05-06  Bernhard Herzog  <[email protected]>
467    
468            Convert all table users to use the new table interface. This only
469            covers Thuban itself, not GREAT-ER or other applications built on
470            Thuban yet, so the compatibility interface stays in place for the
471            time being but it now issues DeprecationWarnings.
472    
473            Finally, the new Table interface has a new method, HasColumn.
474    
475            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
476            issue deprecation warnings when they're. The warnings refer to the
477            caller of the method.
478            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
479            for the deprecation warnings
480    
481            * test/test_table.py: Ignore the deprecation warnings for the old
482            table in the tests in this module. The purpose of the tests is to
483            test the old interface, after all.
484    
485            * test/test_transientdb.py
486            (TestTransientTable.run_iceland_political_tests): Use the
487            constants for the types. Add a test for HasColumn
488            (TestTransientTable.test_transient_joined_table): Adapt to new
489            table interface. Add a test for HasColumn
490            (TestTransientTable.test_transient_table_read_twice): Adapt to new
491            table interface
492    
493            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
494            Adapt to new table interface
495    
496            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
497            new table interface
498    
499            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
500            (RecordTable.SetTable): Adapt to new table interface
501    
502            * Thuban/UI/classifier.py (Classifier.__init__)
503            (Classifier.__init__): Adapt to new table interface
504    
505            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
506            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
507            to new table interface
508    
509            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
510            (AutoTransientTable.HasColumn): Implement the new table interface
511            method
512            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
513            (AutoTransientTable.UniqueValues): Adapt to new table interface
514    
515            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
516            Adapt to new table interface
517    
518            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
519            simplify opening shapefiles a bit easier.
520            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
521            (TestLayer.test_point_layer): Use the new helper method
522            (TestLayer.test_get_field_type): New. Test for the GetFieldType
523            method
524    
525            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
526            the new table method
527    
528            * test/test_memory_table.py (TestMemoryTable.test_has_column):
529            Test for the new table method HasColumn
530    
531    2003-05-06  Jonathan Coles   <[email protected]>
532    
533            Addresses the "Selection Extent" wish of RTbug #1787.
534    
535            * Resources/Bitmaps/fulllayerextent.xpm,
536            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
537            extent. These are just place holders for the real bitmaps.
538    
539            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
540            calculate the bounding box once (the first time compute_bbox() is
541            called).
542            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
543            the bounding box for the shapes in lat/long coordinates.
544    
545            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
546            option.
547            (MainWindow.has_selected_shapes): New. Returns true if there are
548            any selected shapes.
549            (MainWindow.FullSelectionExtent): New. Calls
550            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
551            (_has_selected_shapes): New. Returns true if there are any
552            selected shapes.
553    
554            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
555            true if there are any selected shapes.
556    
557            * Thuban/UI/view.py (MapCanvas): Added delegated method
558            HasSelectedShapes.
559            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
560            shapes on the canvas using the map projection (if any).
561    
562            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
563            for Layer.ShapesBoundingBox().
564    
565    2003-05-06  Bernhard Herzog  <[email protected]>
566    
567            * Resources/Projections/defaults.proj: Fix spelling of Mercator
568    
569    2003-05-05  Jonathan Coles   <[email protected]>
570    
571            Addresses the "Full Layer Extent" wish of RTbug #1787.
572    
573            * Resources/Projections/defaults.proj: Added UK National Grid.
574    
575            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
576            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
577            when the user selects the menu option.
578    
579            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
580            scales the given layer on the canvas using the map projection.
581    
582    2003-05-05  Bernhard Herzog  <[email protected]>
583    
584            Convert the table implementations to a new table interface. All
585            tables use a common mixin class to provide backwards compatibility
586            until all table users have been updated.
587    
588            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
589            provide backwards compatibility for table classes implementing the
590            new interface
591            (DBFTable, MemoryTable): Implement the new table interface. Use
592            OldTableInterfaceMixin as base for compatibility
593            (DBFColumn, MemoryColumn): New. Column description for DBFTable
594            and MemoryTable resp.
595    
596            * test/test_dbf_table.py: New. Test cases for the DBFTable with
597            the new table interface.
598    
599            * test/test_memory_table.py: New. Test cases for the MemoryTable
600            with the new table interface.
601    
602            * test/test_table.py: Document the all tests in this file as only
603            for backwards compatibility. The equivalent tests for the new
604            interface are in test_memory_table.py and test_dbf_table.py
605            (MemoryTableTest.test_read): field_info should be returning tuples
606            with four items
607            (MemoryTableTest.test_write): Make doc-string a more precise.
608    
609            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
610            table interface. Derive from from OldTableInterfaceMixin for
611            compatibility.
612            (TransientTableBase.create): New intance variable column_map to
613            map from names and indices to column objects
614            (TransientTable.create): Use the new table interface of the input
615            table
616            (AutoTransientTable): Convert to new table interface. Derive from
617            from OldTableInterfaceMixin for compatibility.
618            (AutoTransientTable.write_record): Removed. It's not implemented
619            yet and we still have to decide how to handle writing with the new
620            table and data framework.
621    
622            * test/test_transientdb.py
623            (TestTransientTable.run_iceland_political_tests)
624            (TestTransientTable.test_transient_joined_table): Use the new
625            table interface
626    
627    2003-05-05  Jonathan Coles   <[email protected]>
628    
629            This is namely a collection of UI updates to improve user interactivity.
630            Tabbing between controls now exists and you can use ESC to close dialog
631            boxes; ENTER will active the default button.
632    
633            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
634            order that the controls are created so that tabbing works correctly.
635            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
636            wxDialog can handle the default button correctly.
637            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
638            same reasons as for OnOK.
639            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
640            when we ask the table for the maximum/minimum values of a field
641            which could take a very long time.
642    
643            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
644            order that the controls are created so that tabbing works correctly.
645            (SelectPropertiesDialog.__init__): Rearrange the order that the
646            controls are created so that tabbing works correctly.
647    
648            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
649            to derive from a wxDialog but behave like the original implementation
650            which was derived from a wxFrame. wxDialog provides useful key
651            handling functionality like ESC calling OnCancel and ENTER calling
652            OnOK which is lost with wxFrame.
653    
654            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
655            new dialogs.
656    
657            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
658            order that the controls are created so that tabbing works correctly.
659            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
660            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
661            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
662            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
663            can provide the "UK National Grid" as a default projection.
664            (UTMPanel.__init__): Rearrange the order that the controls are
665            created so that tabbing works correctly.
666    
667    2003-05-05  Bernhard Herzog  <[email protected]>
668    
669            * extensions/thuban/wxproj.cpp: Fix some of the comments.
670            (project_point): If a map projection but no layer projection is
671            given, convert degrees to radians before applying the map
672            projection.
673    
674            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
675            (TableGrid.allow_messages): New methods to make it possible to
676            inhibit message sending.
677            (TableGrid.issue): Only send the message if not inhibited.
678            (LayerTableGrid.select_shape): Use the new methods to make sure
679            that no ROW_SELECTED message is sent while we're updating the
680            selected rows to match the selected shapes.
681    
682    2003-05-02  Jan-Oliver Wagner <[email protected]>
683    
684            Implementation of MemoryTable.
685    
686            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
687            implementation that operates on a list of tuples. All of the data
688            are kept in the memory.
689    
690            * test/test_table.py (MemoryTableTest): New.
691    
692            * test/test_transientdb.py (SimpleTable): Removed.
693            (TestTransientTable.test_transient_joined_table,
694            (TestTransientTable.test_transient_table_read_twice): Replaced
695            SimpleTable by MemoryTable.
696    
697    2003-04-30  Jonathan Coles   <[email protected]>
698    
699            * Data/iceland_sample.thuban: Now contains correct projections
700            for each of the layers.
701    
702            * Resources/Projections/defaults.proj: Geographic projection
703            contains unit conversion parameter.
704    
705    2003-04-30  Jonathan Coles   <[email protected]>
706    
707            The most important part of this putback is the projection changes.
708            It should now be possible to specify the projection that a layer
709            is in and then specify a different projection for the map. The
710            projection dialog has an extra parameter for a geographic projection
711            which lets the user select if the input is in degrees or radians.
712    
713            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
714            to say that the parameter is a tuple of unprojected
715            points (which is what the callers to this method were assuming).
716            Also, since the points are unprojected we need to projected them.
717    
718            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
719            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
720            groups are selected, move the layer up/down. Fixes RTbug #1833.
721    
722            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
723    
724            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
725            parameter in call to SetClientData.
726            (GeoPanel): Add support for selecting the units that the
727            source data is in (Radians or Degrees).
728    
729            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
730            the rendering loop by reducing the number of if's, removing the
731            unnecessary try/except block, and checking if the old group
732            is the same as the new one (which happens a lot if there is
733            no classification, or lots of shapes are in the same group).
734    
735            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
736            around the redraw routine to try to catch problems that the user
737            may create by selecting invalid projections for the data set and
738            map. Clears the display if there are any problems and prints the
739            error.
740            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
741            rectangle.
742    
743            * extensions/thuban/wxproj.cpp (project_point): First invert the
744            supplied point (which should be in projected coordinates) using
745            the layer's projection and then project the point using the
746            map's projection.
747            (project_points): Use project_point() to project each point.
748    
749    2003-04-30  Jan-Oliver Wagner <[email protected]>
750    
751            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
752            don't set the Classification to None if the classfication field
753            is None (ie only a DEFAULT).
754    
755    2003-04-30  Bernhard Herzog  <[email protected]>
756    
757            * Thuban/UI/view.py: Fix some typos.
758    
759            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
760            not pop up the dialog if the selection becomes empty (this could
761            happen if e.g. a new selection is opened while the identify tool
762            is active and dialog had been closed)
763    
764    2003-04-30  Bernhard Herzog  <[email protected]>
765    
766            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
767            instance variable read_record_last_result
768            (TransientTableBase.read_record): Make sure reading the same
769            record twice works. The implementation uses the new instance
770            variable read_record_last_result
771    
772            * test/test_transientdb.py
773            (TestTransientTable.test_transient_table_read_twice): New test
774            case for the above bug-fix.
775    
776    2003-04-29  Jonathan Coles   <[email protected]>
777    
778            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
779    
780            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
781    
782            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
783            (ClassTable.SetValueAsCustom): Rename keyword argument in
784            ClassGroup* constructors to match argument name.
785    
786    2003-04-29  Bernhard Herzog  <[email protected]>
787    
788            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
789            transient DB if it exists to make sure it doesn't leave a journal
790            file in the temp directory.
791    
792            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
793            self.conn to None after closing the connection to make sure it's
794            not closed twice
795    
796    2003-04-29  Jonathan Coles   <[email protected]>
797    
798            Add a visible parameter in the layer XML tag. The default value is
799            "true". If anything other than "false" is specified we also assume
800            "true". Addresses RTbug #1025.
801    
802            * Doc/thuban.dtd: Add visible parameter to a layer.
803    
804            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
805            of visible from 1 to True.
806            (Layer.__init__): Change default value of visible from 1 to True.
807    
808            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
809            parameter.
810    
811            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
812            parameter.
813    
814            * test/test_load.py: Add new test data contents_test_visible.
815            (LoadSessionTest.setUp): save test data.
816            (LoadSessionTest.testLayerVisibility): Test if the visible flag
817            is loaded correctly.
818    
819            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
820            for saving an invisible layer.
821    
822    2003-04-29  Jonathan Coles   <[email protected]>
823    
824            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
825            legend dialog box and tell it to change its map to the one
826            supplied to SetMap(). Fixes RTbug #1770.
827    
828    2003-04-29  Bernhard Herzog  <[email protected]>
829    
830            Next step of table implementation. Introduce a transient database
831            using SQLite that some of the data is copied to on demand. This
832            allows us to do joins and other operations that require an index
833            for good performance with reasonable efficiency. Thuban now needs
834            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
835            haven't tested that.
836            
837            * Thuban/Model/transientdb.py: New. Transient database
838            implementation.
839    
840            * test/test_transientdb.py: New. Tests for the transient DB
841            classes.
842    
843            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
844            classes to help automatically remove temporary files and
845            directories.
846            (Session.__init__): New instance variables temp_dir for the
847            temporary directory and transient_db for the SQLite database
848            (Session.temp_directory): New. Create a temporary directory if not
849            yet done and return its name. Use AutoRemoveDir to have it
850            automatically deleted
851            (Session.TransientDB): Instantiate the transient database if not
852            done yet and return it.
853    
854            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
855            AutoTransientTable so that data is copied to the transient DB on
856            demand.
857            (SimpleStore): New class that simply combines a table and a
858            shapefile
859    
860            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
861            DBFTable and update its doc-string to reflect the fact that this
862            is only the table interface to a DBF file. Table is now an alias
863            for DBFTable for temporary backwards compatibility.
864    
865            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
866            the last reference to the session goes away so that the temporary
867            files are removed properly.
868    
869            * test/test_load.py (LoadSessionTest.tearDown): Remove the
870            reference to the session to make sure the temporary files are
871            removed.
872    
873    2003-04-29  Bernhard Herzog  <[email protected]>
874    
875            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
876            the __parser instance variable into a normal local variable in
877            read. It's only used there and read will never be called more than
878            once. Plus it introduces a reference cycle that keeps can keep the
879            session object alive for a long time.
880    
881    2003-04-29  Jonathan Coles   <[email protected]>
882    
883            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
884            Projection an immutable item. Fixes RTbug #1825.
885            (Projection.__init__): Initialize instance variables here.
886            (ProjFile.Replace): New. Replace the given projection object with
887            the new projection object. This solves the problem of needing the
888            mutator Projection.SetProjection() in the ProjFrame class and
889            allows a projection to change parameters without changing its
890            location in the file.
891    
892            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
893            be of type wxSAVE and should verify overwriting a file.
894    
895            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
896            ProjFile.Replace() method instead of the mutator
897            Projection.SetProjection(). Also requires that we reassign the
898            client data to the new projection.
899    
900            * test/test_proj.py (TestProjection.test): Test GetName() and
901            GetAllParameters()
902            (TestProjFile.test): Remove tests for Set*() methods. Add tests
903            for Replace().
904    
905    2003-04-25  Jonathan Coles   <[email protected]>
906    
907            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
908            to save the name of the projection.
909    
910            * test/test_save.py (SaveSessionTest.testLayerProjection): New
911            test to verify layer projections are saved correctly.
912    
913    2003-04-25  Jonathan Coles   <[email protected]>
914    
915            * Thuban/Model/proj.py (Projection.SetName): Set the name
916            to "Unknown" if name is None.
917            (Projection.SetAllParameters): New. Set the projection's
918            parameter list to the one supplied.
919            (Projection.SetProjection): New. Set the projection's
920            properties to those of the supplied Projection.
921    
922            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
923            the dialog title to include the map's title.
924            (MainWindow.LayerProjection): Set the dialog title to include
925            the layer's title.
926    
927            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
928            error dialogs into a single method call.
929            (ProjFrame.__VerifyButtons): Add more states to check.
930            (ProjFrame.__GetProjection): Return the current state of an
931            edited projection or None.
932            (ProjFrame.__FillAvailList): Remove checks for states that
933            shouldn't exist.
934            (ProjFrame._OnNew): Clear all selected items and supply
935            a projection panel if necessary.
936    
937            * test/test_proj.py (TestProjFile.test): Add tests for
938            ProjFile.SetAllParameters, ProjFile.SetProjection,
939            ProjFile.SetName.
940    
941    2003-04-25  Jonathan Coles   <[email protected]>
942    
943            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
944            takes an optional argument to select the current projection.
945            This does not guarantee that the item is visible due to
946            limited wxWindows functionality. Fixes RTBug #1821.
947    
948    2003-04-25  Jonathan Coles   <[email protected]>
949    
950            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
951            the projection name and use it when constructing the Projection
952            object.
953    
954            * Thuban/Model/proj.py (Projection.__init__): Change the default
955            value for 'name' to None and then test if name is equal to None
956            in the body of the constructor. This way the caller doesn't have to
957            know what the default value should be. Namely, useful in load.py
958            where we have to pick a default value if the 'name' parameter
959            doesn't exist in the XML file.
960    
961            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
962            Tests a file where a layer has a projection.
963    
964    2003-04-25  Jonathan Coles   <[email protected]>
965    
966            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
967            tree for projection information.
968    
969            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
970            XMLReader.GetFileName.
971            (SessionLoader): Added support for loading projection tags that
972            appear inside a layer.
973    
974            * Thuban/Model/proj.py (ProjFile): Document the class. Move
975            back to using a list because the order of the projections in
976            the file is important to maintain. Fixes RTbug #1817.
977    
978            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
979            to ProjFile.GetFilename.
980    
981            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
982            information.
983    
984            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
985            ProjFrame._OnSaveAs. Removed old dead code from previous
986            implementation.
987            (ProjFrame._OnExport): Add support for exporting more than one
988            projection to a single file.
989            (ProjFrame.__FillAvailList): use string formatting (% operator)
990            to build strings that are (partly) translated. Fixes RTbug #1818.
991    
992            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
993            class.
994    
995    2003-04-24  Bernhard Herzog  <[email protected]>
996    
997            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
998    
999            * po/fr.po: New. French translation by Daniel Calvelo Aros
1000    
1001            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
1002            empty strings.
1003    
1004    2003-04-24  Jonathan Coles   <[email protected]>
1005    
1006            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
1007            implement the interface that the ProjFrame dialog expects.
1008    
1009            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
1010            name of the projection to be changed.
1011            (ProjFile): Use a dictionary instead of a list so that removing
1012            projections is easier and we are sure about uniqueness.
1013            (ProjFile.Remove): Remove the given projection object.
1014    
1015            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
1016            Return a list with only one projection file instead of searching for
1017            any projection file. This simplifies many things if the user can
1018            only have one system file and one user file.
1019    
1020            * Thuban/UI/classgen.py: Change all references to
1021            genCombo to genChoice.
1022    
1023            * Thuban/UI/mainwindow.py: Add a Projection option under the
1024            layer menu.
1025            (MainWindow.LayerProjection): New. Open up a projection window
1026            for a layer.
1027    
1028            * Thuban/UI/projdialog.py: Large changes to how the dialog is
1029            laid out. Use three panels instead of one. One for the list of
1030            projections, one for the edit controls, and one for the buttons.
1031            Fixed resizing problems so that the dialog resizes correctly
1032            when the projection panel changes. Added import/export, save, and
1033            new buttons/functionality.
1034    
1035    2003-04-24  Bernhard Herzog  <[email protected]>
1036    
1037            First step towards table management. Introduce a simple data
1038            abstraction so that we replace the data a layer uses more easily
1039            in the next step.
1040    
1041            * Thuban/Model/data.py: New file with a simple data abstraction
1042            that bundles shapefile and dbffile into one object.
1043    
1044            * Thuban/Model/session.py (Session.OpenShapefile): New method to
1045            open shapefiles and return a shape store object
1046    
1047            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
1048            object instead of a shapefile filename. This introduces a new
1049            instance variable store holding the datastore. For intermediate
1050            backwards compatibility keep the old instance variables.
1051            (open_shapefile): Removed. No longer needed with the shape store.
1052            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
1053            get the shape store used by a layer.
1054            (Layer.Destroy): No need to explicitly destroy the shapefile or
1055            table anymore.
1056    
1057            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
1058            (MainWindow.AddLayer): Use the session's OpenShapefile method to
1059            open shapefiles
1060    
1061            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
1062            session's OpenShapefile method to open shapefiles
1063    
1064            * test/test_classification.py
1065            (TestClassification.test_classification): Use the session's
1066            OpenShapefile method to open shapefiles and build the filename in
1067            a more platform independed way
1068    
1069            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
1070            Implement to have a session to use in the tests
1071            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1072            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
1073            session's OpenShapefile method to open shapefiles
1074            (TestLayerLegend.setUp): Instantiate a session so that we can use
1075            it to open shapefiles.
1076            (TestLayerLegend.tearDown): Make sure that all references to
1077            layers and session are removed otherwise we may get a resource
1078            leak
1079    
1080            * test/test_map.py (TestMapAddLayer.test_add_layer)
1081            (TestMapWithContents.setUp): Instantiate a session so that we can
1082            use it to open shapefiles.
1083            (TestMapWithContents.tearDown): Make sure that all references to
1084            layers, maps and sessions are removed otherwise we may get a
1085            resource leak
1086            ("__main__"): use support.run_tests() so that more info about
1087            uncollected garbage is printed
1088    
1089            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
1090            session's OpenShapefile method to open shapefiles
1091            ("__main__"): use support.run_tests() so that more info about
1092            uncollected garbage is printed
1093    
1094            * test/test_selection.py (TestSelection.tearDown): Make sure that
1095            all references to the session and the selection are removed
1096            otherwise we may get a resource leak
1097            (TestSelection.get_layer): Instantiate a session so that we can
1098            use it to open shapefiles.
1099            ("__main__"): use support.run_tests() so that more info about
1100            uncollected garbage is printed
1101    
1102            * test/test_session.py (TestSessionBase.tearDown)
1103            (TestSessionWithContent.tearDown): Make sure that all references
1104            to the session and layers are removed otherwise we may get a
1105            resource leak
1106            (TestSessionWithContent.setUp): Use the session's OpenShapefile
1107            method to open shapefiles
1108    
1109    2003-04-24  Jonathan Coles   <[email protected]>
1110    
1111            * Thuban/Model/load.py (XMLReader.read): Should have been checking
1112            if the file_or_filename object had the 'read' attribute.
1113    
1114    2003-04-23  Jonathan Coles   <[email protected]>
1115    
1116            * Thuban/Model/resource.py: Fixes RTbug #1813.
1117            (ReadProjFile): Add documentation about which exceptions are raised.
1118            Always pass the exceptions up to the caller.
1119            (GetProjFiles): If the directory can't be read return an empty list.
1120            If any of the proj files can't be read skip that file and go
1121            on to the next one.
1122    
1123            * test/test_proj.py: Added test cases to handle nonexistent files,
1124            unreadable files, and files that don't parse correctly.
1125    
1126    2003-04-23  Jonathan Coles   <[email protected]>
1127    
1128            Projection dialog. Allows the user to select from a list
1129            of projection templates and optionally edit them and save new ones.
1130    
1131            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
1132            (ProjPanel): Base class for projection specific panels.
1133            (TMPanel): Projection panel for Transverse Mercartor.
1134            (UTMPanel): Projection panel for Universal Transverse Mercartor.
1135            (LCCPanel): Projection panel for Lambert Conic Conformal.
1136            (GeoPanel): Projetion panel for Geographic Projection.
1137    
1138    2003-04-23  Jonathan Coles   <[email protected]>
1139    
1140            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
1141            promote symmetry. There now exists XMLReader and XMLWriter.
1142            (XMLReader.read): New. Call to read the given file descriptor or
1143            filename.
1144            (XMLReader.close): New. Make sure the file is closed.
1145            (XMLReader.GetFileName): New. Return just the file name that is being
1146            read from.
1147            (XMLReader.GetDirectory): New. Return just the directory of the file
1148            that is being read.
1149            (XMLReader.AddDispatchers): New. Take a dictionary which contains
1150            the names of functions to call as the XML tree is parsed.
1151            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
1152            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
1153            (SessionLoader): Removed class variables start_dispatcher and
1154            end_dispatcher since this functionality is now part of a class
1155            instance. Fixes RTbug #1808.
1156            (SessionLoader.__init__): Add dispatcher functions.
1157            (load_xmlfile): Code was moved into the XMLReader.read().
1158            (load_session): Use modified SessionLoader.
1159    
1160            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
1161            map's projection.
1162    
1163            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
1164            GetAllParameters.
1165            (Projection.GetParameter): Returns the value for the given parameter.
1166    
1167            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
1168            (GetProjFiles): Renamed from GetProjections. Now returns a list
1169            of ProjFile objects.
1170            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
1171            a list of ProjFile objects whose files are not user defined.
1172            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
1173            list of ProjFile objects whose files are user defined.
1174            (ProjFileReader): Extend new XMLReader.
1175    
1176            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
1177            promote symmetry.
1178    
1179            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
1180            control instead of a wxComboBox. wxChoice controls do not generate
1181            events as the uses highlights possible choices which fixes problems
1182            with resizing the dialog when the use selects an option.
1183    
1184            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
1185            control instead of a wxComboBox.
1186    
1187            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
1188            dialog.
1189    
1190            * test/test_proj.py (TestProjection.test): New tests for GetParameter
1191            method.
1192    
1193    2003-04-22  Bernhard Herzog  <[email protected]>
1194    
1195            * Thuban/UI/mainwindow.py: Remove some unused imports and global
1196            constants
1197    
1198            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
1199            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
1200    
1201    2003-04-17  Bernhard Herzog  <[email protected]>
1202    
1203            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
1204            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
1205            anymore.
1206            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
1207            (Layer.ShapeType, Layer.Shape): No need to call
1208            self.open_shapefile since it's always called in __init__
1209    
1210            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
1211            In wxPython 2.4 there's no need to extend MainLoop anymore since
1212            wxPython itself makes sure OnExit is called.
1213    
1214    2003-04-16  Jonathan Coles   <[email protected]>
1215    
1216            Initial putback of projection management code. Includes new
1217            classes to read and write projection files. The current load
1218            and save classes were abstracted a bit so they could be reused.
1219            The Projection class was extended to provide new methods and
1220            have a name.
1221    
1222            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
1223            general XML reading methods that were part of ProcessSession.
1224    
1225            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
1226            name.
1227            (ProjFile): New. Represents a file that contains projection
1228            information.
1229    
1230            * Thuban/Model/resource.py: New. Contains general utilities
1231            for read and writing projection files.
1232    
1233            * Thuban/Model/save.py (XMLSaver): New. Contains all the
1234            general XML writing methods that were part of SessionSaver.
1235            (SessionSaver): Renamed from Saver.
1236    
1237            * test/test_proj.py: New test cases for the projection
1238            file read and write functions.
1239    
1240    2003-04-16  Jonathan Coles   <[email protected]>
1241    
1242            * Thuban/Model/classification.py: Use repr() around values
1243            in the ClassGroup*.__repr__() methods so it is clearer when
1244            a value is a string and when it is a number.
1245    
1246            * test/test_load.py: Rework the classification test to test
1247            that we can load old files.
1248            (testLabels): Test a file where the groups have labels.
1249    
1250    2003-04-16  Bernhard Herzog  <[email protected]>
1251    
1252            Safer implementation of the performance enhancements of the
1253            low-level renderer:
1254            
1255            * extensions/thuban/wxproj.cpp (extract_projection)
1256            (extract_pointer): Rename extract_projection to extract_pointer
1257            and redefine its purpose to return the pointer stored in a CObject
1258            returned by the object's cobject method. Update all callers.
1259            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
1260            handling of these low-level parameters so that each s_draw_info
1261            instance is handled as a CObject at python level that also
1262            contains real references to the actual python objects which
1263            contain the values in the struct. Add free_draw_info as the
1264            destructor.
1265            (draw_polygon_shape): Add the py_draw_info parameter which must a
1266            cobject containing an s_draw_info pointer.
1267    
1268            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
1269            method to instantiat the low-level render parameter
1270            (MapRenderer.draw_shape_layer): Use the new method. Remove some
1271            commented out code.
1272            (MapRenderer.draw_polygon_shape): Make the first parameter not the
1273            layer but the low-level render parameter
1274            (ScreenRenderer.draw_shape_layer): Use the low-level render
1275            parameter.
1276    
1277    2003-04-15  Jonathan Coles   <[email protected]>
1278    
1279            * Thuban/Model/classification.py: Implemented __repr__ for
1280            the ClassGroup* classes to make debugging a bit easier.
1281            (ClassGroup.SetLabel): Check that the string is an instance
1282            of StringTypes not StringType. Accounts for Unicode strings.
1283    
1284            * Thuban/Model/color.py: Implemented __repr__ to make
1285            debugging a bit easier.
1286    
1287            * Thuban/Model/save.py (Saver.write_classification): Need to
1288            save the group label.
1289    
1290            * test/test_load.py (testClassification): New. Loads the
1291            iceland_sample_test.thuban file and checks if it was loaded
1292            correctly.
1293    
1294    2003-04-15  Jonathan Coles   <[email protected]>
1295    
1296            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
1297            to improve rendering performance by initializing the variables
1298            that are not change each time draw_polygon_shape() is called.
1299            The values are stored in a global struct draw_info.
1300            (draw_polygon_shape): Removed initialization code that is
1301            now in draw_polygon_init().
1302    
1303            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
1304            drawing initialization call to draw_polygon_init()
1305            (MapRenderer.draw_polygon_shape): Use new signature of
1306            draw_polygon_shape.
1307    
1308            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
1309            weirdness by setting the range to (1, maxint).
1310    
1311            * Thuban/Model/classification.py (ClassGroupProperties): Make
1312            instance variables private and optimize comparison operator
1313            by first checking if the color references are the same.
1314            (ClassGroupSingleton): Make instance variables private.
1315            (ClassGroupRange): Make instance variables private.
1316    
1317            * HOWTO-Release: Filled in missing steps for releasing packages.
1318    
1319    2003-04-15  Bernhard Herzog  <[email protected]>
1320    
1321            First stab at internationalized messages:
1322    
1323            * Thuban/__init__.py (_): Implement the translation function for
1324            real using the python gettext module.
1325    
1326            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
1327            translate empty strings.
1328    
1329            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
1330            Add a missing space to a warning message
1331    
1332            * po/README: New. Notes about the management of the translation
1333            files.
1334    
1335            * po/Makefile: New. Makefile to help manage the translation files.
1336    
1337            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
1338    
1339            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
1340            translations and support files in po/
1341    
1342            * setup.py (data_files): Add the *.mo files to the data_files too
1343    
1344            * README: Add note about the translations when building from CVS
1345    
1346    2003-04-14  Jonathan Coles   <[email protected]>
1347    
1348            * Thuban/UI/dock.py: Fixes some window resizing problems most
1349            noticable under windows. Always assume the button bitmaps will
1350            be there. Code clean up.
1351            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
1352            images for the dock/undock button to the same images.
1353            Work around for RTbug #1801.
1354    
1355            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
1356            be allowed to grow within the sizer. Fixes a bug under Windows
1357            where the toolbar wasn't being drawn.
1358    
1359    2003-04-14  Frank Koormann   <[email protected]>
1360    
1361            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
1362            Updated design to try to make the button functionality more
1363            transparent.
1364    
1365    2003-04-14  Jonathan Coles   <[email protected]>
1366    
1367            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
1368            finalize the intialization of the panel.
1369    
1370            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
1371            creation of the panel. Should be the last thing called in the
1372            initializer of a subclass.
1373    
1374            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
1375            set the current selections in the combo boxes. This is needed
1376            under Windows.
1377    
1378            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
1379            level panel to the dialog so that the background colors are
1380            consistent under Windows.
1381    
1382    2003-04-11  Jonathan Coles   <[email protected]>
1383    
1384            * Thuban/UI/classgen.py: Change color ramps to start at white
1385            not black.
1386    
1387            * Thuban/UI/legend.py: Enable/disable the legend buttons when
1388            the legend changes. Fixes RTbug #1793.
1389    
1390            * test/test_classification.py: Added test for copying of
1391            classifications.
1392    
1393    2003-04-11  Jonathan Coles   <[email protected]>
1394    
1395            * Thuban/UI/resource.py: New. Centralize the loading of resources
1396            such as bitmaps.
1397    
1398            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
1399            added images to the move buttons, added 'reverse' button.
1400            (CustomRampPanel.__init__): Added images to the move buttons.
1401            (GreyRamp): New. Generates a ramp from white to black.
1402            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
1403    
1404            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
1405            ID_PROPERTY_*.
1406            (Classifier.__init__): Minor changes to the layout.
1407            (Classifier._OnTitleChanged): Listen for when the user edits the
1408            title and update the dialog's title and the layer's title.
1409    
1410            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
1411    
1412            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
1413            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
1414            if the layer's title changes.
1415    
1416            * Thuban/UI/mainwindow.py: Added new menu item and associated code
1417            to open a dialog to rename the map.
1418            (MainWindow): Use new resource class to import bitmaps.
1419    
1420    2003-04-11  Jonathan Coles   <[email protected]>
1421    
1422            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
1423            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
1424            Resources/Bitmaps/group_use_none.xpm,
1425            Resources/Bitmaps/group_use_not.xpm,
1426            Resources/Bitmaps/hide_layer.xpm,
1427            Resources/Bitmaps/layer_properties.xpm,
1428            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
1429            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
1430            New.
1431    
1432    2003-04-10  Jonathan Coles   <[email protected]>
1433    
1434            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
1435            Should pass group to ClassGroup constructor.
1436    
1437    2003-04-10  Jonathan Coles   <[email protected]>
1438    
1439            * Thuban/Model/classification.py: (ClassGroup): Move all the common
1440            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
1441            here. Implement SetVisible(), IsVisible().
1442            (ClassGroup.__init__): Add group parameter which acts as a copy
1443            constructor.
1444    
1445            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
1446            "Visible" check boxes.
1447            (Classifier): Rename the buttons and refactor the code to match
1448            the new labels.
1449    
1450            * Thuban/UI/legend.py: Classify button is now called "Properties".
1451            Refactored the code to change variable names.
1452            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
1453    
1454            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
1455            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
1456            renamed to MainWindow.LayerEditProperties.
1457            (MainWindow.ToggleLegend): Don't include map name in legend title.
1458            (MainWindow.SetMap): Added the map name to the window title.
1459            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
1460            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
1461            Functionality is found in the layer properties dialog.
1462    
1463            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
1464            draw visible groups.
1465    
1466    2003-04-09  Jonathan Coles   <[email protected]>
1467    
1468            * Thuban/UI/classgen.py: Modifications to allow simple
1469            addition and selection of new color schemes.
1470            (MonochromaticRamp): New. Generates a ramp between two colors.
1471            (RedRamp): New. Generates a ramp of all red.
1472            (GreenRamp): New. Generates a ramp of all green.
1473            (BlueRamp): New. Generates a ramp of all blue.
1474    
1475    2003-04-09  Jonathan Coles   <[email protected]>
1476    
1477            * Thuban/Model/classification.py (Classification.__deepcopy__):
1478            Need to copy over field and fieldType attributes.
1479    
1480            * Thuban/Model/table.py (Table.field_range): New. Retrive the
1481            maximum and minimum values over the entire table for a given
1482            field.
1483            (Table.GetUniqueValues): New. Retrieve all the unique values
1484            in the table for a given field.
1485    
1486            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
1487            (GenUniquePanel): New. Controls to allow the user to select
1488            which unique field values they would like in the classification.
1489            (CustomRampPanel): Code that was in ClassGenDialog that allows
1490            the user to select the properties for a custom ramp.
1491            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
1492    
1493            * Thuban/UI/classifier.py: Removed a lot of debugging code.
1494            (Classifier._SetClassification): Callback method so that the
1495            class generator can set the classification in the grid.
1496            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
1497            editing of a group properties class into a wxWindows control.
1498    
1499            * Thuban/UI/dock.py: It was decided that if the user closes
1500            a dockable window the window should simply hide itself. That
1501            way if the user wants to show the dock again it appears in the
1502            same place as it was when it was closed.
1503            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
1504            (DockableWindow._OnButtonClose): Hide the window instead of
1505            destroying it.
1506            (DockableWindow._OnClose): Hide the window instead of
1507            destroying it.
1508    
1509            * Thuban/UI/legend.py (LegendTree): Use a private method to
1510            consistently set the font and style of the text. Fixes RTbug #1786.
1511    
1512            * Thuban/UI/mainwindow.py: Import just the Classifier class.
1513    
1514    2003-04-07  Bernhard Herzog  <[email protected]>
1515    
1516            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
1517            to the map module
1518    
1519    2003-04-07  Bernhard Herzog  <[email protected]>
1520    
1521            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
1522            favor of ToggleSessionTree
1523            (MainWindow.ToggleSessionTree): New method to toggle visibility of
1524            the session tree.
1525            (MainWindow.SessionTreeShown): New method to return whether the
1526            session tree is currently shown.
1527            (MainWindow.ToggleLegend): New method to toggle visibility of the
1528            legend
1529            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
1530            LegendShown
1531            (MainWindow.LegendShown): New method to return whether the legend
1532            is currently shown.
1533            (_method_command): Add checked parameter so we can define check
1534            menu items
1535            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
1536            mainwindow methods.
1537            (show_session_tree, show_legend commands): Removed.
1538            (toggle_session_tree, toggle_legend commands): New commands to
1539            toggle the visibility of the dialogs
1540    
1541    2003-04-07  Jonathan Coles   <[email protected]>
1542    
1543            * Thuban/UI/classgen.py: Fix Windows problem.
1544    
1545            * Thuban/UI/dock.py: Fix Windows problem.
1546    
1547            * Thuban/UI/mainwindow.py: Use False instead of false.
1548            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
1549    
1550    2003-04-07  Jonathan Coles   <[email protected]>
1551    
1552            Since we now say that the order of the groups in a classification
1553            matters, it makes sense to be able to manipulate that order. Most
1554            of the changes to Thuban/Model/classification.py are to that end.
1555    
1556            * Thuban/Model/classification.py (Classification.AppendGroup,
1557            Classification.InsertGroup, Classification.ReplaceGroup,
1558            Classification.RemoveGroup, Classification.GetGroup): Do as the
1559            names imply.
1560            (Classification.FindGroup): This was called GetGroup, but GetGroup
1561            takes an index, while FindGroup takes a value.
1562            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
1563            REFERENCE. Currently there is a cyclic reference between the layer
1564            and its classification. If the classification doesn't need to know
1565            its owning layer we can change this, since it may make sense to be
1566            able to use the same classification with different layers.
1567    
1568            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
1569    
1570            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
1571            not AddGroup()
1572    
1573            * Thuban/UI/classifier.py: Now that we can depend on the order in
1574            a Classification and have methods to manipulate that order we don't
1575            need to use our own data structures in the grid. We can simply make
1576            the grid/table access the information they need from a copy of
1577            the classification object.
1578            (Classifier._OnCloseBtn): Event handler for when the user clicks
1579            'Close'. This is needed so if the user applies changes and then
1580            continues to change the table the user has the option of discarding
1581            the most recent changes and keeping what they applied.
1582    
1583            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
1584            into the same group.
1585    
1586            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
1587            with a really old version of proj, PJ_VERSION won't even be defined.
1588            If it isn't defined then just compile so that the function always
1589            returns Py_False.
1590    
1591            * test/test_classification.py: Fix tests to use the renamed methods.
1592            Still need to write tests for the new methods.
1593    
1594    2003-04-04  Jonathan Coles   <[email protected]>
1595    
1596            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
1597            call to SetSelection out of the method and before the call
1598            to __SelectField in __init__. This prevents a recursion of events
1599            when _OnFieldSelect is triggered by the user.
1600    
1601    2003-04-04  Jonathan Coles   <[email protected]>
1602    
1603            * Thuban/Model/classification.py: Rename Color.None to
1604            Color.Transparent.
1605            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
1606            Don't bother copying the color, since Colors are immutable.
1607    
1608            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
1609            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
1610            Thuban/UI/renderer.py, Thuban/UI/view.py:
1611            Rename Color.None to Color.Transparent.
1612        
1613            * test/test_classification.py, test/test_load.py: Rename Color.None
1614            to Color.Transparent.
1615    
1616    2003-04-04  Jonathan Coles   <[email protected]>
1617    
1618            * Thuban/Model/classification.py: Fix assert calls.
1619            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
1620            Copy the color parameter rather than hold onto a reference.
1621    
1622            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
1623            the color object.
1624            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
1625            are sure there exists only one refernce to Color.None in the system.
1626            This allows us to use 'is' rather than the comparision functions.
1627            
1628            * Thuban/Model/save.py: Fix assert calls.
1629            
1630            * Thuban/UI/classifier.py: Fix assert calls.
1631            (ClassGrid._OnCellDClick): Call up to the classifier to open the
1632            dialog to edit the groups properties.
1633            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
1634            correctly if a cell is resized.
1635            (ClassTable.SetClassification): New. Changes the classification
1636            that is in the table.
1637            (ClassTable.__SetRow): Allow groups to be prepended.
1638            (Classifier): New code for opening the EditProperties and
1639            GenerateRanges dialogs.
1640            (SelectPropertiesDialog.__GetColor): Only set the color in the
1641            color dialog if the current color is not None.
1642            
1643            * Thuban/UI/dock.py: Fix assert calls.
1644            
1645            * Thuban/UI/legend.py: Fix assert calls.
1646            
1647            * Thuban/UI/renderer.py: Fix assert calls.
1648            
1649            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
1650            classifications.
1651            (GenRangePanel): Panel specific to range generation.
1652            (GenSingletonPanel): Panel specific to singleton generation.
1653            (ClassGenerator): Class responsible for actually generating
1654            the classification from the data gathered in the dialog box.
1655            (PropertyRamp): Generates properties whose values range from
1656            a starting property to an ending property.
1657    
1658    2003-04-03  Bernhard Herzog  <[email protected]>
1659    
1660            * test/support.py (print_garbage_information): New function that
1661            prints information about still connected messages and memory
1662            leaks.
1663            (run_suite): Removed.
1664            (run_tests): New function for use as a replacement of
1665            unittest.main in the test_* files. This one calls
1666            print_garbage_information at the end.
1667    
1668            * test/runtests.py (main): Use support.print_garbage_information
1669    
1670            * test/test_layer.py: Use support.run_tests instead of
1671            unittest.main so we get memory leak information
1672            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1673            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
1674            (TestLayerLegend.test_visibility): Call the layer's Destroy method
1675            to fix a memory leak.
1676    
1677            * test/test_classification.py: Use support.run_tests instead of
1678            unittest.main so we get memory leak information
1679            (TestClassification.test_classification): Call the layer's Destroy
1680            method to fix a memory leak.
1681    
1682    2003-04-02  Bernhard Herzog  <[email protected]>
1683    
1684            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
1685            Handle the reference counts of the return value and errors in
1686            PyArg_ParseTuple correctly.
1687    
1688            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
1689            sure the filename is absolute to avoid problems when saving the
1690            session again
1691    
1692            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
1693    
1694    2003-04-01  Jonathan Coles   <[email protected]>
1695    
1696            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
1697            that there actually are points in the returned list of points
1698            before trying to index into the list. The list may be empty if
1699            the shape is a Null Shape.
1700    
1701    2003-04-01  Bernhard Herzog  <[email protected]>
1702    
1703            * test/test_map.py: Don't use from <module> import *
1704    
1705    2003-04-01  Jonathan Coles   <[email protected]>
1706    
1707            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
1708            LAYER_LEGEND_CHANGED
1709    
1710            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
1711            self.Destroy() to close the window after yesterday's changes.
1712    
1713            * test/test_map.py, test/test_session.py: Fix messages that
1714            are sent from maps and layers.
1715    
1716    2003-03-31  Jonathan Coles   <[email protected]>
1717    
1718            * Thuban/UI/classifier.py: Commented out some debugging statements.
1719            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
1720            RTbug #1769.
1721    
1722            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
1723            position (although position doesn't work yet under GTK).
1724            (DockableWindow.Destroy): New. Called when the window must be
1725            closed. Namely needed when the DockFrame closes and must close
1726            its children.
1727            (DockFrame): Listen for EVT_CLOSE and destroy all children.
1728    
1729            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
1730            when then window is told to close.
1731            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
1732            comment in source for more info.
1733    
1734            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
1735    
1736            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
1737            symmetry with other such methods.
1738            (MainWindow.ShowLegend): Show the legend docked by default.
1739    
1740    2003-03-28  Jonathan Coles   <[email protected]>
1741    
1742            * Thuban/UI/classifier.py: Support for highlighting a specific
1743            group within the grid when the classification dialog is opened.
1744            Also contains a lot of debugging printouts which will later
1745            be removed.
1746    
1747            * Thuban/UI/dock.py: Complete rework on the dock code so that
1748            that it is fairly removed from the rest of the Thuban application.
1749            It is easy to add new docks which the rest of the program having
1750            to be aware of them.
1751    
1752            * Thuban/UI/legend.py: Modifications to support selecting a
1753            specific group in the classification dialog. Changed how layers
1754            are drawn when the layer is visible/invisible.
1755    
1756            * Thuban/UI/mainwindow.py: Removed legend specific code and
1757            replaced it with calls to the new dock code.
1758    
1759            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
1760            to check if scale > 0. Trying to track down a divide by zero.
1761    
1762    2003-03-26  Jonathan Coles   <[email protected]>
1763    
1764            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
1765            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
1766            now part of DockableWindow.
1767            (LegendPanel.DoOnSelChanged): Select the current layer in the
1768            map.
1769            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
1770            with the selected layer and/or group.
1771    
1772    2003-03-26  Jonathan Coles   <[email protected]>
1773    
1774            This putback contains the code for dockable windows. There is
1775            no support in wxWindows as of this date for windows that can
1776            attach themselves to other windows.
1777    
1778            The current model contains a DockableWindow which has a parent
1779            window for when it is detached and a dock window that it puts
1780            its contents in when it is docked. The contents of a DockableWindow
1781            must be a DockPanel. DockPanel itself derives from wxPanel.
1782    
1783            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
1784            message, not a LAYER_LEGEND_CHANGED message.
1785    
1786            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
1787    
1788            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
1789            as one of the style properties for the fieldTypeText item to
1790            be sure that its size is correct when the text changes.
1791    
1792            * Thuban/UI/dock.py: New. Classes for the DockPanel and
1793            DockableWindow.
1794    
1795            * Thuban/UI/legend.py: Added some more buttons and made the
1796            LegendPanel a DockPanel.
1797    
1798            * Thuban/UI/mainwindow.py: Added sash windows to the main window
1799            and supporting functions for manipulating the sashes.
1800            (MainWindow.ShowLegend): Create a DockableWindow with the
1801            LegendPanel as the contents.
1802    
1803            * Thuban/UI/messages.py: Added DOCKABLE_* messages
1804    
1805            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
1806            not LAYER_LEGEND_CHANGED, messages.
1807    
1808    2003-03-25  Jonathan Coles   <[email protected]>
1809    
1810            * setup.py: Added custom script bdist_rpm_build_script so that
1811            when the rpm is built the path to wx-config is correct.
1812    
1813            * setup.cfg: Added line saying to use the custom build script
1814    
1815    2003-03-20  Jonathan Coles   <[email protected]>
1816    
1817            Initial implementation of the Legend.
1818    
1819            * Thuban/UI/legend.py: New. Creates a window that shows the map's
1820            Legend information and allows the user to add/modify classifications
1821            and how the layers are drawn on the map.
1822    
1823            * setup.py: New command 'build_docs' which currently uses
1824            happydoc to generate html documentation for Thuban.
1825    
1826            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
1827            Returns a string which is appropriately describes the group.
1828    
1829            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
1830            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
1831    
1832            * Thuban/Model/map.py (Map): Rename messages and use new, more
1833            specific, messages.
1834    
1835            * Thuban/Model/messages.py: New message to indicate that a layer's
1836            data has changed (LAYER_CHANGED). New map messages to indicate
1837            when layers have been added/removed/changed or if the stacking order
1838            of the layers has changed.
1839    
1840            * Thuban/Model/session.py: Rename and use new messages.
1841    
1842            * Thuban/UI/classifier.py: Remember if any changes have actually
1843            been applied so that if the dialog is cancelled without an application
1844            of changes we don't have to set a new classification.
1845            (ClassDataPreviewer): Pulled out the window specific code and put it
1846            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
1847            symbols on any DC.
1848            
1849            * Thuban/UI/mainwindow.py: New code to open the legend.
1850    
1851            * Thuban/UI/view.py: Use new message names.
1852    
1853    2003-03-19  Jonathan Coles   <[email protected]>
1854    
1855            * Thuban/UI/main.py (verify_versions): New. Checks the versions
1856            of Python, wxPython, and some other libraries.
1857    
1858            * extensions/thuban/wxproj.cpp (check_version): Checks the given
1859            version against what wxproj was compiled with.
1860            (check_version_gtk): If wxproj was compiled with gtk then check
1861            the given version against the version of the gtk library
1862            currently being used.
1863    
1864    2003-03-14  Bernhard Herzog  <[email protected]>
1865    
1866            * test/test_command.py: Run the tests when the module is run as a
1867            script
1868    
1869    2003-03-14  Bernhard Herzog  <[email protected]>
1870    
1871            Implement selection of multiple selected shapes in the same layer:
1872    
1873            - Introduce a new class to hold the selection. This basically
1874              replaces the interactor which was nothing more than the
1875              selection anyway. A major difference is of course that the new
1876              selection class supports multiple selected shapes in one layer
1877            
1878            - Move the object that represents the selection from the
1879              application to the canvas. The canvas is a better place than the
1880              application because the selection represents which shapes and
1881              layer of the map displayed by the canvas are selected and
1882              affects how the map is drawn.
1883    
1884            - Make the selection and its messages publicly available through
1885              the mainwindow.
1886    
1887            - The non-modal dialogs do not get a reference to the interactor
1888              anymore as they can simply refer to their parent, the
1889              mainwindow, for the what the interactor had to offer.
1890    
1891            * Thuban/UI/selection.py: New module with a class to represent the
1892            selection.
1893    
1894            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
1895            these unused messages
1896    
1897            * Thuban/UI/application.py (ThubanApplication.OnInit)
1898            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
1899            interactor is gone now.
1900            (ThubanApplication.CreateMainWindow): There is no interactor
1901            anymore so we pass None as the interactor argument for now for
1902            compatibility.
1903    
1904            * Thuban/UI/view.py (MapCanvas.delegated_messages)
1905            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
1906            Unsubscribe, delegate messages according to the delegated_messages
1907            class variable.
1908            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
1909            attributes from instance variables as described with the
1910            delegated_methods class variable.
1911            (MapCanvas.__init__): New instance variable selection holding the
1912            current selection
1913            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
1914            pass them on to the renderer
1915            (MapCanvas.SetMap): Clear the selection when a different map is
1916            selected.
1917            (MapCanvas.shape_selected): Simple force a complete redraw. The
1918            selection class now takes care of only issueing SHAPES_SELECTED
1919            messages when the set of selected shapes actually does change.
1920            (MapCanvas.SelectShapeAt): The selection is now managed in
1921            self.selection
1922    
1923            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
1924            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
1925            Unsubscribe, delegate messages according to the delegated_messages
1926            class variable.
1927            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
1928            attributes from instance variables as described with the
1929            delegated_methods class variable.
1930            (MainWindow.__init__): The interactor as ivar is gone. The
1931            parameter is still there for compatibility. The selection messages
1932            now come from the canvas.
1933            (MainWindow.current_layer, MainWindow.has_selected_layer):
1934            Delegate to the the canvas.
1935            (MainWindow.LayerShowTable, MainWindow.Classify)
1936            (MainWindow.identify_view_on_demand): The dialogs don't need the
1937            interactor parameter anymore.
1938    
1939            * Thuban/UI/tableview.py (TableFrame.__init__)
1940            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
1941            (LayerTableFrame.row_selected): The interactor is gone. It's job
1942            from the dialog's point of view is now done by the mainwindow,
1943            i.e. the parent. Subscribe to SHAPES_SELECTED instead
1944            of SELECTED_SHAPE
1945            
1946            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
1947            is gone. It's job from the dialog's point of view is now done by
1948            the mainwindow, i.e. the parent.
1949            
1950            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
1951            gone. It's job from the dialog's point of view is now done by the
1952            mainwindow, i.e. the parent.
1953    
1954            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
1955            gone. It's job from the dialog's point of view is now done by the
1956            mainwindow, i.e. the parent.
1957            (SessionTreeCtrl.__init__): New parameter mainwindow which is
1958            stored as self.mainwindow. The mainwindow is need so that the tree
1959            can still subscribe to the selection messages.
1960            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
1961            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
1962            selection is now accessible through the mainwindow. Subscribe to
1963            SHAPES_SELECTED instead of SELECTED_SHAPE
1964    
1965            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
1966            SHAPES_SELECTED message now.
1967            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
1968            so deal with multiple shapes
1969            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
1970            gone. It's job from the dialog's point of view is now done by the
1971            mainwindow, i.e. the parent.
1972    
1973            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
1974            parameter is now a list of shape ids.
1975            (RecordTable.SetTable): The second parameter is now a list of
1976            indices.
1977    
1978            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
1979            selected_shape parameter and ivar to selected_shapes. It's now a
1980            list of shape ids.
1981            (MapRenderer.draw_label_layer): Deal with multiple selected
1982            shapes. Rearrange the code a bit so that the setup and shape type
1983            distinctions are only executed once.
1984    
1985            * test/test_selection.py: Test cases for the selection class
1986    
1987    2003-03-11  Jonathan Coles   <[email protected]>
1988    
1989            * Thuban/Model/load.py: Temporary fix so that the xml reader
1990            doesn't cause Thuban to crash.
1991    
1992            * Thuban/Model/layer.py: Handle the cyclic references between
1993            a layer and its classification better, and be sure to disconnect
1994            the classification from the layer when the layer is destroyed
1995            so that we don't maintain a cyclic reference that may not be
1996            garbage collected.
1997    
1998            * Thuban/Model/classification.py: See comment for layer.py.
1999    
2000    2003-03-12  Jan-Oliver Wagner <[email protected]>
2001    
2002            * HOWTO-Release: New. Information on the steps for releasing
2003            a new version of Thuban.
2004    
2005    2003-03-11  Jonathan Coles   <[email protected]>
2006    
2007            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
2008            Use True instead of true.
2009            (Classifier): Should have a single panel in which all the controls lie.
2010    
2011            * Thuban/UI/proj4dialog.py: Add normal border.
2012    
2013            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
2014    
2015            * Thuban/UI/mainwindow.py: Use True instead of true.
2016    
2017            * setup.py: Update some definitions to use wxWindows2.4 files
2018    
2019            * Data/iceland_sample_class.thuban: Fixed file so that the
2020            field_type information is present.
2021    
2022    2003-03-10  Jonathan Coles   <[email protected]>
2023    
2024            * Thuban/UI/classifier.py (Classifier.__init__): Make the
2025            field type label grow so that when the text changes the
2026            size is updated correctly. This may be a wxWindows bug.
2027    
2028    2003-03-10  Jonathan Coles   <[email protected]>
2029    
2030            * Thuban/UI/application.py: Changed SESSION_CHANGED to
2031            SESSION_REPLACED.
2032    
2033            * Thuban/UI/classifier.py: Wrap text with _().
2034            (ClassGrid.CreateTable): Set dimensions and size hints here,
2035            instead of in Reset, so we only set the size once.
2036    
2037            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
2038    
2039            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
2040            Call Close() instead of Shutdown().
2041    
2042            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
2043    
2044            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
2045            Go back to using OnClose() instead of Shutdown().
2046    
2047    2003-03-10  Jonathan Coles   <[email protected]>
2048    
2049            * Thuban/UI/classifier.py (Classifier): SelectField() needed
2050            to know the old field index as well as the new one.
2051    
2052    2003-03-10  Jonathan Coles   <[email protected]>
2053    
2054            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
2055            to correctly set the table information and call this from
2056            __init__ and from _OnFieldSelect so that all the information
2057            is up to date when the dialog opens and when a field is changed.
2058    
2059    2003-03-10  Jonathan Coles   <[email protected]>
2060    
2061            * Thuban/Model/classification.py (Classification): Don't use
2062            layer's message function directly, use the ClassChanged() method
2063            when then classification changes. SetField/SetFieldType/SetLayer
2064            must keep the information about field name and field type in
2065            sync when an owning layer is set or removed.
2066    
2067            * Thuban/Model/layer.py: Added ClassChanged() so that the
2068            classification can tell the layer when its data has changed.
2069            (Layer.SetClassification): Accepts None as an arguement to
2070            remove the current classification and correctly handles
2071            adding a new classification.
2072    
2073            * Thuban/Model/load.py: Comment out print statement
2074    
2075            * test/test_classification.py, test/test_save.py: New and
2076            improved tests.
2077    
2078    2003-03-07  Jonathan Coles   <[email protected]>
2079    
2080            * Thuban/Model/classification.py: Implemented __copy__ and
2081            __deepcopy__ for ClassGroup* and ClassGroupProperites so
2082            they can easily be copied by the classifier dialog.
2083            (ClassGroupProperites.__init__): The default line color should
2084            have been Color.Black.
2085    
2086            * Thuban/UI/classifier.py: Setting and Getting table values now
2087            uses a consistent set of functions.
2088            (Classifier): Now non-modal. Has field type label which changes
2089            as the field changes. Keep track of buttons in a list so that
2090            we can enable/disable the buttons when the None field is selected.
2091            (SelectPropertiesDialog): Add buttons to make the colors transparent.
2092    
2093            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
2094            does what OnClose did, but can be called by the application to
2095            close a window. Needed when a session changes, and we have to
2096            close the classifier windows.
2097    
2098            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
2099            Shuts down open dialogs. Used when a new session is created
2100            or a session is opened.
2101            (MainWindow.SaveSession): Should only call application.SaveSession()
2102            if we don't call SaveSessionAs first.
2103            (MainWindow.Classify): Allow different classifier dialogs for
2104            different layers.
2105    
2106            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
2107            the parent class handle it. Add Shutdown() to unsubscibe from
2108            event notification and call the parent Shutdown(). This was
2109            necessary so the application can close the tree window.
2110    
2111    2003-03-06  Jonathan Coles   <[email protected]>
2112    
2113            * Thuban/Model/classification.py: Minor documentation changes,
2114            Addition of __eq__ and __ne__ methods.
2115            (Classification.SetLayer): prevent recursion between this method
2116            and Layer.SetClassification().
2117    
2118            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
2119    
2120            * Thuban/Model/layer.py (SetClassification): prevent recursion
2121            between this method and Classification.SetLayer().
2122    
2123            * test/test_classification.py, test/test_load.py,
2124            test/test_session.py: Fixed and added tests for the classification
2125            classes.
2126    
2127    2003-03-06  Bernhard Herzog  <[email protected]>
2128    
2129            * Thuban/UI/classifier.py (ClassGrid.__init__)
2130            (ClassGrid.CreateTable): Move the SetSelectionMode call to
2131            CreateTable because otherwise it triggers an assertion in
2132            wxPython/wxGTK 2.4.
2133    
2134    2003-03-05  Jonathan Coles   <[email protected]>
2135    
2136            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
2137    
2138            * Thuban/Model/load.py: import FIELDTYPE constants from table.
2139    
2140            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
2141    
2142            * Thuban/Model/table.py: Put FIELDTYPE constants back.
2143    
2144    2003-03-05  Jonathan Coles   <[email protected]>
2145    
2146            * Thuban/UI/classifier.py: Added class documentation.
2147            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
2148            Store just the groups in the table and generate the other
2149            column information when it is requested. Add "None" field
2150            to pull-down to select no classification.
2151    
2152            * Thuban/common.py: Moved FIELDTYPE constants from table.py
2153            (Str2Num): Only catch ValueError exceptions.
2154    
2155            * Thuban/Model/classification.py: Class documentation. Renaming
2156            of methods with Stroke to Line. Groups are stored in a single
2157            list with the default as the first element. Groups are searched
2158            in the order they appear in the list.
2159    
2160            * Thuban/Model/color.py: Documentation.
2161    
2162            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
2163            the kind of data represented by a field.
2164    
2165            * Thuban/Model/load.py (ProcessSession): Use proper string
2166            conversion function; fixes RTbug #1713.
2167    
2168            * Thuban/Model/save.py (Saver): Store field type information.
2169    
2170            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
2171            (Table): Add field_info_by_name() to retrieve field information
2172            by specifying the field name, not the number.
2173    
2174            * Thuban/UI/mainwindow.py: Function name changes.
2175    
2176            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
2177            get the layer classification once. Don't try to classify
2178            values when the field is None: just use the default properties.
2179    
2180            * Thuban/UI/view.py: Function name changes.
2181    
2182            * Doc/thuban.dtd: Add field_type attribute to a classification.
2183    
2184    2003-03-04  Bernhard Herzog  <[email protected]>
2185    
2186            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
2187            the fill and stroke layer attributes optional with suitable
2188            default values. Add the stroke_width layer attribute. Use correct
2189            syntax for empty elements. Make the attribute list for labels
2190            refer to the label element.
2191    
2192    2003-03-04  Bernhard Herzog  <[email protected]>
2193    
2194            * setup.py (thuban_build_py.build): Add a comment about distutils in
2195            Python 2.3 containing some of the functionality we implement in
2196            setup.py ourselves.
2197    
2198            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
2199            before the selection mode. Doing it the other way round triggers
2200            an assertion in wxWindows.
2201    
2202            * Thuban/Model/save.py (escape): Fix typo in doc-string
2203    
2204            * Thuban/Model/classification.py: Remove unnecessary wxPython
2205            import
2206    
2207    2003-03-04  Jonathan Coles   <[email protected]>
2208    
2209            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
2210            Parameter 'value' should default to None.
2211    
2212            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
2213            the class attribute __classification is now private.
2214    
2215            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
2216            Classifier to ClassGrid. Added support for removing selected rows,
2217            which including code for keeping track of when cells are selected,
2218            and deselected.
2219            (ClassTable): Support for added/removing rows. Fixed a problem
2220            with __ParseInput whereby it would not allow strings (only numbers)
2221            to be entered.
2222            (Classifier): Added button and supporting code for removing
2223            selected rows.
2224    
2225    2003-02-27  Jonathan Coles   <[email protected]>
2226    
2227            * Thuban/common.py: Moved color conversion functions into
2228            Thuban/UI/common.py.
2229            (Str2Num): Now converts the float (not the string) to a long/int
2230            so that an exception isn't thrown.
2231    
2232            * Thuban/UI/common.py: Common functions used in several UI modules
2233    
2234            * Thuban/Model/classification.py: Changed the class hierarchy
2235            so that a Classification consists of Groups which return
2236            Properties when a value matches a Group.
2237    
2238            * Thuban/Model/layer.py: Fixed name resolution problem.
2239    
2240            * Thuban/Model/load.py: Use new Classification and Group functions.
2241    
2242            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
2243            failure.
2244            (Saver.write_classification): Use new Classification and Group
2245            functions.
2246    
2247            * Thuban/UI/classifier.py: Changes to use new Classification and Group
2248            functions. Fix to create a tuple with a single value instead of
2249            simply returning the value.
2250    
2251            * Thuban/UI/renderer.py: Use new Classification and Group functions.
2252            Use common.py functions.
2253    
2254            * Thuban/UI/tree.py: Use common.py functions.
2255            
2256            * test/test_classification.py: Use new Classification and Group
2257            classes.
2258    
2259    2003-02-24  Jonathan Coles   <[email protected]>
2260    
2261            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
2262            functions from Thuban color objects to wxWindow colour objects.
2263    
2264            * Thuban/Model/classification.py (Classification): Renamed
2265            GetProperties() to GetClassData(). Used the new iterator
2266            in TreeInfo().
2267            (ClassIterator): Iterator implementation to iterate over the
2268            ClassData objects in a classification object.
2269    
2270            * Thuban/Model/save.py (Saver.write_classificaton): Uses
2271            the new iterator to save the classification information.
2272    
2273            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
2274            for changing the stroke and fill colors and previewing the
2275            changes.
2276    
2277            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
2278            MainWindow.SaveSessionAs): Text string changes so the dialogs
2279            have more meaningful titles.
2280    
2281            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
2282            Classification method name from GetProperties to GetClassData.
2283    
2284            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
2285            instead of accessing now non-existent class variables.
2286    
2287    2003-02-24  Bernhard Herzog  <[email protected]>
2288    
2289            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
2290            unneeded Shape() call. Rendering is substantially faster without
2291            it and it avoids some problems with broken shape files.
2292    
2293    2003-02-20  Frank Koormann   <[email protected]>
2294    
2295            Force minimal size of identify and label dialogs. The autosizing
2296            looked too ugly.
2297    
2298            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
2299            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
2300            Set size of listctrl.
2301            * Thuban/UI/identifyview.py (IdentifyView.__init__):
2302            Set size of dialog.
2303    
2304    2003-02-19  Jonathan Coles   <[email protected]>
2305    
2306            * test/test_classification.py, test/test_layer.py,
2307            test/test_load.py, test/test_map.py, test/test_session.py:
2308            Updated the tests to use the new functions that are in the
2309            respective classes.
2310    
2311            * Thuban/Model/classification.py (Classification):
2312            Uses the new ClassData* classes. Modification messages are
2313            passed up to the parent layer (if it exists).
2314            (ClassData): New class to encapsulate the common data in each
2315            classification property.
2316            (ClassDataDefault): Represents the Default class. data.
2317            (ClassDataPoint): Represents a single class. data point
2318            (ClassDataRange): Represents a class. range
2319            (ClassDataMap): Represents a class. map (unused).
2320    
2321            * Thuban/Model/color.py: Added Color.None to represent something
2322            with no color. Color.Black represents the color black.
2323            (NoColor): Helper class derived from Color to represent something
2324            with no color.
2325    
2326            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
2327            stroke_width attributes. Made the 'classification' attribute private.
2328            New methods for setting/getting the classification.
2329    
2330            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
2331            to get the classifcation and use the new ClassData* classes to
2332            hold the classification data. Use Str2Num to convert numbers
2333            properly.
2334    
2335            * Thuban/Model/save.py (Saver): Use new Color and Classification
2336            methods
2337    
2338            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
2339            custom grid.
2340            (ClassTable): Support for editing Values and Labels and for
2341            changing what type (point or range) of data is stored in each
2342            property based on how the user enters the data.
2343            (Classifier): Support for saving the new classifications and
2344            launching the dialog to edit a property.
2345            (SelectPropertiesDialog): New class for editing the visual
2346            properties of a classification (stroke color, width, and fill color)
2347            (ClassPreviewer): Took the Draw method from ClassRenderer and
2348            made most of it into this new class. Intend to use this class in
2349            the SelectPropertiesDialog for previewing changes.
2350    
2351            * Thuban/UI/renderer.py: Use new Color and Classification methods.
2352    
2353            * Thuban/UI/tree.py: Formatting changes.
2354    
2355            * Doc/thuban.dtd: Add 'label' element
2356    
2357            * Thuban/common.py: New. Contains common routines used throughout
2358            the code.
2359            (Str2Num): Takes a string and converts it to the "best" type of
2360            number.
2361    
2362    2003-02-14  Bernhard Herzog  <[email protected]>
2363    
2364            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
2365            dragging flag is always set to 0 even when the tool implementation
2366            raises an exception
2367    
2368    2003-02-11  Bernhard Herzog  <[email protected]>
2369    
2370            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
2371            method to create a splash screen.
2372            (ThubanApplication.ShowMainWindow): New. Show the main window.
2373            Needed so the splash screen can display the mainwindow
2374            (ThubanApplication.OnInit): Call the
2375            new splash_screen method to determine whether the application
2376            should display a splash screen. If it displays a splash screen do
2377            not immediately show the main window.
2378    
2379    2003-02-11  Jonathan Coles  <[email protected]>
2380    
2381            * Thuban/Model/classification.py: Added import line to fix
2382            feature conflicts between running on python2.2 and python2.1.
2383    
2384            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
2385            onto the clinfo parameter, so removed the deepcopy().
2386    
2387    2003-02-10  Jonathan Coles  <[email protected]>
2388    
2389            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
2390            Added element_open variable to track opening and closing of tags
2391            so that tags that don't span more than one line are closed with
2392            /> instead of </tag_name>. Use the GetDefault*() methods of
2393            the Classification class.
2394    
2395            * Thuban/Model/classification.py (Classificaton): Added set and
2396            get methods for the default data. The class also takes a layer
2397            reference so that modification messages can be sent. Fixed the
2398            methods to use the new ClassData class.
2399            (ClassData): New class to encapsulate the classification data
2400    
2401            * Thuban/Model/layer.py (Layer): Remove the
2402            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
2403            SetDefault*() methods on the layer's classification object.
2404            (Layer.__init__): Use the new SetDefault*() methods in the
2405            Classification class.
2406    
2407            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
2408            object instead of a dictionary.
2409    
2410            * Thuban/UI/classifier.py (ClassRenderer): New class to
2411            draw the classifications in the dialog box's table.
2412            (Classifier): Modified to use the ClassRenderer class.
2413    
2414            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
2415            methods of the Classification class.
2416    
2417            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
2418            of the ClassData class.
2419    
2420            * test/test_classification.py, test/test_layer.py,
2421            test/test_map.py, test/test_session.py: Fix the tests to work
2422            with the above code changes.
2423    
2424    2003-02-03  Jonathan Coles  <[email protected]>
2425    
2426            * Thuban/Model/classification.py (Classification): Added getNull()
2427            to return the NullData reference
2428    
2429            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
2430            Layer.SetStrokeWidth): Modified these functions to change the
2431            null data in the classification rather than keep these values
2432            directly in the Layer class. Menu options to change these values
2433            work again.
2434    
2435    2003-01-28  Jonathan Coles  <[email protected]>
2436    
2437            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
2438            Fixed crashing problem on some systems. Dialog box shows
2439            classification data.
2440    
2441            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
2442            Colors in the tree view.
2443    
2444            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
2445            the tree info for classifications. Commented out unnecessary lines.
2446    
2447            * Thuban/Model/classification.py (Classification.TreeInfo): New
2448            function to add information about the classification into the
2449            tree view.
2450    
2451    2003-01-27  Jan-Oliver Wagner <[email protected]>
2452    
2453            * Thuban/__init__.py (_): New.
2454    
2455            * Thuban/Model/classification.py, Thuban/Model/extension.py,
2456            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
2457            Thuban/Model/session.py, Thuban/UI/application.py,
2458            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
2459            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
2460            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
2461            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
2462            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
2463    
2464    2003-01-27  Jonathan Coles  <[email protected]>
2465    
2466            * Thuban/Model/layer.py: Classification initialization calls.
2467    
2468            * Thuban/Model/classification.py: Created class to encapsulate
2469            a layer classification. Supports specific data points and
2470            ranges.
2471    
2472            * Thuban/Model/load.py: Added support for loading classification
2473            information.
2474    
2475            * Thuban/Model/save.py: Added support for saving classification
2476            information.
2477    
2478            * Thuban/UI/classifier.py: Initial class for a dialog box for
2479            specifying classification information.
2480    
2481            * Thuban/UI/mainwindows.py: Support for opening the classifier
2482            dialog.
2483    
2484            * Thuban/UI/renderer.py: Support for drawing a layer with the
2485            classification information.
2486    
2487            * Data/iceland_sample_class.thuban: iceland_sample with
2488            classification data.
2489    
2490            * test/test_classification: Tests for the Classification class.
2491    
2492    2002-12-09  Bernhard Herzog  <[email protected]>
2493    
2494            * test/test_command.py: New. Tests for the command classes.
2495    
2496            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
2497            (Command.IsTool): New method to distinguish between command
2498            switching tools and other commands.
2499    
2500            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
2501            the tool to avoid direct assignments to instance variables
2502            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
2503            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
2504            change the tool
2505    
2506            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
2507            active tool's command turns insensitive, disable the tool.
2508            (_tool_command): Use the new ToolCommand class
2509    
2510            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
2511            SelectTool method to change the tool
2512            (iconfile): Use the ToolCommand class
2513    
2514    2002-12-03  Bernhard Herzog  <[email protected]>
2515    
2516            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
2517            the case of selected items that are not children of Layers or Maps
2518            properly. Previously this bug would trigger an assertion in
2519            wxWindows.
2520    
2521    2002-11-06  Frank Koormann  <[email protected]>
2522    
2523            * Thuban/UI/mainwindow.py: Altered the order of tools in the
2524            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
2525            Full Extent).
2526    
2527    2002-10-23  Bernhard Herzog  <[email protected]>
2528    
2529            * setup.py (setup call): version now 0.1.3
2530    
2531            * MANIFEST.in: Add the files in test/
2532    
2533            * test/README: Add note about tests requiring the iceland data
2534    
2535            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
2536            copyright notice.
2537    
2538    2002-10-18  Bernhard Herzog  <[email protected]>
2539    
2540            * test/test_map.py
2541            (TestMapWithContents.test_projected_bounding_box): Use an explicit
2542            epsilon.
2543    
2544            * test/support.py (FloatComparisonMixin.assertFloatEqual)
2545            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
2546            message if the assertion fails and don't return the return value
2547            of self.assert_. In assertFloatSeqEqual the return meant that not
2548            all items of the sequence were compared.
2549    
2550    2002-09-20  Bernhard Herzog  <[email protected]>
2551    
2552            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
2553    
2554            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
2555    
2556            * test/test_map.py (TestMapWithContents.test_tree_info): Create
2557            the string with the bounding box on the fly because of platform
2558            differences in the way %g is handled.
2559    
2560            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
2561            DBFfile too because Thuban layers can't yet cope missing DBF
2562            files.
2563    
2564    2002-09-20  Bernhard Herzog  <[email protected]>
2565    
2566            * test/test_menu.py: Use initthuban instead of
2567            add_thuban_dir_to_path to initialize Thuban.
2568    
2569            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
2570            Mixin class for float comparisons
2571            (SubscriberMixin): New. Mixin class to test messages sent through
2572            the Connector class
2573    
2574            * test/README: Fix a typo and add the -v flag to the command for
2575            individual tests
2576    
2577            * test/test_session.py: New. Test cases for Thuban.Model.session
2578    
2579            * test/test_proj.py: New. Test cases for Thuban.Model.proj
2580    
2581            * test/test_map.py: New. Test cases for Thuban.Model.map
2582    
2583            * test/test_layer.py: New. Test cases for Thuban.Model.layer
2584    
2585            * test/test_label.py: New. Test cases for Thuban.Model.label
2586    
2587            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
2588    
2589            * test/test_color.py: New. Test cases for Thuban.Model.color
2590    
2591            * test/test_base.py: New. Test cases for Thuban.Model.base
2592    
2593    2002-09-13  Bernhard Herzog  <[email protected]>
2594    
2595            * Thuban/Model/session.py (Session.forwarded_channels): Forward
2596            the CHANGED channel too.
2597    
2598            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
2599            CHANGED channel too.
2600            (Map.__init__): Call the Modifiable constructor as well.
2601    
2602            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
2603            event if the modified flag changes.
2604            (Modifiable.changed): Tweak the doc-string.
2605    
2606            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
2607            (MainWindow.set_position_text): Put the code that puts the text
2608            with the mouse position into the status bar into the new method
2609            set_position_text so that it can overwritten in derived classes.
2610    
2611    2002-09-12  Bernhard Herzog  <[email protected]>
2612    
2613            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
2614            message box on the main window.
2615    
2616    2002-09-11  Bernhard Herzog  <[email protected]>
2617    
2618            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
2619            the 'E' because it's less likely to interfere with other menu
2620            entries.
2621            (MainWindow.build_menu): remove an incorrect comment.
2622    
2623    2002-09-10  Bernhard Herzog  <[email protected]>
2624    
2625            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
2626            (_tool_command): Add sensitive parameter
2627            (_has_visible_map): Sensitivity callback to tools and other
2628            commands that require a visible map. Use it in map_zoom_in_tool,
2629            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
2630            and map_full_extent
2631    
2632    2002-09-06  Bernhard Herzog  <[email protected]>
2633    
2634            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
2635            VIEW_POSITION
2636    
2637    2002-09-04  Frank Koormann  <[email protected]>
2638    
2639            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
2640    
2641    2002-09-02  Bernhard Herzog  <[email protected]>
2642    
2643            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
2644            wxWindows already and our implementation doesn't work correctly
2645            with wxGTK 2.3:
2646            (MapCanvas.__init__): Remove the instance variable
2647            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
2648            be drawin
2649            (MapCanvas.OnIdle): Removed.
2650    
2651            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
2652            a parameter to determine the size of the rectangle.
2653            (MapCanvas.find_shape_at): Create the box around the point on a
2654            layer by layer basis and make the size depend on the shape type.
2655            This solves a problem with the selection of point shapes at the
2656            border of the layer's bounding box
2657    
2658    2002-08-30  Bernhard Herzog  <[email protected]>
2659    
2660            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
2661            for the sensitivity  of remove layer.
2662            (_can_remove_layer): New. Sensitivity callback for remove layer
2663            (Command layer_remove): Use _can_remove_layer
2664    
2665            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
2666            determine whether a given layer can be deleted.
2667    
2668            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
2669            (MapCanvas.do_redraw): Get rid of the unused update_region
2670            instance variable
2671    
2672            * Thuban/UI/view.py: Add/update some doc-strings.
2673    
2674            * test/: new subdirectory with a bunch of unit tests.
2675    
2676            * test/README, test/test_table.py, test/test_save.py,
2677            test/test_menu.py, test/test_load.py: Initial set of tests and
2678            brief instructions on how to run them
2679    
2680    2002-08-29  Bernhard Herzog  <[email protected]>
2681    
2682            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
2683            arcs with multiple parts.
2684    
2685            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
2686            Handle degenrate rectangles.
2687    
2688            * Thuban/Model/table.py: Make writing records work correctly:
2689            (Table.__init__): Keep track of whether the DBF is open for
2690            writing
2691            (Table.write_record): Open the DBF file for writing when necessary
2692    
2693    2002-08-27  Bernhard Herzog  <[email protected]>
2694    
2695            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
2696            dbf files only for reading by default. Use a new writable dbf
2697            object for writing.
2698    
2699    2002-08-26  Bernhard Herzog  <[email protected]>
2700    
2701            * Thuban/UI/mainwindow.py: Refactor the context creation:
2702            (MainWindow.Context): New method to return a context
2703            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
2704            new method
2705    
2706            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
2707            layer table specific code from TableGrid into LayerTableGrid
2708            (TableFrame, LayerTableFrame): Split the layer table specific code
2709            from TableFrame into LayerTableFrame
2710            (LayerTableGrid.select_shape): Remove a debug print
2711    
2712            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
2713            LayerTableFrame
2714    
2715    2002-08-23  Bernhard Herzog  <[email protected]>
2716    
2717            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
2718            absolute filename.
2719    
2720    2002-08-22  Bernhard Herzog  <[email protected]>
2721    
2722            * Thuban/Model/table.py (Table.write_record): New method to write
2723            records.
2724            (Table.__init__): Open the DBF file for writing too.
2725    
2726            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
2727            into the underlying table.
2728    
2729            * extensions/shapelib/shapefil.h (DBFCommit),
2730            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
2731            commit any changes made to the DBF file.
2732    
2733            * Thuban/UI/mainwindow.py (make_check_current_tool)
2734            (_tool_command): Put the code that generates the "checked"
2735            callback into a separate function so that we can reuse it
2736            elsewhere
2737    
2738            * Thuban/Model/save.py (Saver): New class to handle serializing a
2739            session into an XML file. The main reason to introduce a class is
2740            that applications built on Thuban can derive from it so that they
2741            can save additional information in a session file.
2742            (save_session): Delegate almost all the work to the Saver class.
2743            Rename the filename argument to file because it may be a file like
2744            object now.
2745    
2746            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
2747            code. Remove the little test code which would be executed when the
2748            module is run as a script which didn't work anymore since it can't
2749            import the other Thuban modules.
2750            (ProcessSession, load_session): Refactor the ProcessSession to
2751            have one method for each element start and end tag so that derived
2752            classes can easily override the processing of individual tags.
2753            Also, always parse with namespaces enabled because applications
2754            built on top of Thuban will likely use namespaces if they extend
2755            the session file format.
2756    
2757    2002-08-21  Bernhard Herzog  <[email protected]>
2758    
2759            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
2760            because thubaninit_contents will do it for us.
2761    
2762    2002-08-16  Jan-Oliver Wagner <[email protected]>
2763    
2764            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
2765            tree window already open
2766    
2767    2002-08-15  Bernhard Herzog  <[email protected]>
2768    
2769            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
2770            with self.
2771    
2772            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
2773            when we have actually captured it.
2774    
2775            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
2776            shapefile and destroy the table.
2777    
2778            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
2779    
2780    2002-08-14  Bernhard Herzog  <[email protected]>
2781    
2782            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
2783            instance variable columns
2784            (RecordTable.GetTypeName): row and col may be negative in some
2785            cases.
2786    
2787            * setup.py (InstallLocal.initialize_options)
2788            (InstallLocal.finalize_options, InstallLocal.user_options): New
2789            option create-init-file to build a thubaninit.py when running
2790            install_local
2791            (InstallLocal.run): Create the thubaninit.py module when requested
2792            (thubaninit_contents): Split the template into several parts and
2793            create a new function thubaninit_contents that creates the
2794            contents of a thubaninit module.
2795            (ThubanInstall.run): Use the new function to create the thubaninit
2796            module.
2797    
2798    2002-07-30  Bernhard Herzog  <[email protected]>
2799    
2800            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
2801            cleanup.
2802            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
2803    
2804            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
2805            direct base class' Destroy method.
2806    
2807            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
2808            layers.
2809            (Map.Destroy): Destroy the label_layer as well and call the
2810            inherited Desatroymethod first so that no more messages are
2811            issued.
2812            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
2813            message if the stacking order actually has changed. Add
2814            doc-strings.
2815            (Map.BoundingBox): Correct the doc-string.
2816            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
2817            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
2818    
2819            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
2820            all labels.
2821    
2822    2002-07-29  Bernhard Herzog  <[email protected]>
2823    
2824            * Thuban/Model/map.py (Map.subscribe_layer_channels)
2825            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
2826            to a layer's channels into separate methods.
2827            (Map.RemoveLayer, Map.AddLayer): Call the new methods
2828            (Map.Destroy): Unsubscribe from a layer's channels before
2829            destroying it.
2830    
2831            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
2832            selected_layer parameter to searched_layer which is the layer to
2833            search in.
2834            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
2835            search to that layer. Return the selected layer and shape.
2836    
2837            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
2838            typo
2839    
2840    2002-07-24  Bernhard Herzog  <[email protected]>
2841    
2842            * Thuban/UI/application.py (ThubanApplication.create_session):
2843            Extend the doc string.
2844            (ThubanApplication.subscribe_session)
2845            (ThubanApplication.unsubscribe_session): New methods to
2846            subscribe/unsubscribe to/from session channels.
2847            (ThubanApplication.SetSession): Call the new methods here.
2848            (ThubanApplication.maps_changed, ThubanApplication.set_map):
2849            Renamed set_map to maps_changed. Its now a subscriber for
2850            MAPS_CHANGED.
2851    
2852            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
2853            x-coordinate in case of simple clicks
2854    
2855            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
2856            don't pass it as a parameter
2857    
2858            * Thuban/Model/session.py (Session.RemoveMap): New
2859    
2860            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
2861            window size into a parameter.
2862    
2863    2002-07-23  Bernhard Herzog  <[email protected]>
2864    
2865            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
2866            just commands.
2867    
2868            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
2869            parameter list a bit to allow setting the window title and the
2870            initial message in the status bar. Update the callers.
2871    
2872            * Thuban/UI/application.py (ThubanApplication.OnInit)
2873            (ThubanApplication.CreateMainWindow): Put the mainwindow
2874            instantiation into a separate method so that it can be overridden
2875            by a subclass.
2876    
2877    2002-07-19  Bernhard Herzog  <[email protected]>
2878    
2879            * Thuban/Model/session.py: Issue a CHANGED message every time
2880            another changed message is issued to make it easier to get
2881            notified of changes.
2882            (Session): Update the doc string
2883            (Session.forward): Issue changed-events as CHANGED as well.
2884            (Session.changed): Overwrite the inherited version to issue
2885            CHANGED events as well.
2886    
2887            * Thuban/UI/tree.py: We can now simply subscribe to the session's
2888            CHANGED channel to be informed of changes.
2889            (SessionTreeCtrl.session_channels): Not needed any longer.
2890            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
2891            Only have to (un)subscribe CHANGED
2892    
2893            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
2894    
2895            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
2896            for the wxPython locale bug to __init__.py so that it's
2897            automatically executed by anybody using UI code from Thuban.
2898    
2899    2002-07-18  Bernhard Herzog  <[email protected]>
2900    
2901            * Thuban/UI/main.py (main): app no longer needs to be global
2902    
2903            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
2904            as parameter and store it in an instance variable
2905            (MainWindow.invoke_command, MainWindow.update_command_ui)
2906            (MainWindow.save_modified_session, MainWindow.NewSession)
2907            (MainWindow.OpenSession, MainWindow.SaveSession)
2908            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
2909            application object.
2910    
2911            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
2912            the main window with self.
2913    
2914            * Thuban/UI/context.py: New module with the context class
2915    
2916            * Thuban/UI/command.py (Command): Update doc string.
2917    
2918            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
2919            MainWindow.update_command_ui): Pass an instance of the context
2920            class to the command's methods
2921            (check_current_tool, call_method): Handle the new context
2922            implementation
2923    
2924            * Examples/simple_extensions/simple_tool.py (simple_tool,
2925            check_simple_tool): Handle the new context implementation
2926    
2927            * Examples/simple_extensions/simple_command.py (simple_command):
2928            Handle the new context implementation. Update the comments about
2929            the context.
2930    
2931            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
2932            doc-string
2933            (ThubanApplication.Session): New method to return the session
2934            object
2935    
2936            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
2937            interactor's selected_layer may not be a layer of the current
2938            session when the tree is updated while a new session is being set.
2939    
2940    2002-07-17  Bernhard Herzog  <[email protected]>
2941    
2942            * Thuban/UI/tree.py (color_string): Removed. No longer used.
2943            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
2944            update_tree into update_tree and add_items. The tree now uses a
2945            more generic way to display the contents of the tree.
2946            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
2947    
2948            * Thuban/Model/layer.py (Layer.TreeInfo),
2949            Thuban/Model/extension.py (Extension.TreeInfo),
2950            Thuban/Model/map.py (Map.TreeInfo),
2951            Thuban/Model/session.py (Session.TreeInfo):
2952            Add TreeInfo methods to implement the new tree view update scheme
2953    
2954    2002-07-16  Bernhard Herzog  <[email protected]>
2955    
2956            * Thuban/UI/application.py: Don't use "import from" for the
2957            MainWindow. It can't always be resolved.
2958            (ThubanApplication.OnInit): change reference to MainWindow
2959            accordingly.
2960    
2961            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
2962            completely
2963    
2964    2002-07-10  Bernhard Herzog  <[email protected]>
2965    
2966            * setup.py (create_init_module): New configurable variable whose
2967            default depends on the platform we're running on.
2968            (ThubanInstall.initialize_options): Initialize
2969            self.create_init_module from the global create_init_module
2970            (ThubanInstall.user_options): indictate that the options
2971            create-init-module and init-module-dir have arguments.
2972    
2973            * setup.py: In the setup call change the version number to include
2974            cvs.
2975    
2976            * MANIFEST.in: Add the files in Examples
2977    
2978    2002-07-09  Bernhard Herzog  <[email protected]>
2979    
2980            * setup.py: In the setup call, use the thuban homepage as the
2981            value of the url parameter.
2982    
2983            * Examples: New subdirectory for examples.
2984    
2985            * Examples/simple_extensions/simple_tool.xpm,
2986            Examples/simple_extensions/simple_tool.py,
2987            Examples/simple_extensions/simple_command.py,
2988            Examples/simple_extensions/README: Simple examples showing how to
2989            add new commands and tools.
2990    
2991            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
2992            bdist_rpm that we also have an install script.
2993            (bdist_inno): Add 2002 to the copyright notice.
2994    
2995            * setup.py: Create a file in python's site-packages directory to
2996            make installation of Thuban as a library easier.
2997            (ThubanInstall.user_options): Add two new options,
2998            create-init-module and init-module-dir
2999            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
3000            filenames for installation in the default directories.
3001            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
3002            the inherited methods to capture some filenames before they're
3003            transformed too much by distutils.
3004            (ThubanInstall.run): Create the init module if requested.
3005            (ThubanInstall.thuban_init_filename): New method to return the
3006            full name of the init module.
3007            (ThubanInstall.get_outputs): Append the filename of the init
3008            module.
3009    
3010    2002-07-08  Bernhard Herzog  <[email protected]>
3011    
3012            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
3013            handle the prefix properly which means that the default for the
3014            installation prefix should be /usr for RPMs and /usr/local when
3015            doing a normal source install.
3016            (bdist_rpm_install_script): Script to override the default install
3017            commands in the specfile generated by the bdist_rpm command.
3018            (thuban_bdist_rpm.user_options): Add a prefix option
3019            (thuban_bdist_rpm.initialize_options): Init the prefix option.
3020            Create the script files for the spec files as empty files here
3021            (thuban_bdist_rpm._make_spec_file): Override the inherited method
3022            to fill the script files with content.
3023    
3024            * Thuban/Model/save.py (relative_filename): Wrapper around
3025            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
3026            argument. save_session now automatically uses this version,
3027            solving a problem when saving to a relative filename.
3028    
3029            * setup.py: In the setup call, make sure that the library
3030            directories are under $prefix/lib not directly under $prefix.
3031    
3032    2002-06-20  Jan-Oliver Wagner <[email protected]>
3033    
3034            * Thuban/Model/extension.py: new module to handle extension objects.
3035            * Thuban/Model/messages.py: new messages for extensions.
3036            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
3037            Session.AddExtension): new for handling extensions.
3038            Also some other minor changes to round up extension handling.
3039            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
3040            of Extension titles and title and names of its objects.
3041    
3042    2002-05-29  Bernhard Herzog  <[email protected]>
3043    
3044            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
3045            the events for a command.
3046            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
3047            Call bind_command_events to bind the events. add_toolbar_command
3048            can now bind events too so that it's possible to have commands
3049            that are only available through the toolbar.
3050            (MainWindow.init_ids): New instance variable events_bound to keep
3051            track of for which commands events have been bound.
3052    
3053    2002-05-28  Bernhard Herzog  <[email protected]>
3054    
3055            * Thuban/UI/menu.py: New module to build and manage menus.
3056    
3057            * Thuban/UI/mainwindow.py: Remove some unused imports.
3058            (MainWindow.__init__, main_menu): move the definition of the main
3059            menu from __init__ to the Menu instance main_menu.
3060            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
3061            build the menu bar and sub-menus from a menu description.
3062    
3063            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
3064            startup file
3065            (ThubanApplication.read_startup_files): New method to run
3066            ~/.thuban/thubanstart.py
3067    
3068            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
3069            Move the toolbar definition to the Menu instance main_toolbar.
3070            (MainWindow.build_toolbar): New method to build the toolbar
3071            similar to the build_menu methods
3072    
3073    2002-05-23  Bernhard Herzog  <[email protected]>
3074    
3075            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
3076            layer_outline_color. Fix it in the definition of the command too.
3077    
3078            * Thuban/UI/command.py (Command): Fix typo in doc string
3079    
3080    2002-05-22  Bernhard Herzog  <[email protected]>
3081    
3082            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
3083            in the docstring
3084    
3085    2002-05-15  Bernhard Herzog  <[email protected]>
3086    
3087            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
3088            when the shapefile is empty.
3089            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
3090            now return None for empty shapefiles. Update doc-strings.
3091    
3092            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
3093            the layer's bbox being None.
3094    
3095            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
3096            layer's bbox being None.
3097    
3098            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
3099            necessary.
3100            (MapCanvas.__init__): New instance variables, last_selected_layer
3101            and last_selected_shape to determine how the selection has
3102            changed.
3103    
3104            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
3105            AutoSizeColumns because it will cause a traversal of the entire
3106            table which for large .dbf files will take a very long time.
3107    
3108    2002-05-14  Bernhard Herzog  <[email protected]>
3109    
3110            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
3111            maximum depth for the tree than shapelib does by default.
3112    
3113    2002-05-10  Bernhard Herzog  <[email protected]>
3114    
3115            * setup.py (py_modules): The shptree modules doesn't have a
3116            wrapper, so don't include it in the py_modules
3117    
3118    2002-05-08  Bernhard Herzog  <[email protected]>
3119    
3120            * extensions/shapelib/shptree.c (compare_ints): Make arguments
3121            const void * as in the qsort prototype
3122            (SHPTreeFindLikelyShapes): Remove some unused variables.
3123    
3124            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
3125            maintains to redraw the window during a drag.
3126            (MapCanvas.unprojected_rect_around_point): New method to determine
3127            a small region around a point for hit-testing.
3128            (MapCanvas.find_shape_at): Only test the shapes in a small region
3129            around the point.
3130    
3131            * setup.py: Increment the version to 0.1.2
3132    
3133            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
3134            debug print and set session to None after unsubscribing
3135    
3136    2002-05-07  Bernhard Herzog  <[email protected]>
3137    
3138            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
3139            the file to have a .thuban extension.
3140    
3141            * Thuban/UI/tree.py (session_channels): New class constant with
3142            all the session channels to subscribe to to update the tree
3143            (SessionTreeCtrl.session_changed): Remember the session so that we
3144            can unsubscribe properly. Use the new class constant to
3145            unsubscribe from the old session and subscribe to the new one.
3146            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
3147            subscriptions of the SessionTreeCtrl.
3148            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
3149    
3150            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
3151            Session Tree" command to the file menu.
3152    
3153            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
3154            as update_region to the renderer.
3155    
3156            * Thuban/UI/renderer.py
3157            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
3158            update box is now directly a tuple, not a wxRect anymore.
3159    
3160            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
3161            prints.
3162    
3163    2002-05-07  Bernhard Herzog  <[email protected]>
3164    
3165            * setup.py: Add the shptree extension module. See
3166            extensions/pyshapelib/ChangeLog for more details.
3167    
3168            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
3169            extensions/shapelib/dbfopen.c: Really update to the versions of
3170            shapelib 1.2.9. For some reason it wasn't really done on
3171            2002-04-11.
3172    
3173            * extensions/shapelib/shptree.c: Modified version of shptree.c of
3174            shapelib 1.2.9. The only real difference is the use of qsort
3175            instead of a bubble sort implementation
3176    
3177            * Thuban/Model/layer.py (Layer.__init__): New instance variable
3178            shapetree to hold the shapelib quadtree for the shapefile
3179            (Layer.open_shapefile): Create the quad tree.
3180            (Layer.ShapesInRegion): New method to return the ids of shapes in
3181            a given region using the quad tree.
3182    
3183            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
3184            comment
3185            (draw_polygon_shape): Accept both arcs and polygons.
3186            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
3187            the api.
3188    
3189            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
3190            return the shape ids to be rendered in a given layer.
3191            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
3192            ids. Use draw_polygon_shape to draw arc shapes as well.
3193            (ScreenRenderer.RenderMap): New parameter for the rectangle that
3194            has to be updated
3195            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
3196            calling it's ShapesInRegion method.
3197    
3198            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
3199            update_region for the update region.
3200            (MapCanvas.OnPaint): Maintain the update region
3201            (MapCanvas.do_redraw): Pass the bounding box of the update_region
3202            to the renderer when drawing the bitmap. Reset the update_region.
3203    
3204    2002-05-03  Bernhard Herzog  <[email protected]>
3205    
3206            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
3207            MainWindow.OpenSession): Change the file extension of the session
3208            files to .thuban
3209    
3210            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
3211            Move the map channels to be forwarded by the session into the
3212            class constant with forwarded_channels. Also add
3213            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
3214            forwarded_channels
3215    
3216            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
3217            typo and some rewording).
3218    
3219    2002-05-02  Bernhard Herzog  <[email protected]>
3220    
3221            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
3222            around to speed up most redraws:
3223            (MapCanvas.__init__): New instance variable bitmap which holds the
3224            bitmap
3225            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
3226            self.bitmap to draw.
3227            (MapCanvas.full_redraw): New method to force a full redraw
3228            including the bitmap
3229            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
3230            make sure the bitmap is redrawn.
3231            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
3232            MapCanvas.shape_selected): Call full_redraw instead of readraw to
3233            make sure the bitmap is redrawn.
3234            (MapCanvas.OnSize): New method to handle size events so that the
3235            bitmap can be redrawn.
3236    
3237    2002-04-29  Bernhard Herzog  <[email protected]>
3238    
3239            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
3240            canvas' VIEW_POSITION event
3241            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
3242            Update the text in the status-bar accordingly.
3243    
3244            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
3245            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
3246            called.
3247            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
3248            current_position
3249            (MapCanvas.set_current_position): New method to set
3250            current_position. Issue a VIEW_POSITION event
3251            (MapCanvas.CurrentPosition): New public method to return the value
3252            of current_position. Should be called when the VIEW_POSITION event
3253            is processed.
3254            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
3255            Update the position.
3256            (MapCanvas.OnLeaveWindow): Set the position to None.
3257    
3258            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
3259            position in the statusbar
3260    
3261    2002-04-26  Frank Koormann <[email protected]>
3262    
3263            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
3264    
3265    2002-04-24  Frank Koormann <[email protected]>
3266    
3267            * Resources/Bitmaps/identify.xpm: shadow added
3268    
3269            * Resources/Bitmaps/fullextent.xpm: new
3270    
3271    2002-04-22  Jan-Oliver Wagner <[email protected]>
3272    
3273            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
3274            box
3275    
3276    2002-04-21  Jan-Oliver Wagner <[email protected]>
3277    
3278            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
3279    
3280            * Thuban/UI/tree.py (update_tree): added added map extent
3281    
3282            * Thuban/UI/mainwindow.py (_method_command): extended by parameter
3283            icon; added map_full_extend as tool
3284    
3285    2002-04-19  Jan-Oliver Wagner <[email protected]>
3286    
3287            * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
3288            saving _new_ sessions
3289    
3290            * Thuban/Model/session.py (create_empty_session): new session
3291            don't have a filename (set to None)
3292    
3293            * Thuban/UI/tree.py (update_tree): added filename and modified flag
3294    
3295            * Thuban/Model/load.py (ProcessSession): convert projection
3296            parameters from unicode to regular string
3297    
3298            * Data/iceland_sample.session: Added UTM Zone 26 projection.
3299    
3300    2002-04-11  Bernhard Herzog  <[email protected]>
3301    
3302            * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
3303            extensions/shapelib/dbfopen.c: Update to the versions of shapelib
3304            1.2.9
3305    
3306            * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
3307            the pyshapelib directoy into the list of include dirs, so that
3308            pyshapelib_api.h can be found.
3309    
3310            * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
3311            holds the pyshapelib C-API
3312            (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
3313            pyshapelib_api to access the shapelib functions.
3314            (initwxproj): Import the c_api from the shapelib module and
3315            initialize pyshapelib_api.
3316    
3317    2002-04-04  Bernhard Herzog  <[email protected]>
3318    
3319            * setup.py (thuban_bdist_rpm.initialize_options): Use
3320            initialize_options to create the scripts for the rpm.
3321    
3322            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
3323    
3324    2002-04-03  Bernhard Herzog  <[email protected]>
3325    
3326            * setup.py: Increment version to 0.1.1
3327    
3328            * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
3329            Layer" and "Remove Layer" commands from the layer menu to the map
3330            menu
3331    
3332    2002-02-15  Bernhard Herzog  <[email protected]>
3333    
3334            * Thuban/Model/layer.py (Layer.Shape): list append only takes one
3335            argument (python <= 1.5.2 erroneously accepted multiuple
3336            arguments)
3337    
3338    2002-02-04  Bernhard Herzog  <[email protected]>
3339    
3340            * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
3341            RecordGrid in the identifyview.
3342            (IdentifyView.__init__): Use IdentifyGridCtrl instead of
3343            IdentifyListCtrl. The grid allows editing of the values.
3344    
3345            * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
3346            implementing a grid for a single row of a thuban table.
3347    
3348            * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
3349            layers by default. Easier to use than the previous default of only
3350            searching through the select layer which meant that if no layer
3351            was selected, you couldn't select a shape.
3352    
3353            * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
3354    
3355            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
3356            stroke_width attribute
3357    
3358            * Thuban/Model/save.py (save_session): Write the new stroke_width
3359            attribute
3360    
3361            * Thuban/Model/load.py (ProcessSession.startElement): Read the
3362            stroke_width attribute
3363    
3364            * Thuban/Model/layer.py (Layer.__init__): New parameter and
3365            instance variable stroke_width
3366            (Layer.SetStrokeWidth): Set the stroke_width.
3367    
3368    2002-02-01  Bernhard Herzog  <[email protected]>
3369    
3370            * extensions/thuban/wxproj.cpp (project_points): Fix two
3371            off-by-one errors in the last loop that joins the various parts
3372            together.
3373    
3374    2002-01-14  Bernhard Herzog  <[email protected]>
3375    
3376            * setup.py (data_dist.make_distribution): Fix some typos
3377    
3378  2001-09-18  Bernhard Herzog  <[email protected]>  2001-09-18  Bernhard Herzog  <[email protected]>
3379    
3380          * README: Slight tweaking in preparation for the 0.1 release          * README: Slight tweaking in preparation for the 0.1 release
# Line 7  Line 3384 
3384    
3385          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
3386          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
3387    
3388  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
3389    
3390          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
3391          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
3392    
3393          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
3394          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
3395          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
3396          too.          too.
# Line 124  Line 3500 
3500          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
3501          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
3502    
3503          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
3504          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
3505          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
3506          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
3507          the application's OnInit method          the application's OnInit method
# Line 141  Line 3517 
3517          layer to the tableview dialog.          layer to the tableview dialog.
3518    
3519          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
3520          (TableGrid):          (TableGrid):
3521          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
3522          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
3523          (TableFrame.__init__):          (TableFrame.__init__):
# Line 208  Line 3584 
3584  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
3585    
3586          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
3587            
3588          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
3589          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
3590            
3591          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
3592          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
3593          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 258  Line 3634 
3634          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
3635          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
3636          link_file method          link_file method
3637            
3638          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
3639          the window when the first layer is added to the map.          the window when the first layer is added to the map.
3640    
# Line 295  Line 3671 
3671          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
3672          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
3673          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
3674            
3675          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
3676          installer          installer
3677    

Legend:
Removed from v.70  
changed lines
  Added in v.958

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26