/[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 1191 by jonathan, Thu Jun 12 17:01:45 2003 UTC revision 1320 by jonathan, Mon Jun 30 10:27:24 2003 UTC
# Line 1  Line 1 
1    2003-06-30  Jonathan Coles   <[email protected]>
2    
3            * Thuban/version.py: SQLite/PySQLite version dependencies
4            were too high.
5    
6    2003-06-30  Jonathan Coles   <[email protected]>
7    
8            * Thuban/version.py: Update version to 0.8.1
9            
10            * MANIFEST.in: Added Projections so that default.proj is
11            included.
12    
13    2003-06-26  Jonathan Coles   <[email protected]>
14    
15            New About box with lots more information including library
16            versions and credits. More/better version checking before
17            Thuban starts.
18    
19            * Thuban/UI/about.py: New. New About box that displays
20            library version information and credits.
21    
22            * Thuban/version.py: Added new 'versions' dictionary which
23            contains the verions of various libraries which are checked
24            when the module loads.
25            (verify_versions): Check all version numbers and returns
26            a list of errors.
27    
28            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
29            Reset the status of the buttons as the situation warrants,
30            but in a better more reliable way by not relying on the
31            current status to determine what needs to change.
32    
33            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
34            (verify_versions): Remove most of the code since it is
35            now in Thuban.version.verify_versions.o
36    
37            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
38            About box in Thuban.UI.about.
39    
40            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
41            Returns the version of gdal library being used as a string.
42    
43            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
44            Removed.
45            (get_proj_version): Return the version of PROJ that the file
46            was compiled with.
47            (get_gtk_version): Return th version of GTK that the file
48            was compiled with.
49    
50    2003-06-25  Jonathan Coles   <[email protected]>
51    
52            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
53            of the SelectPropertiesDialog should be self so the window
54            appears on top.
55            (ClassGroupPropertiesCtrl.DoEdit): The parent
56            of the SelectPropertiesDialog should be self so the window
57            appears on top.
58    
59            * Thuban/UI/resource.py: Cleaned up how we determine file
60            extensions.
61            (GetImageResource): Return an wxImage from our Resources.
62    
63    2003-06-24  Jonathan Coles   <[email protected]>
64    
65            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
66            Check that a layer has a classification before trying
67            to get it. Raster layers don't have classifications.
68    
69    2003-06-23  Jonathan Coles   <[email protected]>
70            
71            * setup.py: Add Resources/XML to resource list.
72        
73    2003-06-23  Jonathan Coles   <[email protected]>
74    
75            * setup.cfg: Fix copyright dates
76        
77    2003-06-23  Jonathan Coles   <[email protected]>
78    
79            * MANIFEST.in: Update with Resources/XML
80    
81            * setup.py: Don't include Locale resources yet as we don't
82            have any and it causes problems building the distribution
83            for Windows. Update version to 0.8.0.
84    
85            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
86    
87            * Thuban/UI/mainwindow.py: Add blank line at the end because
88            file was not being read correctly building the Windows
89            distribution.
90    
91    2003-06-23  Jonathan Coles   <[email protected]>
92    
93            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
94    
95            * Thuban/version.py: Temporarily update longversion for
96            the 0.8 release so that it doesn't have the cvs revision.
97    
98    2003-06-23  Jonathan Coles   <[email protected]>
99    
100            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
101            to make sure that we don't create reentrant possibilities with
102            wxYield.
103    
104            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
105            directly to avoid the wxSafeYield() call which generates an
106            OnPaint event causing infinite recursion. Don't try to catch
107            exception anymore. This was for before there were limits on map
108            scaling.
109    
110    2003-06-23  Bernhard Herzog  <[email protected]>
111    
112            Bug fix for RT #1961:
113    
114            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
115            Register DerivedShapestores with the session
116    
117            * Thuban/Model/session.py (Session.Tables): Make sure each table
118            is only listed once.
119    
120            * test/test_load.py (TestJoinedTable.test): Add check_format call.
121            Update file contents to match the one written out.
122    
123    2003-06-20  Bernhard Herzog  <[email protected]>
124    
125            * test/xmlsupport.py (SaxEventLister.startElementNS)
126            (SaxEventLister.endElementNS): Do not include the qname. Python
127            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
128            is (presumably incorrectly) None, whereas it's a string with the
129            element name in the later versions.
130    
131            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
132            (TestEventList.test_even_list_namespace): Update tests to reflect
133            the new behaviour
134            (TestEventList.test_even_list_id_normalization): Fix doc-string
135    
136    2003-06-20  Jonathan Coles   <[email protected]>
137    
138            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
139            by deriving classes to determine if that layer supports shapes.
140            (Layer): Override HasShapes and return true.
141    
142            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
143            instead of a direct call to wx[Begin|End]CusyCursor().
144            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
145            table data.
146    
147            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
148            New. Wrappers around the wxWindows functions that allow us to
149            make additional calls such as wxYield which gives the native
150            system a chance to update the cursor correctly.
151    
152            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
153            instead of a direct call to wx[Begin|End]CusyCursor().
154    
155            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
156            instead of a direct call to wx[Begin|End]CusyCursor().
157            (MapCanvas.find_shape_at): Check if the current search layer
158            support shapes, otherwise go on to the next layer.
159    
160            * test/test_layer.py: Add tests in each type of layer for
161            HasClassification() and HasShapes()
162    
163    2003-06-20  Jonathan Coles   <[email protected]>
164    
165            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
166            turning on the busy cursor to allow the system to change the
167            cursor before we begin painting. This fixes a problem that
168            was occuring only under GTK. Fixes RTbug #1840.
169    
170    2003-06-20  Bernhard Herzog  <[email protected]>
171    
172            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
173            version.
174    
175            * Thuban/Model/save.py (sort_data_stores): New. Make topological
176            sort of the data sources so they can be written with sources that
177            data sources that depend on other data sources come after the
178            sources they depend on.
179            (SessionSaver.__init__): Add idmap instance variable to map from
180            objects to the ids used in the file.
181            (SessionSaver.get_id, SessionSaver.define_id)
182            (SessionSaver.has_id): New. Methods to manage the idmap
183            (SessionSaver.write): Use thuban-0.8.dtd
184            (SessionSaver.write_session): Add a namespace on the session and
185            write out the data sources before the maps.
186            (SessionSaver.write_data_containers): New. Write the data
187            containers.
188            (SessionSaver.write_layer): Layer elements now refer to a
189            shapestore and don't contain filenames anymore.
190    
191            * Thuban/Model/load.py (LoadError): Exception class to raise when
192            errors in the files are discovered
193            (SessionLoader.__init__): Define dispatchers for elements with a
194            thuban-0.8 namespace too.
195            (SessionLoader.check_attrs): New helper method to check and
196            convert attributes
197            (AttrDesc): New. Helper class for SessionLoader.check_attrs
198            (SessionLoader.start_fileshapesource)
199            (SessionLoader.start_derivedshapesource)
200            (SessionLoader.start_filetable, SessionLoader.start_jointable):
201            Handlers for the new elements in the new fileformat
202            (SessionLoader.start_layer): Handle the shapestore attribute in
203            addition to filename.
204            (SessionLoader.start_table, SessionLoader.end_table): Removed.
205            They were never used in the old formats and aren't needed for the
206            new.
207    
208            * Thuban/Model/session.py (Session.DataContainers): New method to
209            return all "data containers", i.e. shapestores and tables
210    
211            * test/xmlsupport.py (SaxEventLister.__init__)
212            (SaxEventLister.startElementNS, sax_eventlist): Add support to
213            normalize IDs.
214    
215            * test/test_xmlsupport.py
216            (TestEventList.test_even_list_id_normalization): New test case for
217            id normalization
218    
219            * test/test_load.py (LoadSessionTest.check_format): Use ID
220            normalization
221            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
222            class atrributes used for ID normalization
223            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
224            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
225            file format
226            (TestJoinedTable): New test for loading sessions with joined
227            tables.
228            (TestLoadError): New. Test whether missing required attributes
229            cause a LoadError.
230    
231            * test/test_save.py (SaveSessionTest.thubanids)
232            (SaveSessionTest.thubanidrefs): New class attributes for ID
233            normalization in .thuban files.
234            (SaveSessionTest.compare_xml): Use id-normalization.
235            (SaveSessionTest.testEmptySession)
236            (SaveSessionTest.testLayerProjection)
237            (SaveSessionTest.testRasterLayer)
238            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
239            (SaveSessionTest.testLayerProjection): The filename used was the
240            same as for testSingleLayer. Use a different one.
241            (SaveSessionTest.test_dbf_table)
242            (SaveSessionTest.test_joined_table): New test cases for saving the
243            new data sources structures.
244            (TestStoreSort, MockDataStore): Classes to test the sorting of the
245            data stores for writing.
246    
247            * test/runtests.py: Add CVS keywords
248    
249    2003-06-20  Jonathan Coles   <[email protected]>
250    
251            * test/test_session.py
252            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
253            Use the cultural_landmark-point.dbf file for the store so that
254            the table rows and shape count match.
255    
256    2003-06-20  Jonathan Coles   <[email protected]>
257    
258            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
259            an exception if the number of shapes is different from the
260            number of rows in the table. Address RTbug #1933.
261    
262            * test/test_layer.py (TestLayer.test_derived_store): Add
263            a test for the new exception in DerivedShapeStore.__init__.
264    
265            * test/support.py (FloatTestCase): Removed since there is
266            already FloatComparisonMixin. Fixes RTbug #1954.
267            (FloatComparisonMixin.assertFloatEqual): Include test for
268            infinity that was part of FloatTestCase.
269    
270            * test/test_range.py (RangeTest): Inherit from
271            support.FloatComparisonMixin now that we don't have
272            support.FloatTestCase.
273    
274    2003-06-20  Bernhard Herzog  <[email protected]>
275    
276            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
277            the implementation in xmlsupport instead.
278            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
279    
280            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
281            of test_save
282    
283    2003-06-20  Bernhard Herzog  <[email protected]>
284    
285            * test/test_load.py (LoadSessionTest.check_format): New helper
286            method to make sure the test files we load might have been written
287            by the current thuban version.
288            (ClassificationTest.TestLayers, TestSingleLayer.test)
289            (TestLayerVisibility.test, TestClassification.test)
290            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
291            Add check_format() calls and fix the thuban data to match the data
292            that would be written by saving the session loaded from it.
293    
294            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
295            the same class and function in test_save.
296    
297            * test/test_xmlsupport.py (TestEventList): New. test cases for
298            sax_eventlist
299    
300    2003-06-20  Bernhard Herzog  <[email protected]>
301    
302            * Resources/XML/thuban.dtd: Add comment about which versions of
303            Thuban are covered by this DTD
304            (map): Fix content model for layers and raster layers. There can
305            be any number or layers and raster layers in any order.
306    
307    2003-06-20  Jonathan Coles   <[email protected]>
308    
309            This is mainly about fixing RTbug #1949.
310    
311            * Thuban/Model/classification.py: Remove "from __future__"
312            import statement since python 2.2 is the earliest supported
313            version.
314    
315            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
316            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
317            depending on the units this projection *forwards* into.
318    
319            * Thuban/Model/save.py (SessionSaver.write_classification):
320            Remove unnecessary use of lambdas and nested functions.
321    
322            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
323            adjustment here if the map projection uses degrees.
324    
325            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
326            scale adjust code since it is now done before calling
327            this method. Don't do anything if the map projection
328            is None.
329    
330    2003-06-19  Bernhard Herzog  <[email protected]>
331    
332            Move version specific load tests to their own file.
333    
334            * test/test_load.py: Expand the doc-string to explain a bit how to
335            handle file format changes.
336            (TestClassification.test): Update the docstring as this test is
337            not about Thuban 0.2 anymore.
338    
339            * test/test_load_0_2.py: New file with the load tests for thuban
340            files created with Thuban 0.2 and earlier.
341    
342    2003-06-19  Bernhard Herzog  <[email protected]>
343    
344            Add XML validation to some of the tests. Validation will only be
345            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
346            To make the DTD available to the test cases it's moved into
347            Resources/XML
348    
349            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
350            for versions up to and including 0.2. Two slight changes: added an
351            encoding specification and fixed the comment which refered to
352            GRASS, not Thuban
353    
354            * test/xmlsupport.py: New support module for tests involving XML.
355            Currently there's a mix-in class for XML validation.
356    
357            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
358    
359            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
360            so that we can validate the
361            (SaveSessionTest.testEmptySession)
362            (SaveSessionTest.testSingleLayer)
363            (SaveSessionTest.testSingleLayer)
364            (SaveSessionTest.testLayerProjection)
365            (SaveSessionTest.testRasterLayer)
366            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
367    
368            * test/runtests.py (main): Call print_additional_summary instead
369            of print_garbage_information
370    
371            * test/support.py (resource_dir): New function to return the
372            "Resource" subdirectory
373            (print_additional_summary): New function to combine several
374            summary functions
375            (run_tests): Use print_additional_summary instead of calling
376            print_garbage_information directly
377    
378    2003-06-19  Bernhard Herzog  <[email protected]>
379    
380            * Doc/thuban.dtd (classification): Correct the content model of
381            the classification element.
382            (projection): Add the "name" attribute
383    
384    2003-06-19  Frank Koormann   <[email protected]>
385    
386            MERGE from the greater-ms3 branch.
387    
388            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
389            scale if projection is latlong to get better estimate.
390    
391            Fix problem of hidden properties dialog under windows after double
392            click on layer tree:
393            The tree control always gets an Expanded / Collapsed event after
394            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
395            raises the already displayed window.
396    
397            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
398            raiseProperties initialized to prevent endless loops
399            (LegendTree._OnItemActivated): Depending on self.raiseProperties
400            simply raise the properties or open the dialog and issue a second
401            event.
402    
403    2003-06-18  Jonathan Coles   <[email protected]>
404    
405            * setup.py: Fix a few problems that occured under Windows.
406    
407    2003-06-18  Jonathan Coles   <[email protected]>
408    
409            When Thuban loaded the map was redrawn twice because the
410            legend was being opened after the mainwindow was created
411            and not during its creation. This meant the map was drawn
412            initially and then had to be redrawn when the legend
413            caused the display to change. Now the legend is opened
414            in the mainwindow constructor which resolves this issue.
415    
416            Also, although we were checking for the existence of
417            gdal and gdalwarp modules, the gdalwarp extension was
418            still being compiled (which may fail if the system doesn't
419            have gdal installed). the build_ext command to setup.py
420            now accepts the flags --with-gdal and --without-gdal.
421            If --without-gdal is specified setup.py will try to
422            use the gdal parameters specified by gdal-config. Under
423            windows, those parameters have to be set in setup.py
424            as with proj4 an wxWindows.
425    
426            * setup.py: Use a list instead of seperate variables for
427            extension parameters so we can create a generic function
428            that runs an appropriate *-config script.
429            (run_cs_script): Renamed from run_wx_script and modified
430            to accept a second argument which is a list of lists to
431            be filled in by the values returned from running the command.
432            (thuban_build_ext): New. Extends the build_ext command and
433            provides the options --with-gdal/--without-gdal which then
434            optionally includes the gdalwarp extension.
435    
436            * Thuban/Model/resource.py: First check if we can import
437            the gdalwarp Thuban extension before checking for gdal.
438            Also added some comments.
439            
440            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
441            the map is None which may be the case if none has been loaded
442            yet.
443    
444            * Thuban/UI/main.py (main): Remove call to ShowLegend.
445    
446            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
447    
448            * Thuban/UI/renderer.py: Check for gdal support before importing
449            gdalwarp.
450            (MapRenderer.render_map): Only try to optimize if we have gdal
451            support otherwise nothing will get drawn.
452    
453            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
454            during startup before a map has been created. Check if map is None
455            before using it and do nothing if it is.
456    
457    2003-06-17  Jonathan Coles   <[email protected]>
458    
459            Fix the problem with raster layers under Windows that caused
460            Thuban to crash. The view should respond to layer projection
461            changed events to update the display. Changes to a projection
462            should not cause the map to be set to full extent.
463            
464            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
465            current_map_proj to remember the current map projection so that
466            when the projection changes we know what the previous projection
467            was.
468            (MapCanvas.SetMap): Unsubscribe and subscribe to
469            LAYER_PROJECTION_CHANGED events.
470            (MapCanvas.projection_changed): Split into two methods that respond
471            to map and layer projection changes.
472            (MapCanvas.map_projection_changed): New. Takes the current view and
473            projects it using the new projection. This does not cause the
474            map to be redrawn at full extent.
475            (MapCanvas.layer_projection_changed): New. Cause a redraw which
476            will draw each layer in its new projection.
477            
478            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
479            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
480            under Windows.
481            
482            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
483            to twice sizeof(void*) because there are two digits for each
484            hex byte.
485    
486    2003-06-16  Bernhard Herzog  <[email protected]>
487    
488            Update to the layer interface: Direct access to the table,
489            shapetable, shapefile and filename attributes is now actively
490            deprecated by issuing deprecation warnings for all places where
491            this happens.
492    
493            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
494            to the instance variables table, shapetable, shapefile and
495            filename via __getattr__ so that we can issue a deprecation
496            warning.
497            (Layer.SetShapeStore): Don't set the deprecated instance variables
498            any more
499            (Layer.SetShapeStore): Don't use deprecated layer instance
500            variables
501            (Layer.Destroy): No need to explicitly remove the instance
502            variables any more
503            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
504            instance variables
505    
506            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
507            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
508            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
509            use deprecated layer instance variables
510    
511            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
512            deprecated layer instance variables
513    
514            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
515            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
516            instance variables
517    
518            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
519            deprecated layer instance variables
520    
521            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
522            deprecated layer instance variables
523    
524            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
525            deprecated layer instance variables
526    
527            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
528            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
529            variables
530    
531            * test/runtests.py (main): Turn Thuban's deprecation warnings into
532            errors so that they're cought by the tests
533    
534            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
535            layer instance variables
536    
537    2003-06-16  Jonathan Coles   <[email protected]>
538    
539            Fix a problem under Windows whereby if the user double-clicks on a
540            layer in the legend that tree item will expand or collapse as well
541            as open the layer properties dialog. The state of the tree item
542            should not be affected.
543    
544            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
545            preventExpandCollapse and subscribe to expanding and collapsing
546            events.
547            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
548            collapsing events and will veto the event if it has been triggered
549            by the user double clicking on a layer.
550            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
551            that an expanding/collapsing event should be vetoed.
552    
553    2003-06-13  Bernhard Herzog  <[email protected]>
554    
555            * Thuban/UI/classifier.py (Classifier.OnClose)
556            (Classifier.map_layers_removed)
557            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
558            in OnClose and not in map_layers_removed or
559            layer_shapestore_replaced to make sure it always happens when the
560            dialog is closed
561    
562    2003-06-13  Jonathan Coles   <[email protected]>
563    
564            This puts back a fix for Windows where a panel is needed so that
565            the background of the table view appears correctly.
566    
567            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
568            object that can be used by derived classes to place any
569            controls (including the grid) onto.
570            (QueryTableFrame.__init__): Use the panel as the parent window
571            for all the controls. Reparent the grid so that the panel is
572            the parent. Call UpdateStatusText() to correctly initialize
573            the status bar.
574    
575    2003-06-13  Jonathan Coles   <[email protected]>
576    
577            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
578            from wxFrame (as opposed to wxDialog like the other classes)
579            but otherwise behaves like the other classes. This is needed
580            for the TableView which isn't really a dialog and needs to
581            have a status bar and control buttons.
582    
583            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
584            instance variable to keep track of how many rows are selected.
585            Subscribe once to the the events we are interested in.
586            (ThubanGrid.OnRangeSelect): Only handle event if event handling
587            hasn't been turned off.
588            (ThubanGrid.OnSelectCell): Only handle event if event handling
589            hasn't been turned off.
590            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
591            as an event listener (which changes the event handler stack)
592            simply set an instance variable to False. This is checked in
593            the event handlers.
594            (ThubanGrid.GetNumberSelected): Return the number of currently
595            selected rows.
596            (TableFrame): Inherit from ThubanFrame so we can have a
597            status bar and control buttons.
598            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
599            Explicitly set which items are selected in the operator choice and
600            action choice so there is always a valid selection. Fixes RTbug #1941.
601            Subscribe to grid cell selection events so we can update the
602            status bar.
603            (QueryTableFrame.UpdateStatusText): Update the status bar with
604            how many rows are in the grid, how many columns, and how many
605            rows are selected.
606            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
607            Call UpdateStatusText when cells are (de)selected.
608            (QueryTableFrame.OnQuery): Use the string value in the value
609            combo if either the selected item index is 0 or if the string
610            cannot be found in the predefined list (this happens if the
611            user changes the text). Fixes RTbug #1940.
612            Only turn off the grid event listeners if there a query comes
613            back with a none empty list of ids. in the case that the list
614            is empty this causes a grid.ClearSelection() call to actually
615            clear the grid selection which causes the selected items in
616            the map to be deselected. Fixes RTbug #1939.
617    
618            * test/test_save.py (XMLWriterTest.Encode): Check return values.
619            Fixes RTbug #1851.
620    
621    2003-06-13  Bernhard Herzog  <[email protected]>
622    
623            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
624            self.selected_shape with the current selection to make sure the
625            contents of the dialog are up to date when it's shown for the
626            first time.
627            The dialog used to work without this by luck. The recent fix to
628            the connector module 'broke' a 'feature' the identify view was
629            relying on, i.e that subscribing to a message in response to
630            receiving a message of that type would mean that the new
631            subscriber would also be called for the same message.
632            
633    2003-06-12  Jonathan Coles   <[email protected]>
634    
635            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
636            the image is rendered. Fixes RTbug #1937.
637    
638  2003-06-12  Jonathan Coles   <[email protected]>  2003-06-12  Jonathan Coles   <[email protected]>
639    
640          * Thuban/Lib/fileutil.py: As is done under Windows, create the          * Thuban/Lib/fileutil.py: As is done under Windows, create the
641          user directory if it doesn't exist on a posix system.          user directory if it doesn't exist on a posix system.
642            Fixes RTbug #1815.
643    
644          * Thuban/Model/resource.py (get_user_proj_files): Moved the          * Thuban/Model/resource.py (get_user_proj_files): Moved the
645          called to get_application_dir here, so that the directory          called to get_application_dir here, so that the directory

Legend:
Removed from v.1191  
changed lines
  Added in v.1320

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26