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

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

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

revision 554 by jonathan, Tue Mar 25 16:20:51 2003 UTC revision 623 by bh, Mon Apr 7 10:54:54 2003 UTC
# Line 1  Line 1 
1    2003-04-07  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
4            favor of ToggleSessionTree
5            (MainWindow.ToggleSessionTree): New method to toggle visibility of
6            the session tree.
7            (MainWindow.SessionTreeShown): New method to return whether the
8            session tree is currently shown.
9            (MainWindow.ToggleLegend): New method to toggle visibility of the
10            legend
11            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
12            LegendShown
13            (MainWindow.LegendShown): New method to return whether the legend
14            is currently shown.
15            (_method_command): Add checked parameter so we can define check
16            menu items
17            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
18            mainwindow methods.
19            (show_session_tree, show_legend commands): Removed.
20            (toggle_session_tree, toggle_legend commands): New commands to
21            toggle the visibility of the dialogs
22    
23    2003-04-07  Jonathan Coles   <[email protected]>
24    
25            * Thuban/UI/classgen.py: Fix Windows problem.
26    
27            * Thuban/UI/dock.py: Fix Windows problem.
28    
29            * Thuban/UI/mainwindow.py: Use False instead of false.
30            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
31    
32    2003-04-07  Jonathan Coles   <[email protected]>
33    
34            Since we now say that the order of the groups in a classification
35            matters, it makes sense to be able to manipulate that order. Most
36            of the changes to Thuban/Model/classification.py are to that end.
37    
38            * Thuban/Model/classification.py (Classification.AppendGroup,
39            Classification.InsertGroup, Classification.ReplaceGroup,
40            Classification.RemoveGroup, Classification.GetGroup): Do as the
41            names imply.
42            (Classification.FindGroup): This was called GetGroup, but GetGroup
43            takes an index, while FindGroup takes a value.
44            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
45            REFERENCE. Currently there is a cyclic reference between the layer
46            and its classification. If the classification doesn't need to know
47            its owning layer we can change this, since it may make sense to be
48            able to use the same classification with different layers.
49    
50            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
51    
52            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
53            not AddGroup()
54    
55            * Thuban/UI/classifier.py: Now that we can depend on the order in
56            a Classification and have methods to manipulate that order we don't
57            need to use our own data structures in the grid. We can simply make
58            the grid/table access the information they need from a copy of
59            the classification object.
60            (Classifier._OnCloseBtn): Event handler for when the user clicks
61            'Close'. This is needed so if the user applies changes and then
62            continues to change the table the user has the option of discarding
63            the most recent changes and keeping what they applied.
64    
65            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
66            into the same group.
67    
68            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
69            with a really old version of proj, PJ_VERSION won't even be defined.
70            If it isn't defined then just compile so that the function always
71            returns Py_False.
72    
73            * test/test_classification.py: Fix tests to use the renamed methods.
74            Still need to write tests for the new methods.
75    
76    2003-04-04  Jonathan Coles   <[email protected]>
77    
78            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
79            call to SetSelection out of the method and before the call
80            to __SelectField in __init__. This prevents a recursion of events
81            when _OnFieldSelect is triggered by the user.
82    
83    2003-04-04  Jonathan Coles   <[email protected]>
84    
85            * Thuban/Model/classification.py: Rename Color.None to
86            Color.Transparent.
87            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
88            Don't bother copying the color, since Colors are immutable.
89    
90            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
91            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
92            Thuban/UI/renderer.py, Thuban/UI/view.py:
93            Rename Color.None to Color.Transparent.
94        
95            * test/test_classification.py, test/test_load.py: Rename Color.None
96            to Color.Transparent.
97    
98    2003-04-04  Jonathan Coles   <[email protected]>
99    
100            * Thuban/Model/classification.py: Fix assert calls.
101            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
102            Copy the color parameter rather than hold onto a reference.
103    
104            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
105            the color object.
106            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
107            are sure there exists only one refernce to Color.None in the system.
108            This allows us to use 'is' rather than the comparision functions.
109            
110            * Thuban/Model/save.py: Fix assert calls.
111            
112            * Thuban/UI/classifier.py: Fix assert calls.
113            (ClassGrid._OnCellDClick): Call up to the classifier to open the
114            dialog to edit the groups properties.
115            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
116            correctly if a cell is resized.
117            (ClassTable.SetClassification): New. Changes the classification
118            that is in the table.
119            (ClassTable.__SetRow): Allow groups to be prepended.
120            (Classifier): New code for opening the EditProperties and
121            GenerateRanges dialogs.
122            (SelectPropertiesDialog.__GetColor): Only set the color in the
123            color dialog if the current color is not None.
124            
125            * Thuban/UI/dock.py: Fix assert calls.
126            
127            * Thuban/UI/legend.py: Fix assert calls.
128            
129            * Thuban/UI/renderer.py: Fix assert calls.
130            
131            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
132            classifications.
133            (GenRangePanel): Panel specific to range generation.
134            (GenSingletonPanel): Panel specific to singleton generation.
135            (ClassGenerator): Class responsible for actually generating
136            the classification from the data gathered in the dialog box.
137            (PropertyRamp): Generates properties whose values range from
138            a starting property to an ending property.
139    
140    2003-04-03  Bernhard Herzog  <[email protected]>
141    
142            * test/support.py (print_garbage_information): New function that
143            prints information about still connected messages and memory
144            leaks.
145            (run_suite): Removed.
146            (run_tests): New function for use as a replacement of
147            unittest.main in the test_* files. This one calls
148            print_garbage_information at the end.
149    
150            * test/runtests.py (main): Use support.print_garbage_information
151    
152            * test/test_layer.py: Use support.run_tests instead of
153            unittest.main so we get memory leak information
154            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
155            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
156            (TestLayerLegend.test_visibility): Call the layer's Destroy method
157            to fix a memory leak.
158    
159            * test/test_classification.py: Use support.run_tests instead of
160            unittest.main so we get memory leak information
161            (TestClassification.test_classification): Call the layer's Destroy
162            method to fix a memory leak.
163    
164    2003-04-02  Bernhard Herzog  <[email protected]>
165    
166            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
167            Handle the reference counts of the return value and errors in
168            PyArg_ParseTuple correctly.
169    
170            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
171            sure the filename is absolute to avoid problems when saving the
172            session again
173    
174            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
175    
176    2003-04-01  Jonathan Coles   <[email protected]>
177    
178            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
179            that there actually are points in the returned list of points
180            before trying to index into the list. The list may be empty if
181            the shape is a Null Shape.
182    
183    2003-04-01  Bernhard Herzog  <[email protected]>
184    
185            * test/test_map.py: Don't use from <module> import *
186    
187    2003-04-01  Jonathan Coles   <[email protected]>
188    
189            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
190            LAYER_LEGEND_CHANGED
191    
192            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
193            self.Destroy() to close the window after yesterday's changes.
194    
195            * test/test_map.py, test/test_session.py: Fix messages that
196            are sent from maps and layers.
197    
198    2003-03-31  Jonathan Coles   <[email protected]>
199    
200            * Thuban/UI/classifier.py: Commented out some debugging statements.
201            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
202            RTbug #1769.
203    
204            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
205            position (although position doesn't work yet under GTK).
206            (DockableWindow.Destroy): New. Called when the window must be
207            closed. Namely needed when the DockFrame closes and must close
208            its children.
209            (DockFrame): Listen for EVT_CLOSE and destroy all children.
210    
211            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
212            when then window is told to close.
213            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
214            comment in source for more info.
215    
216            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
217    
218            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
219            symmetry with other such methods.
220            (MainWindow.ShowLegend): Show the legend docked by default.
221    
222    2003-03-28  Jonathan Coles   <[email protected]>
223    
224            * Thuban/UI/classifier.py: Support for highlighting a specific
225            group within the grid when the classification dialog is opened.
226            Also contains a lot of debugging printouts which will later
227            be removed.
228    
229            * Thuban/UI/dock.py: Complete rework on the dock code so that
230            that it is fairly removed from the rest of the Thuban application.
231            It is easy to add new docks which the rest of the program having
232            to be aware of them.
233    
234            * Thuban/UI/legend.py: Modifications to support selecting a
235            specific group in the classification dialog. Changed how layers
236            are drawn when the layer is visible/invisible.
237    
238            * Thuban/UI/mainwindow.py: Removed legend specific code and
239            replaced it with calls to the new dock code.
240    
241            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
242            to check if scale > 0. Trying to track down a divide by zero.
243    
244    2003-03-26  Jonathan Coles   <[email protected]>
245    
246            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
247            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
248            now part of DockableWindow.
249            (LegendPanel.DoOnSelChanged): Select the current layer in the
250            map.
251            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
252            with the selected layer and/or group.
253    
254    2003-03-26  Jonathan Coles   <[email protected]>
255    
256            This putback contains the code for dockable windows. There is
257            no support in wxWindows as of this date for windows that can
258            attach themselves to other windows.
259    
260            The current model contains a DockableWindow which has a parent
261            window for when it is detached and a dock window that it puts
262            its contents in when it is docked. The contents of a DockableWindow
263            must be a DockPanel. DockPanel itself derives from wxPanel.
264    
265            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
266            message, not a LAYER_LEGEND_CHANGED message.
267    
268            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
269    
270            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
271            as one of the style properties for the fieldTypeText item to
272            be sure that its size is correct when the text changes.
273    
274            * Thuban/UI/dock.py: New. Classes for the DockPanel and
275            DockableWindow.
276    
277            * Thuban/UI/legend.py: Added some more buttons and made the
278            LegendPanel a DockPanel.
279    
280            * Thuban/UI/mainwindow.py: Added sash windows to the main window
281            and supporting functions for manipulating the sashes.
282            (MainWindow.ShowLegend): Create a DockableWindow with the
283            LegendPanel as the contents.
284    
285            * Thuban/UI/messages.py: Added DOCKABLE_* messages
286    
287            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
288            not LAYER_LEGEND_CHANGED, messages.
289    
290  2003-03-25  Jonathan Coles   <[email protected]>  2003-03-25  Jonathan Coles   <[email protected]>
291    
292          * setup.py: Added custom script bdist_rpm_build_script so that          * setup.py: Added custom script bdist_rpm_build_script so that

Legend:
Removed from v.554  
changed lines
  Added in v.623

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26