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

Legend:
Removed from v.569  
changed lines
  Added in v.716

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26