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

Legend:
Removed from v.71  
changed lines
  Added in v.1055

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26