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

Legend:
Removed from v.445  
changed lines
  Added in v.662

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26