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

Legend:
Removed from v.634  
changed lines
  Added in v.809

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26