/[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 48 by bh, Mon Sep 10 12:52:58 2001 UTC revision 721 by jonathan, Thu Apr 24 10:11:55 2003 UTC
# Line 1  Line 1 
1    2003-04-24  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/load.py (XMLReader.read): Should have been checking
4            if the file_or_filename object had the 'read' attribute.
5    
6    2003-04-23  Jonathan Coles   <[email protected]>
7    
8            * Thuban/Model/resource.py: Fixes RTbug #1813.
9            (ReadProjFile): Add documentation about which exceptions are raised.
10            Always pass the exceptions up to the caller.
11            (GetProjFiles): If the directory can't be read return an empty list.
12            If any of the proj files can't be read skip that file and go
13            on to the next one.
14    
15            * test/test_proj.py: Added test cases to handle nonexistent files,
16            unreadable files, and files that don't parse correctly.
17    
18    2003-04-23  Jonathan Coles   <[email protected]>
19    
20            Projection dialog. Allows the user to select from a list
21            of projection templates and optionally edit them and save new ones.
22    
23            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
24            (ProjPanel): Base class for projection specific panels.
25            (TMPanel): Projection panel for Transverse Mercartor.
26            (UTMPanel): Projection panel for Universal Transverse Mercartor.
27            (LCCPanel): Projection panel for Lambert Conic Conformal.
28            (GeoPanel): Projetion panel for Geographic Projection.
29    
30    2003-04-23  Jonathan Coles   <[email protected]>
31    
32            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
33            promote symmetry. There now exists XMLReader and XMLWriter.
34            (XMLReader.read): New. Call to read the given file descriptor or
35            filename.
36            (XMLReader.close): New. Make sure the file is closed.
37            (XMLReader.GetFileName): New. Return just the file name that is being
38            read from.
39            (XMLReader.GetDirectory): New. Return just the directory of the file
40            that is being read.
41            (XMLReader.AddDispatchers): New. Take a dictionary which contains
42            the names of functions to call as the XML tree is parsed.
43            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
44            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
45            (SessionLoader): Removed class variables start_dispatcher and
46            end_dispatcher since this functionality is now part of a class
47            instance. Fixes RTbug #1808.
48            (SessionLoader.__init__): Add dispatcher functions.
49            (load_xmlfile): Code was moved into the XMLReader.read().
50            (load_session): Use modified SessionLoader.
51    
52            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
53            map's projection.
54    
55            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
56            GetAllParameters.
57            (Projection.GetParameter): Returns the value for the given parameter.
58    
59            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
60            (GetProjFiles): Renamed from GetProjections. Now returns a list
61            of ProjFile objects.
62            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
63            a list of ProjFile objects whose files are not user defined.
64            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
65            list of ProjFile objects whose files are user defined.
66            (ProjFileReader): Extend new XMLReader.
67    
68            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
69            promote symmetry.
70    
71            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
72            control instead of a wxComboBox. wxChoice controls do not generate
73            events as the uses highlights possible choices which fixes problems
74            with resizing the dialog when the use selects an option.
75    
76            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
77            control instead of a wxComboBox.
78    
79            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
80            dialog.
81    
82            * test/test_proj.py (TestProjection.test): New tests for GetParameter
83            method.
84    
85    2003-04-22  Bernhard Herzog  <[email protected]>
86    
87            * Thuban/UI/mainwindow.py: Remove some unused imports and global
88            constants
89    
90            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
91            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
92    
93    2003-04-17  Bernhard Herzog  <[email protected]>
94    
95            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
96            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
97            anymore.
98            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
99            (Layer.ShapeType, Layer.Shape): No need to call
100            self.open_shapefile since it's always called in __init__
101    
102            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
103            In wxPython 2.4 there's no need to extend MainLoop anymore since
104            wxPython itself makes sure OnExit is called.
105    
106    2003-04-16  Jonathan Coles   <[email protected]>
107    
108            Initial putback of projection management code. Includes new
109            classes to read and write projection files. The current load
110            and save classes were abstracted a bit so they could be reused.
111            The Projection class was extended to provide new methods and
112            have a name.
113    
114            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
115            general XML reading methods that were part of ProcessSession.
116    
117            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
118            name.
119            (ProjFile): New. Represents a file that contains projection
120            information.
121    
122            * Thuban/Model/resource.py: New. Contains general utilities
123            for read and writing projection files.
124    
125            * Thuban/Model/save.py (XMLSaver): New. Contains all the
126            general XML writing methods that were part of SessionSaver.
127            (SessionSaver): Renamed from Saver.
128    
129            * test/test_proj.py: New test cases for the projection
130            file read and write functions.
131    
132    2003-04-16  Jonathan Coles   <[email protected]>
133    
134            * Thuban/Model/classification.py: Use repr() around values
135            in the ClassGroup*.__repr__() methods so it is clearer when
136            a value is a string and when it is a number.
137    
138            * test/test_load.py: Rework the classification test to test
139            that we can load old files.
140            (testLabels): Test a file where the groups have labels.
141    
142    2003-04-16  Bernhard Herzog  <[email protected]>
143    
144            Safer implementation of the performance enhancements of the
145            low-level renderer:
146            
147            * extensions/thuban/wxproj.cpp (extract_projection)
148            (extract_pointer): Rename extract_projection to extract_pointer
149            and redefine its purpose to return the pointer stored in a CObject
150            returned by the object's cobject method. Update all callers.
151            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
152            handling of these low-level parameters so that each s_draw_info
153            instance is handled as a CObject at python level that also
154            contains real references to the actual python objects which
155            contain the values in the struct. Add free_draw_info as the
156            destructor.
157            (draw_polygon_shape): Add the py_draw_info parameter which must a
158            cobject containing an s_draw_info pointer.
159    
160            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
161            method to instantiat the low-level render parameter
162            (MapRenderer.draw_shape_layer): Use the new method. Remove some
163            commented out code.
164            (MapRenderer.draw_polygon_shape): Make the first parameter not the
165            layer but the low-level render parameter
166            (ScreenRenderer.draw_shape_layer): Use the low-level render
167            parameter.
168    
169    2003-04-15  Jonathan Coles   <[email protected]>
170    
171            * Thuban/Model/classification.py: Implemented __repr__ for
172            the ClassGroup* classes to make debugging a bit easier.
173            (ClassGroup.SetLabel): Check that the string is an instance
174            of StringTypes not StringType. Accounts for Unicode strings.
175    
176            * Thuban/Model/color.py: Implemented __repr__ to make
177            debugging a bit easier.
178    
179            * Thuban/Model/save.py (Saver.write_classification): Need to
180            save the group label.
181    
182            * test/test_load.py (testClassification): New. Loads the
183            iceland_sample_test.thuban file and checks if it was loaded
184            correctly.
185    
186    2003-04-15  Jonathan Coles   <[email protected]>
187    
188            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
189            to improve rendering performance by initializing the variables
190            that are not change each time draw_polygon_shape() is called.
191            The values are stored in a global struct draw_info.
192            (draw_polygon_shape): Removed initialization code that is
193            now in draw_polygon_init().
194    
195            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
196            drawing initialization call to draw_polygon_init()
197            (MapRenderer.draw_polygon_shape): Use new signature of
198            draw_polygon_shape.
199    
200            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
201            weirdness by setting the range to (1, maxint).
202    
203            * Thuban/Model/classification.py (ClassGroupProperties): Make
204            instance variables private and optimize comparison operator
205            by first checking if the color references are the same.
206            (ClassGroupSingleton): Make instance variables private.
207            (ClassGroupRange): Make instance variables private.
208    
209            * HOWTO-Release: Filled in missing steps for releasing packages.
210    
211    2003-04-15  Bernhard Herzog  <[email protected]>
212    
213            First stab at internationalized messages:
214    
215            * Thuban/__init__.py (_): Implement the translation function for
216            real using the python gettext module.
217    
218            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
219            translate empty strings.
220    
221            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
222            Add a missing space to a warning message
223    
224            * po/README: New. Notes about the management of the translation
225            files.
226    
227            * po/Makefile: New. Makefile to help manage the translation files.
228    
229            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
230    
231            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
232            translations and support files in po/
233    
234            * setup.py (data_files): Add the *.mo files to the data_files too
235    
236            * README: Add note about the translations when building from CVS
237    
238    2003-04-14  Jonathan Coles   <[email protected]>
239    
240            * Thuban/UI/dock.py: Fixes some window resizing problems most
241            noticable under windows. Always assume the button bitmaps will
242            be there. Code clean up.
243            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
244            images for the dock/undock button to the same images.
245            Work around for RTbug #1801.
246    
247            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
248            be allowed to grow within the sizer. Fixes a bug under Windows
249            where the toolbar wasn't being drawn.
250    
251    2003-04-14  Frank Koormann   <[email protected]>
252    
253            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
254            Updated design to try to make the button functionality more
255            transparent.
256    
257    2003-04-14  Jonathan Coles   <[email protected]>
258    
259            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
260            finalize the intialization of the panel.
261    
262            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
263            creation of the panel. Should be the last thing called in the
264            initializer of a subclass.
265    
266            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
267            set the current selections in the combo boxes. This is needed
268            under Windows.
269    
270            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
271            level panel to the dialog so that the background colors are
272            consistent under Windows.
273    
274    2003-04-11  Jonathan Coles   <[email protected]>
275    
276            * Thuban/UI/classgen.py: Change color ramps to start at white
277            not black.
278    
279            * Thuban/UI/legend.py: Enable/disable the legend buttons when
280            the legend changes. Fixes RTbug #1793.
281    
282            * test/test_classification.py: Added test for copying of
283            classifications.
284    
285    2003-04-11  Jonathan Coles   <[email protected]>
286    
287            * Thuban/UI/resource.py: New. Centralize the loading of resources
288            such as bitmaps.
289    
290            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
291            added images to the move buttons, added 'reverse' button.
292            (CustomRampPanel.__init__): Added images to the move buttons.
293            (GreyRamp): New. Generates a ramp from white to black.
294            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
295    
296            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
297            ID_PROPERTY_*.
298            (Classifier.__init__): Minor changes to the layout.
299            (Classifier._OnTitleChanged): Listen for when the user edits the
300            title and update the dialog's title and the layer's title.
301    
302            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
303    
304            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
305            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
306            if the layer's title changes.
307    
308            * Thuban/UI/mainwindow.py: Added new menu item and associated code
309            to open a dialog to rename the map.
310            (MainWindow): Use new resource class to import bitmaps.
311    
312    2003-04-11  Jonathan Coles   <[email protected]>
313    
314            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
315            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
316            Resources/Bitmaps/group_use_none.xpm,
317            Resources/Bitmaps/group_use_not.xpm,
318            Resources/Bitmaps/hide_layer.xpm,
319            Resources/Bitmaps/layer_properties.xpm,
320            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
321            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
322            New.
323    
324    2003-04-10  Jonathan Coles   <[email protected]>
325    
326            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
327            Should pass group to ClassGroup constructor.
328    
329    2003-04-10  Jonathan Coles   <[email protected]>
330    
331            * Thuban/Model/classification.py: (ClassGroup): Move all the common
332            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
333            here. Implement SetVisible(), IsVisible().
334            (ClassGroup.__init__): Add group parameter which acts as a copy
335            constructor.
336    
337            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
338            "Visible" check boxes.
339            (Classifier): Rename the buttons and refactor the code to match
340            the new labels.
341    
342            * Thuban/UI/legend.py: Classify button is now called "Properties".
343            Refactored the code to change variable names.
344            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
345    
346            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
347            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
348            renamed to MainWindow.LayerEditProperties.
349            (MainWindow.ToggleLegend): Don't include map name in legend title.
350            (MainWindow.SetMap): Added the map name to the window title.
351            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
352            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
353            Functionality is found in the layer properties dialog.
354    
355            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
356            draw visible groups.
357    
358    2003-04-09  Jonathan Coles   <[email protected]>
359    
360            * Thuban/UI/classgen.py: Modifications to allow simple
361            addition and selection of new color schemes.
362            (MonochromaticRamp): New. Generates a ramp between two colors.
363            (RedRamp): New. Generates a ramp of all red.
364            (GreenRamp): New. Generates a ramp of all green.
365            (BlueRamp): New. Generates a ramp of all blue.
366    
367    2003-04-09  Jonathan Coles   <[email protected]>
368    
369            * Thuban/Model/classification.py (Classification.__deepcopy__):
370            Need to copy over field and fieldType attributes.
371    
372            * Thuban/Model/table.py (Table.field_range): New. Retrive the
373            maximum and minimum values over the entire table for a given
374            field.
375            (Table.GetUniqueValues): New. Retrieve all the unique values
376            in the table for a given field.
377    
378            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
379            (GenUniquePanel): New. Controls to allow the user to select
380            which unique field values they would like in the classification.
381            (CustomRampPanel): Code that was in ClassGenDialog that allows
382            the user to select the properties for a custom ramp.
383            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
384    
385            * Thuban/UI/classifier.py: Removed a lot of debugging code.
386            (Classifier._SetClassification): Callback method so that the
387            class generator can set the classification in the grid.
388            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
389            editing of a group properties class into a wxWindows control.
390    
391            * Thuban/UI/dock.py: It was decided that if the user closes
392            a dockable window the window should simply hide itself. That
393            way if the user wants to show the dock again it appears in the
394            same place as it was when it was closed.
395            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
396            (DockableWindow._OnButtonClose): Hide the window instead of
397            destroying it.
398            (DockableWindow._OnClose): Hide the window instead of
399            destroying it.
400    
401            * Thuban/UI/legend.py (LegendTree): Use a private method to
402            consistently set the font and style of the text. Fixes RTbug #1786.
403    
404            * Thuban/UI/mainwindow.py: Import just the Classifier class.
405    
406    2003-04-07  Bernhard Herzog  <[email protected]>
407    
408            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
409            to the map module
410    
411    2003-04-07  Bernhard Herzog  <[email protected]>
412    
413            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
414            favor of ToggleSessionTree
415            (MainWindow.ToggleSessionTree): New method to toggle visibility of
416            the session tree.
417            (MainWindow.SessionTreeShown): New method to return whether the
418            session tree is currently shown.
419            (MainWindow.ToggleLegend): New method to toggle visibility of the
420            legend
421            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
422            LegendShown
423            (MainWindow.LegendShown): New method to return whether the legend
424            is currently shown.
425            (_method_command): Add checked parameter so we can define check
426            menu items
427            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
428            mainwindow methods.
429            (show_session_tree, show_legend commands): Removed.
430            (toggle_session_tree, toggle_legend commands): New commands to
431            toggle the visibility of the dialogs
432    
433    2003-04-07  Jonathan Coles   <[email protected]>
434    
435            * Thuban/UI/classgen.py: Fix Windows problem.
436    
437            * Thuban/UI/dock.py: Fix Windows problem.
438    
439            * Thuban/UI/mainwindow.py: Use False instead of false.
440            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
441    
442    2003-04-07  Jonathan Coles   <[email protected]>
443    
444            Since we now say that the order of the groups in a classification
445            matters, it makes sense to be able to manipulate that order. Most
446            of the changes to Thuban/Model/classification.py are to that end.
447    
448            * Thuban/Model/classification.py (Classification.AppendGroup,
449            Classification.InsertGroup, Classification.ReplaceGroup,
450            Classification.RemoveGroup, Classification.GetGroup): Do as the
451            names imply.
452            (Classification.FindGroup): This was called GetGroup, but GetGroup
453            takes an index, while FindGroup takes a value.
454            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
455            REFERENCE. Currently there is a cyclic reference between the layer
456            and its classification. If the classification doesn't need to know
457            its owning layer we can change this, since it may make sense to be
458            able to use the same classification with different layers.
459    
460            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
461    
462            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
463            not AddGroup()
464    
465            * Thuban/UI/classifier.py: Now that we can depend on the order in
466            a Classification and have methods to manipulate that order we don't
467            need to use our own data structures in the grid. We can simply make
468            the grid/table access the information they need from a copy of
469            the classification object.
470            (Classifier._OnCloseBtn): Event handler for when the user clicks
471            'Close'. This is needed so if the user applies changes and then
472            continues to change the table the user has the option of discarding
473            the most recent changes and keeping what they applied.
474    
475            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
476            into the same group.
477    
478            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
479            with a really old version of proj, PJ_VERSION won't even be defined.
480            If it isn't defined then just compile so that the function always
481            returns Py_False.
482    
483            * test/test_classification.py: Fix tests to use the renamed methods.
484            Still need to write tests for the new methods.
485    
486    2003-04-04  Jonathan Coles   <[email protected]>
487    
488            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
489            call to SetSelection out of the method and before the call
490            to __SelectField in __init__. This prevents a recursion of events
491            when _OnFieldSelect is triggered by the user.
492    
493    2003-04-04  Jonathan Coles   <[email protected]>
494    
495            * Thuban/Model/classification.py: Rename Color.None to
496            Color.Transparent.
497            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
498            Don't bother copying the color, since Colors are immutable.
499    
500            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
501            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
502            Thuban/UI/renderer.py, Thuban/UI/view.py:
503            Rename Color.None to Color.Transparent.
504        
505            * test/test_classification.py, test/test_load.py: Rename Color.None
506            to Color.Transparent.
507    
508    2003-04-04  Jonathan Coles   <[email protected]>
509    
510            * Thuban/Model/classification.py: Fix assert calls.
511            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
512            Copy the color parameter rather than hold onto a reference.
513    
514            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
515            the color object.
516            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
517            are sure there exists only one refernce to Color.None in the system.
518            This allows us to use 'is' rather than the comparision functions.
519            
520            * Thuban/Model/save.py: Fix assert calls.
521            
522            * Thuban/UI/classifier.py: Fix assert calls.
523            (ClassGrid._OnCellDClick): Call up to the classifier to open the
524            dialog to edit the groups properties.
525            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
526            correctly if a cell is resized.
527            (ClassTable.SetClassification): New. Changes the classification
528            that is in the table.
529            (ClassTable.__SetRow): Allow groups to be prepended.
530            (Classifier): New code for opening the EditProperties and
531            GenerateRanges dialogs.
532            (SelectPropertiesDialog.__GetColor): Only set the color in the
533            color dialog if the current color is not None.
534            
535            * Thuban/UI/dock.py: Fix assert calls.
536            
537            * Thuban/UI/legend.py: Fix assert calls.
538            
539            * Thuban/UI/renderer.py: Fix assert calls.
540            
541            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
542            classifications.
543            (GenRangePanel): Panel specific to range generation.
544            (GenSingletonPanel): Panel specific to singleton generation.
545            (ClassGenerator): Class responsible for actually generating
546            the classification from the data gathered in the dialog box.
547            (PropertyRamp): Generates properties whose values range from
548            a starting property to an ending property.
549    
550    2003-04-03  Bernhard Herzog  <[email protected]>
551    
552            * test/support.py (print_garbage_information): New function that
553            prints information about still connected messages and memory
554            leaks.
555            (run_suite): Removed.
556            (run_tests): New function for use as a replacement of
557            unittest.main in the test_* files. This one calls
558            print_garbage_information at the end.
559    
560            * test/runtests.py (main): Use support.print_garbage_information
561    
562            * test/test_layer.py: Use support.run_tests instead of
563            unittest.main so we get memory leak information
564            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
565            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
566            (TestLayerLegend.test_visibility): Call the layer's Destroy method
567            to fix a memory leak.
568    
569            * test/test_classification.py: Use support.run_tests instead of
570            unittest.main so we get memory leak information
571            (TestClassification.test_classification): Call the layer's Destroy
572            method to fix a memory leak.
573    
574    2003-04-02  Bernhard Herzog  <[email protected]>
575    
576            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
577            Handle the reference counts of the return value and errors in
578            PyArg_ParseTuple correctly.
579    
580            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
581            sure the filename is absolute to avoid problems when saving the
582            session again
583    
584            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
585    
586    2003-04-01  Jonathan Coles   <[email protected]>
587    
588            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
589            that there actually are points in the returned list of points
590            before trying to index into the list. The list may be empty if
591            the shape is a Null Shape.
592    
593    2003-04-01  Bernhard Herzog  <[email protected]>
594    
595            * test/test_map.py: Don't use from <module> import *
596    
597    2003-04-01  Jonathan Coles   <[email protected]>
598    
599            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
600            LAYER_LEGEND_CHANGED
601    
602            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
603            self.Destroy() to close the window after yesterday's changes.
604    
605            * test/test_map.py, test/test_session.py: Fix messages that
606            are sent from maps and layers.
607    
608    2003-03-31  Jonathan Coles   <[email protected]>
609    
610            * Thuban/UI/classifier.py: Commented out some debugging statements.
611            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
612            RTbug #1769.
613    
614            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
615            position (although position doesn't work yet under GTK).
616            (DockableWindow.Destroy): New. Called when the window must be
617            closed. Namely needed when the DockFrame closes and must close
618            its children.
619            (DockFrame): Listen for EVT_CLOSE and destroy all children.
620    
621            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
622            when then window is told to close.
623            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
624            comment in source for more info.
625    
626            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
627    
628            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
629            symmetry with other such methods.
630            (MainWindow.ShowLegend): Show the legend docked by default.
631    
632    2003-03-28  Jonathan Coles   <[email protected]>
633    
634            * Thuban/UI/classifier.py: Support for highlighting a specific
635            group within the grid when the classification dialog is opened.
636            Also contains a lot of debugging printouts which will later
637            be removed.
638    
639            * Thuban/UI/dock.py: Complete rework on the dock code so that
640            that it is fairly removed from the rest of the Thuban application.
641            It is easy to add new docks which the rest of the program having
642            to be aware of them.
643    
644            * Thuban/UI/legend.py: Modifications to support selecting a
645            specific group in the classification dialog. Changed how layers
646            are drawn when the layer is visible/invisible.
647    
648            * Thuban/UI/mainwindow.py: Removed legend specific code and
649            replaced it with calls to the new dock code.
650    
651            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
652            to check if scale > 0. Trying to track down a divide by zero.
653    
654    2003-03-26  Jonathan Coles   <[email protected]>
655    
656            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
657            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
658            now part of DockableWindow.
659            (LegendPanel.DoOnSelChanged): Select the current layer in the
660            map.
661            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
662            with the selected layer and/or group.
663    
664    2003-03-26  Jonathan Coles   <[email protected]>
665    
666            This putback contains the code for dockable windows. There is
667            no support in wxWindows as of this date for windows that can
668            attach themselves to other windows.
669    
670            The current model contains a DockableWindow which has a parent
671            window for when it is detached and a dock window that it puts
672            its contents in when it is docked. The contents of a DockableWindow
673            must be a DockPanel. DockPanel itself derives from wxPanel.
674    
675            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
676            message, not a LAYER_LEGEND_CHANGED message.
677    
678            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
679    
680            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
681            as one of the style properties for the fieldTypeText item to
682            be sure that its size is correct when the text changes.
683    
684            * Thuban/UI/dock.py: New. Classes for the DockPanel and
685            DockableWindow.
686    
687            * Thuban/UI/legend.py: Added some more buttons and made the
688            LegendPanel a DockPanel.
689    
690            * Thuban/UI/mainwindow.py: Added sash windows to the main window
691            and supporting functions for manipulating the sashes.
692            (MainWindow.ShowLegend): Create a DockableWindow with the
693            LegendPanel as the contents.
694    
695            * Thuban/UI/messages.py: Added DOCKABLE_* messages
696    
697            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
698            not LAYER_LEGEND_CHANGED, messages.
699    
700    2003-03-25  Jonathan Coles   <[email protected]>
701    
702            * setup.py: Added custom script bdist_rpm_build_script so that
703            when the rpm is built the path to wx-config is correct.
704    
705            * setup.cfg: Added line saying to use the custom build script
706    
707    2003-03-20  Jonathan Coles   <[email protected]>
708    
709            Initial implementation of the Legend.
710    
711            * Thuban/UI/legend.py: New. Creates a window that shows the map's
712            Legend information and allows the user to add/modify classifications
713            and how the layers are drawn on the map.
714    
715            * setup.py: New command 'build_docs' which currently uses
716            happydoc to generate html documentation for Thuban.
717    
718            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
719            Returns a string which is appropriately describes the group.
720    
721            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
722            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
723    
724            * Thuban/Model/map.py (Map): Rename messages and use new, more
725            specific, messages.
726    
727            * Thuban/Model/messages.py: New message to indicate that a layer's
728            data has changed (LAYER_CHANGED). New map messages to indicate
729            when layers have been added/removed/changed or if the stacking order
730            of the layers has changed.
731    
732            * Thuban/Model/session.py: Rename and use new messages.
733    
734            * Thuban/UI/classifier.py: Remember if any changes have actually
735            been applied so that if the dialog is cancelled without an application
736            of changes we don't have to set a new classification.
737            (ClassDataPreviewer): Pulled out the window specific code and put it
738            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
739            symbols on any DC.
740            
741            * Thuban/UI/mainwindow.py: New code to open the legend.
742    
743            * Thuban/UI/view.py: Use new message names.
744    
745    2003-03-19  Jonathan Coles   <[email protected]>
746    
747            * Thuban/UI/main.py (verify_versions): New. Checks the versions
748            of Python, wxPython, and some other libraries.
749    
750            * extensions/thuban/wxproj.cpp (check_version): Checks the given
751            version against what wxproj was compiled with.
752            (check_version_gtk): If wxproj was compiled with gtk then check
753            the given version against the version of the gtk library
754            currently being used.
755    
756    2003-03-14  Bernhard Herzog  <[email protected]>
757    
758            * test/test_command.py: Run the tests when the module is run as a
759            script
760    
761    2003-03-14  Bernhard Herzog  <[email protected]>
762    
763            Implement selection of multiple selected shapes in the same layer:
764    
765            - Introduce a new class to hold the selection. This basically
766              replaces the interactor which was nothing more than the
767              selection anyway. A major difference is of course that the new
768              selection class supports multiple selected shapes in one layer
769            
770            - Move the object that represents the selection from the
771              application to the canvas. The canvas is a better place than the
772              application because the selection represents which shapes and
773              layer of the map displayed by the canvas are selected and
774              affects how the map is drawn.
775    
776            - Make the selection and its messages publicly available through
777              the mainwindow.
778    
779            - The non-modal dialogs do not get a reference to the interactor
780              anymore as they can simply refer to their parent, the
781              mainwindow, for the what the interactor had to offer.
782    
783            * Thuban/UI/selection.py: New module with a class to represent the
784            selection.
785    
786            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
787            these unused messages
788    
789            * Thuban/UI/application.py (ThubanApplication.OnInit)
790            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
791            interactor is gone now.
792            (ThubanApplication.CreateMainWindow): There is no interactor
793            anymore so we pass None as the interactor argument for now for
794            compatibility.
795    
796            * Thuban/UI/view.py (MapCanvas.delegated_messages)
797            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
798            Unsubscribe, delegate messages according to the delegated_messages
799            class variable.
800            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
801            attributes from instance variables as described with the
802            delegated_methods class variable.
803            (MapCanvas.__init__): New instance variable selection holding the
804            current selection
805            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
806            pass them on to the renderer
807            (MapCanvas.SetMap): Clear the selection when a different map is
808            selected.
809            (MapCanvas.shape_selected): Simple force a complete redraw. The
810            selection class now takes care of only issueing SHAPES_SELECTED
811            messages when the set of selected shapes actually does change.
812            (MapCanvas.SelectShapeAt): The selection is now managed in
813            self.selection
814    
815            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
816            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
817            Unsubscribe, delegate messages according to the delegated_messages
818            class variable.
819            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
820            attributes from instance variables as described with the
821            delegated_methods class variable.
822            (MainWindow.__init__): The interactor as ivar is gone. The
823            parameter is still there for compatibility. The selection messages
824            now come from the canvas.
825            (MainWindow.current_layer, MainWindow.has_selected_layer):
826            Delegate to the the canvas.
827            (MainWindow.LayerShowTable, MainWindow.Classify)
828            (MainWindow.identify_view_on_demand): The dialogs don't need the
829            interactor parameter anymore.
830    
831            * Thuban/UI/tableview.py (TableFrame.__init__)
832            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
833            (LayerTableFrame.row_selected): The interactor is gone. It's job
834            from the dialog's point of view is now done by the mainwindow,
835            i.e. the parent. Subscribe to SHAPES_SELECTED instead
836            of SELECTED_SHAPE
837            
838            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
839            is gone. It's job from the dialog's point of view is now done by
840            the mainwindow, i.e. the parent.
841            
842            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
843            gone. It's job from the dialog's point of view is now done by the
844            mainwindow, i.e. the parent.
845    
846            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
847            gone. It's job from the dialog's point of view is now done by the
848            mainwindow, i.e. the parent.
849            (SessionTreeCtrl.__init__): New parameter mainwindow which is
850            stored as self.mainwindow. The mainwindow is need so that the tree
851            can still subscribe to the selection messages.
852            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
853            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
854            selection is now accessible through the mainwindow. Subscribe to
855            SHAPES_SELECTED instead of SELECTED_SHAPE
856    
857            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
858            SHAPES_SELECTED message now.
859            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
860            so deal with multiple shapes
861            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
862            gone. It's job from the dialog's point of view is now done by the
863            mainwindow, i.e. the parent.
864    
865            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
866            parameter is now a list of shape ids.
867            (RecordTable.SetTable): The second parameter is now a list of
868            indices.
869    
870            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
871            selected_shape parameter and ivar to selected_shapes. It's now a
872            list of shape ids.
873            (MapRenderer.draw_label_layer): Deal with multiple selected
874            shapes. Rearrange the code a bit so that the setup and shape type
875            distinctions are only executed once.
876    
877            * test/test_selection.py: Test cases for the selection class
878    
879    2003-03-11  Jonathan Coles   <[email protected]>
880    
881            * Thuban/Model/load.py: Temporary fix so that the xml reader
882            doesn't cause Thuban to crash.
883    
884            * Thuban/Model/layer.py: Handle the cyclic references between
885            a layer and its classification better, and be sure to disconnect
886            the classification from the layer when the layer is destroyed
887            so that we don't maintain a cyclic reference that may not be
888            garbage collected.
889    
890            * Thuban/Model/classification.py: See comment for layer.py.
891    
892    2003-03-12  Jan-Oliver Wagner <[email protected]>
893    
894            * HOWTO-Release: New. Information on the steps for releasing
895            a new version of Thuban.
896    
897    2003-03-11  Jonathan Coles   <[email protected]>
898    
899            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
900            Use True instead of true.
901            (Classifier): Should have a single panel in which all the controls lie.
902    
903            * Thuban/UI/proj4dialog.py: Add normal border.
904    
905            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
906    
907            * Thuban/UI/mainwindow.py: Use True instead of true.
908    
909            * setup.py: Update some definitions to use wxWindows2.4 files
910    
911            * Data/iceland_sample_class.thuban: Fixed file so that the
912            field_type information is present.
913    
914    2003-03-10  Jonathan Coles   <[email protected]>
915    
916            * Thuban/UI/classifier.py (Classifier.__init__): Make the
917            field type label grow so that when the text changes the
918            size is updated correctly. This may be a wxWindows bug.
919    
920    2003-03-10  Jonathan Coles   <[email protected]>
921    
922            * Thuban/UI/application.py: Changed SESSION_CHANGED to
923            SESSION_REPLACED.
924    
925            * Thuban/UI/classifier.py: Wrap text with _().
926            (ClassGrid.CreateTable): Set dimensions and size hints here,
927            instead of in Reset, so we only set the size once.
928    
929            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
930    
931            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
932            Call Close() instead of Shutdown().
933    
934            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
935    
936            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
937            Go back to using OnClose() instead of Shutdown().
938    
939    2003-03-10  Jonathan Coles   <[email protected]>
940    
941            * Thuban/UI/classifier.py (Classifier): SelectField() needed
942            to know the old field index as well as the new one.
943    
944    2003-03-10  Jonathan Coles   <[email protected]>
945    
946            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
947            to correctly set the table information and call this from
948            __init__ and from _OnFieldSelect so that all the information
949            is up to date when the dialog opens and when a field is changed.
950    
951    2003-03-10  Jonathan Coles   <[email protected]>
952    
953            * Thuban/Model/classification.py (Classification): Don't use
954            layer's message function directly, use the ClassChanged() method
955            when then classification changes. SetField/SetFieldType/SetLayer
956            must keep the information about field name and field type in
957            sync when an owning layer is set or removed.
958    
959            * Thuban/Model/layer.py: Added ClassChanged() so that the
960            classification can tell the layer when its data has changed.
961            (Layer.SetClassification): Accepts None as an arguement to
962            remove the current classification and correctly handles
963            adding a new classification.
964    
965            * Thuban/Model/load.py: Comment out print statement
966    
967            * test/test_classification.py, test/test_save.py: New and
968            improved tests.
969    
970    2003-03-07  Jonathan Coles   <[email protected]>
971    
972            * Thuban/Model/classification.py: Implemented __copy__ and
973            __deepcopy__ for ClassGroup* and ClassGroupProperites so
974            they can easily be copied by the classifier dialog.
975            (ClassGroupProperites.__init__): The default line color should
976            have been Color.Black.
977    
978            * Thuban/UI/classifier.py: Setting and Getting table values now
979            uses a consistent set of functions.
980            (Classifier): Now non-modal. Has field type label which changes
981            as the field changes. Keep track of buttons in a list so that
982            we can enable/disable the buttons when the None field is selected.
983            (SelectPropertiesDialog): Add buttons to make the colors transparent.
984    
985            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
986            does what OnClose did, but can be called by the application to
987            close a window. Needed when a session changes, and we have to
988            close the classifier windows.
989    
990            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
991            Shuts down open dialogs. Used when a new session is created
992            or a session is opened.
993            (MainWindow.SaveSession): Should only call application.SaveSession()
994            if we don't call SaveSessionAs first.
995            (MainWindow.Classify): Allow different classifier dialogs for
996            different layers.
997    
998            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
999            the parent class handle it. Add Shutdown() to unsubscibe from
1000            event notification and call the parent Shutdown(). This was
1001            necessary so the application can close the tree window.
1002    
1003    2003-03-06  Jonathan Coles   <[email protected]>
1004    
1005            * Thuban/Model/classification.py: Minor documentation changes,
1006            Addition of __eq__ and __ne__ methods.
1007            (Classification.SetLayer): prevent recursion between this method
1008            and Layer.SetClassification().
1009    
1010            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
1011    
1012            * Thuban/Model/layer.py (SetClassification): prevent recursion
1013            between this method and Classification.SetLayer().
1014    
1015            * test/test_classification.py, test/test_load.py,
1016            test/test_session.py: Fixed and added tests for the classification
1017            classes.
1018    
1019    2003-03-06  Bernhard Herzog  <[email protected]>
1020    
1021            * Thuban/UI/classifier.py (ClassGrid.__init__)
1022            (ClassGrid.CreateTable): Move the SetSelectionMode call to
1023            CreateTable because otherwise it triggers an assertion in
1024            wxPython/wxGTK 2.4.
1025    
1026    2003-03-05  Jonathan Coles   <[email protected]>
1027    
1028            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
1029    
1030            * Thuban/Model/load.py: import FIELDTYPE constants from table.
1031    
1032            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
1033    
1034            * Thuban/Model/table.py: Put FIELDTYPE constants back.
1035    
1036    2003-03-05  Jonathan Coles   <[email protected]>
1037    
1038            * Thuban/UI/classifier.py: Added class documentation.
1039            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
1040            Store just the groups in the table and generate the other
1041            column information when it is requested. Add "None" field
1042            to pull-down to select no classification.
1043    
1044            * Thuban/common.py: Moved FIELDTYPE constants from table.py
1045            (Str2Num): Only catch ValueError exceptions.
1046    
1047            * Thuban/Model/classification.py: Class documentation. Renaming
1048            of methods with Stroke to Line. Groups are stored in a single
1049            list with the default as the first element. Groups are searched
1050            in the order they appear in the list.
1051    
1052            * Thuban/Model/color.py: Documentation.
1053    
1054            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
1055            the kind of data represented by a field.
1056    
1057            * Thuban/Model/load.py (ProcessSession): Use proper string
1058            conversion function; fixes RTbug #1713.
1059    
1060            * Thuban/Model/save.py (Saver): Store field type information.
1061    
1062            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
1063            (Table): Add field_info_by_name() to retrieve field information
1064            by specifying the field name, not the number.
1065    
1066            * Thuban/UI/mainwindow.py: Function name changes.
1067    
1068            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
1069            get the layer classification once. Don't try to classify
1070            values when the field is None: just use the default properties.
1071    
1072            * Thuban/UI/view.py: Function name changes.
1073    
1074            * Doc/thuban.dtd: Add field_type attribute to a classification.
1075    
1076    2003-03-04  Bernhard Herzog  <[email protected]>
1077    
1078            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
1079            the fill and stroke layer attributes optional with suitable
1080            default values. Add the stroke_width layer attribute. Use correct
1081            syntax for empty elements. Make the attribute list for labels
1082            refer to the label element.
1083    
1084    2003-03-04  Bernhard Herzog  <[email protected]>
1085    
1086            * setup.py (thuban_build_py.build): Add a comment about distutils in
1087            Python 2.3 containing some of the functionality we implement in
1088            setup.py ourselves.
1089    
1090            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
1091            before the selection mode. Doing it the other way round triggers
1092            an assertion in wxWindows.
1093    
1094            * Thuban/Model/save.py (escape): Fix typo in doc-string
1095    
1096            * Thuban/Model/classification.py: Remove unnecessary wxPython
1097            import
1098    
1099    2003-03-04  Jonathan Coles   <[email protected]>
1100    
1101            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
1102            Parameter 'value' should default to None.
1103    
1104            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
1105            the class attribute __classification is now private.
1106    
1107            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
1108            Classifier to ClassGrid. Added support for removing selected rows,
1109            which including code for keeping track of when cells are selected,
1110            and deselected.
1111            (ClassTable): Support for added/removing rows. Fixed a problem
1112            with __ParseInput whereby it would not allow strings (only numbers)
1113            to be entered.
1114            (Classifier): Added button and supporting code for removing
1115            selected rows.
1116    
1117    2003-02-27  Jonathan Coles   <[email protected]>
1118    
1119            * Thuban/common.py: Moved color conversion functions into
1120            Thuban/UI/common.py.
1121            (Str2Num): Now converts the float (not the string) to a long/int
1122            so that an exception isn't thrown.
1123    
1124            * Thuban/UI/common.py: Common functions used in several UI modules
1125    
1126            * Thuban/Model/classification.py: Changed the class hierarchy
1127            so that a Classification consists of Groups which return
1128            Properties when a value matches a Group.
1129    
1130            * Thuban/Model/layer.py: Fixed name resolution problem.
1131    
1132            * Thuban/Model/load.py: Use new Classification and Group functions.
1133    
1134            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
1135            failure.
1136            (Saver.write_classification): Use new Classification and Group
1137            functions.
1138    
1139            * Thuban/UI/classifier.py: Changes to use new Classification and Group
1140            functions. Fix to create a tuple with a single value instead of
1141            simply returning the value.
1142    
1143            * Thuban/UI/renderer.py: Use new Classification and Group functions.
1144            Use common.py functions.
1145    
1146            * Thuban/UI/tree.py: Use common.py functions.
1147            
1148            * test/test_classification.py: Use new Classification and Group
1149            classes.
1150    
1151    2003-02-24  Jonathan Coles   <[email protected]>
1152    
1153            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
1154            functions from Thuban color objects to wxWindow colour objects.
1155    
1156            * Thuban/Model/classification.py (Classification): Renamed
1157            GetProperties() to GetClassData(). Used the new iterator
1158            in TreeInfo().
1159            (ClassIterator): Iterator implementation to iterate over the
1160            ClassData objects in a classification object.
1161    
1162            * Thuban/Model/save.py (Saver.write_classificaton): Uses
1163            the new iterator to save the classification information.
1164    
1165            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
1166            for changing the stroke and fill colors and previewing the
1167            changes.
1168    
1169            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
1170            MainWindow.SaveSessionAs): Text string changes so the dialogs
1171            have more meaningful titles.
1172    
1173            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
1174            Classification method name from GetProperties to GetClassData.
1175    
1176            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
1177            instead of accessing now non-existent class variables.
1178    
1179    2003-02-24  Bernhard Herzog  <[email protected]>
1180    
1181            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
1182            unneeded Shape() call. Rendering is substantially faster without
1183            it and it avoids some problems with broken shape files.
1184    
1185    2003-02-20  Frank Koormann   <[email protected]>
1186    
1187            Force minimal size of identify and label dialogs. The autosizing
1188            looked too ugly.
1189    
1190            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
1191            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
1192            Set size of listctrl.
1193            * Thuban/UI/identifyview.py (IdentifyView.__init__):
1194            Set size of dialog.
1195    
1196    2003-02-19  Jonathan Coles   <[email protected]>
1197    
1198            * test/test_classification.py, test/test_layer.py,
1199            test/test_load.py, test/test_map.py, test/test_session.py:
1200            Updated the tests to use the new functions that are in the
1201            respective classes.
1202    
1203            * Thuban/Model/classification.py (Classification):
1204            Uses the new ClassData* classes. Modification messages are
1205            passed up to the parent layer (if it exists).
1206            (ClassData): New class to encapsulate the common data in each
1207            classification property.
1208            (ClassDataDefault): Represents the Default class. data.
1209            (ClassDataPoint): Represents a single class. data point
1210            (ClassDataRange): Represents a class. range
1211            (ClassDataMap): Represents a class. map (unused).
1212    
1213            * Thuban/Model/color.py: Added Color.None to represent something
1214            with no color. Color.Black represents the color black.
1215            (NoColor): Helper class derived from Color to represent something
1216            with no color.
1217    
1218            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
1219            stroke_width attributes. Made the 'classification' attribute private.
1220            New methods for setting/getting the classification.
1221    
1222            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
1223            to get the classifcation and use the new ClassData* classes to
1224            hold the classification data. Use Str2Num to convert numbers
1225            properly.
1226    
1227            * Thuban/Model/save.py (Saver): Use new Color and Classification
1228            methods
1229    
1230            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
1231            custom grid.
1232            (ClassTable): Support for editing Values and Labels and for
1233            changing what type (point or range) of data is stored in each
1234            property based on how the user enters the data.
1235            (Classifier): Support for saving the new classifications and
1236            launching the dialog to edit a property.
1237            (SelectPropertiesDialog): New class for editing the visual
1238            properties of a classification (stroke color, width, and fill color)
1239            (ClassPreviewer): Took the Draw method from ClassRenderer and
1240            made most of it into this new class. Intend to use this class in
1241            the SelectPropertiesDialog for previewing changes.
1242    
1243            * Thuban/UI/renderer.py: Use new Color and Classification methods.
1244    
1245            * Thuban/UI/tree.py: Formatting changes.
1246    
1247            * Doc/thuban.dtd: Add 'label' element
1248    
1249            * Thuban/common.py: New. Contains common routines used throughout
1250            the code.
1251            (Str2Num): Takes a string and converts it to the "best" type of
1252            number.
1253    
1254    2003-02-14  Bernhard Herzog  <[email protected]>
1255    
1256            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
1257            dragging flag is always set to 0 even when the tool implementation
1258            raises an exception
1259    
1260    2003-02-11  Bernhard Herzog  <[email protected]>
1261    
1262            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
1263            method to create a splash screen.
1264            (ThubanApplication.ShowMainWindow): New. Show the main window.
1265            Needed so the splash screen can display the mainwindow
1266            (ThubanApplication.OnInit): Call the
1267            new splash_screen method to determine whether the application
1268            should display a splash screen. If it displays a splash screen do
1269            not immediately show the main window.
1270    
1271    2003-02-11  Jonathan Coles  <[email protected]>
1272    
1273            * Thuban/Model/classification.py: Added import line to fix
1274            feature conflicts between running on python2.2 and python2.1.
1275    
1276            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
1277            onto the clinfo parameter, so removed the deepcopy().
1278    
1279    2003-02-10  Jonathan Coles  <[email protected]>
1280    
1281            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
1282            Added element_open variable to track opening and closing of tags
1283            so that tags that don't span more than one line are closed with
1284            /> instead of </tag_name>. Use the GetDefault*() methods of
1285            the Classification class.
1286    
1287            * Thuban/Model/classification.py (Classificaton): Added set and
1288            get methods for the default data. The class also takes a layer
1289            reference so that modification messages can be sent. Fixed the
1290            methods to use the new ClassData class.
1291            (ClassData): New class to encapsulate the classification data
1292    
1293            * Thuban/Model/layer.py (Layer): Remove the
1294            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
1295            SetDefault*() methods on the layer's classification object.
1296            (Layer.__init__): Use the new SetDefault*() methods in the
1297            Classification class.
1298    
1299            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
1300            object instead of a dictionary.
1301    
1302            * Thuban/UI/classifier.py (ClassRenderer): New class to
1303            draw the classifications in the dialog box's table.
1304            (Classifier): Modified to use the ClassRenderer class.
1305    
1306            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
1307            methods of the Classification class.
1308    
1309            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
1310            of the ClassData class.
1311    
1312            * test/test_classification.py, test/test_layer.py,
1313            test/test_map.py, test/test_session.py: Fix the tests to work
1314            with the above code changes.
1315    
1316    2003-02-03  Jonathan Coles  <[email protected]>
1317    
1318            * Thuban/Model/classification.py (Classification): Added getNull()
1319            to return the NullData reference
1320    
1321            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
1322            Layer.SetStrokeWidth): Modified these functions to change the
1323            null data in the classification rather than keep these values
1324            directly in the Layer class. Menu options to change these values
1325            work again.
1326    
1327    2003-01-28  Jonathan Coles  <[email protected]>
1328    
1329            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
1330            Fixed crashing problem on some systems. Dialog box shows
1331            classification data.
1332    
1333            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
1334            Colors in the tree view.
1335    
1336            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
1337            the tree info for classifications. Commented out unnecessary lines.
1338    
1339            * Thuban/Model/classification.py (Classification.TreeInfo): New
1340            function to add information about the classification into the
1341            tree view.
1342    
1343    2003-01-27  Jan-Oliver Wagner <[email protected]>
1344    
1345            * Thuban/__init__.py (_): New.
1346    
1347            * Thuban/Model/classification.py, Thuban/Model/extension.py,
1348            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
1349            Thuban/Model/session.py, Thuban/UI/application.py,
1350            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
1351            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
1352            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
1353            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
1354            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
1355    
1356    2003-01-27  Jonathan Coles  <[email protected]>
1357    
1358            * Thuban/Model/layer.py: Classification initialization calls.
1359    
1360            * Thuban/Model/classification.py: Created class to encapsulate
1361            a layer classification. Supports specific data points and
1362            ranges.
1363    
1364            * Thuban/Model/load.py: Added support for loading classification
1365            information.
1366    
1367            * Thuban/Model/save.py: Added support for saving classification
1368            information.
1369    
1370            * Thuban/UI/classifier.py: Initial class for a dialog box for
1371            specifying classification information.
1372    
1373            * Thuban/UI/mainwindows.py: Support for opening the classifier
1374            dialog.
1375    
1376            * Thuban/UI/renderer.py: Support for drawing a layer with the
1377            classification information.
1378    
1379            * Data/iceland_sample_class.thuban: iceland_sample with
1380            classification data.
1381    
1382            * test/test_classification: Tests for the Classification class.
1383    
1384    2002-12-09  Bernhard Herzog  <[email protected]>
1385    
1386            * test/test_command.py: New. Tests for the command classes.
1387    
1388            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
1389            (Command.IsTool): New method to distinguish between command
1390            switching tools and other commands.
1391    
1392            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
1393            the tool to avoid direct assignments to instance variables
1394            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
1395            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
1396            change the tool
1397    
1398            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
1399            active tool's command turns insensitive, disable the tool.
1400            (_tool_command): Use the new ToolCommand class
1401    
1402            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
1403            SelectTool method to change the tool
1404            (iconfile): Use the ToolCommand class
1405    
1406    2002-12-03  Bernhard Herzog  <[email protected]>
1407    
1408            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
1409            the case of selected items that are not children of Layers or Maps
1410            properly. Previously this bug would trigger an assertion in
1411            wxWindows.
1412    
1413    2002-11-06  Frank Koormann  <[email protected]>
1414    
1415            * Thuban/UI/mainwindow.py: Altered the order of tools in the
1416            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
1417            Full Extent).
1418    
1419    2002-10-23  Bernhard Herzog  <[email protected]>
1420    
1421            * setup.py (setup call): version now 0.1.3
1422    
1423            * MANIFEST.in: Add the files in test/
1424    
1425            * test/README: Add note about tests requiring the iceland data
1426    
1427            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
1428            copyright notice.
1429    
1430    2002-10-18  Bernhard Herzog  <[email protected]>
1431    
1432            * test/test_map.py
1433            (TestMapWithContents.test_projected_bounding_box): Use an explicit
1434            epsilon.
1435    
1436            * test/support.py (FloatComparisonMixin.assertFloatEqual)
1437            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
1438            message if the assertion fails and don't return the return value
1439            of self.assert_. In assertFloatSeqEqual the return meant that not
1440            all items of the sequence were compared.
1441    
1442    2002-09-20  Bernhard Herzog  <[email protected]>
1443    
1444            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
1445    
1446            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
1447    
1448            * test/test_map.py (TestMapWithContents.test_tree_info): Create
1449            the string with the bounding box on the fly because of platform
1450            differences in the way %g is handled.
1451    
1452            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
1453            DBFfile too because Thuban layers can't yet cope missing DBF
1454            files.
1455    
1456    2002-09-20  Bernhard Herzog  <[email protected]>
1457    
1458            * test/test_menu.py: Use initthuban instead of
1459            add_thuban_dir_to_path to initialize Thuban.
1460    
1461            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
1462            Mixin class for float comparisons
1463            (SubscriberMixin): New. Mixin class to test messages sent through
1464            the Connector class
1465    
1466            * test/README: Fix a typo and add the -v flag to the command for
1467            individual tests
1468    
1469            * test/test_session.py: New. Test cases for Thuban.Model.session
1470    
1471            * test/test_proj.py: New. Test cases for Thuban.Model.proj
1472    
1473            * test/test_map.py: New. Test cases for Thuban.Model.map
1474    
1475            * test/test_layer.py: New. Test cases for Thuban.Model.layer
1476    
1477            * test/test_label.py: New. Test cases for Thuban.Model.label
1478    
1479            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
1480    
1481            * test/test_color.py: New. Test cases for Thuban.Model.color
1482    
1483            * test/test_base.py: New. Test cases for Thuban.Model.base
1484    
1485    2002-09-13  Bernhard Herzog  <[email protected]>
1486    
1487            * Thuban/Model/session.py (Session.forwarded_channels): Forward
1488            the CHANGED channel too.
1489    
1490            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
1491            CHANGED channel too.
1492            (Map.__init__): Call the Modifiable constructor as well.
1493    
1494            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
1495            event if the modified flag changes.
1496            (Modifiable.changed): Tweak the doc-string.
1497    
1498            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
1499            (MainWindow.set_position_text): Put the code that puts the text
1500            with the mouse position into the status bar into the new method
1501            set_position_text so that it can overwritten in derived classes.
1502    
1503    2002-09-12  Bernhard Herzog  <[email protected]>
1504    
1505            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
1506            message box on the main window.
1507    
1508    2002-09-11  Bernhard Herzog  <[email protected]>
1509    
1510            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
1511            the 'E' because it's less likely to interfere with other menu
1512            entries.
1513            (MainWindow.build_menu): remove an incorrect comment.
1514    
1515    2002-09-10  Bernhard Herzog  <[email protected]>
1516    
1517            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
1518            (_tool_command): Add sensitive parameter
1519            (_has_visible_map): Sensitivity callback to tools and other
1520            commands that require a visible map. Use it in map_zoom_in_tool,
1521            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
1522            and map_full_extent
1523    
1524    2002-09-06  Bernhard Herzog  <[email protected]>
1525    
1526            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1527            VIEW_POSITION
1528    
1529    2002-09-04  Frank Koormann  <[email protected]>
1530    
1531            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1532    
1533    2002-09-02  Bernhard Herzog  <[email protected]>
1534    
1535            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
1536            wxWindows already and our implementation doesn't work correctly
1537            with wxGTK 2.3:
1538            (MapCanvas.__init__): Remove the instance variable
1539            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
1540            be drawin
1541            (MapCanvas.OnIdle): Removed.
1542    
1543            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
1544            a parameter to determine the size of the rectangle.
1545            (MapCanvas.find_shape_at): Create the box around the point on a
1546            layer by layer basis and make the size depend on the shape type.
1547            This solves a problem with the selection of point shapes at the
1548            border of the layer's bounding box
1549    
1550    2002-08-30  Bernhard Herzog  <[email protected]>
1551    
1552            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
1553            for the sensitivity  of remove layer.
1554            (_can_remove_layer): New. Sensitivity callback for remove layer
1555            (Command layer_remove): Use _can_remove_layer
1556    
1557            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
1558            determine whether a given layer can be deleted.
1559    
1560            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1561            (MapCanvas.do_redraw): Get rid of the unused update_region
1562            instance variable
1563    
1564            * Thuban/UI/view.py: Add/update some doc-strings.
1565    
1566            * test/: new subdirectory with a bunch of unit tests.
1567    
1568            * test/README, test/test_table.py, test/test_save.py,
1569            test/test_menu.py, test/test_load.py: Initial set of tests and
1570            brief instructions on how to run them
1571    
1572    2002-08-29  Bernhard Herzog  <[email protected]>
1573    
1574            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1575            arcs with multiple parts.
1576    
1577            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1578            Handle degenrate rectangles.
1579    
1580            * Thuban/Model/table.py: Make writing records work correctly:
1581            (Table.__init__): Keep track of whether the DBF is open for
1582            writing
1583            (Table.write_record): Open the DBF file for writing when necessary
1584    
1585    2002-08-27  Bernhard Herzog  <[email protected]>
1586    
1587            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
1588            dbf files only for reading by default. Use a new writable dbf
1589            object for writing.
1590    
1591    2002-08-26  Bernhard Herzog  <[email protected]>
1592    
1593            * Thuban/UI/mainwindow.py: Refactor the context creation:
1594            (MainWindow.Context): New method to return a context
1595            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
1596            new method
1597    
1598            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
1599            layer table specific code from TableGrid into LayerTableGrid
1600            (TableFrame, LayerTableFrame): Split the layer table specific code
1601            from TableFrame into LayerTableFrame
1602            (LayerTableGrid.select_shape): Remove a debug print
1603    
1604            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1605            LayerTableFrame
1606    
1607    2002-08-23  Bernhard Herzog  <[email protected]>
1608    
1609            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
1610            absolute filename.
1611    
1612    2002-08-22  Bernhard Herzog  <[email protected]>
1613    
1614            * Thuban/Model/table.py (Table.write_record): New method to write
1615            records.
1616            (Table.__init__): Open the DBF file for writing too.
1617    
1618            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1619            into the underlying table.
1620    
1621            * extensions/shapelib/shapefil.h (DBFCommit),
1622            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
1623            commit any changes made to the DBF file.
1624    
1625            * Thuban/UI/mainwindow.py (make_check_current_tool)
1626            (_tool_command): Put the code that generates the "checked"
1627            callback into a separate function so that we can reuse it
1628            elsewhere
1629    
1630            * Thuban/Model/save.py (Saver): New class to handle serializing a
1631            session into an XML file. The main reason to introduce a class is
1632            that applications built on Thuban can derive from it so that they
1633            can save additional information in a session file.
1634            (save_session): Delegate almost all the work to the Saver class.
1635            Rename the filename argument to file because it may be a file like
1636            object now.
1637    
1638            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
1639            code. Remove the little test code which would be executed when the
1640            module is run as a script which didn't work anymore since it can't
1641            import the other Thuban modules.
1642            (ProcessSession, load_session): Refactor the ProcessSession to
1643            have one method for each element start and end tag so that derived
1644            classes can easily override the processing of individual tags.
1645            Also, always parse with namespaces enabled because applications
1646            built on top of Thuban will likely use namespaces if they extend
1647            the session file format.
1648    
1649    2002-08-21  Bernhard Herzog  <[email protected]>
1650    
1651            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1652            because thubaninit_contents will do it for us.
1653    
1654    2002-08-16  Jan-Oliver Wagner <[email protected]>
1655    
1656            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1657            tree window already open
1658    
1659    2002-08-15  Bernhard Herzog  <[email protected]>
1660    
1661            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
1662            with self.
1663    
1664            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
1665            when we have actually captured it.
1666    
1667            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
1668            shapefile and destroy the table.
1669    
1670            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
1671    
1672    2002-08-14  Bernhard Herzog  <[email protected]>
1673    
1674            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
1675            instance variable columns
1676            (RecordTable.GetTypeName): row and col may be negative in some
1677            cases.
1678    
1679            * setup.py (InstallLocal.initialize_options)
1680            (InstallLocal.finalize_options, InstallLocal.user_options): New
1681            option create-init-file to build a thubaninit.py when running
1682            install_local
1683            (InstallLocal.run): Create the thubaninit.py module when requested
1684            (thubaninit_contents): Split the template into several parts and
1685            create a new function thubaninit_contents that creates the
1686            contents of a thubaninit module.
1687            (ThubanInstall.run): Use the new function to create the thubaninit
1688            module.
1689    
1690    2002-07-30  Bernhard Herzog  <[email protected]>
1691    
1692            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
1693            cleanup.
1694            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
1695    
1696            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
1697            direct base class' Destroy method.
1698    
1699            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
1700            layers.
1701            (Map.Destroy): Destroy the label_layer as well and call the
1702            inherited Desatroymethod first so that no more messages are
1703            issued.
1704            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
1705            message if the stacking order actually has changed. Add
1706            doc-strings.
1707            (Map.BoundingBox): Correct the doc-string.
1708            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
1709            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
1710    
1711            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
1712            all labels.
1713    
1714    2002-07-29  Bernhard Herzog  <[email protected]>
1715    
1716            * Thuban/Model/map.py (Map.subscribe_layer_channels)
1717            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
1718            to a layer's channels into separate methods.
1719            (Map.RemoveLayer, Map.AddLayer): Call the new methods
1720            (Map.Destroy): Unsubscribe from a layer's channels before
1721            destroying it.
1722    
1723            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
1724            selected_layer parameter to searched_layer which is the layer to
1725            search in.
1726            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
1727            search to that layer. Return the selected layer and shape.
1728    
1729            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
1730            typo
1731    
1732    2002-07-24  Bernhard Herzog  <[email protected]>
1733    
1734            * Thuban/UI/application.py (ThubanApplication.create_session):
1735            Extend the doc string.
1736            (ThubanApplication.subscribe_session)
1737            (ThubanApplication.unsubscribe_session): New methods to
1738            subscribe/unsubscribe to/from session channels.
1739            (ThubanApplication.SetSession): Call the new methods here.
1740            (ThubanApplication.maps_changed, ThubanApplication.set_map):
1741            Renamed set_map to maps_changed. Its now a subscriber for
1742            MAPS_CHANGED.
1743    
1744            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
1745            x-coordinate in case of simple clicks
1746    
1747            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
1748            don't pass it as a parameter
1749    
1750            * Thuban/Model/session.py (Session.RemoveMap): New
1751    
1752            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1753            window size into a parameter.
1754    
1755    2002-07-23  Bernhard Herzog  <[email protected]>
1756    
1757            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1758            just commands.
1759    
1760            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
1761            parameter list a bit to allow setting the window title and the
1762            initial message in the status bar. Update the callers.
1763    
1764            * Thuban/UI/application.py (ThubanApplication.OnInit)
1765            (ThubanApplication.CreateMainWindow): Put the mainwindow
1766            instantiation into a separate method so that it can be overridden
1767            by a subclass.
1768    
1769    2002-07-19  Bernhard Herzog  <[email protected]>
1770    
1771            * Thuban/Model/session.py: Issue a CHANGED message every time
1772            another changed message is issued to make it easier to get
1773            notified of changes.
1774            (Session): Update the doc string
1775            (Session.forward): Issue changed-events as CHANGED as well.
1776            (Session.changed): Overwrite the inherited version to issue
1777            CHANGED events as well.
1778    
1779            * Thuban/UI/tree.py: We can now simply subscribe to the session's
1780            CHANGED channel to be informed of changes.
1781            (SessionTreeCtrl.session_channels): Not needed any longer.
1782            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1783            Only have to (un)subscribe CHANGED
1784    
1785            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1786    
1787            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
1788            for the wxPython locale bug to __init__.py so that it's
1789            automatically executed by anybody using UI code from Thuban.
1790    
1791    2002-07-18  Bernhard Herzog  <[email protected]>
1792    
1793            * Thuban/UI/main.py (main): app no longer needs to be global
1794    
1795            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
1796            as parameter and store it in an instance variable
1797            (MainWindow.invoke_command, MainWindow.update_command_ui)
1798            (MainWindow.save_modified_session, MainWindow.NewSession)
1799            (MainWindow.OpenSession, MainWindow.SaveSession)
1800            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
1801            application object.
1802    
1803            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
1804            the main window with self.
1805    
1806            * Thuban/UI/context.py: New module with the context class
1807    
1808            * Thuban/UI/command.py (Command): Update doc string.
1809    
1810            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
1811            MainWindow.update_command_ui): Pass an instance of the context
1812            class to the command's methods
1813            (check_current_tool, call_method): Handle the new context
1814            implementation
1815    
1816            * Examples/simple_extensions/simple_tool.py (simple_tool,
1817            check_simple_tool): Handle the new context implementation
1818    
1819            * Examples/simple_extensions/simple_command.py (simple_command):
1820            Handle the new context implementation. Update the comments about
1821            the context.
1822    
1823            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
1824            doc-string
1825            (ThubanApplication.Session): New method to return the session
1826            object
1827    
1828            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
1829            interactor's selected_layer may not be a layer of the current
1830            session when the tree is updated while a new session is being set.
1831    
1832    2002-07-17  Bernhard Herzog  <[email protected]>
1833    
1834            * Thuban/UI/tree.py (color_string): Removed. No longer used.
1835            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
1836            update_tree into update_tree and add_items. The tree now uses a
1837            more generic way to display the contents of the tree.
1838            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
1839    
1840            * Thuban/Model/layer.py (Layer.TreeInfo),
1841            Thuban/Model/extension.py (Extension.TreeInfo),
1842            Thuban/Model/map.py (Map.TreeInfo),
1843            Thuban/Model/session.py (Session.TreeInfo):
1844            Add TreeInfo methods to implement the new tree view update scheme
1845    
1846    2002-07-16  Bernhard Herzog  <[email protected]>
1847    
1848            * Thuban/UI/application.py: Don't use "import from" for the
1849            MainWindow. It can't always be resolved.
1850            (ThubanApplication.OnInit): change reference to MainWindow
1851            accordingly.
1852    
1853            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
1854            completely
1855    
1856    2002-07-10  Bernhard Herzog  <[email protected]>
1857    
1858            * setup.py (create_init_module): New configurable variable whose
1859            default depends on the platform we're running on.
1860            (ThubanInstall.initialize_options): Initialize
1861            self.create_init_module from the global create_init_module
1862            (ThubanInstall.user_options): indictate that the options
1863            create-init-module and init-module-dir have arguments.
1864    
1865            * setup.py: In the setup call change the version number to include
1866            cvs.
1867    
1868            * MANIFEST.in: Add the files in Examples
1869    
1870    2002-07-09  Bernhard Herzog  <[email protected]>
1871    
1872            * setup.py: In the setup call, use the thuban homepage as the
1873            value of the url parameter.
1874    
1875            * Examples: New subdirectory for examples.
1876    
1877            * Examples/simple_extensions/simple_tool.xpm,
1878            Examples/simple_extensions/simple_tool.py,
1879            Examples/simple_extensions/simple_command.py,
1880            Examples/simple_extensions/README: Simple examples showing how to
1881            add new commands and tools.
1882    
1883            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
1884            bdist_rpm that we also have an install script.
1885            (bdist_inno): Add 2002 to the copyright notice.
1886    
1887            * setup.py: Create a file in python's site-packages directory to
1888            make installation of Thuban as a library easier.
1889            (ThubanInstall.user_options): Add two new options,
1890            create-init-module and init-module-dir
1891            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
1892            filenames for installation in the default directories.
1893            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
1894            the inherited methods to capture some filenames before they're
1895            transformed too much by distutils.
1896            (ThubanInstall.run): Create the init module if requested.
1897            (ThubanInstall.thuban_init_filename): New method to return the
1898            full name of the init module.
1899            (ThubanInstall.get_outputs): Append the filename of the init
1900            module.
1901    
1902    2002-07-08  Bernhard Herzog  <[email protected]>
1903    
1904            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
1905            handle the prefix properly which means that the default for the
1906            installation prefix should be /usr for RPMs and /usr/local when
1907            doing a normal source install.
1908            (bdist_rpm_install_script): Script to override the default install
1909            commands in the specfile generated by the bdist_rpm command.
1910            (thuban_bdist_rpm.user_options): Add a prefix option
1911            (thuban_bdist_rpm.initialize_options): Init the prefix option.
1912            Create the script files for the spec files as empty files here
1913            (thuban_bdist_rpm._make_spec_file): Override the inherited method
1914            to fill the script files with content.
1915    
1916            * Thuban/Model/save.py (relative_filename): Wrapper around
1917            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
1918            argument. save_session now automatically uses this version,
1919            solving a problem when saving to a relative filename.
1920    
1921            * setup.py: In the setup call, make sure that the library
1922            directories are under $prefix/lib not directly under $prefix.
1923    
1924    2002-06-20  Jan-Oliver Wagner <[email protected]>
1925    
1926            * Thuban/Model/extension.py: new module to handle extension objects.
1927            * Thuban/Model/messages.py: new messages for extensions.
1928            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
1929            Session.AddExtension): new for handling extensions.
1930            Also some other minor changes to round up extension handling.
1931            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
1932            of Extension titles and title and names of its objects.
1933    
1934    2002-05-29  Bernhard Herzog  <[email protected]>
1935    
1936            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
1937            the events for a command.
1938            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
1939            Call bind_command_events to bind the events. add_toolbar_command
1940            can now bind events too so that it's possible to have commands
1941            that are only available through the toolbar.
1942            (MainWindow.init_ids): New instance variable events_bound to keep
1943            track of for which commands events have been bound.
1944    
1945    2002-05-28  Bernhard Herzog  <[email protected]>
1946    
1947            * Thuban/UI/menu.py: New module to build and manage menus.
1948    
1949            * Thuban/UI/mainwindow.py: Remove some unused imports.
1950            (MainWindow.__init__, main_menu): move the definition of the main
1951            menu from __init__ to the Menu instance main_menu.
1952            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
1953            build the menu bar and sub-menus from a menu description.
1954    
1955            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
1956            startup file
1957            (ThubanApplication.read_startup_files): New method to run
1958            ~/.thuban/thubanstart.py
1959    
1960            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
1961            Move the toolbar definition to the Menu instance main_toolbar.
1962            (MainWindow.build_toolbar): New method to build the toolbar
1963            similar to the build_menu methods
1964    
1965    2002-05-23  Bernhard Herzog  <[email protected]>
1966    
1967            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1968            layer_outline_color. Fix it in the definition of the command too.
1969    
1970            * Thuban/UI/command.py (Command): Fix typo in doc string
1971    
1972    2002-05-22  Bernhard Herzog  <[email protected]>
1973    
1974            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1975            in the docstring
1976    
1977    2002-05-15  Bernhard Herzog  <[email protected]>
1978    
1979            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
1980            when the shapefile is empty.
1981            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
1982            now return None for empty shapefiles. Update doc-strings.
1983    
1984            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
1985            the layer's bbox being None.
1986    
1987            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
1988            layer's bbox being None.
1989    
1990            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
1991            necessary.
1992            (MapCanvas.__init__): New instance variables, last_selected_layer
1993            and last_selected_shape to determine how the selection has
1994            changed.
1995    
1996            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
1997            AutoSizeColumns because it will cause a traversal of the entire
1998            table which for large .dbf files will take a very long time.
1999    
2000    2002-05-14  Bernhard Herzog  <[email protected]>
2001    
2002            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
2003            maximum depth for the tree than shapelib does by default.
2004    
2005    2002-05-10  Bernhard Herzog  <[email protected]>
2006    
2007            * setup.py (py_modules): The shptree modules doesn't have a
2008            wrapper, so don't include it in the py_modules
2009    
2010    2002-05-08  Bernhard Herzog  <[email protected]>
2011    
2012            * extensions/shapelib/shptree.c (compare_ints): Make arguments
2013            const void * as in the qsort prototype
2014            (SHPTreeFindLikelyShapes): Remove some unused variables.
2015    
2016            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
2017            maintains to redraw the window during a drag.
2018            (MapCanvas.unprojected_rect_around_point): New method to determine
2019            a small region around a point for hit-testing.
2020            (MapCanvas.find_shape_at): Only test the shapes in a small region
2021            around the point.
2022    
2023            * setup.py: Increment the version to 0.1.2
2024    
2025            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
2026            debug print and set session to None after unsubscribing
2027    
2028    2002-05-07  Bernhard Herzog  <[email protected]>
2029    
2030            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
2031            the file to have a .thuban extension.
2032    
2033            * Thuban/UI/tree.py (session_channels): New class constant with
2034            all the session channels to subscribe to to update the tree
2035            (SessionTreeCtrl.session_changed): Remember the session so that we
2036            can unsubscribe properly. Use the new class constant to
2037            unsubscribe from the old session and subscribe to the new one.
2038            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
2039            subscriptions of the SessionTreeCtrl.
2040            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
2041    
2042            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
2043            Session Tree" command to the file menu.
2044    
2045            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
2046            as update_region to the renderer.
2047    
2048            * Thuban/UI/renderer.py
2049            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
2050            update box is now directly a tuple, not a wxRect anymore.
2051    
2052            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
2053            prints.
2054    
2055    2002-05-07  Bernhard Herzog  <[email protected]>
2056    
2057            * setup.py: Add the shptree extension module. See
2058            extensions/pyshapelib/ChangeLog for more details.
2059    
2060            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
2061            extensions/shapelib/dbfopen.c: Really update to the versions of
2062            shapelib 1.2.9. For some reason it wasn't really done on
2063            2002-04-11.
2064    
2065            * extensions/shapelib/shptree.c: Modified version of shptree.c of
2066            shapelib 1.2.9. The only real difference is the use of qsort
2067            instead of a bubble sort implementation
2068    
2069            * Thuban/Model/layer.py (Layer.__init__): New instance variable
2070            shapetree to hold the shapelib quadtree for the shapefile
2071            (Layer.open_shapefile): Create the quad tree.
2072            (Layer.ShapesInRegion): New method to return the ids of shapes in
2073            a given region using the quad tree.
2074    
2075            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
2076            comment
2077            (draw_polygon_shape): Accept both arcs and polygons.
2078            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
2079            the api.
2080    
2081            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
2082            return the shape ids to be rendered in a given layer.
2083            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
2084            ids. Use draw_polygon_shape to draw arc shapes as well.
2085            (ScreenRenderer.RenderMap): New parameter for the rectangle that
2086            has to be updated
2087            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
2088            calling it's ShapesInRegion method.
2089    
2090            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
2091            update_region for the update region.
2092            (MapCanvas.OnPaint): Maintain the update region
2093            (MapCanvas.do_redraw): Pass the bounding box of the update_region
2094            to the renderer when drawing the bitmap. Reset the update_region.
2095    
2096    2002-05-03  Bernhard Herzog  <[email protected]>
2097    
2098            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
2099            MainWindow.OpenSession): Change the file extension of the session
2100            files to .thuban
2101    
2102            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
2103            Move the map channels to be forwarded by the session into the
2104            class constant with forwarded_channels. Also add
2105            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
2106            forwarded_channels
2107    
2108            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
2109            typo and some rewording).
2110    
2111    2002-05-02  Bernhard Herzog  <[email protected]>
2112    
2113            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
2114            around to speed up most redraws:
2115            (MapCanvas.__init__): New instance variable bitmap which holds the
2116            bitmap
2117            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
2118            self.bitmap to draw.
2119            (MapCanvas.full_redraw): New method to force a full redraw
2120            including the bitmap
2121            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
2122            make sure the bitmap is redrawn.
2123            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
2124            MapCanvas.shape_selected): Call full_redraw instead of readraw to
2125            make sure the bitmap is redrawn.
2126            (MapCanvas.OnSize): New method to handle size events so that the
2127            bitmap can be redrawn.
2128    
2129    2002-04-29  Bernhard Herzog  <[email protected]>
2130    
2131            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
2132            canvas' VIEW_POSITION event
2133            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
2134            Update the text in the status-bar accordingly.
2135    
2136            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
2137            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
2138            called.
2139            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
2140            current_position
2141            (MapCanvas.set_current_position): New method to set
2142            current_position. Issue a VIEW_POSITION event
2143            (MapCanvas.CurrentPosition): New public method to return the value
2144            of current_position. Should be called when the VIEW_POSITION event
2145            is processed.
2146            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
2147            Update the position.
2148            (MapCanvas.OnLeaveWindow): Set the position to None.
2149    
2150            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
2151            position in the statusbar
2152    
2153    2002-04-26  Frank Koormann <[email protected]>
2154    
2155            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
2156    
2157    2002-04-24  Frank Koormann <[email protected]>
2158    
2159            * Resources/Bitmaps/identify.xpm: shadow added
2160    
2161            * Resources/Bitmaps/fullextent.xpm: new
2162    
2163    2002-04-22  Jan-Oliver Wagner <[email protected]>
2164    
2165            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
2166            box
2167    
2168    2002-04-21  Jan-Oliver Wagner <[email protected]>
2169    
2170            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
2171    
2172            * Thuban/UI/tree.py (update_tree): added added map extent
2173    
2174            * Thuban/UI/mainwindow.py (_method_command): extended by parameter
2175            icon; added map_full_extend as tool
2176    
2177    2002-04-19  Jan-Oliver Wagner <[email protected]>
2178    
2179            * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
2180            saving _new_ sessions
2181    
2182            * Thuban/Model/session.py (create_empty_session): new session
2183            don't have a filename (set to None)
2184    
2185            * Thuban/UI/tree.py (update_tree): added filename and modified flag
2186    
2187            * Thuban/Model/load.py (ProcessSession): convert projection
2188            parameters from unicode to regular string
2189    
2190            * Data/iceland_sample.session: Added UTM Zone 26 projection.
2191    
2192    2002-04-11  Bernhard Herzog  <[email protected]>
2193    
2194            * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
2195            extensions/shapelib/dbfopen.c: Update to the versions of shapelib
2196            1.2.9
2197    
2198            * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
2199            the pyshapelib directoy into the list of include dirs, so that
2200            pyshapelib_api.h can be found.
2201    
2202            * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
2203            holds the pyshapelib C-API
2204            (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
2205            pyshapelib_api to access the shapelib functions.
2206            (initwxproj): Import the c_api from the shapelib module and
2207            initialize pyshapelib_api.
2208    
2209    2002-04-04  Bernhard Herzog  <[email protected]>
2210    
2211            * setup.py (thuban_bdist_rpm.initialize_options): Use
2212            initialize_options to create the scripts for the rpm.
2213    
2214            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
2215    
2216    2002-04-03  Bernhard Herzog  <[email protected]>
2217    
2218            * setup.py: Increment version to 0.1.1
2219    
2220            * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
2221            Layer" and "Remove Layer" commands from the layer menu to the map
2222            menu
2223    
2224    2002-02-15  Bernhard Herzog  <[email protected]>
2225    
2226            * Thuban/Model/layer.py (Layer.Shape): list append only takes one
2227            argument (python <= 1.5.2 erroneously accepted multiuple
2228            arguments)
2229    
2230    2002-02-04  Bernhard Herzog  <[email protected]>
2231    
2232            * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
2233            RecordGrid in the identifyview.
2234            (IdentifyView.__init__): Use IdentifyGridCtrl instead of
2235            IdentifyListCtrl. The grid allows editing of the values.
2236    
2237            * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
2238            implementing a grid for a single row of a thuban table.
2239    
2240            * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
2241            layers by default. Easier to use than the previous default of only
2242            searching through the select layer which meant that if no layer
2243            was selected, you couldn't select a shape.
2244    
2245            * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
2246    
2247            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
2248            stroke_width attribute
2249    
2250            * Thuban/Model/save.py (save_session): Write the new stroke_width
2251            attribute
2252    
2253            * Thuban/Model/load.py (ProcessSession.startElement): Read the
2254            stroke_width attribute
2255    
2256            * Thuban/Model/layer.py (Layer.__init__): New parameter and
2257            instance variable stroke_width
2258            (Layer.SetStrokeWidth): Set the stroke_width.
2259    
2260    2002-02-01  Bernhard Herzog  <[email protected]>
2261    
2262            * extensions/thuban/wxproj.cpp (project_points): Fix two
2263            off-by-one errors in the last loop that joins the various parts
2264            together.
2265    
2266    2002-01-14  Bernhard Herzog  <[email protected]>
2267    
2268            * setup.py (data_dist.make_distribution): Fix some typos
2269    
2270    2001-09-18  Bernhard Herzog  <[email protected]>
2271    
2272            * README: Slight tweaking in preparation for the 0.1 release
2273    
2274            * setup.cfg: Add section for sdist to create both tgz and zip
2275            archives
2276    
2277            * setup.py: increase version number to 0.1
2278            (data_dist): New command class for data distribution
2279    
2280    2001-09-14  Bernhard Herzog  <[email protected]>
2281    
2282            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
2283            Handle the case of no layer (i.e. layer is None) properly.
2284    
2285            * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
2286            Set the initial selection of the combo boxes to reflect the
2287            projection we're starting with in a way that works on windows,
2288            too.
2289    
2290            * Thuban/Lib/connector.py (Connector.print_connections): Print the
2291            puiblisher's ids in hex to make it easier to compare them to the
2292            standard repr of python methods
2293    
2294            * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
2295            messages
2296    
2297    2001-09-13  Bernhard Herzog  <[email protected]>
2298    
2299            * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
2300            deselect the layer if no layer is selected
2301    
2302            * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
2303            idle time when there actually is something to draw. If there's
2304            nothing to draw simply clear the window
2305            (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
2306            (MapCanvas.SetMap): force a redraw in all cases because
2307            FitMapToWindow doesn't always do it.
2308            (MapCanvas.ZoomFactor): Add an optional parameter, center, to
2309            specify the point to move into the center of the window
2310            (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
2311            dragged, zoon in/out by a factor of 2
2312            (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
2313            index, i.e. reversed drawing order) so that objects appearing to
2314            be in from of others are selected first. This is probably mostly
2315            relevant for point shapes where the symbols used may overlap
2316    
2317            * Thuban/Model/session.py (create_empty_session): Unset the
2318            modified bit before returning it
2319    
2320            * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
2321            create_empty_session session to create the new, empty session.
2322    
2323            * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
2324            the tool bitmaps.
2325            (MainWindow.OnClose, MainWindow.save_modified_session): Separate
2326            the code that asks whether the session should be saved into the
2327            new method save_modified_session.
2328            (MainWindow.OpenSession, MainWindow.NewSession): Use the new
2329            method to save modified session here too.
2330    
2331    2001-09-11  Bernhard Herzog  <[email protected]>
2332    
2333            * setup.py (InnoIconItem): fix typo
2334    
2335            (thuban_bdist_inno.run):
2336            (bdist_inno.run): Move the decision not to create symlinks on
2337            non-nt platforms to thuban_bdist_inno and do it unconditinally
2338            since we never want to create the symlinks here
2339    
2340  2001-09-10  Bernhard Herzog  <[email protected]>  2001-09-10  Bernhard Herzog  <[email protected]>
2341    
2342            * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
2343            identify view immediately
2344    
2345            * Thuban/UI/controls.py: New file with two classes RecordListCtrl
2346            and SelectableRecordListCtrl that implement the code shared by the
2347            identify view and the label dialog
2348    
2349            * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
2350            new class RecordListCtrl
2351    
2352            * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
2353            return value of GetValue is None instead of using it as a boolean
2354            directly so that Zero numbers are handled properly.
2355            (LabelListCtrl): Derive from the new class
2356            SelectableRecordListCtrl
2357    
2358          * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
2359          (Proj4Dialog.dialogLayout): Make the window resizable and set the          (Proj4Dialog.dialogLayout): Make the window resizable and set the
2360          size of the text control explicitly to make the sizers work on          size of the text control explicitly to make the sizers work on
# Line 37  Line 2392 
2392          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
2393          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
2394    
2395          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2396          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
2397          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
2398          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
2399          the application's OnInit method          the application's OnInit method
# Line 54  Line 2409 
2409          layer to the tableview dialog.          layer to the tableview dialog.
2410    
2411          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
2412          (TableGrid):          (TableGrid):
2413          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
2414          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
2415          (TableFrame.__init__):          (TableFrame.__init__):
# Line 121  Line 2476 
2476  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
2477    
2478          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2479            
2480          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2481          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
2482            
2483          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2484          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
2485          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 171  Line 2526 
2526          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
2527          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
2528          link_file method          link_file method
2529            
2530          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2531          the window when the first layer is added to the map.          the window when the first layer is added to the map.
2532    
# Line 208  Line 2563 
2563          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
2564          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2565          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
2566            
2567          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
2568          installer          installer
2569    

Legend:
Removed from v.48  
changed lines
  Added in v.721

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26