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

Legend:
Removed from v.619  
changed lines
  Added in v.767

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26