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

Legend:
Removed from v.587  
changed lines
  Added in v.753

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26