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

Legend:
Removed from v.595  
changed lines
  Added in v.762

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26