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

Legend:
Removed from v.483  
changed lines
  Added in v.669

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26