/[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 458 by bh, Tue Mar 4 13:43:16 2003 UTC revision 734 by bh, Thu Apr 24 19:14:16 2003 UTC
# Line 1  Line 1 
1    2003-04-24  Bernhard Herzog  <[email protected]>
2    
3            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
4    
5            * po/fr.po: New. French translation by Daniel Calvelo Aros
6    
7            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
8            empty strings.
9    
10    2003-04-25  Jonathan Coles   <[email protected]>
11    
12            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
13            implement the interface that the ProjFrame dialog expects.
14    
15            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
16            name of the projection to be changed.
17            (ProjFile): Use a dictionary instead of a list so that removing
18            projections is easier and we are sure about uniqueness.
19            (ProjFile.Remove): Remove the given projection object.
20    
21            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
22            Return a list with only one projection file instead of searching for
23            any projection file. This simplifies many things if the user can
24            only have one system file and one user file.
25    
26            * Thuban/UI/classgen.py: Change all references to
27            genCombo to genChoice.
28    
29            * Thuban/UI/mainwindow.py: Add a Projection option under the
30            layer menu.
31            (MainWindow.LayerProjection): New. Open up a projection window
32            for a layer.
33    
34            * Thuban/UI/projdialog.py: Large changes to how the dialog is
35            laid out. Use three panels instead of one. One for the list of
36            projections, one for the edit controls, and one for the buttons.
37            Fixed resizing problems so that the dialog resizes correctly
38            when the projection panel changes. Added import/export, save, and
39            new buttons/functionality.
40    
41    2003-04-24  Bernhard Herzog  <[email protected]>
42    
43            First step towards table management. Introduce a simple data
44            abstraction so that we replace the data a layer uses more easily
45            in the next step.
46    
47            * Thuban/Model/data.py: New file with a simple data abstraction
48            that bundles shapefile and dbffile into one object.
49    
50            * Thuban/Model/session.py (Session.OpenShapefile): New method to
51            open shapefiles and return a shape store object
52    
53            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
54            object instead of a shapefile filename. This introduces a new
55            instance variable store holding the datastore. For intermediate
56            backwards compatibility keep the old instance variables.
57            (open_shapefile): Removed. No longer needed with the shape store.
58            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
59            get the shape store used by a layer.
60            (Layer.Destroy): No need to explicitly destroy the shapefile or
61            table anymore.
62    
63            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
64            (MainWindow.AddLayer): Use the session's OpenShapefile method to
65            open shapefiles
66    
67            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
68            session's OpenShapefile method to open shapefiles
69    
70            * test/test_classification.py
71            (TestClassification.test_classification): Use the session's
72            OpenShapefile method to open shapefiles and build the filename in
73            a more platform independed way
74    
75            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
76            Implement to have a session to use in the tests
77            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
78            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
79            session's OpenShapefile method to open shapefiles
80            (TestLayerLegend.setUp): Instantiate a session so that we can use
81            it to open shapefiles.
82            (TestLayerLegend.tearDown): Make sure that all references to
83            layers and session are removed otherwise we may get a resource
84            leak
85    
86            * test/test_map.py (TestMapAddLayer.test_add_layer)
87            (TestMapWithContents.setUp): Instantiate a session so that we can
88            use it to open shapefiles.
89            (TestMapWithContents.tearDown): Make sure that all references to
90            layers, maps and sessions are removed otherwise we may get a
91            resource leak
92            ("__main__"): use support.run_tests() so that more info about
93            uncollected garbage is printed
94    
95            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
96            session's OpenShapefile method to open shapefiles
97            ("__main__"): use support.run_tests() so that more info about
98            uncollected garbage is printed
99    
100            * test/test_selection.py (TestSelection.tearDown): Make sure that
101            all references to the session and the selection are removed
102            otherwise we may get a resource leak
103            (TestSelection.get_layer): Instantiate a session so that we can
104            use it to open shapefiles.
105            ("__main__"): use support.run_tests() so that more info about
106            uncollected garbage is printed
107    
108            * test/test_session.py (TestSessionBase.tearDown)
109            (TestSessionWithContent.tearDown): Make sure that all references
110            to the session and layers are removed otherwise we may get a
111            resource leak
112            (TestSessionWithContent.setUp): Use the session's OpenShapefile
113            method to open shapefiles
114    
115    2003-04-24  Jonathan Coles   <[email protected]>
116    
117            * Thuban/Model/load.py (XMLReader.read): Should have been checking
118            if the file_or_filename object had the 'read' attribute.
119    
120    2003-04-23  Jonathan Coles   <[email protected]>
121    
122            * Thuban/Model/resource.py: Fixes RTbug #1813.
123            (ReadProjFile): Add documentation about which exceptions are raised.
124            Always pass the exceptions up to the caller.
125            (GetProjFiles): If the directory can't be read return an empty list.
126            If any of the proj files can't be read skip that file and go
127            on to the next one.
128    
129            * test/test_proj.py: Added test cases to handle nonexistent files,
130            unreadable files, and files that don't parse correctly.
131    
132    2003-04-23  Jonathan Coles   <[email protected]>
133    
134            Projection dialog. Allows the user to select from a list
135            of projection templates and optionally edit them and save new ones.
136    
137            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
138            (ProjPanel): Base class for projection specific panels.
139            (TMPanel): Projection panel for Transverse Mercartor.
140            (UTMPanel): Projection panel for Universal Transverse Mercartor.
141            (LCCPanel): Projection panel for Lambert Conic Conformal.
142            (GeoPanel): Projetion panel for Geographic Projection.
143    
144    2003-04-23  Jonathan Coles   <[email protected]>
145    
146            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
147            promote symmetry. There now exists XMLReader and XMLWriter.
148            (XMLReader.read): New. Call to read the given file descriptor or
149            filename.
150            (XMLReader.close): New. Make sure the file is closed.
151            (XMLReader.GetFileName): New. Return just the file name that is being
152            read from.
153            (XMLReader.GetDirectory): New. Return just the directory of the file
154            that is being read.
155            (XMLReader.AddDispatchers): New. Take a dictionary which contains
156            the names of functions to call as the XML tree is parsed.
157            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
158            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
159            (SessionLoader): Removed class variables start_dispatcher and
160            end_dispatcher since this functionality is now part of a class
161            instance. Fixes RTbug #1808.
162            (SessionLoader.__init__): Add dispatcher functions.
163            (load_xmlfile): Code was moved into the XMLReader.read().
164            (load_session): Use modified SessionLoader.
165    
166            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
167            map's projection.
168    
169            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
170            GetAllParameters.
171            (Projection.GetParameter): Returns the value for the given parameter.
172    
173            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
174            (GetProjFiles): Renamed from GetProjections. Now returns a list
175            of ProjFile objects.
176            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
177            a list of ProjFile objects whose files are not user defined.
178            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
179            list of ProjFile objects whose files are user defined.
180            (ProjFileReader): Extend new XMLReader.
181    
182            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
183            promote symmetry.
184    
185            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
186            control instead of a wxComboBox. wxChoice controls do not generate
187            events as the uses highlights possible choices which fixes problems
188            with resizing the dialog when the use selects an option.
189    
190            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
191            control instead of a wxComboBox.
192    
193            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
194            dialog.
195    
196            * test/test_proj.py (TestProjection.test): New tests for GetParameter
197            method.
198    
199    2003-04-22  Bernhard Herzog  <[email protected]>
200    
201            * Thuban/UI/mainwindow.py: Remove some unused imports and global
202            constants
203    
204            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
205            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
206    
207    2003-04-17  Bernhard Herzog  <[email protected]>
208    
209            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
210            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
211            anymore.
212            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
213            (Layer.ShapeType, Layer.Shape): No need to call
214            self.open_shapefile since it's always called in __init__
215    
216            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
217            In wxPython 2.4 there's no need to extend MainLoop anymore since
218            wxPython itself makes sure OnExit is called.
219    
220    2003-04-16  Jonathan Coles   <[email protected]>
221    
222            Initial putback of projection management code. Includes new
223            classes to read and write projection files. The current load
224            and save classes were abstracted a bit so they could be reused.
225            The Projection class was extended to provide new methods and
226            have a name.
227    
228            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
229            general XML reading methods that were part of ProcessSession.
230    
231            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
232            name.
233            (ProjFile): New. Represents a file that contains projection
234            information.
235    
236            * Thuban/Model/resource.py: New. Contains general utilities
237            for read and writing projection files.
238    
239            * Thuban/Model/save.py (XMLSaver): New. Contains all the
240            general XML writing methods that were part of SessionSaver.
241            (SessionSaver): Renamed from Saver.
242    
243            * test/test_proj.py: New test cases for the projection
244            file read and write functions.
245    
246    2003-04-16  Jonathan Coles   <[email protected]>
247    
248            * Thuban/Model/classification.py: Use repr() around values
249            in the ClassGroup*.__repr__() methods so it is clearer when
250            a value is a string and when it is a number.
251    
252            * test/test_load.py: Rework the classification test to test
253            that we can load old files.
254            (testLabels): Test a file where the groups have labels.
255    
256    2003-04-16  Bernhard Herzog  <[email protected]>
257    
258            Safer implementation of the performance enhancements of the
259            low-level renderer:
260            
261            * extensions/thuban/wxproj.cpp (extract_projection)
262            (extract_pointer): Rename extract_projection to extract_pointer
263            and redefine its purpose to return the pointer stored in a CObject
264            returned by the object's cobject method. Update all callers.
265            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
266            handling of these low-level parameters so that each s_draw_info
267            instance is handled as a CObject at python level that also
268            contains real references to the actual python objects which
269            contain the values in the struct. Add free_draw_info as the
270            destructor.
271            (draw_polygon_shape): Add the py_draw_info parameter which must a
272            cobject containing an s_draw_info pointer.
273    
274            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
275            method to instantiat the low-level render parameter
276            (MapRenderer.draw_shape_layer): Use the new method. Remove some
277            commented out code.
278            (MapRenderer.draw_polygon_shape): Make the first parameter not the
279            layer but the low-level render parameter
280            (ScreenRenderer.draw_shape_layer): Use the low-level render
281            parameter.
282    
283    2003-04-15  Jonathan Coles   <[email protected]>
284    
285            * Thuban/Model/classification.py: Implemented __repr__ for
286            the ClassGroup* classes to make debugging a bit easier.
287            (ClassGroup.SetLabel): Check that the string is an instance
288            of StringTypes not StringType. Accounts for Unicode strings.
289    
290            * Thuban/Model/color.py: Implemented __repr__ to make
291            debugging a bit easier.
292    
293            * Thuban/Model/save.py (Saver.write_classification): Need to
294            save the group label.
295    
296            * test/test_load.py (testClassification): New. Loads the
297            iceland_sample_test.thuban file and checks if it was loaded
298            correctly.
299    
300    2003-04-15  Jonathan Coles   <[email protected]>
301    
302            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
303            to improve rendering performance by initializing the variables
304            that are not change each time draw_polygon_shape() is called.
305            The values are stored in a global struct draw_info.
306            (draw_polygon_shape): Removed initialization code that is
307            now in draw_polygon_init().
308    
309            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
310            drawing initialization call to draw_polygon_init()
311            (MapRenderer.draw_polygon_shape): Use new signature of
312            draw_polygon_shape.
313    
314            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
315            weirdness by setting the range to (1, maxint).
316    
317            * Thuban/Model/classification.py (ClassGroupProperties): Make
318            instance variables private and optimize comparison operator
319            by first checking if the color references are the same.
320            (ClassGroupSingleton): Make instance variables private.
321            (ClassGroupRange): Make instance variables private.
322    
323            * HOWTO-Release: Filled in missing steps for releasing packages.
324    
325    2003-04-15  Bernhard Herzog  <[email protected]>
326    
327            First stab at internationalized messages:
328    
329            * Thuban/__init__.py (_): Implement the translation function for
330            real using the python gettext module.
331    
332            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
333            translate empty strings.
334    
335            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
336            Add a missing space to a warning message
337    
338            * po/README: New. Notes about the management of the translation
339            files.
340    
341            * po/Makefile: New. Makefile to help manage the translation files.
342    
343            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
344    
345            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
346            translations and support files in po/
347    
348            * setup.py (data_files): Add the *.mo files to the data_files too
349    
350            * README: Add note about the translations when building from CVS
351    
352    2003-04-14  Jonathan Coles   <[email protected]>
353    
354            * Thuban/UI/dock.py: Fixes some window resizing problems most
355            noticable under windows. Always assume the button bitmaps will
356            be there. Code clean up.
357            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
358            images for the dock/undock button to the same images.
359            Work around for RTbug #1801.
360    
361            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
362            be allowed to grow within the sizer. Fixes a bug under Windows
363            where the toolbar wasn't being drawn.
364    
365    2003-04-14  Frank Koormann   <[email protected]>
366    
367            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
368            Updated design to try to make the button functionality more
369            transparent.
370    
371    2003-04-14  Jonathan Coles   <[email protected]>
372    
373            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
374            finalize the intialization of the panel.
375    
376            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
377            creation of the panel. Should be the last thing called in the
378            initializer of a subclass.
379    
380            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
381            set the current selections in the combo boxes. This is needed
382            under Windows.
383    
384            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
385            level panel to the dialog so that the background colors are
386            consistent under Windows.
387    
388    2003-04-11  Jonathan Coles   <[email protected]>
389    
390            * Thuban/UI/classgen.py: Change color ramps to start at white
391            not black.
392    
393            * Thuban/UI/legend.py: Enable/disable the legend buttons when
394            the legend changes. Fixes RTbug #1793.
395    
396            * test/test_classification.py: Added test for copying of
397            classifications.
398    
399    2003-04-11  Jonathan Coles   <[email protected]>
400    
401            * Thuban/UI/resource.py: New. Centralize the loading of resources
402            such as bitmaps.
403    
404            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
405            added images to the move buttons, added 'reverse' button.
406            (CustomRampPanel.__init__): Added images to the move buttons.
407            (GreyRamp): New. Generates a ramp from white to black.
408            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
409    
410            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
411            ID_PROPERTY_*.
412            (Classifier.__init__): Minor changes to the layout.
413            (Classifier._OnTitleChanged): Listen for when the user edits the
414            title and update the dialog's title and the layer's title.
415    
416            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
417    
418            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
419            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
420            if the layer's title changes.
421    
422            * Thuban/UI/mainwindow.py: Added new menu item and associated code
423            to open a dialog to rename the map.
424            (MainWindow): Use new resource class to import bitmaps.
425    
426    2003-04-11  Jonathan Coles   <[email protected]>
427    
428            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
429            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
430            Resources/Bitmaps/group_use_none.xpm,
431            Resources/Bitmaps/group_use_not.xpm,
432            Resources/Bitmaps/hide_layer.xpm,
433            Resources/Bitmaps/layer_properties.xpm,
434            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
435            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
436            New.
437    
438    2003-04-10  Jonathan Coles   <[email protected]>
439    
440            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
441            Should pass group to ClassGroup constructor.
442    
443    2003-04-10  Jonathan Coles   <[email protected]>
444    
445            * Thuban/Model/classification.py: (ClassGroup): Move all the common
446            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
447            here. Implement SetVisible(), IsVisible().
448            (ClassGroup.__init__): Add group parameter which acts as a copy
449            constructor.
450    
451            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
452            "Visible" check boxes.
453            (Classifier): Rename the buttons and refactor the code to match
454            the new labels.
455    
456            * Thuban/UI/legend.py: Classify button is now called "Properties".
457            Refactored the code to change variable names.
458            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
459    
460            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
461            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
462            renamed to MainWindow.LayerEditProperties.
463            (MainWindow.ToggleLegend): Don't include map name in legend title.
464            (MainWindow.SetMap): Added the map name to the window title.
465            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
466            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
467            Functionality is found in the layer properties dialog.
468    
469            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
470            draw visible groups.
471    
472    2003-04-09  Jonathan Coles   <[email protected]>
473    
474            * Thuban/UI/classgen.py: Modifications to allow simple
475            addition and selection of new color schemes.
476            (MonochromaticRamp): New. Generates a ramp between two colors.
477            (RedRamp): New. Generates a ramp of all red.
478            (GreenRamp): New. Generates a ramp of all green.
479            (BlueRamp): New. Generates a ramp of all blue.
480    
481    2003-04-09  Jonathan Coles   <[email protected]>
482    
483            * Thuban/Model/classification.py (Classification.__deepcopy__):
484            Need to copy over field and fieldType attributes.
485    
486            * Thuban/Model/table.py (Table.field_range): New. Retrive the
487            maximum and minimum values over the entire table for a given
488            field.
489            (Table.GetUniqueValues): New. Retrieve all the unique values
490            in the table for a given field.
491    
492            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
493            (GenUniquePanel): New. Controls to allow the user to select
494            which unique field values they would like in the classification.
495            (CustomRampPanel): Code that was in ClassGenDialog that allows
496            the user to select the properties for a custom ramp.
497            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
498    
499            * Thuban/UI/classifier.py: Removed a lot of debugging code.
500            (Classifier._SetClassification): Callback method so that the
501            class generator can set the classification in the grid.
502            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
503            editing of a group properties class into a wxWindows control.
504    
505            * Thuban/UI/dock.py: It was decided that if the user closes
506            a dockable window the window should simply hide itself. That
507            way if the user wants to show the dock again it appears in the
508            same place as it was when it was closed.
509            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
510            (DockableWindow._OnButtonClose): Hide the window instead of
511            destroying it.
512            (DockableWindow._OnClose): Hide the window instead of
513            destroying it.
514    
515            * Thuban/UI/legend.py (LegendTree): Use a private method to
516            consistently set the font and style of the text. Fixes RTbug #1786.
517    
518            * Thuban/UI/mainwindow.py: Import just the Classifier class.
519    
520    2003-04-07  Bernhard Herzog  <[email protected]>
521    
522            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
523            to the map module
524    
525    2003-04-07  Bernhard Herzog  <[email protected]>
526    
527            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
528            favor of ToggleSessionTree
529            (MainWindow.ToggleSessionTree): New method to toggle visibility of
530            the session tree.
531            (MainWindow.SessionTreeShown): New method to return whether the
532            session tree is currently shown.
533            (MainWindow.ToggleLegend): New method to toggle visibility of the
534            legend
535            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
536            LegendShown
537            (MainWindow.LegendShown): New method to return whether the legend
538            is currently shown.
539            (_method_command): Add checked parameter so we can define check
540            menu items
541            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
542            mainwindow methods.
543            (show_session_tree, show_legend commands): Removed.
544            (toggle_session_tree, toggle_legend commands): New commands to
545            toggle the visibility of the dialogs
546    
547    2003-04-07  Jonathan Coles   <[email protected]>
548    
549            * Thuban/UI/classgen.py: Fix Windows problem.
550    
551            * Thuban/UI/dock.py: Fix Windows problem.
552    
553            * Thuban/UI/mainwindow.py: Use False instead of false.
554            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
555    
556    2003-04-07  Jonathan Coles   <[email protected]>
557    
558            Since we now say that the order of the groups in a classification
559            matters, it makes sense to be able to manipulate that order. Most
560            of the changes to Thuban/Model/classification.py are to that end.
561    
562            * Thuban/Model/classification.py (Classification.AppendGroup,
563            Classification.InsertGroup, Classification.ReplaceGroup,
564            Classification.RemoveGroup, Classification.GetGroup): Do as the
565            names imply.
566            (Classification.FindGroup): This was called GetGroup, but GetGroup
567            takes an index, while FindGroup takes a value.
568            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
569            REFERENCE. Currently there is a cyclic reference between the layer
570            and its classification. If the classification doesn't need to know
571            its owning layer we can change this, since it may make sense to be
572            able to use the same classification with different layers.
573    
574            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
575    
576            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
577            not AddGroup()
578    
579            * Thuban/UI/classifier.py: Now that we can depend on the order in
580            a Classification and have methods to manipulate that order we don't
581            need to use our own data structures in the grid. We can simply make
582            the grid/table access the information they need from a copy of
583            the classification object.
584            (Classifier._OnCloseBtn): Event handler for when the user clicks
585            'Close'. This is needed so if the user applies changes and then
586            continues to change the table the user has the option of discarding
587            the most recent changes and keeping what they applied.
588    
589            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
590            into the same group.
591    
592            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
593            with a really old version of proj, PJ_VERSION won't even be defined.
594            If it isn't defined then just compile so that the function always
595            returns Py_False.
596    
597            * test/test_classification.py: Fix tests to use the renamed methods.
598            Still need to write tests for the new methods.
599    
600    2003-04-04  Jonathan Coles   <[email protected]>
601    
602            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
603            call to SetSelection out of the method and before the call
604            to __SelectField in __init__. This prevents a recursion of events
605            when _OnFieldSelect is triggered by the user.
606    
607    2003-04-04  Jonathan Coles   <[email protected]>
608    
609            * Thuban/Model/classification.py: Rename Color.None to
610            Color.Transparent.
611            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
612            Don't bother copying the color, since Colors are immutable.
613    
614            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
615            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
616            Thuban/UI/renderer.py, Thuban/UI/view.py:
617            Rename Color.None to Color.Transparent.
618        
619            * test/test_classification.py, test/test_load.py: Rename Color.None
620            to Color.Transparent.
621    
622    2003-04-04  Jonathan Coles   <[email protected]>
623    
624            * Thuban/Model/classification.py: Fix assert calls.
625            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
626            Copy the color parameter rather than hold onto a reference.
627    
628            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
629            the color object.
630            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
631            are sure there exists only one refernce to Color.None in the system.
632            This allows us to use 'is' rather than the comparision functions.
633            
634            * Thuban/Model/save.py: Fix assert calls.
635            
636            * Thuban/UI/classifier.py: Fix assert calls.
637            (ClassGrid._OnCellDClick): Call up to the classifier to open the
638            dialog to edit the groups properties.
639            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
640            correctly if a cell is resized.
641            (ClassTable.SetClassification): New. Changes the classification
642            that is in the table.
643            (ClassTable.__SetRow): Allow groups to be prepended.
644            (Classifier): New code for opening the EditProperties and
645            GenerateRanges dialogs.
646            (SelectPropertiesDialog.__GetColor): Only set the color in the
647            color dialog if the current color is not None.
648            
649            * Thuban/UI/dock.py: Fix assert calls.
650            
651            * Thuban/UI/legend.py: Fix assert calls.
652            
653            * Thuban/UI/renderer.py: Fix assert calls.
654            
655            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
656            classifications.
657            (GenRangePanel): Panel specific to range generation.
658            (GenSingletonPanel): Panel specific to singleton generation.
659            (ClassGenerator): Class responsible for actually generating
660            the classification from the data gathered in the dialog box.
661            (PropertyRamp): Generates properties whose values range from
662            a starting property to an ending property.
663    
664    2003-04-03  Bernhard Herzog  <[email protected]>
665    
666            * test/support.py (print_garbage_information): New function that
667            prints information about still connected messages and memory
668            leaks.
669            (run_suite): Removed.
670            (run_tests): New function for use as a replacement of
671            unittest.main in the test_* files. This one calls
672            print_garbage_information at the end.
673    
674            * test/runtests.py (main): Use support.print_garbage_information
675    
676            * test/test_layer.py: Use support.run_tests instead of
677            unittest.main so we get memory leak information
678            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
679            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
680            (TestLayerLegend.test_visibility): Call the layer's Destroy method
681            to fix a memory leak.
682    
683            * test/test_classification.py: Use support.run_tests instead of
684            unittest.main so we get memory leak information
685            (TestClassification.test_classification): Call the layer's Destroy
686            method to fix a memory leak.
687    
688    2003-04-02  Bernhard Herzog  <[email protected]>
689    
690            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
691            Handle the reference counts of the return value and errors in
692            PyArg_ParseTuple correctly.
693    
694            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
695            sure the filename is absolute to avoid problems when saving the
696            session again
697    
698            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
699    
700    2003-04-01  Jonathan Coles   <[email protected]>
701    
702            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
703            that there actually are points in the returned list of points
704            before trying to index into the list. The list may be empty if
705            the shape is a Null Shape.
706    
707    2003-04-01  Bernhard Herzog  <[email protected]>
708    
709            * test/test_map.py: Don't use from <module> import *
710    
711    2003-04-01  Jonathan Coles   <[email protected]>
712    
713            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
714            LAYER_LEGEND_CHANGED
715    
716            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
717            self.Destroy() to close the window after yesterday's changes.
718    
719            * test/test_map.py, test/test_session.py: Fix messages that
720            are sent from maps and layers.
721    
722    2003-03-31  Jonathan Coles   <[email protected]>
723    
724            * Thuban/UI/classifier.py: Commented out some debugging statements.
725            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
726            RTbug #1769.
727    
728            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
729            position (although position doesn't work yet under GTK).
730            (DockableWindow.Destroy): New. Called when the window must be
731            closed. Namely needed when the DockFrame closes and must close
732            its children.
733            (DockFrame): Listen for EVT_CLOSE and destroy all children.
734    
735            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
736            when then window is told to close.
737            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
738            comment in source for more info.
739    
740            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
741    
742            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
743            symmetry with other such methods.
744            (MainWindow.ShowLegend): Show the legend docked by default.
745    
746    2003-03-28  Jonathan Coles   <[email protected]>
747    
748            * Thuban/UI/classifier.py: Support for highlighting a specific
749            group within the grid when the classification dialog is opened.
750            Also contains a lot of debugging printouts which will later
751            be removed.
752    
753            * Thuban/UI/dock.py: Complete rework on the dock code so that
754            that it is fairly removed from the rest of the Thuban application.
755            It is easy to add new docks which the rest of the program having
756            to be aware of them.
757    
758            * Thuban/UI/legend.py: Modifications to support selecting a
759            specific group in the classification dialog. Changed how layers
760            are drawn when the layer is visible/invisible.
761    
762            * Thuban/UI/mainwindow.py: Removed legend specific code and
763            replaced it with calls to the new dock code.
764    
765            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
766            to check if scale > 0. Trying to track down a divide by zero.
767    
768    2003-03-26  Jonathan Coles   <[email protected]>
769    
770            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
771            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
772            now part of DockableWindow.
773            (LegendPanel.DoOnSelChanged): Select the current layer in the
774            map.
775            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
776            with the selected layer and/or group.
777    
778    2003-03-26  Jonathan Coles   <[email protected]>
779    
780            This putback contains the code for dockable windows. There is
781            no support in wxWindows as of this date for windows that can
782            attach themselves to other windows.
783    
784            The current model contains a DockableWindow which has a parent
785            window for when it is detached and a dock window that it puts
786            its contents in when it is docked. The contents of a DockableWindow
787            must be a DockPanel. DockPanel itself derives from wxPanel.
788    
789            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
790            message, not a LAYER_LEGEND_CHANGED message.
791    
792            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
793    
794            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
795            as one of the style properties for the fieldTypeText item to
796            be sure that its size is correct when the text changes.
797    
798            * Thuban/UI/dock.py: New. Classes for the DockPanel and
799            DockableWindow.
800    
801            * Thuban/UI/legend.py: Added some more buttons and made the
802            LegendPanel a DockPanel.
803    
804            * Thuban/UI/mainwindow.py: Added sash windows to the main window
805            and supporting functions for manipulating the sashes.
806            (MainWindow.ShowLegend): Create a DockableWindow with the
807            LegendPanel as the contents.
808    
809            * Thuban/UI/messages.py: Added DOCKABLE_* messages
810    
811            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
812            not LAYER_LEGEND_CHANGED, messages.
813    
814    2003-03-25  Jonathan Coles   <[email protected]>
815    
816            * setup.py: Added custom script bdist_rpm_build_script so that
817            when the rpm is built the path to wx-config is correct.
818    
819            * setup.cfg: Added line saying to use the custom build script
820    
821    2003-03-20  Jonathan Coles   <[email protected]>
822    
823            Initial implementation of the Legend.
824    
825            * Thuban/UI/legend.py: New. Creates a window that shows the map's
826            Legend information and allows the user to add/modify classifications
827            and how the layers are drawn on the map.
828    
829            * setup.py: New command 'build_docs' which currently uses
830            happydoc to generate html documentation for Thuban.
831    
832            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
833            Returns a string which is appropriately describes the group.
834    
835            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
836            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
837    
838            * Thuban/Model/map.py (Map): Rename messages and use new, more
839            specific, messages.
840    
841            * Thuban/Model/messages.py: New message to indicate that a layer's
842            data has changed (LAYER_CHANGED). New map messages to indicate
843            when layers have been added/removed/changed or if the stacking order
844            of the layers has changed.
845    
846            * Thuban/Model/session.py: Rename and use new messages.
847    
848            * Thuban/UI/classifier.py: Remember if any changes have actually
849            been applied so that if the dialog is cancelled without an application
850            of changes we don't have to set a new classification.
851            (ClassDataPreviewer): Pulled out the window specific code and put it
852            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
853            symbols on any DC.
854            
855            * Thuban/UI/mainwindow.py: New code to open the legend.
856    
857            * Thuban/UI/view.py: Use new message names.
858    
859    2003-03-19  Jonathan Coles   <[email protected]>
860    
861            * Thuban/UI/main.py (verify_versions): New. Checks the versions
862            of Python, wxPython, and some other libraries.
863    
864            * extensions/thuban/wxproj.cpp (check_version): Checks the given
865            version against what wxproj was compiled with.
866            (check_version_gtk): If wxproj was compiled with gtk then check
867            the given version against the version of the gtk library
868            currently being used.
869    
870    2003-03-14  Bernhard Herzog  <[email protected]>
871    
872            * test/test_command.py: Run the tests when the module is run as a
873            script
874    
875    2003-03-14  Bernhard Herzog  <[email protected]>
876    
877            Implement selection of multiple selected shapes in the same layer:
878    
879            - Introduce a new class to hold the selection. This basically
880              replaces the interactor which was nothing more than the
881              selection anyway. A major difference is of course that the new
882              selection class supports multiple selected shapes in one layer
883            
884            - Move the object that represents the selection from the
885              application to the canvas. The canvas is a better place than the
886              application because the selection represents which shapes and
887              layer of the map displayed by the canvas are selected and
888              affects how the map is drawn.
889    
890            - Make the selection and its messages publicly available through
891              the mainwindow.
892    
893            - The non-modal dialogs do not get a reference to the interactor
894              anymore as they can simply refer to their parent, the
895              mainwindow, for the what the interactor had to offer.
896    
897            * Thuban/UI/selection.py: New module with a class to represent the
898            selection.
899    
900            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
901            these unused messages
902    
903            * Thuban/UI/application.py (ThubanApplication.OnInit)
904            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
905            interactor is gone now.
906            (ThubanApplication.CreateMainWindow): There is no interactor
907            anymore so we pass None as the interactor argument for now for
908            compatibility.
909    
910            * Thuban/UI/view.py (MapCanvas.delegated_messages)
911            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
912            Unsubscribe, delegate messages according to the delegated_messages
913            class variable.
914            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
915            attributes from instance variables as described with the
916            delegated_methods class variable.
917            (MapCanvas.__init__): New instance variable selection holding the
918            current selection
919            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
920            pass them on to the renderer
921            (MapCanvas.SetMap): Clear the selection when a different map is
922            selected.
923            (MapCanvas.shape_selected): Simple force a complete redraw. The
924            selection class now takes care of only issueing SHAPES_SELECTED
925            messages when the set of selected shapes actually does change.
926            (MapCanvas.SelectShapeAt): The selection is now managed in
927            self.selection
928    
929            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
930            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
931            Unsubscribe, delegate messages according to the delegated_messages
932            class variable.
933            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
934            attributes from instance variables as described with the
935            delegated_methods class variable.
936            (MainWindow.__init__): The interactor as ivar is gone. The
937            parameter is still there for compatibility. The selection messages
938            now come from the canvas.
939            (MainWindow.current_layer, MainWindow.has_selected_layer):
940            Delegate to the the canvas.
941            (MainWindow.LayerShowTable, MainWindow.Classify)
942            (MainWindow.identify_view_on_demand): The dialogs don't need the
943            interactor parameter anymore.
944    
945            * Thuban/UI/tableview.py (TableFrame.__init__)
946            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
947            (LayerTableFrame.row_selected): The interactor is gone. It's job
948            from the dialog's point of view is now done by the mainwindow,
949            i.e. the parent. Subscribe to SHAPES_SELECTED instead
950            of SELECTED_SHAPE
951            
952            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
953            is gone. It's job from the dialog's point of view is now done by
954            the mainwindow, i.e. the parent.
955            
956            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
957            gone. It's job from the dialog's point of view is now done by the
958            mainwindow, i.e. the parent.
959    
960            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
961            gone. It's job from the dialog's point of view is now done by the
962            mainwindow, i.e. the parent.
963            (SessionTreeCtrl.__init__): New parameter mainwindow which is
964            stored as self.mainwindow. The mainwindow is need so that the tree
965            can still subscribe to the selection messages.
966            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
967            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
968            selection is now accessible through the mainwindow. Subscribe to
969            SHAPES_SELECTED instead of SELECTED_SHAPE
970    
971            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
972            SHAPES_SELECTED message now.
973            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
974            so deal with multiple shapes
975            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
976            gone. It's job from the dialog's point of view is now done by the
977            mainwindow, i.e. the parent.
978    
979            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
980            parameter is now a list of shape ids.
981            (RecordTable.SetTable): The second parameter is now a list of
982            indices.
983    
984            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
985            selected_shape parameter and ivar to selected_shapes. It's now a
986            list of shape ids.
987            (MapRenderer.draw_label_layer): Deal with multiple selected
988            shapes. Rearrange the code a bit so that the setup and shape type
989            distinctions are only executed once.
990    
991            * test/test_selection.py: Test cases for the selection class
992    
993    2003-03-11  Jonathan Coles   <[email protected]>
994    
995            * Thuban/Model/load.py: Temporary fix so that the xml reader
996            doesn't cause Thuban to crash.
997    
998            * Thuban/Model/layer.py: Handle the cyclic references between
999            a layer and its classification better, and be sure to disconnect
1000            the classification from the layer when the layer is destroyed
1001            so that we don't maintain a cyclic reference that may not be
1002            garbage collected.
1003    
1004            * Thuban/Model/classification.py: See comment for layer.py.
1005    
1006    2003-03-12  Jan-Oliver Wagner <[email protected]>
1007    
1008            * HOWTO-Release: New. Information on the steps for releasing
1009            a new version of Thuban.
1010    
1011    2003-03-11  Jonathan Coles   <[email protected]>
1012    
1013            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
1014            Use True instead of true.
1015            (Classifier): Should have a single panel in which all the controls lie.
1016    
1017            * Thuban/UI/proj4dialog.py: Add normal border.
1018    
1019            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
1020    
1021            * Thuban/UI/mainwindow.py: Use True instead of true.
1022    
1023            * setup.py: Update some definitions to use wxWindows2.4 files
1024    
1025            * Data/iceland_sample_class.thuban: Fixed file so that the
1026            field_type information is present.
1027    
1028    2003-03-10  Jonathan Coles   <[email protected]>
1029    
1030            * Thuban/UI/classifier.py (Classifier.__init__): Make the
1031            field type label grow so that when the text changes the
1032            size is updated correctly. This may be a wxWindows bug.
1033    
1034    2003-03-10  Jonathan Coles   <[email protected]>
1035    
1036            * Thuban/UI/application.py: Changed SESSION_CHANGED to
1037            SESSION_REPLACED.
1038    
1039            * Thuban/UI/classifier.py: Wrap text with _().
1040            (ClassGrid.CreateTable): Set dimensions and size hints here,
1041            instead of in Reset, so we only set the size once.
1042    
1043            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
1044    
1045            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
1046            Call Close() instead of Shutdown().
1047    
1048            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
1049    
1050            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
1051            Go back to using OnClose() instead of Shutdown().
1052    
1053    2003-03-10  Jonathan Coles   <[email protected]>
1054    
1055            * Thuban/UI/classifier.py (Classifier): SelectField() needed
1056            to know the old field index as well as the new one.
1057    
1058    2003-03-10  Jonathan Coles   <[email protected]>
1059    
1060            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
1061            to correctly set the table information and call this from
1062            __init__ and from _OnFieldSelect so that all the information
1063            is up to date when the dialog opens and when a field is changed.
1064    
1065    2003-03-10  Jonathan Coles   <[email protected]>
1066    
1067            * Thuban/Model/classification.py (Classification): Don't use
1068            layer's message function directly, use the ClassChanged() method
1069            when then classification changes. SetField/SetFieldType/SetLayer
1070            must keep the information about field name and field type in
1071            sync when an owning layer is set or removed.
1072    
1073            * Thuban/Model/layer.py: Added ClassChanged() so that the
1074            classification can tell the layer when its data has changed.
1075            (Layer.SetClassification): Accepts None as an arguement to
1076            remove the current classification and correctly handles
1077            adding a new classification.
1078    
1079            * Thuban/Model/load.py: Comment out print statement
1080    
1081            * test/test_classification.py, test/test_save.py: New and
1082            improved tests.
1083    
1084    2003-03-07  Jonathan Coles   <[email protected]>
1085    
1086            * Thuban/Model/classification.py: Implemented __copy__ and
1087            __deepcopy__ for ClassGroup* and ClassGroupProperites so
1088            they can easily be copied by the classifier dialog.
1089            (ClassGroupProperites.__init__): The default line color should
1090            have been Color.Black.
1091    
1092            * Thuban/UI/classifier.py: Setting and Getting table values now
1093            uses a consistent set of functions.
1094            (Classifier): Now non-modal. Has field type label which changes
1095            as the field changes. Keep track of buttons in a list so that
1096            we can enable/disable the buttons when the None field is selected.
1097            (SelectPropertiesDialog): Add buttons to make the colors transparent.
1098    
1099            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
1100            does what OnClose did, but can be called by the application to
1101            close a window. Needed when a session changes, and we have to
1102            close the classifier windows.
1103    
1104            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
1105            Shuts down open dialogs. Used when a new session is created
1106            or a session is opened.
1107            (MainWindow.SaveSession): Should only call application.SaveSession()
1108            if we don't call SaveSessionAs first.
1109            (MainWindow.Classify): Allow different classifier dialogs for
1110            different layers.
1111    
1112            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
1113            the parent class handle it. Add Shutdown() to unsubscibe from
1114            event notification and call the parent Shutdown(). This was
1115            necessary so the application can close the tree window.
1116    
1117    2003-03-06  Jonathan Coles   <[email protected]>
1118    
1119            * Thuban/Model/classification.py: Minor documentation changes,
1120            Addition of __eq__ and __ne__ methods.
1121            (Classification.SetLayer): prevent recursion between this method
1122            and Layer.SetClassification().
1123    
1124            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
1125    
1126            * Thuban/Model/layer.py (SetClassification): prevent recursion
1127            between this method and Classification.SetLayer().
1128    
1129            * test/test_classification.py, test/test_load.py,
1130            test/test_session.py: Fixed and added tests for the classification
1131            classes.
1132    
1133    2003-03-06  Bernhard Herzog  <[email protected]>
1134    
1135            * Thuban/UI/classifier.py (ClassGrid.__init__)
1136            (ClassGrid.CreateTable): Move the SetSelectionMode call to
1137            CreateTable because otherwise it triggers an assertion in
1138            wxPython/wxGTK 2.4.
1139    
1140    2003-03-05  Jonathan Coles   <[email protected]>
1141    
1142            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
1143    
1144            * Thuban/Model/load.py: import FIELDTYPE constants from table.
1145    
1146            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
1147    
1148            * Thuban/Model/table.py: Put FIELDTYPE constants back.
1149    
1150    2003-03-05  Jonathan Coles   <[email protected]>
1151    
1152            * Thuban/UI/classifier.py: Added class documentation.
1153            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
1154            Store just the groups in the table and generate the other
1155            column information when it is requested. Add "None" field
1156            to pull-down to select no classification.
1157    
1158            * Thuban/common.py: Moved FIELDTYPE constants from table.py
1159            (Str2Num): Only catch ValueError exceptions.
1160    
1161            * Thuban/Model/classification.py: Class documentation. Renaming
1162            of methods with Stroke to Line. Groups are stored in a single
1163            list with the default as the first element. Groups are searched
1164            in the order they appear in the list.
1165    
1166            * Thuban/Model/color.py: Documentation.
1167    
1168            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
1169            the kind of data represented by a field.
1170    
1171            * Thuban/Model/load.py (ProcessSession): Use proper string
1172            conversion function; fixes RTbug #1713.
1173    
1174            * Thuban/Model/save.py (Saver): Store field type information.
1175    
1176            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
1177            (Table): Add field_info_by_name() to retrieve field information
1178            by specifying the field name, not the number.
1179    
1180            * Thuban/UI/mainwindow.py: Function name changes.
1181    
1182            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
1183            get the layer classification once. Don't try to classify
1184            values when the field is None: just use the default properties.
1185    
1186            * Thuban/UI/view.py: Function name changes.
1187    
1188            * Doc/thuban.dtd: Add field_type attribute to a classification.
1189    
1190  2003-03-04  Bernhard Herzog  <[email protected]>  2003-03-04  Bernhard Herzog  <[email protected]>
1191    
1192          * Doc/thuban.dtd: Use correct syntax for optional attributes. Make          * Doc/thuban.dtd: Use correct syntax for optional attributes. Make

Legend:
Removed from v.458  
changed lines
  Added in v.734

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26