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

Legend:
Removed from v.587  
changed lines
  Added in v.906

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26