/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.514  
changed lines
  Added in v.680

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26