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

Legend:
Removed from v.304  
changed lines
  Added in v.955

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26