/[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 523 by jan, Wed Mar 12 17:08:23 2003 UTC revision 721 by jonathan, Thu Apr 24 10:11:55 2003 UTC
# Line 1  Line 1 
1    2003-04-24  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/load.py (XMLReader.read): Should have been checking
4            if the file_or_filename object had the 'read' attribute.
5    
6    2003-04-23  Jonathan Coles   <[email protected]>
7    
8            * Thuban/Model/resource.py: Fixes RTbug #1813.
9            (ReadProjFile): Add documentation about which exceptions are raised.
10            Always pass the exceptions up to the caller.
11            (GetProjFiles): If the directory can't be read return an empty list.
12            If any of the proj files can't be read skip that file and go
13            on to the next one.
14    
15            * test/test_proj.py: Added test cases to handle nonexistent files,
16            unreadable files, and files that don't parse correctly.
17    
18    2003-04-23  Jonathan Coles   <[email protected]>
19    
20            Projection dialog. Allows the user to select from a list
21            of projection templates and optionally edit them and save new ones.
22    
23            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
24            (ProjPanel): Base class for projection specific panels.
25            (TMPanel): Projection panel for Transverse Mercartor.
26            (UTMPanel): Projection panel for Universal Transverse Mercartor.
27            (LCCPanel): Projection panel for Lambert Conic Conformal.
28            (GeoPanel): Projetion panel for Geographic Projection.
29    
30    2003-04-23  Jonathan Coles   <[email protected]>
31    
32            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
33            promote symmetry. There now exists XMLReader and XMLWriter.
34            (XMLReader.read): New. Call to read the given file descriptor or
35            filename.
36            (XMLReader.close): New. Make sure the file is closed.
37            (XMLReader.GetFileName): New. Return just the file name that is being
38            read from.
39            (XMLReader.GetDirectory): New. Return just the directory of the file
40            that is being read.
41            (XMLReader.AddDispatchers): New. Take a dictionary which contains
42            the names of functions to call as the XML tree is parsed.
43            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
44            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
45            (SessionLoader): Removed class variables start_dispatcher and
46            end_dispatcher since this functionality is now part of a class
47            instance. Fixes RTbug #1808.
48            (SessionLoader.__init__): Add dispatcher functions.
49            (load_xmlfile): Code was moved into the XMLReader.read().
50            (load_session): Use modified SessionLoader.
51    
52            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
53            map's projection.
54    
55            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
56            GetAllParameters.
57            (Projection.GetParameter): Returns the value for the given parameter.
58    
59            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
60            (GetProjFiles): Renamed from GetProjections. Now returns a list
61            of ProjFile objects.
62            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
63            a list of ProjFile objects whose files are not user defined.
64            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
65            list of ProjFile objects whose files are user defined.
66            (ProjFileReader): Extend new XMLReader.
67    
68            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
69            promote symmetry.
70    
71            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
72            control instead of a wxComboBox. wxChoice controls do not generate
73            events as the uses highlights possible choices which fixes problems
74            with resizing the dialog when the use selects an option.
75    
76            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
77            control instead of a wxComboBox.
78    
79            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
80            dialog.
81    
82            * test/test_proj.py (TestProjection.test): New tests for GetParameter
83            method.
84    
85    2003-04-22  Bernhard Herzog  <[email protected]>
86    
87            * Thuban/UI/mainwindow.py: Remove some unused imports and global
88            constants
89    
90            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
91            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
92    
93    2003-04-17  Bernhard Herzog  <[email protected]>
94    
95            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
96            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
97            anymore.
98            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
99            (Layer.ShapeType, Layer.Shape): No need to call
100            self.open_shapefile since it's always called in __init__
101    
102            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
103            In wxPython 2.4 there's no need to extend MainLoop anymore since
104            wxPython itself makes sure OnExit is called.
105    
106    2003-04-16  Jonathan Coles   <[email protected]>
107    
108            Initial putback of projection management code. Includes new
109            classes to read and write projection files. The current load
110            and save classes were abstracted a bit so they could be reused.
111            The Projection class was extended to provide new methods and
112            have a name.
113    
114            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
115            general XML reading methods that were part of ProcessSession.
116    
117            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
118            name.
119            (ProjFile): New. Represents a file that contains projection
120            information.
121    
122            * Thuban/Model/resource.py: New. Contains general utilities
123            for read and writing projection files.
124    
125            * Thuban/Model/save.py (XMLSaver): New. Contains all the
126            general XML writing methods that were part of SessionSaver.
127            (SessionSaver): Renamed from Saver.
128    
129            * test/test_proj.py: New test cases for the projection
130            file read and write functions.
131    
132    2003-04-16  Jonathan Coles   <[email protected]>
133    
134            * Thuban/Model/classification.py: Use repr() around values
135            in the ClassGroup*.__repr__() methods so it is clearer when
136            a value is a string and when it is a number.
137    
138            * test/test_load.py: Rework the classification test to test
139            that we can load old files.
140            (testLabels): Test a file where the groups have labels.
141    
142    2003-04-16  Bernhard Herzog  <[email protected]>
143    
144            Safer implementation of the performance enhancements of the
145            low-level renderer:
146            
147            * extensions/thuban/wxproj.cpp (extract_projection)
148            (extract_pointer): Rename extract_projection to extract_pointer
149            and redefine its purpose to return the pointer stored in a CObject
150            returned by the object's cobject method. Update all callers.
151            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
152            handling of these low-level parameters so that each s_draw_info
153            instance is handled as a CObject at python level that also
154            contains real references to the actual python objects which
155            contain the values in the struct. Add free_draw_info as the
156            destructor.
157            (draw_polygon_shape): Add the py_draw_info parameter which must a
158            cobject containing an s_draw_info pointer.
159    
160            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
161            method to instantiat the low-level render parameter
162            (MapRenderer.draw_shape_layer): Use the new method. Remove some
163            commented out code.
164            (MapRenderer.draw_polygon_shape): Make the first parameter not the
165            layer but the low-level render parameter
166            (ScreenRenderer.draw_shape_layer): Use the low-level render
167            parameter.
168    
169    2003-04-15  Jonathan Coles   <[email protected]>
170    
171            * Thuban/Model/classification.py: Implemented __repr__ for
172            the ClassGroup* classes to make debugging a bit easier.
173            (ClassGroup.SetLabel): Check that the string is an instance
174            of StringTypes not StringType. Accounts for Unicode strings.
175    
176            * Thuban/Model/color.py: Implemented __repr__ to make
177            debugging a bit easier.
178    
179            * Thuban/Model/save.py (Saver.write_classification): Need to
180            save the group label.
181    
182            * test/test_load.py (testClassification): New. Loads the
183            iceland_sample_test.thuban file and checks if it was loaded
184            correctly.
185    
186    2003-04-15  Jonathan Coles   <[email protected]>
187    
188            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
189            to improve rendering performance by initializing the variables
190            that are not change each time draw_polygon_shape() is called.
191            The values are stored in a global struct draw_info.
192            (draw_polygon_shape): Removed initialization code that is
193            now in draw_polygon_init().
194    
195            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
196            drawing initialization call to draw_polygon_init()
197            (MapRenderer.draw_polygon_shape): Use new signature of
198            draw_polygon_shape.
199    
200            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
201            weirdness by setting the range to (1, maxint).
202    
203            * Thuban/Model/classification.py (ClassGroupProperties): Make
204            instance variables private and optimize comparison operator
205            by first checking if the color references are the same.
206            (ClassGroupSingleton): Make instance variables private.
207            (ClassGroupRange): Make instance variables private.
208    
209            * HOWTO-Release: Filled in missing steps for releasing packages.
210    
211    2003-04-15  Bernhard Herzog  <[email protected]>
212    
213            First stab at internationalized messages:
214    
215            * Thuban/__init__.py (_): Implement the translation function for
216            real using the python gettext module.
217    
218            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
219            translate empty strings.
220    
221            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
222            Add a missing space to a warning message
223    
224            * po/README: New. Notes about the management of the translation
225            files.
226    
227            * po/Makefile: New. Makefile to help manage the translation files.
228    
229            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
230    
231            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
232            translations and support files in po/
233    
234            * setup.py (data_files): Add the *.mo files to the data_files too
235    
236            * README: Add note about the translations when building from CVS
237    
238    2003-04-14  Jonathan Coles   <[email protected]>
239    
240            * Thuban/UI/dock.py: Fixes some window resizing problems most
241            noticable under windows. Always assume the button bitmaps will
242            be there. Code clean up.
243            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
244            images for the dock/undock button to the same images.
245            Work around for RTbug #1801.
246    
247            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
248            be allowed to grow within the sizer. Fixes a bug under Windows
249            where the toolbar wasn't being drawn.
250    
251    2003-04-14  Frank Koormann   <[email protected]>
252    
253            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
254            Updated design to try to make the button functionality more
255            transparent.
256    
257    2003-04-14  Jonathan Coles   <[email protected]>
258    
259            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
260            finalize the intialization of the panel.
261    
262            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
263            creation of the panel. Should be the last thing called in the
264            initializer of a subclass.
265    
266            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
267            set the current selections in the combo boxes. This is needed
268            under Windows.
269    
270            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
271            level panel to the dialog so that the background colors are
272            consistent under Windows.
273    
274    2003-04-11  Jonathan Coles   <[email protected]>
275    
276            * Thuban/UI/classgen.py: Change color ramps to start at white
277            not black.
278    
279            * Thuban/UI/legend.py: Enable/disable the legend buttons when
280            the legend changes. Fixes RTbug #1793.
281    
282            * test/test_classification.py: Added test for copying of
283            classifications.
284    
285    2003-04-11  Jonathan Coles   <[email protected]>
286    
287            * Thuban/UI/resource.py: New. Centralize the loading of resources
288            such as bitmaps.
289    
290            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
291            added images to the move buttons, added 'reverse' button.
292            (CustomRampPanel.__init__): Added images to the move buttons.
293            (GreyRamp): New. Generates a ramp from white to black.
294            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
295    
296            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
297            ID_PROPERTY_*.
298            (Classifier.__init__): Minor changes to the layout.
299            (Classifier._OnTitleChanged): Listen for when the user edits the
300            title and update the dialog's title and the layer's title.
301    
302            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
303    
304            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
305            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
306            if the layer's title changes.
307    
308            * Thuban/UI/mainwindow.py: Added new menu item and associated code
309            to open a dialog to rename the map.
310            (MainWindow): Use new resource class to import bitmaps.
311    
312    2003-04-11  Jonathan Coles   <[email protected]>
313    
314            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
315            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
316            Resources/Bitmaps/group_use_none.xpm,
317            Resources/Bitmaps/group_use_not.xpm,
318            Resources/Bitmaps/hide_layer.xpm,
319            Resources/Bitmaps/layer_properties.xpm,
320            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
321            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
322            New.
323    
324    2003-04-10  Jonathan Coles   <[email protected]>
325    
326            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
327            Should pass group to ClassGroup constructor.
328    
329    2003-04-10  Jonathan Coles   <[email protected]>
330    
331            * Thuban/Model/classification.py: (ClassGroup): Move all the common
332            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
333            here. Implement SetVisible(), IsVisible().
334            (ClassGroup.__init__): Add group parameter which acts as a copy
335            constructor.
336    
337            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
338            "Visible" check boxes.
339            (Classifier): Rename the buttons and refactor the code to match
340            the new labels.
341    
342            * Thuban/UI/legend.py: Classify button is now called "Properties".
343            Refactored the code to change variable names.
344            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
345    
346            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
347            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
348            renamed to MainWindow.LayerEditProperties.
349            (MainWindow.ToggleLegend): Don't include map name in legend title.
350            (MainWindow.SetMap): Added the map name to the window title.
351            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
352            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
353            Functionality is found in the layer properties dialog.
354    
355            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
356            draw visible groups.
357    
358    2003-04-09  Jonathan Coles   <[email protected]>
359    
360            * Thuban/UI/classgen.py: Modifications to allow simple
361            addition and selection of new color schemes.
362            (MonochromaticRamp): New. Generates a ramp between two colors.
363            (RedRamp): New. Generates a ramp of all red.
364            (GreenRamp): New. Generates a ramp of all green.
365            (BlueRamp): New. Generates a ramp of all blue.
366    
367    2003-04-09  Jonathan Coles   <[email protected]>
368    
369            * Thuban/Model/classification.py (Classification.__deepcopy__):
370            Need to copy over field and fieldType attributes.
371    
372            * Thuban/Model/table.py (Table.field_range): New. Retrive the
373            maximum and minimum values over the entire table for a given
374            field.
375            (Table.GetUniqueValues): New. Retrieve all the unique values
376            in the table for a given field.
377    
378            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
379            (GenUniquePanel): New. Controls to allow the user to select
380            which unique field values they would like in the classification.
381            (CustomRampPanel): Code that was in ClassGenDialog that allows
382            the user to select the properties for a custom ramp.
383            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
384    
385            * Thuban/UI/classifier.py: Removed a lot of debugging code.
386            (Classifier._SetClassification): Callback method so that the
387            class generator can set the classification in the grid.
388            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
389            editing of a group properties class into a wxWindows control.
390    
391            * Thuban/UI/dock.py: It was decided that if the user closes
392            a dockable window the window should simply hide itself. That
393            way if the user wants to show the dock again it appears in the
394            same place as it was when it was closed.
395            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
396            (DockableWindow._OnButtonClose): Hide the window instead of
397            destroying it.
398            (DockableWindow._OnClose): Hide the window instead of
399            destroying it.
400    
401            * Thuban/UI/legend.py (LegendTree): Use a private method to
402            consistently set the font and style of the text. Fixes RTbug #1786.
403    
404            * Thuban/UI/mainwindow.py: Import just the Classifier class.
405    
406    2003-04-07  Bernhard Herzog  <[email protected]>
407    
408            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
409            to the map module
410    
411    2003-04-07  Bernhard Herzog  <[email protected]>
412    
413            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
414            favor of ToggleSessionTree
415            (MainWindow.ToggleSessionTree): New method to toggle visibility of
416            the session tree.
417            (MainWindow.SessionTreeShown): New method to return whether the
418            session tree is currently shown.
419            (MainWindow.ToggleLegend): New method to toggle visibility of the
420            legend
421            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
422            LegendShown
423            (MainWindow.LegendShown): New method to return whether the legend
424            is currently shown.
425            (_method_command): Add checked parameter so we can define check
426            menu items
427            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
428            mainwindow methods.
429            (show_session_tree, show_legend commands): Removed.
430            (toggle_session_tree, toggle_legend commands): New commands to
431            toggle the visibility of the dialogs
432    
433    2003-04-07  Jonathan Coles   <[email protected]>
434    
435            * Thuban/UI/classgen.py: Fix Windows problem.
436    
437            * Thuban/UI/dock.py: Fix Windows problem.
438    
439            * Thuban/UI/mainwindow.py: Use False instead of false.
440            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
441    
442    2003-04-07  Jonathan Coles   <[email protected]>
443    
444            Since we now say that the order of the groups in a classification
445            matters, it makes sense to be able to manipulate that order. Most
446            of the changes to Thuban/Model/classification.py are to that end.
447    
448            * Thuban/Model/classification.py (Classification.AppendGroup,
449            Classification.InsertGroup, Classification.ReplaceGroup,
450            Classification.RemoveGroup, Classification.GetGroup): Do as the
451            names imply.
452            (Classification.FindGroup): This was called GetGroup, but GetGroup
453            takes an index, while FindGroup takes a value.
454            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
455            REFERENCE. Currently there is a cyclic reference between the layer
456            and its classification. If the classification doesn't need to know
457            its owning layer we can change this, since it may make sense to be
458            able to use the same classification with different layers.
459    
460            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
461    
462            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
463            not AddGroup()
464    
465            * Thuban/UI/classifier.py: Now that we can depend on the order in
466            a Classification and have methods to manipulate that order we don't
467            need to use our own data structures in the grid. We can simply make
468            the grid/table access the information they need from a copy of
469            the classification object.
470            (Classifier._OnCloseBtn): Event handler for when the user clicks
471            'Close'. This is needed so if the user applies changes and then
472            continues to change the table the user has the option of discarding
473            the most recent changes and keeping what they applied.
474    
475            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
476            into the same group.
477    
478            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
479            with a really old version of proj, PJ_VERSION won't even be defined.
480            If it isn't defined then just compile so that the function always
481            returns Py_False.
482    
483            * test/test_classification.py: Fix tests to use the renamed methods.
484            Still need to write tests for the new methods.
485    
486    2003-04-04  Jonathan Coles   <[email protected]>
487    
488            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
489            call to SetSelection out of the method and before the call
490            to __SelectField in __init__. This prevents a recursion of events
491            when _OnFieldSelect is triggered by the user.
492    
493    2003-04-04  Jonathan Coles   <[email protected]>
494    
495            * Thuban/Model/classification.py: Rename Color.None to
496            Color.Transparent.
497            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
498            Don't bother copying the color, since Colors are immutable.
499    
500            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
501            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
502            Thuban/UI/renderer.py, Thuban/UI/view.py:
503            Rename Color.None to Color.Transparent.
504        
505            * test/test_classification.py, test/test_load.py: Rename Color.None
506            to Color.Transparent.
507    
508    2003-04-04  Jonathan Coles   <[email protected]>
509    
510            * Thuban/Model/classification.py: Fix assert calls.
511            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
512            Copy the color parameter rather than hold onto a reference.
513    
514            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
515            the color object.
516            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
517            are sure there exists only one refernce to Color.None in the system.
518            This allows us to use 'is' rather than the comparision functions.
519            
520            * Thuban/Model/save.py: Fix assert calls.
521            
522            * Thuban/UI/classifier.py: Fix assert calls.
523            (ClassGrid._OnCellDClick): Call up to the classifier to open the
524            dialog to edit the groups properties.
525            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
526            correctly if a cell is resized.
527            (ClassTable.SetClassification): New. Changes the classification
528            that is in the table.
529            (ClassTable.__SetRow): Allow groups to be prepended.
530            (Classifier): New code for opening the EditProperties and
531            GenerateRanges dialogs.
532            (SelectPropertiesDialog.__GetColor): Only set the color in the
533            color dialog if the current color is not None.
534            
535            * Thuban/UI/dock.py: Fix assert calls.
536            
537            * Thuban/UI/legend.py: Fix assert calls.
538            
539            * Thuban/UI/renderer.py: Fix assert calls.
540            
541            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
542            classifications.
543            (GenRangePanel): Panel specific to range generation.
544            (GenSingletonPanel): Panel specific to singleton generation.
545            (ClassGenerator): Class responsible for actually generating
546            the classification from the data gathered in the dialog box.
547            (PropertyRamp): Generates properties whose values range from
548            a starting property to an ending property.
549    
550    2003-04-03  Bernhard Herzog  <[email protected]>
551    
552            * test/support.py (print_garbage_information): New function that
553            prints information about still connected messages and memory
554            leaks.
555            (run_suite): Removed.
556            (run_tests): New function for use as a replacement of
557            unittest.main in the test_* files. This one calls
558            print_garbage_information at the end.
559    
560            * test/runtests.py (main): Use support.print_garbage_information
561    
562            * test/test_layer.py: Use support.run_tests instead of
563            unittest.main so we get memory leak information
564            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
565            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
566            (TestLayerLegend.test_visibility): Call the layer's Destroy method
567            to fix a memory leak.
568    
569            * test/test_classification.py: Use support.run_tests instead of
570            unittest.main so we get memory leak information
571            (TestClassification.test_classification): Call the layer's Destroy
572            method to fix a memory leak.
573    
574    2003-04-02  Bernhard Herzog  <[email protected]>
575    
576            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
577            Handle the reference counts of the return value and errors in
578            PyArg_ParseTuple correctly.
579    
580            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
581            sure the filename is absolute to avoid problems when saving the
582            session again
583    
584            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
585    
586    2003-04-01  Jonathan Coles   <[email protected]>
587    
588            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
589            that there actually are points in the returned list of points
590            before trying to index into the list. The list may be empty if
591            the shape is a Null Shape.
592    
593    2003-04-01  Bernhard Herzog  <[email protected]>
594    
595            * test/test_map.py: Don't use from <module> import *
596    
597    2003-04-01  Jonathan Coles   <[email protected]>
598    
599            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
600            LAYER_LEGEND_CHANGED
601    
602            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
603            self.Destroy() to close the window after yesterday's changes.
604    
605            * test/test_map.py, test/test_session.py: Fix messages that
606            are sent from maps and layers.
607    
608    2003-03-31  Jonathan Coles   <[email protected]>
609    
610            * Thuban/UI/classifier.py: Commented out some debugging statements.
611            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
612            RTbug #1769.
613    
614            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
615            position (although position doesn't work yet under GTK).
616            (DockableWindow.Destroy): New. Called when the window must be
617            closed. Namely needed when the DockFrame closes and must close
618            its children.
619            (DockFrame): Listen for EVT_CLOSE and destroy all children.
620    
621            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
622            when then window is told to close.
623            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
624            comment in source for more info.
625    
626            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
627    
628            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
629            symmetry with other such methods.
630            (MainWindow.ShowLegend): Show the legend docked by default.
631    
632    2003-03-28  Jonathan Coles   <[email protected]>
633    
634            * Thuban/UI/classifier.py: Support for highlighting a specific
635            group within the grid when the classification dialog is opened.
636            Also contains a lot of debugging printouts which will later
637            be removed.
638    
639            * Thuban/UI/dock.py: Complete rework on the dock code so that
640            that it is fairly removed from the rest of the Thuban application.
641            It is easy to add new docks which the rest of the program having
642            to be aware of them.
643    
644            * Thuban/UI/legend.py: Modifications to support selecting a
645            specific group in the classification dialog. Changed how layers
646            are drawn when the layer is visible/invisible.
647    
648            * Thuban/UI/mainwindow.py: Removed legend specific code and
649            replaced it with calls to the new dock code.
650    
651            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
652            to check if scale > 0. Trying to track down a divide by zero.
653    
654    2003-03-26  Jonathan Coles   <[email protected]>
655    
656            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
657            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
658            now part of DockableWindow.
659            (LegendPanel.DoOnSelChanged): Select the current layer in the
660            map.
661            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
662            with the selected layer and/or group.
663    
664    2003-03-26  Jonathan Coles   <[email protected]>
665    
666            This putback contains the code for dockable windows. There is
667            no support in wxWindows as of this date for windows that can
668            attach themselves to other windows.
669    
670            The current model contains a DockableWindow which has a parent
671            window for when it is detached and a dock window that it puts
672            its contents in when it is docked. The contents of a DockableWindow
673            must be a DockPanel. DockPanel itself derives from wxPanel.
674    
675            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
676            message, not a LAYER_LEGEND_CHANGED message.
677    
678            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
679    
680            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
681            as one of the style properties for the fieldTypeText item to
682            be sure that its size is correct when the text changes.
683    
684            * Thuban/UI/dock.py: New. Classes for the DockPanel and
685            DockableWindow.
686    
687            * Thuban/UI/legend.py: Added some more buttons and made the
688            LegendPanel a DockPanel.
689    
690            * Thuban/UI/mainwindow.py: Added sash windows to the main window
691            and supporting functions for manipulating the sashes.
692            (MainWindow.ShowLegend): Create a DockableWindow with the
693            LegendPanel as the contents.
694    
695            * Thuban/UI/messages.py: Added DOCKABLE_* messages
696    
697            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
698            not LAYER_LEGEND_CHANGED, messages.
699    
700    2003-03-25  Jonathan Coles   <[email protected]>
701    
702            * setup.py: Added custom script bdist_rpm_build_script so that
703            when the rpm is built the path to wx-config is correct.
704    
705            * setup.cfg: Added line saying to use the custom build script
706    
707    2003-03-20  Jonathan Coles   <[email protected]>
708    
709            Initial implementation of the Legend.
710    
711            * Thuban/UI/legend.py: New. Creates a window that shows the map's
712            Legend information and allows the user to add/modify classifications
713            and how the layers are drawn on the map.
714    
715            * setup.py: New command 'build_docs' which currently uses
716            happydoc to generate html documentation for Thuban.
717    
718            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
719            Returns a string which is appropriately describes the group.
720    
721            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
722            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
723    
724            * Thuban/Model/map.py (Map): Rename messages and use new, more
725            specific, messages.
726    
727            * Thuban/Model/messages.py: New message to indicate that a layer's
728            data has changed (LAYER_CHANGED). New map messages to indicate
729            when layers have been added/removed/changed or if the stacking order
730            of the layers has changed.
731    
732            * Thuban/Model/session.py: Rename and use new messages.
733    
734            * Thuban/UI/classifier.py: Remember if any changes have actually
735            been applied so that if the dialog is cancelled without an application
736            of changes we don't have to set a new classification.
737            (ClassDataPreviewer): Pulled out the window specific code and put it
738            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
739            symbols on any DC.
740            
741            * Thuban/UI/mainwindow.py: New code to open the legend.
742    
743            * Thuban/UI/view.py: Use new message names.
744    
745    2003-03-19  Jonathan Coles   <[email protected]>
746    
747            * Thuban/UI/main.py (verify_versions): New. Checks the versions
748            of Python, wxPython, and some other libraries.
749    
750            * extensions/thuban/wxproj.cpp (check_version): Checks the given
751            version against what wxproj was compiled with.
752            (check_version_gtk): If wxproj was compiled with gtk then check
753            the given version against the version of the gtk library
754            currently being used.
755    
756    2003-03-14  Bernhard Herzog  <[email protected]>
757    
758            * test/test_command.py: Run the tests when the module is run as a
759            script
760    
761    2003-03-14  Bernhard Herzog  <[email protected]>
762    
763            Implement selection of multiple selected shapes in the same layer:
764    
765            - Introduce a new class to hold the selection. This basically
766              replaces the interactor which was nothing more than the
767              selection anyway. A major difference is of course that the new
768              selection class supports multiple selected shapes in one layer
769            
770            - Move the object that represents the selection from the
771              application to the canvas. The canvas is a better place than the
772              application because the selection represents which shapes and
773              layer of the map displayed by the canvas are selected and
774              affects how the map is drawn.
775    
776            - Make the selection and its messages publicly available through
777              the mainwindow.
778    
779            - The non-modal dialogs do not get a reference to the interactor
780              anymore as they can simply refer to their parent, the
781              mainwindow, for the what the interactor had to offer.
782    
783            * Thuban/UI/selection.py: New module with a class to represent the
784            selection.
785    
786            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
787            these unused messages
788    
789            * Thuban/UI/application.py (ThubanApplication.OnInit)
790            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
791            interactor is gone now.
792            (ThubanApplication.CreateMainWindow): There is no interactor
793            anymore so we pass None as the interactor argument for now for
794            compatibility.
795    
796            * Thuban/UI/view.py (MapCanvas.delegated_messages)
797            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
798            Unsubscribe, delegate messages according to the delegated_messages
799            class variable.
800            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
801            attributes from instance variables as described with the
802            delegated_methods class variable.
803            (MapCanvas.__init__): New instance variable selection holding the
804            current selection
805            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
806            pass them on to the renderer
807            (MapCanvas.SetMap): Clear the selection when a different map is
808            selected.
809            (MapCanvas.shape_selected): Simple force a complete redraw. The
810            selection class now takes care of only issueing SHAPES_SELECTED
811            messages when the set of selected shapes actually does change.
812            (MapCanvas.SelectShapeAt): The selection is now managed in
813            self.selection
814    
815            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
816            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
817            Unsubscribe, delegate messages according to the delegated_messages
818            class variable.
819            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
820            attributes from instance variables as described with the
821            delegated_methods class variable.
822            (MainWindow.__init__): The interactor as ivar is gone. The
823            parameter is still there for compatibility. The selection messages
824            now come from the canvas.
825            (MainWindow.current_layer, MainWindow.has_selected_layer):
826            Delegate to the the canvas.
827            (MainWindow.LayerShowTable, MainWindow.Classify)
828            (MainWindow.identify_view_on_demand): The dialogs don't need the
829            interactor parameter anymore.
830    
831            * Thuban/UI/tableview.py (TableFrame.__init__)
832            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
833            (LayerTableFrame.row_selected): The interactor is gone. It's job
834            from the dialog's point of view is now done by the mainwindow,
835            i.e. the parent. Subscribe to SHAPES_SELECTED instead
836            of SELECTED_SHAPE
837            
838            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
839            is gone. It's job from the dialog's point of view is now done by
840            the mainwindow, i.e. the parent.
841            
842            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
843            gone. It's job from the dialog's point of view is now done by the
844            mainwindow, i.e. the parent.
845    
846            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
847            gone. It's job from the dialog's point of view is now done by the
848            mainwindow, i.e. the parent.
849            (SessionTreeCtrl.__init__): New parameter mainwindow which is
850            stored as self.mainwindow. The mainwindow is need so that the tree
851            can still subscribe to the selection messages.
852            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
853            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
854            selection is now accessible through the mainwindow. Subscribe to
855            SHAPES_SELECTED instead of SELECTED_SHAPE
856    
857            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
858            SHAPES_SELECTED message now.
859            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
860            so deal with multiple shapes
861            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
862            gone. It's job from the dialog's point of view is now done by the
863            mainwindow, i.e. the parent.
864    
865            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
866            parameter is now a list of shape ids.
867            (RecordTable.SetTable): The second parameter is now a list of
868            indices.
869    
870            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
871            selected_shape parameter and ivar to selected_shapes. It's now a
872            list of shape ids.
873            (MapRenderer.draw_label_layer): Deal with multiple selected
874            shapes. Rearrange the code a bit so that the setup and shape type
875            distinctions are only executed once.
876    
877            * test/test_selection.py: Test cases for the selection class
878    
879    2003-03-11  Jonathan Coles   <[email protected]>
880    
881            * Thuban/Model/load.py: Temporary fix so that the xml reader
882            doesn't cause Thuban to crash.
883    
884            * Thuban/Model/layer.py: Handle the cyclic references between
885            a layer and its classification better, and be sure to disconnect
886            the classification from the layer when the layer is destroyed
887            so that we don't maintain a cyclic reference that may not be
888            garbage collected.
889    
890            * Thuban/Model/classification.py: See comment for layer.py.
891    
892  2003-03-12  Jan-Oliver Wagner <[email protected]>  2003-03-12  Jan-Oliver Wagner <[email protected]>
893    
894          * HOWTO-Release: New. Information on the steps for releasing          * HOWTO-Release: New. Information on the steps for releasing

Legend:
Removed from v.523  
changed lines
  Added in v.721

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26