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

Legend:
Removed from v.497  
changed lines
  Added in v.688

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26