/[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 587 by jonathan, Tue Apr 1 15:57:28 2003 UTC revision 612 by jonathan, Mon Apr 7 08:55:01 2003 UTC
# Line 1  Line 1 
1    2003-04-07  Jonathan Coles   <[email protected]>
2    
3            Since we now say that the order of the groups in a classification
4            matters, it makes sense to be able to manipulate that order. Most
5            of the changes to Thuban/Model/classification.py are to that end.
6    
7            * Thuban/Model/classification.py (Classification.AppendGroup,
8            Classification.InsertGroup, Classification.ReplaceGroup,
9            Classification.RemoveGroup, Classification.GetGroup): Do as the
10            names imply.
11            (Classification.FindGroup): This was called GetGroup, but GetGroup
12            takes an index, while FindGroup takes a value.
13            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
14            REFERENCE. Currently there is a cyclic reference between the layer
15            and its classification. If the classification doesn't need to know
16            its owning layer we can change this, since it may make sense to be
17            able to use the same classification with different layers.
18    
19            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
20    
21            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
22            not AddGroup()
23    
24            * Thuban/UI/classifier.py: Now that we can depend on the order in
25            a Classification and have methods to manipulate that order we don't
26            need to use our own data structures in the grid. We can simply make
27            the grid/table access the information they need from a copy of
28            the classification object.
29            (Classifier._OnCloseBtn): Event handler for when the user clicks
30            'Close'. This is needed so if the user applies changes and then
31            continues to change the table the user has the option of discarding
32            the most recent changes and keeping what they applied.
33    
34            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
35            into the same group.
36    
37            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
38            with a really old version of proj, PJ_VERSION won't even be defined.
39            If it isn't defined then just compile so that the function always
40            returns Py_False.
41    
42            * test/test_classification.py: Fix tests to use the renamed methods.
43            Still need to write tests for the new methods.
44    
45    2003-04-04  Jonathan Coles   <[email protected]>
46    
47            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
48            call to SetSelection out of the method and before the call
49            to __SelectField in __init__. This prevents a recursion of events
50            when _OnFieldSelect is triggered by the user.
51    
52    2003-04-04  Jonathan Coles   <[email protected]>
53    
54            * Thuban/Model/classification.py: Rename Color.None to
55            Color.Transparent.
56            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
57            Don't bother copying the color, since Colors are immutable.
58    
59            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
60            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
61            Thuban/UI/renderer.py, Thuban/UI/view.py:
62            Rename Color.None to Color.Transparent.
63        
64            * test/test_classification.py, test/test_load.py: Rename Color.None
65            to Color.Transparent.
66    
67    2003-04-04  Jonathan Coles   <[email protected]>
68    
69            * Thuban/Model/classification.py: Fix assert calls.
70            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
71            Copy the color parameter rather than hold onto a reference.
72    
73            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
74            the color object.
75            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
76            are sure there exists only one refernce to Color.None in the system.
77            This allows us to use 'is' rather than the comparision functions.
78            
79            * Thuban/Model/save.py: Fix assert calls.
80            
81            * Thuban/UI/classifier.py: Fix assert calls.
82            (ClassGrid._OnCellDClick): Call up to the classifier to open the
83            dialog to edit the groups properties.
84            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
85            correctly if a cell is resized.
86            (ClassTable.SetClassification): New. Changes the classification
87            that is in the table.
88            (ClassTable.__SetRow): Allow groups to be prepended.
89            (Classifier): New code for opening the EditProperties and
90            GenerateRanges dialogs.
91            (SelectPropertiesDialog.__GetColor): Only set the color in the
92            color dialog if the current color is not None.
93            
94            * Thuban/UI/dock.py: Fix assert calls.
95            
96            * Thuban/UI/legend.py: Fix assert calls.
97            
98            * Thuban/UI/renderer.py: Fix assert calls.
99            
100            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
101            classifications.
102            (GenRangePanel): Panel specific to range generation.
103            (GenSingletonPanel): Panel specific to singleton generation.
104            (ClassGenerator): Class responsible for actually generating
105            the classification from the data gathered in the dialog box.
106            (PropertyRamp): Generates properties whose values range from
107            a starting property to an ending property.
108    
109    2003-04-03  Bernhard Herzog  <[email protected]>
110    
111            * test/support.py (print_garbage_information): New function that
112            prints information about still connected messages and memory
113            leaks.
114            (run_suite): Removed.
115            (run_tests): New function for use as a replacement of
116            unittest.main in the test_* files. This one calls
117            print_garbage_information at the end.
118    
119            * test/runtests.py (main): Use support.print_garbage_information
120    
121            * test/test_layer.py: Use support.run_tests instead of
122            unittest.main so we get memory leak information
123            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
124            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
125            (TestLayerLegend.test_visibility): Call the layer's Destroy method
126            to fix a memory leak.
127    
128            * test/test_classification.py: Use support.run_tests instead of
129            unittest.main so we get memory leak information
130            (TestClassification.test_classification): Call the layer's Destroy
131            method to fix a memory leak.
132    
133    2003-04-02  Bernhard Herzog  <[email protected]>
134    
135            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
136            Handle the reference counts of the return value and errors in
137            PyArg_ParseTuple correctly.
138    
139            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
140            sure the filename is absolute to avoid problems when saving the
141            session again
142    
143            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
144    
145  2003-04-01  Jonathan Coles   <[email protected]>  2003-04-01  Jonathan Coles   <[email protected]>
146    
147          *  Thuban/UI/renderer.pyi (MapRenderer.draw_point_shape): Check          *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
148          that there actually are points in the returned list of points          that there actually are points in the returned list of points
149          before trying to index into the list. The list may be empty if          before trying to index into the list. The list may be empty if
150          the shape is a Null Shape.          the shape is a Null Shape.

Legend:
Removed from v.587  
changed lines
  Added in v.612

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26