/[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 541 by jonathan, Wed Mar 19 16:03:12 2003 UTC revision 669 by jonathan, Mon Apr 14 17:13:08 2003 UTC
# Line 1  Line 1 
1    2003-04-14  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/dock.py: Fixes some window resizing problems most
4            noticable under windows. Always assume the button bitmaps will
5            be there. Code clean up.
6            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
7            images for the dock/undock button to the same images.
8            Work around for RTbug #1801.
9    
10            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
11            be allowed to grow within the sizer. Fixes a bug under Windows
12            where the toolbar wasn't being drawn.
13    
14    2003-04-14  Frank Koormann   <[email protected]>
15    
16            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
17            Updated design to try to make the button functionality more
18            transparent.
19    
20    2003-04-14  Jonathan Coles   <[email protected]>
21    
22            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
23            finalize the intialization of the panel.
24    
25            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
26            creation of the panel. Should be the last thing called in the
27            initializer of a subclass.
28    
29            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
30            set the current selections in the combo boxes. This is needed
31            under Windows.
32    
33            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
34            level panel to the dialog so that the background colors are
35            consistent under Windows.
36    
37    2003-04-11  Jonathan Coles   <[email protected]>
38    
39            * Thuban/UI/classgen.py: Change color ramps to start at white
40            not black.
41    
42            * Thuban/UI/legend.py: Enable/disable the legend buttons when
43            the legend changes. Fixes RTbug #1793.
44    
45            * test/test_classification.py: Added test for copying of
46            classifications.
47    
48    2003-04-11  Jonathan Coles   <[email protected]>
49    
50            * Thuban/UI/resource.py: New. Centralize the loading of resources
51            such as bitmaps.
52    
53            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
54            added images to the move buttons, added 'reverse' button.
55            (CustomRampPanel.__init__): Added images to the move buttons.
56            (GreyRamp): New. Generates a ramp from white to black.
57            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
58    
59            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
60            ID_PROPERTY_*.
61            (Classifier.__init__): Minor changes to the layout.
62            (Classifier._OnTitleChanged): Listen for when the user edits the
63            title and update the dialog's title and the layer's title.
64    
65            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
66    
67            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
68            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
69            if the layer's title changes.
70    
71            * Thuban/UI/mainwindow.py: Added new menu item and associated code
72            to open a dialog to rename the map.
73            (MainWindow): Use new resource class to import bitmaps.
74    
75    2003-04-11  Jonathan Coles   <[email protected]>
76    
77            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
78            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
79            Resources/Bitmaps/group_use_none.xpm,
80            Resources/Bitmaps/group_use_not.xpm,
81            Resources/Bitmaps/hide_layer.xpm,
82            Resources/Bitmaps/layer_properties.xpm,
83            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
84            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
85            New.
86    
87    2003-04-10  Jonathan Coles   <[email protected]>
88    
89            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
90            Should pass group to ClassGroup constructor.
91    
92    2003-04-10  Jonathan Coles   <[email protected]>
93    
94            * Thuban/Model/classification.py: (ClassGroup): Move all the common
95            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
96            here. Implement SetVisible(), IsVisible().
97            (ClassGroup.__init__): Add group parameter which acts as a copy
98            constructor.
99    
100            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
101            "Visible" check boxes.
102            (Classifier): Rename the buttons and refactor the code to match
103            the new labels.
104    
105            * Thuban/UI/legend.py: Classify button is now called "Properties".
106            Refactored the code to change variable names.
107            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
108    
109            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
110            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
111            renamed to MainWindow.LayerEditProperties.
112            (MainWindow.ToggleLegend): Don't include map name in legend title.
113            (MainWindow.SetMap): Added the map name to the window title.
114            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
115            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
116            Functionality is found in the layer properties dialog.
117    
118            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
119            draw visible groups.
120    
121    2003-04-09  Jonathan Coles   <[email protected]>
122    
123            * Thuban/UI/classgen.py: Modifications to allow simple
124            addition and selection of new color schemes.
125            (MonochromaticRamp): New. Generates a ramp between two colors.
126            (RedRamp): New. Generates a ramp of all red.
127            (GreenRamp): New. Generates a ramp of all green.
128            (BlueRamp): New. Generates a ramp of all blue.
129    
130    2003-04-09  Jonathan Coles   <[email protected]>
131    
132            * Thuban/Model/classification.py (Classification.__deepcopy__):
133            Need to copy over field and fieldType attributes.
134    
135            * Thuban/Model/table.py (Table.field_range): New. Retrive the
136            maximum and minimum values over the entire table for a given
137            field.
138            (Table.GetUniqueValues): New. Retrieve all the unique values
139            in the table for a given field.
140    
141            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
142            (GenUniquePanel): New. Controls to allow the user to select
143            which unique field values they would like in the classification.
144            (CustomRampPanel): Code that was in ClassGenDialog that allows
145            the user to select the properties for a custom ramp.
146            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
147    
148            * Thuban/UI/classifier.py: Removed a lot of debugging code.
149            (Classifier._SetClassification): Callback method so that the
150            class generator can set the classification in the grid.
151            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
152            editing of a group properties class into a wxWindows control.
153    
154            * Thuban/UI/dock.py: It was decided that if the user closes
155            a dockable window the window should simply hide itself. That
156            way if the user wants to show the dock again it appears in the
157            same place as it was when it was closed.
158            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
159            (DockableWindow._OnButtonClose): Hide the window instead of
160            destroying it.
161            (DockableWindow._OnClose): Hide the window instead of
162            destroying it.
163    
164            * Thuban/UI/legend.py (LegendTree): Use a private method to
165            consistently set the font and style of the text. Fixes RTbug #1786.
166    
167            * Thuban/UI/mainwindow.py: Import just the Classifier class.
168    
169    2003-04-07  Bernhard Herzog  <[email protected]>
170    
171            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
172            to the map module
173    
174    2003-04-07  Bernhard Herzog  <[email protected]>
175    
176            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
177            favor of ToggleSessionTree
178            (MainWindow.ToggleSessionTree): New method to toggle visibility of
179            the session tree.
180            (MainWindow.SessionTreeShown): New method to return whether the
181            session tree is currently shown.
182            (MainWindow.ToggleLegend): New method to toggle visibility of the
183            legend
184            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
185            LegendShown
186            (MainWindow.LegendShown): New method to return whether the legend
187            is currently shown.
188            (_method_command): Add checked parameter so we can define check
189            menu items
190            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
191            mainwindow methods.
192            (show_session_tree, show_legend commands): Removed.
193            (toggle_session_tree, toggle_legend commands): New commands to
194            toggle the visibility of the dialogs
195    
196    2003-04-07  Jonathan Coles   <[email protected]>
197    
198            * Thuban/UI/classgen.py: Fix Windows problem.
199    
200            * Thuban/UI/dock.py: Fix Windows problem.
201    
202            * Thuban/UI/mainwindow.py: Use False instead of false.
203            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
204    
205    2003-04-07  Jonathan Coles   <[email protected]>
206    
207            Since we now say that the order of the groups in a classification
208            matters, it makes sense to be able to manipulate that order. Most
209            of the changes to Thuban/Model/classification.py are to that end.
210    
211            * Thuban/Model/classification.py (Classification.AppendGroup,
212            Classification.InsertGroup, Classification.ReplaceGroup,
213            Classification.RemoveGroup, Classification.GetGroup): Do as the
214            names imply.
215            (Classification.FindGroup): This was called GetGroup, but GetGroup
216            takes an index, while FindGroup takes a value.
217            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
218            REFERENCE. Currently there is a cyclic reference between the layer
219            and its classification. If the classification doesn't need to know
220            its owning layer we can change this, since it may make sense to be
221            able to use the same classification with different layers.
222    
223            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
224    
225            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
226            not AddGroup()
227    
228            * Thuban/UI/classifier.py: Now that we can depend on the order in
229            a Classification and have methods to manipulate that order we don't
230            need to use our own data structures in the grid. We can simply make
231            the grid/table access the information they need from a copy of
232            the classification object.
233            (Classifier._OnCloseBtn): Event handler for when the user clicks
234            'Close'. This is needed so if the user applies changes and then
235            continues to change the table the user has the option of discarding
236            the most recent changes and keeping what they applied.
237    
238            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
239            into the same group.
240    
241            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
242            with a really old version of proj, PJ_VERSION won't even be defined.
243            If it isn't defined then just compile so that the function always
244            returns Py_False.
245    
246            * test/test_classification.py: Fix tests to use the renamed methods.
247            Still need to write tests for the new methods.
248    
249    2003-04-04  Jonathan Coles   <[email protected]>
250    
251            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
252            call to SetSelection out of the method and before the call
253            to __SelectField in __init__. This prevents a recursion of events
254            when _OnFieldSelect is triggered by the user.
255    
256    2003-04-04  Jonathan Coles   <[email protected]>
257    
258            * Thuban/Model/classification.py: Rename Color.None to
259            Color.Transparent.
260            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
261            Don't bother copying the color, since Colors are immutable.
262    
263            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
264            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
265            Thuban/UI/renderer.py, Thuban/UI/view.py:
266            Rename Color.None to Color.Transparent.
267        
268            * test/test_classification.py, test/test_load.py: Rename Color.None
269            to Color.Transparent.
270    
271    2003-04-04  Jonathan Coles   <[email protected]>
272    
273            * Thuban/Model/classification.py: Fix assert calls.
274            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
275            Copy the color parameter rather than hold onto a reference.
276    
277            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
278            the color object.
279            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
280            are sure there exists only one refernce to Color.None in the system.
281            This allows us to use 'is' rather than the comparision functions.
282            
283            * Thuban/Model/save.py: Fix assert calls.
284            
285            * Thuban/UI/classifier.py: Fix assert calls.
286            (ClassGrid._OnCellDClick): Call up to the classifier to open the
287            dialog to edit the groups properties.
288            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
289            correctly if a cell is resized.
290            (ClassTable.SetClassification): New. Changes the classification
291            that is in the table.
292            (ClassTable.__SetRow): Allow groups to be prepended.
293            (Classifier): New code for opening the EditProperties and
294            GenerateRanges dialogs.
295            (SelectPropertiesDialog.__GetColor): Only set the color in the
296            color dialog if the current color is not None.
297            
298            * Thuban/UI/dock.py: Fix assert calls.
299            
300            * Thuban/UI/legend.py: Fix assert calls.
301            
302            * Thuban/UI/renderer.py: Fix assert calls.
303            
304            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
305            classifications.
306            (GenRangePanel): Panel specific to range generation.
307            (GenSingletonPanel): Panel specific to singleton generation.
308            (ClassGenerator): Class responsible for actually generating
309            the classification from the data gathered in the dialog box.
310            (PropertyRamp): Generates properties whose values range from
311            a starting property to an ending property.
312    
313    2003-04-03  Bernhard Herzog  <[email protected]>
314    
315            * test/support.py (print_garbage_information): New function that
316            prints information about still connected messages and memory
317            leaks.
318            (run_suite): Removed.
319            (run_tests): New function for use as a replacement of
320            unittest.main in the test_* files. This one calls
321            print_garbage_information at the end.
322    
323            * test/runtests.py (main): Use support.print_garbage_information
324    
325            * test/test_layer.py: Use support.run_tests instead of
326            unittest.main so we get memory leak information
327            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
328            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
329            (TestLayerLegend.test_visibility): Call the layer's Destroy method
330            to fix a memory leak.
331    
332            * test/test_classification.py: Use support.run_tests instead of
333            unittest.main so we get memory leak information
334            (TestClassification.test_classification): Call the layer's Destroy
335            method to fix a memory leak.
336    
337    2003-04-02  Bernhard Herzog  <[email protected]>
338    
339            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
340            Handle the reference counts of the return value and errors in
341            PyArg_ParseTuple correctly.
342    
343            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
344            sure the filename is absolute to avoid problems when saving the
345            session again
346    
347            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
348    
349    2003-04-01  Jonathan Coles   <[email protected]>
350    
351            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
352            that there actually are points in the returned list of points
353            before trying to index into the list. The list may be empty if
354            the shape is a Null Shape.
355    
356    2003-04-01  Bernhard Herzog  <[email protected]>
357    
358            * test/test_map.py: Don't use from <module> import *
359    
360    2003-04-01  Jonathan Coles   <[email protected]>
361    
362            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
363            LAYER_LEGEND_CHANGED
364    
365            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
366            self.Destroy() to close the window after yesterday's changes.
367    
368            * test/test_map.py, test/test_session.py: Fix messages that
369            are sent from maps and layers.
370    
371    2003-03-31  Jonathan Coles   <[email protected]>
372    
373            * Thuban/UI/classifier.py: Commented out some debugging statements.
374            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
375            RTbug #1769.
376    
377            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
378            position (although position doesn't work yet under GTK).
379            (DockableWindow.Destroy): New. Called when the window must be
380            closed. Namely needed when the DockFrame closes and must close
381            its children.
382            (DockFrame): Listen for EVT_CLOSE and destroy all children.
383    
384            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
385            when then window is told to close.
386            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
387            comment in source for more info.
388    
389            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
390    
391            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
392            symmetry with other such methods.
393            (MainWindow.ShowLegend): Show the legend docked by default.
394    
395    2003-03-28  Jonathan Coles   <[email protected]>
396    
397            * Thuban/UI/classifier.py: Support for highlighting a specific
398            group within the grid when the classification dialog is opened.
399            Also contains a lot of debugging printouts which will later
400            be removed.
401    
402            * Thuban/UI/dock.py: Complete rework on the dock code so that
403            that it is fairly removed from the rest of the Thuban application.
404            It is easy to add new docks which the rest of the program having
405            to be aware of them.
406    
407            * Thuban/UI/legend.py: Modifications to support selecting a
408            specific group in the classification dialog. Changed how layers
409            are drawn when the layer is visible/invisible.
410    
411            * Thuban/UI/mainwindow.py: Removed legend specific code and
412            replaced it with calls to the new dock code.
413    
414            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
415            to check if scale > 0. Trying to track down a divide by zero.
416    
417    2003-03-26  Jonathan Coles   <[email protected]>
418    
419            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
420            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
421            now part of DockableWindow.
422            (LegendPanel.DoOnSelChanged): Select the current layer in the
423            map.
424            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
425            with the selected layer and/or group.
426    
427    2003-03-26  Jonathan Coles   <[email protected]>
428    
429            This putback contains the code for dockable windows. There is
430            no support in wxWindows as of this date for windows that can
431            attach themselves to other windows.
432    
433            The current model contains a DockableWindow which has a parent
434            window for when it is detached and a dock window that it puts
435            its contents in when it is docked. The contents of a DockableWindow
436            must be a DockPanel. DockPanel itself derives from wxPanel.
437    
438            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
439            message, not a LAYER_LEGEND_CHANGED message.
440    
441            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
442    
443            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
444            as one of the style properties for the fieldTypeText item to
445            be sure that its size is correct when the text changes.
446    
447            * Thuban/UI/dock.py: New. Classes for the DockPanel and
448            DockableWindow.
449    
450            * Thuban/UI/legend.py: Added some more buttons and made the
451            LegendPanel a DockPanel.
452    
453            * Thuban/UI/mainwindow.py: Added sash windows to the main window
454            and supporting functions for manipulating the sashes.
455            (MainWindow.ShowLegend): Create a DockableWindow with the
456            LegendPanel as the contents.
457    
458            * Thuban/UI/messages.py: Added DOCKABLE_* messages
459    
460            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
461            not LAYER_LEGEND_CHANGED, messages.
462    
463    2003-03-25  Jonathan Coles   <[email protected]>
464    
465            * setup.py: Added custom script bdist_rpm_build_script so that
466            when the rpm is built the path to wx-config is correct.
467    
468            * setup.cfg: Added line saying to use the custom build script
469    
470    2003-03-20  Jonathan Coles   <[email protected]>
471    
472            Initial implementation of the Legend.
473    
474            * Thuban/UI/legend.py: New. Creates a window that shows the map's
475            Legend information and allows the user to add/modify classifications
476            and how the layers are drawn on the map.
477    
478            * setup.py: New command 'build_docs' which currently uses
479            happydoc to generate html documentation for Thuban.
480    
481            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
482            Returns a string which is appropriately describes the group.
483    
484            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
485            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
486    
487            * Thuban/Model/map.py (Map): Rename messages and use new, more
488            specific, messages.
489    
490            * Thuban/Model/messages.py: New message to indicate that a layer's
491            data has changed (LAYER_CHANGED). New map messages to indicate
492            when layers have been added/removed/changed or if the stacking order
493            of the layers has changed.
494    
495            * Thuban/Model/session.py: Rename and use new messages.
496    
497            * Thuban/UI/classifier.py: Remember if any changes have actually
498            been applied so that if the dialog is cancelled without an application
499            of changes we don't have to set a new classification.
500            (ClassDataPreviewer): Pulled out the window specific code and put it
501            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
502            symbols on any DC.
503            
504            * Thuban/UI/mainwindow.py: New code to open the legend.
505    
506            * Thuban/UI/view.py: Use new message names.
507    
508  2003-03-19  Jonathan Coles   <[email protected]>  2003-03-19  Jonathan Coles   <[email protected]>
509    
510          * Thuban/UI/main.py (verify_versions): New. Checks the versions          * Thuban/UI/main.py (verify_versions): New. Checks the versions

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26