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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26