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

Legend:
Removed from v.595  
changed lines
  Added in v.619

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26