/[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 354 by bh, Tue Dec 3 17:35:47 2002 UTC revision 716 by jonathan, Wed Apr 23 08:59:19 2003 UTC
# Line 1  Line 1 
1    2003-04-23  Jonathan Coles   <[email protected]>
2    
3            Projection dialog. Allows the user to select from a list
4            of projection templates and optionally edit them and save new ones.
5    
6            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
7            (ProjPanel): Base class for projection specific panels.
8            (TMPanel): Projection panel for Transverse Mercartor.
9            (UTMPanel): Projection panel for Universal Transverse Mercartor.
10            (LCCPanel): Projection panel for Lambert Conic Conformal.
11            (GeoPanel): Projetion panel for Geographic Projection.
12    
13    2003-04-23  Jonathan Coles   <[email protected]>
14    
15            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
16            promote symmetry. There now exists XMLReader and XMLWriter.
17            (XMLReader.read): New. Call to read the given file descriptor or
18            filename.
19            (XMLReader.close): New. Make sure the file is closed.
20            (XMLReader.GetFileName): New. Return just the file name that is being
21            read from.
22            (XMLReader.GetDirectory): New. Return just the directory of the file
23            that is being read.
24            (XMLReader.AddDispatchers): New. Take a dictionary which contains
25            the names of functions to call as the XML tree is parsed.
26            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
27            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
28            (SessionLoader): Removed class variables start_dispatcher and
29            end_dispatcher since this functionality is now part of a class
30            instance. Fixes RTbug #1808.
31            (SessionLoader.__init__): Add dispatcher functions.
32            (load_xmlfile): Code was moved into the XMLReader.read().
33            (load_session): Use modified SessionLoader.
34    
35            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
36            map's projection.
37    
38            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
39            GetAllParameters.
40            (Projection.GetParameter): Returns the value for the given parameter.
41    
42            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
43            (GetProjFiles): Renamed from GetProjections. Now returns a list
44            of ProjFile objects.
45            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
46            a list of ProjFile objects whose files are not user defined.
47            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
48            list of ProjFile objects whose files are user defined.
49            (ProjFileReader): Extend new XMLReader.
50    
51            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
52            promote symmetry.
53    
54            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
55            control instead of a wxComboBox. wxChoice controls do not generate
56            events as the uses highlights possible choices which fixes problems
57            with resizing the dialog when the use selects an option.
58    
59            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
60            control instead of a wxComboBox.
61    
62            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
63            dialog.
64    
65            * test/test_proj.py (TestProjection.test): New tests for GetParameter
66            method.
67    
68    2003-04-22  Bernhard Herzog  <[email protected]>
69    
70            * Thuban/UI/mainwindow.py: Remove some unused imports and global
71            constants
72    
73            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
74            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
75    
76    2003-04-17  Bernhard Herzog  <[email protected]>
77    
78            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
79            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
80            anymore.
81            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
82            (Layer.ShapeType, Layer.Shape): No need to call
83            self.open_shapefile since it's always called in __init__
84    
85            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
86            In wxPython 2.4 there's no need to extend MainLoop anymore since
87            wxPython itself makes sure OnExit is called.
88    
89    2003-04-16  Jonathan Coles   <[email protected]>
90    
91            Initial putback of projection management code. Includes new
92            classes to read and write projection files. The current load
93            and save classes were abstracted a bit so they could be reused.
94            The Projection class was extended to provide new methods and
95            have a name.
96    
97            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
98            general XML reading methods that were part of ProcessSession.
99    
100            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
101            name.
102            (ProjFile): New. Represents a file that contains projection
103            information.
104    
105            * Thuban/Model/resource.py: New. Contains general utilities
106            for read and writing projection files.
107    
108            * Thuban/Model/save.py (XMLSaver): New. Contains all the
109            general XML writing methods that were part of SessionSaver.
110            (SessionSaver): Renamed from Saver.
111    
112            * test/test_proj.py: New test cases for the projection
113            file read and write functions.
114    
115    2003-04-16  Jonathan Coles   <[email protected]>
116    
117            * Thuban/Model/classification.py: Use repr() around values
118            in the ClassGroup*.__repr__() methods so it is clearer when
119            a value is a string and when it is a number.
120    
121            * test/test_load.py: Rework the classification test to test
122            that we can load old files.
123            (testLabels): Test a file where the groups have labels.
124    
125    2003-04-16  Bernhard Herzog  <[email protected]>
126    
127            Safer implementation of the performance enhancements of the
128            low-level renderer:
129            
130            * extensions/thuban/wxproj.cpp (extract_projection)
131            (extract_pointer): Rename extract_projection to extract_pointer
132            and redefine its purpose to return the pointer stored in a CObject
133            returned by the object's cobject method. Update all callers.
134            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
135            handling of these low-level parameters so that each s_draw_info
136            instance is handled as a CObject at python level that also
137            contains real references to the actual python objects which
138            contain the values in the struct. Add free_draw_info as the
139            destructor.
140            (draw_polygon_shape): Add the py_draw_info parameter which must a
141            cobject containing an s_draw_info pointer.
142    
143            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
144            method to instantiat the low-level render parameter
145            (MapRenderer.draw_shape_layer): Use the new method. Remove some
146            commented out code.
147            (MapRenderer.draw_polygon_shape): Make the first parameter not the
148            layer but the low-level render parameter
149            (ScreenRenderer.draw_shape_layer): Use the low-level render
150            parameter.
151    
152    2003-04-15  Jonathan Coles   <[email protected]>
153    
154            * Thuban/Model/classification.py: Implemented __repr__ for
155            the ClassGroup* classes to make debugging a bit easier.
156            (ClassGroup.SetLabel): Check that the string is an instance
157            of StringTypes not StringType. Accounts for Unicode strings.
158    
159            * Thuban/Model/color.py: Implemented __repr__ to make
160            debugging a bit easier.
161    
162            * Thuban/Model/save.py (Saver.write_classification): Need to
163            save the group label.
164    
165            * test/test_load.py (testClassification): New. Loads the
166            iceland_sample_test.thuban file and checks if it was loaded
167            correctly.
168    
169    2003-04-15  Jonathan Coles   <[email protected]>
170    
171            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
172            to improve rendering performance by initializing the variables
173            that are not change each time draw_polygon_shape() is called.
174            The values are stored in a global struct draw_info.
175            (draw_polygon_shape): Removed initialization code that is
176            now in draw_polygon_init().
177    
178            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
179            drawing initialization call to draw_polygon_init()
180            (MapRenderer.draw_polygon_shape): Use new signature of
181            draw_polygon_shape.
182    
183            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
184            weirdness by setting the range to (1, maxint).
185    
186            * Thuban/Model/classification.py (ClassGroupProperties): Make
187            instance variables private and optimize comparison operator
188            by first checking if the color references are the same.
189            (ClassGroupSingleton): Make instance variables private.
190            (ClassGroupRange): Make instance variables private.
191    
192            * HOWTO-Release: Filled in missing steps for releasing packages.
193    
194    2003-04-15  Bernhard Herzog  <[email protected]>
195    
196            First stab at internationalized messages:
197    
198            * Thuban/__init__.py (_): Implement the translation function for
199            real using the python gettext module.
200    
201            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
202            translate empty strings.
203    
204            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
205            Add a missing space to a warning message
206    
207            * po/README: New. Notes about the management of the translation
208            files.
209    
210            * po/Makefile: New. Makefile to help manage the translation files.
211    
212            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
213    
214            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
215            translations and support files in po/
216    
217            * setup.py (data_files): Add the *.mo files to the data_files too
218    
219            * README: Add note about the translations when building from CVS
220    
221    2003-04-14  Jonathan Coles   <[email protected]>
222    
223            * Thuban/UI/dock.py: Fixes some window resizing problems most
224            noticable under windows. Always assume the button bitmaps will
225            be there. Code clean up.
226            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
227            images for the dock/undock button to the same images.
228            Work around for RTbug #1801.
229    
230            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
231            be allowed to grow within the sizer. Fixes a bug under Windows
232            where the toolbar wasn't being drawn.
233    
234    2003-04-14  Frank Koormann   <[email protected]>
235    
236            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
237            Updated design to try to make the button functionality more
238            transparent.
239    
240    2003-04-14  Jonathan Coles   <[email protected]>
241    
242            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
243            finalize the intialization of the panel.
244    
245            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
246            creation of the panel. Should be the last thing called in the
247            initializer of a subclass.
248    
249            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
250            set the current selections in the combo boxes. This is needed
251            under Windows.
252    
253            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
254            level panel to the dialog so that the background colors are
255            consistent under Windows.
256    
257    2003-04-11  Jonathan Coles   <[email protected]>
258    
259            * Thuban/UI/classgen.py: Change color ramps to start at white
260            not black.
261    
262            * Thuban/UI/legend.py: Enable/disable the legend buttons when
263            the legend changes. Fixes RTbug #1793.
264    
265            * test/test_classification.py: Added test for copying of
266            classifications.
267    
268    2003-04-11  Jonathan Coles   <[email protected]>
269    
270            * Thuban/UI/resource.py: New. Centralize the loading of resources
271            such as bitmaps.
272    
273            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
274            added images to the move buttons, added 'reverse' button.
275            (CustomRampPanel.__init__): Added images to the move buttons.
276            (GreyRamp): New. Generates a ramp from white to black.
277            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
278    
279            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
280            ID_PROPERTY_*.
281            (Classifier.__init__): Minor changes to the layout.
282            (Classifier._OnTitleChanged): Listen for when the user edits the
283            title and update the dialog's title and the layer's title.
284    
285            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
286    
287            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
288            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
289            if the layer's title changes.
290    
291            * Thuban/UI/mainwindow.py: Added new menu item and associated code
292            to open a dialog to rename the map.
293            (MainWindow): Use new resource class to import bitmaps.
294    
295    2003-04-11  Jonathan Coles   <[email protected]>
296    
297            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
298            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
299            Resources/Bitmaps/group_use_none.xpm,
300            Resources/Bitmaps/group_use_not.xpm,
301            Resources/Bitmaps/hide_layer.xpm,
302            Resources/Bitmaps/layer_properties.xpm,
303            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
304            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
305            New.
306    
307    2003-04-10  Jonathan Coles   <[email protected]>
308    
309            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
310            Should pass group to ClassGroup constructor.
311    
312    2003-04-10  Jonathan Coles   <[email protected]>
313    
314            * Thuban/Model/classification.py: (ClassGroup): Move all the common
315            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
316            here. Implement SetVisible(), IsVisible().
317            (ClassGroup.__init__): Add group parameter which acts as a copy
318            constructor.
319    
320            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
321            "Visible" check boxes.
322            (Classifier): Rename the buttons and refactor the code to match
323            the new labels.
324    
325            * Thuban/UI/legend.py: Classify button is now called "Properties".
326            Refactored the code to change variable names.
327            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
328    
329            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
330            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
331            renamed to MainWindow.LayerEditProperties.
332            (MainWindow.ToggleLegend): Don't include map name in legend title.
333            (MainWindow.SetMap): Added the map name to the window title.
334            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
335            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
336            Functionality is found in the layer properties dialog.
337    
338            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
339            draw visible groups.
340    
341    2003-04-09  Jonathan Coles   <[email protected]>
342    
343            * Thuban/UI/classgen.py: Modifications to allow simple
344            addition and selection of new color schemes.
345            (MonochromaticRamp): New. Generates a ramp between two colors.
346            (RedRamp): New. Generates a ramp of all red.
347            (GreenRamp): New. Generates a ramp of all green.
348            (BlueRamp): New. Generates a ramp of all blue.
349    
350    2003-04-09  Jonathan Coles   <[email protected]>
351    
352            * Thuban/Model/classification.py (Classification.__deepcopy__):
353            Need to copy over field and fieldType attributes.
354    
355            * Thuban/Model/table.py (Table.field_range): New. Retrive the
356            maximum and minimum values over the entire table for a given
357            field.
358            (Table.GetUniqueValues): New. Retrieve all the unique values
359            in the table for a given field.
360    
361            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
362            (GenUniquePanel): New. Controls to allow the user to select
363            which unique field values they would like in the classification.
364            (CustomRampPanel): Code that was in ClassGenDialog that allows
365            the user to select the properties for a custom ramp.
366            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
367    
368            * Thuban/UI/classifier.py: Removed a lot of debugging code.
369            (Classifier._SetClassification): Callback method so that the
370            class generator can set the classification in the grid.
371            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
372            editing of a group properties class into a wxWindows control.
373    
374            * Thuban/UI/dock.py: It was decided that if the user closes
375            a dockable window the window should simply hide itself. That
376            way if the user wants to show the dock again it appears in the
377            same place as it was when it was closed.
378            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
379            (DockableWindow._OnButtonClose): Hide the window instead of
380            destroying it.
381            (DockableWindow._OnClose): Hide the window instead of
382            destroying it.
383    
384            * Thuban/UI/legend.py (LegendTree): Use a private method to
385            consistently set the font and style of the text. Fixes RTbug #1786.
386    
387            * Thuban/UI/mainwindow.py: Import just the Classifier class.
388    
389    2003-04-07  Bernhard Herzog  <[email protected]>
390    
391            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
392            to the map module
393    
394    2003-04-07  Bernhard Herzog  <[email protected]>
395    
396            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
397            favor of ToggleSessionTree
398            (MainWindow.ToggleSessionTree): New method to toggle visibility of
399            the session tree.
400            (MainWindow.SessionTreeShown): New method to return whether the
401            session tree is currently shown.
402            (MainWindow.ToggleLegend): New method to toggle visibility of the
403            legend
404            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
405            LegendShown
406            (MainWindow.LegendShown): New method to return whether the legend
407            is currently shown.
408            (_method_command): Add checked parameter so we can define check
409            menu items
410            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
411            mainwindow methods.
412            (show_session_tree, show_legend commands): Removed.
413            (toggle_session_tree, toggle_legend commands): New commands to
414            toggle the visibility of the dialogs
415    
416    2003-04-07  Jonathan Coles   <[email protected]>
417    
418            * Thuban/UI/classgen.py: Fix Windows problem.
419    
420            * Thuban/UI/dock.py: Fix Windows problem.
421    
422            * Thuban/UI/mainwindow.py: Use False instead of false.
423            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
424    
425    2003-04-07  Jonathan Coles   <[email protected]>
426    
427            Since we now say that the order of the groups in a classification
428            matters, it makes sense to be able to manipulate that order. Most
429            of the changes to Thuban/Model/classification.py are to that end.
430    
431            * Thuban/Model/classification.py (Classification.AppendGroup,
432            Classification.InsertGroup, Classification.ReplaceGroup,
433            Classification.RemoveGroup, Classification.GetGroup): Do as the
434            names imply.
435            (Classification.FindGroup): This was called GetGroup, but GetGroup
436            takes an index, while FindGroup takes a value.
437            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
438            REFERENCE. Currently there is a cyclic reference between the layer
439            and its classification. If the classification doesn't need to know
440            its owning layer we can change this, since it may make sense to be
441            able to use the same classification with different layers.
442    
443            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
444    
445            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
446            not AddGroup()
447    
448            * Thuban/UI/classifier.py: Now that we can depend on the order in
449            a Classification and have methods to manipulate that order we don't
450            need to use our own data structures in the grid. We can simply make
451            the grid/table access the information they need from a copy of
452            the classification object.
453            (Classifier._OnCloseBtn): Event handler for when the user clicks
454            'Close'. This is needed so if the user applies changes and then
455            continues to change the table the user has the option of discarding
456            the most recent changes and keeping what they applied.
457    
458            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
459            into the same group.
460    
461            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
462            with a really old version of proj, PJ_VERSION won't even be defined.
463            If it isn't defined then just compile so that the function always
464            returns Py_False.
465    
466            * test/test_classification.py: Fix tests to use the renamed methods.
467            Still need to write tests for the new methods.
468    
469    2003-04-04  Jonathan Coles   <[email protected]>
470    
471            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
472            call to SetSelection out of the method and before the call
473            to __SelectField in __init__. This prevents a recursion of events
474            when _OnFieldSelect is triggered by the user.
475    
476    2003-04-04  Jonathan Coles   <[email protected]>
477    
478            * Thuban/Model/classification.py: Rename Color.None to
479            Color.Transparent.
480            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
481            Don't bother copying the color, since Colors are immutable.
482    
483            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
484            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
485            Thuban/UI/renderer.py, Thuban/UI/view.py:
486            Rename Color.None to Color.Transparent.
487        
488            * test/test_classification.py, test/test_load.py: Rename Color.None
489            to Color.Transparent.
490    
491    2003-04-04  Jonathan Coles   <[email protected]>
492    
493            * Thuban/Model/classification.py: Fix assert calls.
494            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
495            Copy the color parameter rather than hold onto a reference.
496    
497            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
498            the color object.
499            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
500            are sure there exists only one refernce to Color.None in the system.
501            This allows us to use 'is' rather than the comparision functions.
502            
503            * Thuban/Model/save.py: Fix assert calls.
504            
505            * Thuban/UI/classifier.py: Fix assert calls.
506            (ClassGrid._OnCellDClick): Call up to the classifier to open the
507            dialog to edit the groups properties.
508            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
509            correctly if a cell is resized.
510            (ClassTable.SetClassification): New. Changes the classification
511            that is in the table.
512            (ClassTable.__SetRow): Allow groups to be prepended.
513            (Classifier): New code for opening the EditProperties and
514            GenerateRanges dialogs.
515            (SelectPropertiesDialog.__GetColor): Only set the color in the
516            color dialog if the current color is not None.
517            
518            * Thuban/UI/dock.py: Fix assert calls.
519            
520            * Thuban/UI/legend.py: Fix assert calls.
521            
522            * Thuban/UI/renderer.py: Fix assert calls.
523            
524            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
525            classifications.
526            (GenRangePanel): Panel specific to range generation.
527            (GenSingletonPanel): Panel specific to singleton generation.
528            (ClassGenerator): Class responsible for actually generating
529            the classification from the data gathered in the dialog box.
530            (PropertyRamp): Generates properties whose values range from
531            a starting property to an ending property.
532    
533    2003-04-03  Bernhard Herzog  <[email protected]>
534    
535            * test/support.py (print_garbage_information): New function that
536            prints information about still connected messages and memory
537            leaks.
538            (run_suite): Removed.
539            (run_tests): New function for use as a replacement of
540            unittest.main in the test_* files. This one calls
541            print_garbage_information at the end.
542    
543            * test/runtests.py (main): Use support.print_garbage_information
544    
545            * test/test_layer.py: Use support.run_tests instead of
546            unittest.main so we get memory leak information
547            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
548            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
549            (TestLayerLegend.test_visibility): Call the layer's Destroy method
550            to fix a memory leak.
551    
552            * test/test_classification.py: Use support.run_tests instead of
553            unittest.main so we get memory leak information
554            (TestClassification.test_classification): Call the layer's Destroy
555            method to fix a memory leak.
556    
557    2003-04-02  Bernhard Herzog  <[email protected]>
558    
559            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
560            Handle the reference counts of the return value and errors in
561            PyArg_ParseTuple correctly.
562    
563            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
564            sure the filename is absolute to avoid problems when saving the
565            session again
566    
567            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
568    
569    2003-04-01  Jonathan Coles   <[email protected]>
570    
571            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
572            that there actually are points in the returned list of points
573            before trying to index into the list. The list may be empty if
574            the shape is a Null Shape.
575    
576    2003-04-01  Bernhard Herzog  <[email protected]>
577    
578            * test/test_map.py: Don't use from <module> import *
579    
580    2003-04-01  Jonathan Coles   <[email protected]>
581    
582            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
583            LAYER_LEGEND_CHANGED
584    
585            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
586            self.Destroy() to close the window after yesterday's changes.
587    
588            * test/test_map.py, test/test_session.py: Fix messages that
589            are sent from maps and layers.
590    
591    2003-03-31  Jonathan Coles   <[email protected]>
592    
593            * Thuban/UI/classifier.py: Commented out some debugging statements.
594            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
595            RTbug #1769.
596    
597            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
598            position (although position doesn't work yet under GTK).
599            (DockableWindow.Destroy): New. Called when the window must be
600            closed. Namely needed when the DockFrame closes and must close
601            its children.
602            (DockFrame): Listen for EVT_CLOSE and destroy all children.
603    
604            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
605            when then window is told to close.
606            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
607            comment in source for more info.
608    
609            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
610    
611            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
612            symmetry with other such methods.
613            (MainWindow.ShowLegend): Show the legend docked by default.
614    
615    2003-03-28  Jonathan Coles   <[email protected]>
616    
617            * Thuban/UI/classifier.py: Support for highlighting a specific
618            group within the grid when the classification dialog is opened.
619            Also contains a lot of debugging printouts which will later
620            be removed.
621    
622            * Thuban/UI/dock.py: Complete rework on the dock code so that
623            that it is fairly removed from the rest of the Thuban application.
624            It is easy to add new docks which the rest of the program having
625            to be aware of them.
626    
627            * Thuban/UI/legend.py: Modifications to support selecting a
628            specific group in the classification dialog. Changed how layers
629            are drawn when the layer is visible/invisible.
630    
631            * Thuban/UI/mainwindow.py: Removed legend specific code and
632            replaced it with calls to the new dock code.
633    
634            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
635            to check if scale > 0. Trying to track down a divide by zero.
636    
637    2003-03-26  Jonathan Coles   <[email protected]>
638    
639            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
640            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
641            now part of DockableWindow.
642            (LegendPanel.DoOnSelChanged): Select the current layer in the
643            map.
644            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
645            with the selected layer and/or group.
646    
647    2003-03-26  Jonathan Coles   <[email protected]>
648    
649            This putback contains the code for dockable windows. There is
650            no support in wxWindows as of this date for windows that can
651            attach themselves to other windows.
652    
653            The current model contains a DockableWindow which has a parent
654            window for when it is detached and a dock window that it puts
655            its contents in when it is docked. The contents of a DockableWindow
656            must be a DockPanel. DockPanel itself derives from wxPanel.
657    
658            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
659            message, not a LAYER_LEGEND_CHANGED message.
660    
661            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
662    
663            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
664            as one of the style properties for the fieldTypeText item to
665            be sure that its size is correct when the text changes.
666    
667            * Thuban/UI/dock.py: New. Classes for the DockPanel and
668            DockableWindow.
669    
670            * Thuban/UI/legend.py: Added some more buttons and made the
671            LegendPanel a DockPanel.
672    
673            * Thuban/UI/mainwindow.py: Added sash windows to the main window
674            and supporting functions for manipulating the sashes.
675            (MainWindow.ShowLegend): Create a DockableWindow with the
676            LegendPanel as the contents.
677    
678            * Thuban/UI/messages.py: Added DOCKABLE_* messages
679    
680            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
681            not LAYER_LEGEND_CHANGED, messages.
682    
683    2003-03-25  Jonathan Coles   <[email protected]>
684    
685            * setup.py: Added custom script bdist_rpm_build_script so that
686            when the rpm is built the path to wx-config is correct.
687    
688            * setup.cfg: Added line saying to use the custom build script
689    
690    2003-03-20  Jonathan Coles   <[email protected]>
691    
692            Initial implementation of the Legend.
693    
694            * Thuban/UI/legend.py: New. Creates a window that shows the map's
695            Legend information and allows the user to add/modify classifications
696            and how the layers are drawn on the map.
697    
698            * setup.py: New command 'build_docs' which currently uses
699            happydoc to generate html documentation for Thuban.
700    
701            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
702            Returns a string which is appropriately describes the group.
703    
704            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
705            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
706    
707            * Thuban/Model/map.py (Map): Rename messages and use new, more
708            specific, messages.
709    
710            * Thuban/Model/messages.py: New message to indicate that a layer's
711            data has changed (LAYER_CHANGED). New map messages to indicate
712            when layers have been added/removed/changed or if the stacking order
713            of the layers has changed.
714    
715            * Thuban/Model/session.py: Rename and use new messages.
716    
717            * Thuban/UI/classifier.py: Remember if any changes have actually
718            been applied so that if the dialog is cancelled without an application
719            of changes we don't have to set a new classification.
720            (ClassDataPreviewer): Pulled out the window specific code and put it
721            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
722            symbols on any DC.
723            
724            * Thuban/UI/mainwindow.py: New code to open the legend.
725    
726            * Thuban/UI/view.py: Use new message names.
727    
728    2003-03-19  Jonathan Coles   <[email protected]>
729    
730            * Thuban/UI/main.py (verify_versions): New. Checks the versions
731            of Python, wxPython, and some other libraries.
732    
733            * extensions/thuban/wxproj.cpp (check_version): Checks the given
734            version against what wxproj was compiled with.
735            (check_version_gtk): If wxproj was compiled with gtk then check
736            the given version against the version of the gtk library
737            currently being used.
738    
739    2003-03-14  Bernhard Herzog  <[email protected]>
740    
741            * test/test_command.py: Run the tests when the module is run as a
742            script
743    
744    2003-03-14  Bernhard Herzog  <[email protected]>
745    
746            Implement selection of multiple selected shapes in the same layer:
747    
748            - Introduce a new class to hold the selection. This basically
749              replaces the interactor which was nothing more than the
750              selection anyway. A major difference is of course that the new
751              selection class supports multiple selected shapes in one layer
752            
753            - Move the object that represents the selection from the
754              application to the canvas. The canvas is a better place than the
755              application because the selection represents which shapes and
756              layer of the map displayed by the canvas are selected and
757              affects how the map is drawn.
758    
759            - Make the selection and its messages publicly available through
760              the mainwindow.
761    
762            - The non-modal dialogs do not get a reference to the interactor
763              anymore as they can simply refer to their parent, the
764              mainwindow, for the what the interactor had to offer.
765    
766            * Thuban/UI/selection.py: New module with a class to represent the
767            selection.
768    
769            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
770            these unused messages
771    
772            * Thuban/UI/application.py (ThubanApplication.OnInit)
773            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
774            interactor is gone now.
775            (ThubanApplication.CreateMainWindow): There is no interactor
776            anymore so we pass None as the interactor argument for now for
777            compatibility.
778    
779            * Thuban/UI/view.py (MapCanvas.delegated_messages)
780            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
781            Unsubscribe, delegate messages according to the delegated_messages
782            class variable.
783            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
784            attributes from instance variables as described with the
785            delegated_methods class variable.
786            (MapCanvas.__init__): New instance variable selection holding the
787            current selection
788            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
789            pass them on to the renderer
790            (MapCanvas.SetMap): Clear the selection when a different map is
791            selected.
792            (MapCanvas.shape_selected): Simple force a complete redraw. The
793            selection class now takes care of only issueing SHAPES_SELECTED
794            messages when the set of selected shapes actually does change.
795            (MapCanvas.SelectShapeAt): The selection is now managed in
796            self.selection
797    
798            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
799            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
800            Unsubscribe, delegate messages according to the delegated_messages
801            class variable.
802            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
803            attributes from instance variables as described with the
804            delegated_methods class variable.
805            (MainWindow.__init__): The interactor as ivar is gone. The
806            parameter is still there for compatibility. The selection messages
807            now come from the canvas.
808            (MainWindow.current_layer, MainWindow.has_selected_layer):
809            Delegate to the the canvas.
810            (MainWindow.LayerShowTable, MainWindow.Classify)
811            (MainWindow.identify_view_on_demand): The dialogs don't need the
812            interactor parameter anymore.
813    
814            * Thuban/UI/tableview.py (TableFrame.__init__)
815            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
816            (LayerTableFrame.row_selected): The interactor is gone. It's job
817            from the dialog's point of view is now done by the mainwindow,
818            i.e. the parent. Subscribe to SHAPES_SELECTED instead
819            of SELECTED_SHAPE
820            
821            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
822            is gone. It's job from the dialog's point of view is now done by
823            the mainwindow, i.e. the parent.
824            
825            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
826            gone. It's job from the dialog's point of view is now done by the
827            mainwindow, i.e. the parent.
828    
829            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
830            gone. It's job from the dialog's point of view is now done by the
831            mainwindow, i.e. the parent.
832            (SessionTreeCtrl.__init__): New parameter mainwindow which is
833            stored as self.mainwindow. The mainwindow is need so that the tree
834            can still subscribe to the selection messages.
835            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
836            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
837            selection is now accessible through the mainwindow. Subscribe to
838            SHAPES_SELECTED instead of SELECTED_SHAPE
839    
840            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
841            SHAPES_SELECTED message now.
842            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
843            so deal with multiple shapes
844            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
845            gone. It's job from the dialog's point of view is now done by the
846            mainwindow, i.e. the parent.
847    
848            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
849            parameter is now a list of shape ids.
850            (RecordTable.SetTable): The second parameter is now a list of
851            indices.
852    
853            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
854            selected_shape parameter and ivar to selected_shapes. It's now a
855            list of shape ids.
856            (MapRenderer.draw_label_layer): Deal with multiple selected
857            shapes. Rearrange the code a bit so that the setup and shape type
858            distinctions are only executed once.
859    
860            * test/test_selection.py: Test cases for the selection class
861    
862    2003-03-11  Jonathan Coles   <[email protected]>
863    
864            * Thuban/Model/load.py: Temporary fix so that the xml reader
865            doesn't cause Thuban to crash.
866    
867            * Thuban/Model/layer.py: Handle the cyclic references between
868            a layer and its classification better, and be sure to disconnect
869            the classification from the layer when the layer is destroyed
870            so that we don't maintain a cyclic reference that may not be
871            garbage collected.
872    
873            * Thuban/Model/classification.py: See comment for layer.py.
874    
875    2003-03-12  Jan-Oliver Wagner <[email protected]>
876    
877            * HOWTO-Release: New. Information on the steps for releasing
878            a new version of Thuban.
879    
880    2003-03-11  Jonathan Coles   <[email protected]>
881    
882            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
883            Use True instead of true.
884            (Classifier): Should have a single panel in which all the controls lie.
885    
886            * Thuban/UI/proj4dialog.py: Add normal border.
887    
888            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
889    
890            * Thuban/UI/mainwindow.py: Use True instead of true.
891    
892            * setup.py: Update some definitions to use wxWindows2.4 files
893    
894            * Data/iceland_sample_class.thuban: Fixed file so that the
895            field_type information is present.
896    
897    2003-03-10  Jonathan Coles   <[email protected]>
898    
899            * Thuban/UI/classifier.py (Classifier.__init__): Make the
900            field type label grow so that when the text changes the
901            size is updated correctly. This may be a wxWindows bug.
902    
903    2003-03-10  Jonathan Coles   <[email protected]>
904    
905            * Thuban/UI/application.py: Changed SESSION_CHANGED to
906            SESSION_REPLACED.
907    
908            * Thuban/UI/classifier.py: Wrap text with _().
909            (ClassGrid.CreateTable): Set dimensions and size hints here,
910            instead of in Reset, so we only set the size once.
911    
912            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
913    
914            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
915            Call Close() instead of Shutdown().
916    
917            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
918    
919            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
920            Go back to using OnClose() instead of Shutdown().
921    
922    2003-03-10  Jonathan Coles   <[email protected]>
923    
924            * Thuban/UI/classifier.py (Classifier): SelectField() needed
925            to know the old field index as well as the new one.
926    
927    2003-03-10  Jonathan Coles   <[email protected]>
928    
929            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
930            to correctly set the table information and call this from
931            __init__ and from _OnFieldSelect so that all the information
932            is up to date when the dialog opens and when a field is changed.
933    
934    2003-03-10  Jonathan Coles   <[email protected]>
935    
936            * Thuban/Model/classification.py (Classification): Don't use
937            layer's message function directly, use the ClassChanged() method
938            when then classification changes. SetField/SetFieldType/SetLayer
939            must keep the information about field name and field type in
940            sync when an owning layer is set or removed.
941    
942            * Thuban/Model/layer.py: Added ClassChanged() so that the
943            classification can tell the layer when its data has changed.
944            (Layer.SetClassification): Accepts None as an arguement to
945            remove the current classification and correctly handles
946            adding a new classification.
947    
948            * Thuban/Model/load.py: Comment out print statement
949    
950            * test/test_classification.py, test/test_save.py: New and
951            improved tests.
952    
953    2003-03-07  Jonathan Coles   <[email protected]>
954    
955            * Thuban/Model/classification.py: Implemented __copy__ and
956            __deepcopy__ for ClassGroup* and ClassGroupProperites so
957            they can easily be copied by the classifier dialog.
958            (ClassGroupProperites.__init__): The default line color should
959            have been Color.Black.
960    
961            * Thuban/UI/classifier.py: Setting and Getting table values now
962            uses a consistent set of functions.
963            (Classifier): Now non-modal. Has field type label which changes
964            as the field changes. Keep track of buttons in a list so that
965            we can enable/disable the buttons when the None field is selected.
966            (SelectPropertiesDialog): Add buttons to make the colors transparent.
967    
968            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
969            does what OnClose did, but can be called by the application to
970            close a window. Needed when a session changes, and we have to
971            close the classifier windows.
972    
973            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
974            Shuts down open dialogs. Used when a new session is created
975            or a session is opened.
976            (MainWindow.SaveSession): Should only call application.SaveSession()
977            if we don't call SaveSessionAs first.
978            (MainWindow.Classify): Allow different classifier dialogs for
979            different layers.
980    
981            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
982            the parent class handle it. Add Shutdown() to unsubscibe from
983            event notification and call the parent Shutdown(). This was
984            necessary so the application can close the tree window.
985    
986    2003-03-06  Jonathan Coles   <[email protected]>
987    
988            * Thuban/Model/classification.py: Minor documentation changes,
989            Addition of __eq__ and __ne__ methods.
990            (Classification.SetLayer): prevent recursion between this method
991            and Layer.SetClassification().
992    
993            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
994    
995            * Thuban/Model/layer.py (SetClassification): prevent recursion
996            between this method and Classification.SetLayer().
997    
998            * test/test_classification.py, test/test_load.py,
999            test/test_session.py: Fixed and added tests for the classification
1000            classes.
1001    
1002    2003-03-06  Bernhard Herzog  <[email protected]>
1003    
1004            * Thuban/UI/classifier.py (ClassGrid.__init__)
1005            (ClassGrid.CreateTable): Move the SetSelectionMode call to
1006            CreateTable because otherwise it triggers an assertion in
1007            wxPython/wxGTK 2.4.
1008    
1009    2003-03-05  Jonathan Coles   <[email protected]>
1010    
1011            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
1012    
1013            * Thuban/Model/load.py: import FIELDTYPE constants from table.
1014    
1015            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
1016    
1017            * Thuban/Model/table.py: Put FIELDTYPE constants back.
1018    
1019    2003-03-05  Jonathan Coles   <[email protected]>
1020    
1021            * Thuban/UI/classifier.py: Added class documentation.
1022            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
1023            Store just the groups in the table and generate the other
1024            column information when it is requested. Add "None" field
1025            to pull-down to select no classification.
1026    
1027            * Thuban/common.py: Moved FIELDTYPE constants from table.py
1028            (Str2Num): Only catch ValueError exceptions.
1029    
1030            * Thuban/Model/classification.py: Class documentation. Renaming
1031            of methods with Stroke to Line. Groups are stored in a single
1032            list with the default as the first element. Groups are searched
1033            in the order they appear in the list.
1034    
1035            * Thuban/Model/color.py: Documentation.
1036    
1037            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
1038            the kind of data represented by a field.
1039    
1040            * Thuban/Model/load.py (ProcessSession): Use proper string
1041            conversion function; fixes RTbug #1713.
1042    
1043            * Thuban/Model/save.py (Saver): Store field type information.
1044    
1045            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
1046            (Table): Add field_info_by_name() to retrieve field information
1047            by specifying the field name, not the number.
1048    
1049            * Thuban/UI/mainwindow.py: Function name changes.
1050    
1051            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
1052            get the layer classification once. Don't try to classify
1053            values when the field is None: just use the default properties.
1054    
1055            * Thuban/UI/view.py: Function name changes.
1056    
1057            * Doc/thuban.dtd: Add field_type attribute to a classification.
1058    
1059    2003-03-04  Bernhard Herzog  <[email protected]>
1060    
1061            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
1062            the fill and stroke layer attributes optional with suitable
1063            default values. Add the stroke_width layer attribute. Use correct
1064            syntax for empty elements. Make the attribute list for labels
1065            refer to the label element.
1066    
1067    2003-03-04  Bernhard Herzog  <[email protected]>
1068    
1069            * setup.py (thuban_build_py.build): Add a comment about distutils in
1070            Python 2.3 containing some of the functionality we implement in
1071            setup.py ourselves.
1072    
1073            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
1074            before the selection mode. Doing it the other way round triggers
1075            an assertion in wxWindows.
1076    
1077            * Thuban/Model/save.py (escape): Fix typo in doc-string
1078    
1079            * Thuban/Model/classification.py: Remove unnecessary wxPython
1080            import
1081    
1082    2003-03-04  Jonathan Coles   <[email protected]>
1083    
1084            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
1085            Parameter 'value' should default to None.
1086    
1087            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
1088            the class attribute __classification is now private.
1089    
1090            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
1091            Classifier to ClassGrid. Added support for removing selected rows,
1092            which including code for keeping track of when cells are selected,
1093            and deselected.
1094            (ClassTable): Support for added/removing rows. Fixed a problem
1095            with __ParseInput whereby it would not allow strings (only numbers)
1096            to be entered.
1097            (Classifier): Added button and supporting code for removing
1098            selected rows.
1099    
1100    2003-02-27  Jonathan Coles   <[email protected]>
1101    
1102            * Thuban/common.py: Moved color conversion functions into
1103            Thuban/UI/common.py.
1104            (Str2Num): Now converts the float (not the string) to a long/int
1105            so that an exception isn't thrown.
1106    
1107            * Thuban/UI/common.py: Common functions used in several UI modules
1108    
1109            * Thuban/Model/classification.py: Changed the class hierarchy
1110            so that a Classification consists of Groups which return
1111            Properties when a value matches a Group.
1112    
1113            * Thuban/Model/layer.py: Fixed name resolution problem.
1114    
1115            * Thuban/Model/load.py: Use new Classification and Group functions.
1116    
1117            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
1118            failure.
1119            (Saver.write_classification): Use new Classification and Group
1120            functions.
1121    
1122            * Thuban/UI/classifier.py: Changes to use new Classification and Group
1123            functions. Fix to create a tuple with a single value instead of
1124            simply returning the value.
1125    
1126            * Thuban/UI/renderer.py: Use new Classification and Group functions.
1127            Use common.py functions.
1128    
1129            * Thuban/UI/tree.py: Use common.py functions.
1130            
1131            * test/test_classification.py: Use new Classification and Group
1132            classes.
1133    
1134    2003-02-24  Jonathan Coles   <[email protected]>
1135    
1136            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
1137            functions from Thuban color objects to wxWindow colour objects.
1138    
1139            * Thuban/Model/classification.py (Classification): Renamed
1140            GetProperties() to GetClassData(). Used the new iterator
1141            in TreeInfo().
1142            (ClassIterator): Iterator implementation to iterate over the
1143            ClassData objects in a classification object.
1144    
1145            * Thuban/Model/save.py (Saver.write_classificaton): Uses
1146            the new iterator to save the classification information.
1147    
1148            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
1149            for changing the stroke and fill colors and previewing the
1150            changes.
1151    
1152            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
1153            MainWindow.SaveSessionAs): Text string changes so the dialogs
1154            have more meaningful titles.
1155    
1156            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
1157            Classification method name from GetProperties to GetClassData.
1158    
1159            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
1160            instead of accessing now non-existent class variables.
1161    
1162    2003-02-24  Bernhard Herzog  <[email protected]>
1163    
1164            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
1165            unneeded Shape() call. Rendering is substantially faster without
1166            it and it avoids some problems with broken shape files.
1167    
1168    2003-02-20  Frank Koormann   <[email protected]>
1169    
1170            Force minimal size of identify and label dialogs. The autosizing
1171            looked too ugly.
1172    
1173            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
1174            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
1175            Set size of listctrl.
1176            * Thuban/UI/identifyview.py (IdentifyView.__init__):
1177            Set size of dialog.
1178    
1179    2003-02-19  Jonathan Coles   <[email protected]>
1180    
1181            * test/test_classification.py, test/test_layer.py,
1182            test/test_load.py, test/test_map.py, test/test_session.py:
1183            Updated the tests to use the new functions that are in the
1184            respective classes.
1185    
1186            * Thuban/Model/classification.py (Classification):
1187            Uses the new ClassData* classes. Modification messages are
1188            passed up to the parent layer (if it exists).
1189            (ClassData): New class to encapsulate the common data in each
1190            classification property.
1191            (ClassDataDefault): Represents the Default class. data.
1192            (ClassDataPoint): Represents a single class. data point
1193            (ClassDataRange): Represents a class. range
1194            (ClassDataMap): Represents a class. map (unused).
1195    
1196            * Thuban/Model/color.py: Added Color.None to represent something
1197            with no color. Color.Black represents the color black.
1198            (NoColor): Helper class derived from Color to represent something
1199            with no color.
1200    
1201            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
1202            stroke_width attributes. Made the 'classification' attribute private.
1203            New methods for setting/getting the classification.
1204    
1205            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
1206            to get the classifcation and use the new ClassData* classes to
1207            hold the classification data. Use Str2Num to convert numbers
1208            properly.
1209    
1210            * Thuban/Model/save.py (Saver): Use new Color and Classification
1211            methods
1212    
1213            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
1214            custom grid.
1215            (ClassTable): Support for editing Values and Labels and for
1216            changing what type (point or range) of data is stored in each
1217            property based on how the user enters the data.
1218            (Classifier): Support for saving the new classifications and
1219            launching the dialog to edit a property.
1220            (SelectPropertiesDialog): New class for editing the visual
1221            properties of a classification (stroke color, width, and fill color)
1222            (ClassPreviewer): Took the Draw method from ClassRenderer and
1223            made most of it into this new class. Intend to use this class in
1224            the SelectPropertiesDialog for previewing changes.
1225    
1226            * Thuban/UI/renderer.py: Use new Color and Classification methods.
1227    
1228            * Thuban/UI/tree.py: Formatting changes.
1229    
1230            * Doc/thuban.dtd: Add 'label' element
1231    
1232            * Thuban/common.py: New. Contains common routines used throughout
1233            the code.
1234            (Str2Num): Takes a string and converts it to the "best" type of
1235            number.
1236    
1237    2003-02-14  Bernhard Herzog  <[email protected]>
1238    
1239            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
1240            dragging flag is always set to 0 even when the tool implementation
1241            raises an exception
1242    
1243    2003-02-11  Bernhard Herzog  <[email protected]>
1244    
1245            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
1246            method to create a splash screen.
1247            (ThubanApplication.ShowMainWindow): New. Show the main window.
1248            Needed so the splash screen can display the mainwindow
1249            (ThubanApplication.OnInit): Call the
1250            new splash_screen method to determine whether the application
1251            should display a splash screen. If it displays a splash screen do
1252            not immediately show the main window.
1253    
1254    2003-02-11  Jonathan Coles  <[email protected]>
1255    
1256            * Thuban/Model/classification.py: Added import line to fix
1257            feature conflicts between running on python2.2 and python2.1.
1258    
1259            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
1260            onto the clinfo parameter, so removed the deepcopy().
1261    
1262    2003-02-10  Jonathan Coles  <[email protected]>
1263    
1264            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
1265            Added element_open variable to track opening and closing of tags
1266            so that tags that don't span more than one line are closed with
1267            /> instead of </tag_name>. Use the GetDefault*() methods of
1268            the Classification class.
1269    
1270            * Thuban/Model/classification.py (Classificaton): Added set and
1271            get methods for the default data. The class also takes a layer
1272            reference so that modification messages can be sent. Fixed the
1273            methods to use the new ClassData class.
1274            (ClassData): New class to encapsulate the classification data
1275    
1276            * Thuban/Model/layer.py (Layer): Remove the
1277            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
1278            SetDefault*() methods on the layer's classification object.
1279            (Layer.__init__): Use the new SetDefault*() methods in the
1280            Classification class.
1281    
1282            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
1283            object instead of a dictionary.
1284    
1285            * Thuban/UI/classifier.py (ClassRenderer): New class to
1286            draw the classifications in the dialog box's table.
1287            (Classifier): Modified to use the ClassRenderer class.
1288    
1289            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
1290            methods of the Classification class.
1291    
1292            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
1293            of the ClassData class.
1294    
1295            * test/test_classification.py, test/test_layer.py,
1296            test/test_map.py, test/test_session.py: Fix the tests to work
1297            with the above code changes.
1298    
1299    2003-02-03  Jonathan Coles  <[email protected]>
1300    
1301            * Thuban/Model/classification.py (Classification): Added getNull()
1302            to return the NullData reference
1303    
1304            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
1305            Layer.SetStrokeWidth): Modified these functions to change the
1306            null data in the classification rather than keep these values
1307            directly in the Layer class. Menu options to change these values
1308            work again.
1309    
1310    2003-01-28  Jonathan Coles  <[email protected]>
1311    
1312            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
1313            Fixed crashing problem on some systems. Dialog box shows
1314            classification data.
1315    
1316            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
1317            Colors in the tree view.
1318    
1319            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
1320            the tree info for classifications. Commented out unnecessary lines.
1321    
1322            * Thuban/Model/classification.py (Classification.TreeInfo): New
1323            function to add information about the classification into the
1324            tree view.
1325    
1326    2003-01-27  Jan-Oliver Wagner <[email protected]>
1327    
1328            * Thuban/__init__.py (_): New.
1329    
1330            * Thuban/Model/classification.py, Thuban/Model/extension.py,
1331            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
1332            Thuban/Model/session.py, Thuban/UI/application.py,
1333            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
1334            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
1335            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
1336            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
1337            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
1338    
1339    2003-01-27  Jonathan Coles  <[email protected]>
1340    
1341            * Thuban/Model/layer.py: Classification initialization calls.
1342    
1343            * Thuban/Model/classification.py: Created class to encapsulate
1344            a layer classification. Supports specific data points and
1345            ranges.
1346    
1347            * Thuban/Model/load.py: Added support for loading classification
1348            information.
1349    
1350            * Thuban/Model/save.py: Added support for saving classification
1351            information.
1352    
1353            * Thuban/UI/classifier.py: Initial class for a dialog box for
1354            specifying classification information.
1355    
1356            * Thuban/UI/mainwindows.py: Support for opening the classifier
1357            dialog.
1358    
1359            * Thuban/UI/renderer.py: Support for drawing a layer with the
1360            classification information.
1361    
1362            * Data/iceland_sample_class.thuban: iceland_sample with
1363            classification data.
1364    
1365            * test/test_classification: Tests for the Classification class.
1366    
1367    2002-12-09  Bernhard Herzog  <[email protected]>
1368    
1369            * test/test_command.py: New. Tests for the command classes.
1370    
1371            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
1372            (Command.IsTool): New method to distinguish between command
1373            switching tools and other commands.
1374    
1375            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
1376            the tool to avoid direct assignments to instance variables
1377            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
1378            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
1379            change the tool
1380    
1381            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
1382            active tool's command turns insensitive, disable the tool.
1383            (_tool_command): Use the new ToolCommand class
1384    
1385            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
1386            SelectTool method to change the tool
1387            (iconfile): Use the ToolCommand class
1388    
1389  2002-12-03  Bernhard Herzog  <[email protected]>  2002-12-03  Bernhard Herzog  <[email protected]>
1390    
1391          * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle          * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
# Line 10  Line 1398 
1398          * Thuban/UI/mainwindow.py: Altered the order of tools in the          * Thuban/UI/mainwindow.py: Altered the order of tools in the
1399          toolbar: First now are all navigation tools (Zoom In/Out, Pan,          toolbar: First now are all navigation tools (Zoom In/Out, Pan,
1400          Full Extent).          Full Extent).
1401        
1402  2002-10-23  Bernhard Herzog  <[email protected]>  2002-10-23  Bernhard Herzog  <[email protected]>
1403    
1404          * setup.py (setup call): version now 0.1.3          * setup.py (setup call): version now 0.1.3
# Line 121  Line 1509 
1509          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1510          VIEW_POSITION          VIEW_POSITION
1511    
1512  2002-09-04  Frank Koormann   <[email protected]>  2002-09-04  Frank Koormann  <[email protected]>
1513    
1514          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1515    
# Line 208  Line 1596 
1596    
1597          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
1598          records.          records.
1599          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
1600    
1601          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1602          into the underlying table.          into the underlying table.
# Line 246  Line 1634 
1634          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1635          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
1636    
1637  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
1638    
1639          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1640          tree window already open          tree window already open
# Line 374  Line 1762 
1762          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
1763          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
1764          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
1765          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1766          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
1767    
1768          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 435  Line 1823 
1823          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
1824          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
1825          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
1826          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
1827          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
1828    
1829  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 516  Line 1904 
1904          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1905          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1906    
1907  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1908    
1909          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1910          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 745  Line 2133 
2133          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
2134          position in the statusbar          position in the statusbar
2135    
2136  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
2137    
2138          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
2139    
2140  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
2141            
2142          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
2143    
2144          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
2145    
2146          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
2147    
2148            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
2149            box
2150    
2151  2002-04-21      Jan-Oliver Wagner <[email protected]>  2002-04-21  Jan-Oliver Wagner <[email protected]>
2152    
2153          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
2154    
2155          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
2156    
2157          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
2158          icon; added map_full_extend as tool          icon; added map_full_extend as tool
2159    
2160  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
2161    
2162          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
2163          saving _new_ sessions          saving _new_ sessions
# Line 870  Line 2259 
2259    
2260          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
2261          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
2262    
2263  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
2264    
2265          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
2266          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
2267    
2268          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
2269          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
2270          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
2271          too.          too.
# Line 987  Line 2375 
2375          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
2376          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
2377    
2378          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2379          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
2380          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
2381          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
2382          the application's OnInit method          the application's OnInit method
# Line 1004  Line 2392 
2392          layer to the tableview dialog.          layer to the tableview dialog.
2393    
2394          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
2395          (TableGrid):          (TableGrid):
2396          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
2397          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
2398          (TableFrame.__init__):          (TableFrame.__init__):
# Line 1071  Line 2459 
2459  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
2460    
2461          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2462            
2463          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2464          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
2465            
2466          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2467          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
2468          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 1121  Line 2509 
2509          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
2510          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
2511          link_file method          link_file method
2512            
2513          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2514          the window when the first layer is added to the map.          the window when the first layer is added to the map.
2515    
# Line 1158  Line 2546 
2546          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
2547          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2548          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
2549            
2550          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
2551          installer          installer
2552    

Legend:
Removed from v.354  
changed lines
  Added in v.716

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26