/[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 575 by jonathan, Mon Mar 31 18:30:51 2003 UTC revision 735 by jonathan, Fri Apr 25 09:11:39 2003 UTC
# Line 1  Line 1 
1    2003-04-25  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
4            tree for projection information.
5    
6            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
7            XMLReader.GetFileName.
8            (SessionLoader): Added support for loading projection tags that
9            appear inside a layer.
10    
11            * Thuban/Model/proj.py (ProjFile): Document the class. Move
12            back to using a list because the order of the projections in
13            the file is important to maintain. Fixes RTbug #1817.
14    
15            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
16            to ProjFile.GetFilename.
17    
18            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
19            information.
20    
21            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
22            ProjFrame._OnSaveAs. Removed old dead code from previous
23            implementation.
24            (ProjFrame._OnExport): Add support for exporting more than one
25            projection to a single file.
26            (ProjFrame.__FillAvailList): use string formatting (% operator)
27            to build strings that are (partly) translated. Fixes RTbug #1818.
28    
29            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
30            class.
31    
32    2003-04-24  Bernhard Herzog  <[email protected]>
33    
34            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
35    
36            * po/fr.po: New. French translation by Daniel Calvelo Aros
37    
38            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
39            empty strings.
40    
41    2003-04-24  Jonathan Coles   <[email protected]>
42    
43            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
44            implement the interface that the ProjFrame dialog expects.
45    
46            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
47            name of the projection to be changed.
48            (ProjFile): Use a dictionary instead of a list so that removing
49            projections is easier and we are sure about uniqueness.
50            (ProjFile.Remove): Remove the given projection object.
51    
52            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
53            Return a list with only one projection file instead of searching for
54            any projection file. This simplifies many things if the user can
55            only have one system file and one user file.
56    
57            * Thuban/UI/classgen.py: Change all references to
58            genCombo to genChoice.
59    
60            * Thuban/UI/mainwindow.py: Add a Projection option under the
61            layer menu.
62            (MainWindow.LayerProjection): New. Open up a projection window
63            for a layer.
64    
65            * Thuban/UI/projdialog.py: Large changes to how the dialog is
66            laid out. Use three panels instead of one. One for the list of
67            projections, one for the edit controls, and one for the buttons.
68            Fixed resizing problems so that the dialog resizes correctly
69            when the projection panel changes. Added import/export, save, and
70            new buttons/functionality.
71    
72    2003-04-24  Bernhard Herzog  <[email protected]>
73    
74            First step towards table management. Introduce a simple data
75            abstraction so that we replace the data a layer uses more easily
76            in the next step.
77    
78            * Thuban/Model/data.py: New file with a simple data abstraction
79            that bundles shapefile and dbffile into one object.
80    
81            * Thuban/Model/session.py (Session.OpenShapefile): New method to
82            open shapefiles and return a shape store object
83    
84            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
85            object instead of a shapefile filename. This introduces a new
86            instance variable store holding the datastore. For intermediate
87            backwards compatibility keep the old instance variables.
88            (open_shapefile): Removed. No longer needed with the shape store.
89            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
90            get the shape store used by a layer.
91            (Layer.Destroy): No need to explicitly destroy the shapefile or
92            table anymore.
93    
94            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
95            (MainWindow.AddLayer): Use the session's OpenShapefile method to
96            open shapefiles
97    
98            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
99            session's OpenShapefile method to open shapefiles
100    
101            * test/test_classification.py
102            (TestClassification.test_classification): Use the session's
103            OpenShapefile method to open shapefiles and build the filename in
104            a more platform independed way
105    
106            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
107            Implement to have a session to use in the tests
108            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
109            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
110            session's OpenShapefile method to open shapefiles
111            (TestLayerLegend.setUp): Instantiate a session so that we can use
112            it to open shapefiles.
113            (TestLayerLegend.tearDown): Make sure that all references to
114            layers and session are removed otherwise we may get a resource
115            leak
116    
117            * test/test_map.py (TestMapAddLayer.test_add_layer)
118            (TestMapWithContents.setUp): Instantiate a session so that we can
119            use it to open shapefiles.
120            (TestMapWithContents.tearDown): Make sure that all references to
121            layers, maps and sessions are removed otherwise we may get a
122            resource leak
123            ("__main__"): use support.run_tests() so that more info about
124            uncollected garbage is printed
125    
126            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
127            session's OpenShapefile method to open shapefiles
128            ("__main__"): use support.run_tests() so that more info about
129            uncollected garbage is printed
130    
131            * test/test_selection.py (TestSelection.tearDown): Make sure that
132            all references to the session and the selection are removed
133            otherwise we may get a resource leak
134            (TestSelection.get_layer): Instantiate a session so that we can
135            use it to open shapefiles.
136            ("__main__"): use support.run_tests() so that more info about
137            uncollected garbage is printed
138    
139            * test/test_session.py (TestSessionBase.tearDown)
140            (TestSessionWithContent.tearDown): Make sure that all references
141            to the session and layers are removed otherwise we may get a
142            resource leak
143            (TestSessionWithContent.setUp): Use the session's OpenShapefile
144            method to open shapefiles
145    
146    2003-04-24  Jonathan Coles   <[email protected]>
147    
148            * Thuban/Model/load.py (XMLReader.read): Should have been checking
149            if the file_or_filename object had the 'read' attribute.
150    
151    2003-04-23  Jonathan Coles   <[email protected]>
152    
153            * Thuban/Model/resource.py: Fixes RTbug #1813.
154            (ReadProjFile): Add documentation about which exceptions are raised.
155            Always pass the exceptions up to the caller.
156            (GetProjFiles): If the directory can't be read return an empty list.
157            If any of the proj files can't be read skip that file and go
158            on to the next one.
159    
160            * test/test_proj.py: Added test cases to handle nonexistent files,
161            unreadable files, and files that don't parse correctly.
162    
163    2003-04-23  Jonathan Coles   <[email protected]>
164    
165            Projection dialog. Allows the user to select from a list
166            of projection templates and optionally edit them and save new ones.
167    
168            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
169            (ProjPanel): Base class for projection specific panels.
170            (TMPanel): Projection panel for Transverse Mercartor.
171            (UTMPanel): Projection panel for Universal Transverse Mercartor.
172            (LCCPanel): Projection panel for Lambert Conic Conformal.
173            (GeoPanel): Projetion panel for Geographic Projection.
174    
175    2003-04-23  Jonathan Coles   <[email protected]>
176    
177            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
178            promote symmetry. There now exists XMLReader and XMLWriter.
179            (XMLReader.read): New. Call to read the given file descriptor or
180            filename.
181            (XMLReader.close): New. Make sure the file is closed.
182            (XMLReader.GetFileName): New. Return just the file name that is being
183            read from.
184            (XMLReader.GetDirectory): New. Return just the directory of the file
185            that is being read.
186            (XMLReader.AddDispatchers): New. Take a dictionary which contains
187            the names of functions to call as the XML tree is parsed.
188            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
189            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
190            (SessionLoader): Removed class variables start_dispatcher and
191            end_dispatcher since this functionality is now part of a class
192            instance. Fixes RTbug #1808.
193            (SessionLoader.__init__): Add dispatcher functions.
194            (load_xmlfile): Code was moved into the XMLReader.read().
195            (load_session): Use modified SessionLoader.
196    
197            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
198            map's projection.
199    
200            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
201            GetAllParameters.
202            (Projection.GetParameter): Returns the value for the given parameter.
203    
204            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
205            (GetProjFiles): Renamed from GetProjections. Now returns a list
206            of ProjFile objects.
207            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
208            a list of ProjFile objects whose files are not user defined.
209            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
210            list of ProjFile objects whose files are user defined.
211            (ProjFileReader): Extend new XMLReader.
212    
213            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
214            promote symmetry.
215    
216            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
217            control instead of a wxComboBox. wxChoice controls do not generate
218            events as the uses highlights possible choices which fixes problems
219            with resizing the dialog when the use selects an option.
220    
221            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
222            control instead of a wxComboBox.
223    
224            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
225            dialog.
226    
227            * test/test_proj.py (TestProjection.test): New tests for GetParameter
228            method.
229    
230    2003-04-22  Bernhard Herzog  <[email protected]>
231    
232            * Thuban/UI/mainwindow.py: Remove some unused imports and global
233            constants
234    
235            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
236            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
237    
238    2003-04-17  Bernhard Herzog  <[email protected]>
239    
240            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
241            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
242            anymore.
243            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
244            (Layer.ShapeType, Layer.Shape): No need to call
245            self.open_shapefile since it's always called in __init__
246    
247            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
248            In wxPython 2.4 there's no need to extend MainLoop anymore since
249            wxPython itself makes sure OnExit is called.
250    
251    2003-04-16  Jonathan Coles   <[email protected]>
252    
253            Initial putback of projection management code. Includes new
254            classes to read and write projection files. The current load
255            and save classes were abstracted a bit so they could be reused.
256            The Projection class was extended to provide new methods and
257            have a name.
258    
259            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
260            general XML reading methods that were part of ProcessSession.
261    
262            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
263            name.
264            (ProjFile): New. Represents a file that contains projection
265            information.
266    
267            * Thuban/Model/resource.py: New. Contains general utilities
268            for read and writing projection files.
269    
270            * Thuban/Model/save.py (XMLSaver): New. Contains all the
271            general XML writing methods that were part of SessionSaver.
272            (SessionSaver): Renamed from Saver.
273    
274            * test/test_proj.py: New test cases for the projection
275            file read and write functions.
276    
277    2003-04-16  Jonathan Coles   <[email protected]>
278    
279            * Thuban/Model/classification.py: Use repr() around values
280            in the ClassGroup*.__repr__() methods so it is clearer when
281            a value is a string and when it is a number.
282    
283            * test/test_load.py: Rework the classification test to test
284            that we can load old files.
285            (testLabels): Test a file where the groups have labels.
286    
287    2003-04-16  Bernhard Herzog  <[email protected]>
288    
289            Safer implementation of the performance enhancements of the
290            low-level renderer:
291            
292            * extensions/thuban/wxproj.cpp (extract_projection)
293            (extract_pointer): Rename extract_projection to extract_pointer
294            and redefine its purpose to return the pointer stored in a CObject
295            returned by the object's cobject method. Update all callers.
296            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
297            handling of these low-level parameters so that each s_draw_info
298            instance is handled as a CObject at python level that also
299            contains real references to the actual python objects which
300            contain the values in the struct. Add free_draw_info as the
301            destructor.
302            (draw_polygon_shape): Add the py_draw_info parameter which must a
303            cobject containing an s_draw_info pointer.
304    
305            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
306            method to instantiat the low-level render parameter
307            (MapRenderer.draw_shape_layer): Use the new method. Remove some
308            commented out code.
309            (MapRenderer.draw_polygon_shape): Make the first parameter not the
310            layer but the low-level render parameter
311            (ScreenRenderer.draw_shape_layer): Use the low-level render
312            parameter.
313    
314    2003-04-15  Jonathan Coles   <[email protected]>
315    
316            * Thuban/Model/classification.py: Implemented __repr__ for
317            the ClassGroup* classes to make debugging a bit easier.
318            (ClassGroup.SetLabel): Check that the string is an instance
319            of StringTypes not StringType. Accounts for Unicode strings.
320    
321            * Thuban/Model/color.py: Implemented __repr__ to make
322            debugging a bit easier.
323    
324            * Thuban/Model/save.py (Saver.write_classification): Need to
325            save the group label.
326    
327            * test/test_load.py (testClassification): New. Loads the
328            iceland_sample_test.thuban file and checks if it was loaded
329            correctly.
330    
331    2003-04-15  Jonathan Coles   <[email protected]>
332    
333            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
334            to improve rendering performance by initializing the variables
335            that are not change each time draw_polygon_shape() is called.
336            The values are stored in a global struct draw_info.
337            (draw_polygon_shape): Removed initialization code that is
338            now in draw_polygon_init().
339    
340            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
341            drawing initialization call to draw_polygon_init()
342            (MapRenderer.draw_polygon_shape): Use new signature of
343            draw_polygon_shape.
344    
345            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
346            weirdness by setting the range to (1, maxint).
347    
348            * Thuban/Model/classification.py (ClassGroupProperties): Make
349            instance variables private and optimize comparison operator
350            by first checking if the color references are the same.
351            (ClassGroupSingleton): Make instance variables private.
352            (ClassGroupRange): Make instance variables private.
353    
354            * HOWTO-Release: Filled in missing steps for releasing packages.
355    
356    2003-04-15  Bernhard Herzog  <[email protected]>
357    
358            First stab at internationalized messages:
359    
360            * Thuban/__init__.py (_): Implement the translation function for
361            real using the python gettext module.
362    
363            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
364            translate empty strings.
365    
366            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
367            Add a missing space to a warning message
368    
369            * po/README: New. Notes about the management of the translation
370            files.
371    
372            * po/Makefile: New. Makefile to help manage the translation files.
373    
374            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
375    
376            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
377            translations and support files in po/
378    
379            * setup.py (data_files): Add the *.mo files to the data_files too
380    
381            * README: Add note about the translations when building from CVS
382    
383    2003-04-14  Jonathan Coles   <[email protected]>
384    
385            * Thuban/UI/dock.py: Fixes some window resizing problems most
386            noticable under windows. Always assume the button bitmaps will
387            be there. Code clean up.
388            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
389            images for the dock/undock button to the same images.
390            Work around for RTbug #1801.
391    
392            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
393            be allowed to grow within the sizer. Fixes a bug under Windows
394            where the toolbar wasn't being drawn.
395    
396    2003-04-14  Frank Koormann   <[email protected]>
397    
398            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
399            Updated design to try to make the button functionality more
400            transparent.
401    
402    2003-04-14  Jonathan Coles   <[email protected]>
403    
404            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
405            finalize the intialization of the panel.
406    
407            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
408            creation of the panel. Should be the last thing called in the
409            initializer of a subclass.
410    
411            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
412            set the current selections in the combo boxes. This is needed
413            under Windows.
414    
415            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
416            level panel to the dialog so that the background colors are
417            consistent under Windows.
418    
419    2003-04-11  Jonathan Coles   <[email protected]>
420    
421            * Thuban/UI/classgen.py: Change color ramps to start at white
422            not black.
423    
424            * Thuban/UI/legend.py: Enable/disable the legend buttons when
425            the legend changes. Fixes RTbug #1793.
426    
427            * test/test_classification.py: Added test for copying of
428            classifications.
429    
430    2003-04-11  Jonathan Coles   <[email protected]>
431    
432            * Thuban/UI/resource.py: New. Centralize the loading of resources
433            such as bitmaps.
434    
435            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
436            added images to the move buttons, added 'reverse' button.
437            (CustomRampPanel.__init__): Added images to the move buttons.
438            (GreyRamp): New. Generates a ramp from white to black.
439            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
440    
441            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
442            ID_PROPERTY_*.
443            (Classifier.__init__): Minor changes to the layout.
444            (Classifier._OnTitleChanged): Listen for when the user edits the
445            title and update the dialog's title and the layer's title.
446    
447            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
448    
449            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
450            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
451            if the layer's title changes.
452    
453            * Thuban/UI/mainwindow.py: Added new menu item and associated code
454            to open a dialog to rename the map.
455            (MainWindow): Use new resource class to import bitmaps.
456    
457    2003-04-11  Jonathan Coles   <[email protected]>
458    
459            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
460            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
461            Resources/Bitmaps/group_use_none.xpm,
462            Resources/Bitmaps/group_use_not.xpm,
463            Resources/Bitmaps/hide_layer.xpm,
464            Resources/Bitmaps/layer_properties.xpm,
465            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
466            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
467            New.
468    
469    2003-04-10  Jonathan Coles   <[email protected]>
470    
471            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
472            Should pass group to ClassGroup constructor.
473    
474    2003-04-10  Jonathan Coles   <[email protected]>
475    
476            * Thuban/Model/classification.py: (ClassGroup): Move all the common
477            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
478            here. Implement SetVisible(), IsVisible().
479            (ClassGroup.__init__): Add group parameter which acts as a copy
480            constructor.
481    
482            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
483            "Visible" check boxes.
484            (Classifier): Rename the buttons and refactor the code to match
485            the new labels.
486    
487            * Thuban/UI/legend.py: Classify button is now called "Properties".
488            Refactored the code to change variable names.
489            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
490    
491            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
492            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
493            renamed to MainWindow.LayerEditProperties.
494            (MainWindow.ToggleLegend): Don't include map name in legend title.
495            (MainWindow.SetMap): Added the map name to the window title.
496            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
497            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
498            Functionality is found in the layer properties dialog.
499    
500            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
501            draw visible groups.
502    
503    2003-04-09  Jonathan Coles   <[email protected]>
504    
505            * Thuban/UI/classgen.py: Modifications to allow simple
506            addition and selection of new color schemes.
507            (MonochromaticRamp): New. Generates a ramp between two colors.
508            (RedRamp): New. Generates a ramp of all red.
509            (GreenRamp): New. Generates a ramp of all green.
510            (BlueRamp): New. Generates a ramp of all blue.
511    
512    2003-04-09  Jonathan Coles   <[email protected]>
513    
514            * Thuban/Model/classification.py (Classification.__deepcopy__):
515            Need to copy over field and fieldType attributes.
516    
517            * Thuban/Model/table.py (Table.field_range): New. Retrive the
518            maximum and minimum values over the entire table for a given
519            field.
520            (Table.GetUniqueValues): New. Retrieve all the unique values
521            in the table for a given field.
522    
523            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
524            (GenUniquePanel): New. Controls to allow the user to select
525            which unique field values they would like in the classification.
526            (CustomRampPanel): Code that was in ClassGenDialog that allows
527            the user to select the properties for a custom ramp.
528            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
529    
530            * Thuban/UI/classifier.py: Removed a lot of debugging code.
531            (Classifier._SetClassification): Callback method so that the
532            class generator can set the classification in the grid.
533            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
534            editing of a group properties class into a wxWindows control.
535    
536            * Thuban/UI/dock.py: It was decided that if the user closes
537            a dockable window the window should simply hide itself. That
538            way if the user wants to show the dock again it appears in the
539            same place as it was when it was closed.
540            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
541            (DockableWindow._OnButtonClose): Hide the window instead of
542            destroying it.
543            (DockableWindow._OnClose): Hide the window instead of
544            destroying it.
545    
546            * Thuban/UI/legend.py (LegendTree): Use a private method to
547            consistently set the font and style of the text. Fixes RTbug #1786.
548    
549            * Thuban/UI/mainwindow.py: Import just the Classifier class.
550    
551    2003-04-07  Bernhard Herzog  <[email protected]>
552    
553            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
554            to the map module
555    
556    2003-04-07  Bernhard Herzog  <[email protected]>
557    
558            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
559            favor of ToggleSessionTree
560            (MainWindow.ToggleSessionTree): New method to toggle visibility of
561            the session tree.
562            (MainWindow.SessionTreeShown): New method to return whether the
563            session tree is currently shown.
564            (MainWindow.ToggleLegend): New method to toggle visibility of the
565            legend
566            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
567            LegendShown
568            (MainWindow.LegendShown): New method to return whether the legend
569            is currently shown.
570            (_method_command): Add checked parameter so we can define check
571            menu items
572            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
573            mainwindow methods.
574            (show_session_tree, show_legend commands): Removed.
575            (toggle_session_tree, toggle_legend commands): New commands to
576            toggle the visibility of the dialogs
577    
578    2003-04-07  Jonathan Coles   <[email protected]>
579    
580            * Thuban/UI/classgen.py: Fix Windows problem.
581    
582            * Thuban/UI/dock.py: Fix Windows problem.
583    
584            * Thuban/UI/mainwindow.py: Use False instead of false.
585            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
586    
587    2003-04-07  Jonathan Coles   <[email protected]>
588    
589            Since we now say that the order of the groups in a classification
590            matters, it makes sense to be able to manipulate that order. Most
591            of the changes to Thuban/Model/classification.py are to that end.
592    
593            * Thuban/Model/classification.py (Classification.AppendGroup,
594            Classification.InsertGroup, Classification.ReplaceGroup,
595            Classification.RemoveGroup, Classification.GetGroup): Do as the
596            names imply.
597            (Classification.FindGroup): This was called GetGroup, but GetGroup
598            takes an index, while FindGroup takes a value.
599            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
600            REFERENCE. Currently there is a cyclic reference between the layer
601            and its classification. If the classification doesn't need to know
602            its owning layer we can change this, since it may make sense to be
603            able to use the same classification with different layers.
604    
605            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
606    
607            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
608            not AddGroup()
609    
610            * Thuban/UI/classifier.py: Now that we can depend on the order in
611            a Classification and have methods to manipulate that order we don't
612            need to use our own data structures in the grid. We can simply make
613            the grid/table access the information they need from a copy of
614            the classification object.
615            (Classifier._OnCloseBtn): Event handler for when the user clicks
616            'Close'. This is needed so if the user applies changes and then
617            continues to change the table the user has the option of discarding
618            the most recent changes and keeping what they applied.
619    
620            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
621            into the same group.
622    
623            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
624            with a really old version of proj, PJ_VERSION won't even be defined.
625            If it isn't defined then just compile so that the function always
626            returns Py_False.
627    
628            * test/test_classification.py: Fix tests to use the renamed methods.
629            Still need to write tests for the new methods.
630    
631    2003-04-04  Jonathan Coles   <[email protected]>
632    
633            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
634            call to SetSelection out of the method and before the call
635            to __SelectField in __init__. This prevents a recursion of events
636            when _OnFieldSelect is triggered by the user.
637    
638    2003-04-04  Jonathan Coles   <[email protected]>
639    
640            * Thuban/Model/classification.py: Rename Color.None to
641            Color.Transparent.
642            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
643            Don't bother copying the color, since Colors are immutable.
644    
645            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
646            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
647            Thuban/UI/renderer.py, Thuban/UI/view.py:
648            Rename Color.None to Color.Transparent.
649        
650            * test/test_classification.py, test/test_load.py: Rename Color.None
651            to Color.Transparent.
652    
653    2003-04-04  Jonathan Coles   <[email protected]>
654    
655            * Thuban/Model/classification.py: Fix assert calls.
656            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
657            Copy the color parameter rather than hold onto a reference.
658    
659            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
660            the color object.
661            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
662            are sure there exists only one refernce to Color.None in the system.
663            This allows us to use 'is' rather than the comparision functions.
664            
665            * Thuban/Model/save.py: Fix assert calls.
666            
667            * Thuban/UI/classifier.py: Fix assert calls.
668            (ClassGrid._OnCellDClick): Call up to the classifier to open the
669            dialog to edit the groups properties.
670            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
671            correctly if a cell is resized.
672            (ClassTable.SetClassification): New. Changes the classification
673            that is in the table.
674            (ClassTable.__SetRow): Allow groups to be prepended.
675            (Classifier): New code for opening the EditProperties and
676            GenerateRanges dialogs.
677            (SelectPropertiesDialog.__GetColor): Only set the color in the
678            color dialog if the current color is not None.
679            
680            * Thuban/UI/dock.py: Fix assert calls.
681            
682            * Thuban/UI/legend.py: Fix assert calls.
683            
684            * Thuban/UI/renderer.py: Fix assert calls.
685            
686            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
687            classifications.
688            (GenRangePanel): Panel specific to range generation.
689            (GenSingletonPanel): Panel specific to singleton generation.
690            (ClassGenerator): Class responsible for actually generating
691            the classification from the data gathered in the dialog box.
692            (PropertyRamp): Generates properties whose values range from
693            a starting property to an ending property.
694    
695    2003-04-03  Bernhard Herzog  <[email protected]>
696    
697            * test/support.py (print_garbage_information): New function that
698            prints information about still connected messages and memory
699            leaks.
700            (run_suite): Removed.
701            (run_tests): New function for use as a replacement of
702            unittest.main in the test_* files. This one calls
703            print_garbage_information at the end.
704    
705            * test/runtests.py (main): Use support.print_garbage_information
706    
707            * test/test_layer.py: Use support.run_tests instead of
708            unittest.main so we get memory leak information
709            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
710            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
711            (TestLayerLegend.test_visibility): Call the layer's Destroy method
712            to fix a memory leak.
713    
714            * test/test_classification.py: Use support.run_tests instead of
715            unittest.main so we get memory leak information
716            (TestClassification.test_classification): Call the layer's Destroy
717            method to fix a memory leak.
718    
719    2003-04-02  Bernhard Herzog  <[email protected]>
720    
721            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
722            Handle the reference counts of the return value and errors in
723            PyArg_ParseTuple correctly.
724    
725            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
726            sure the filename is absolute to avoid problems when saving the
727            session again
728    
729            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
730    
731    2003-04-01  Jonathan Coles   <[email protected]>
732    
733            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
734            that there actually are points in the returned list of points
735            before trying to index into the list. The list may be empty if
736            the shape is a Null Shape.
737    
738    2003-04-01  Bernhard Herzog  <[email protected]>
739    
740            * test/test_map.py: Don't use from <module> import *
741    
742    2003-04-01  Jonathan Coles   <[email protected]>
743    
744            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
745            LAYER_LEGEND_CHANGED
746    
747            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
748            self.Destroy() to close the window after yesterday's changes.
749    
750            * test/test_map.py, test/test_session.py: Fix messages that
751            are sent from maps and layers.
752    
753  2003-03-31  Jonathan Coles   <[email protected]>  2003-03-31  Jonathan Coles   <[email protected]>
754    
755          * Thuban/UI/classifier.py: Commented out some debugging statements.          * Thuban/UI/classifier.py: Commented out some debugging statements.

Legend:
Removed from v.575  
changed lines
  Added in v.735

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26