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

Legend:
Removed from v.405  
changed lines
  Added in v.674

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26