/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 766 by bh, Tue Apr 29 12:42:27 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]>  2003-04-29  Bernhard Herzog  <[email protected]>
627    
628          Next step of table implementation. Introduce a transient database          Next step of table implementation. Introduce a transient database
# Line 51  Line 676 
676          once. Plus it introduces a reference cycle that keeps can keep the          once. Plus it introduces a reference cycle that keeps can keep the
677          session object alive for a long time.          session object alive for a long time.
678    
679  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-29  Jonathan Coles   <[email protected]>
680    
681          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
682          Projection an immutable item. Fixes RTbug #1825.          Projection an immutable item. Fixes RTbug #1825.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26