/[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 1418 by bh, Tue Jul 15 08:44:20 2003 UTC revision 1465 by bh, Fri Jul 18 18:21:07 2003 UTC
# Line 1  Line 1 
1    2003-07-18  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/messages.py (MAP_REPLACED): New message.
4    
5            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
6            after the new map has been assigned
7    
8            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
9            Delegate MAP_REPLACED to the canvas too
10            (MainWindow.prepare_new_session): Removed. Thanks to the new
11            MAP_REPLACED message it's no longer needed
12            (MainWindow.OpenSession, MainWindow.NewSession):
13            prepare_new_session has been removed.
14    
15            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
16            MAP_REPLACED so that we can close the dialog if a new map is set.
17            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
18            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
19            dialog
20    
21            * test/test_viewport.py (SimpleViewPortTest)
22            (SimpleViewPortTest.test_default_size): Add doc-strings
23            (ViewPortTest.setUp): Bind map to self.map so we can use it in
24            tests. Subscribe to MAP_REPLACED messages too.
25            (ViewPortTest.tearDown): No need to explicitly unsubscribe
26            (ViewPortTest.test_set_map): New test for the SetMap method.
27    
28    2003-07-18  Bernhard Herzog  <[email protected]>
29    
30            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
31            Move this test from ViewPortTest.setUp to this new separate test
32            case. setUp is not the place for the actual tests.
33            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
34            more of the test from setUp to the new test test_inital_settings.
35            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
36            (ViewPortTest.test_proj_conv): Split test_proj_conv into
37            test_win_to_proj and test_proj_to_win and make the tests easier to
38            understand
39            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
40            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
41            (ViewPortTest.test_unprojected_rect_around_point)
42            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
43            Reformat to increase readability.
44    
45    2003-07-18  Bernhard Herzog  <[email protected]>
46    
47            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
48    
49    2003-07-18  Bernhard Herzog  <[email protected]>
50    
51            * test/runtests.py: The test suite can now be run without an X
52            connection. To make sure this remains true, remove the DISPLAY
53            environment variable so that an error occurs if the wxGTK is
54            imported accidentally
55    
56    2003-07-18  Bernhard Herzog  <[email protected]>
57    
58            * Thuban/UI/viewport.py: Remove unused imports
59    
60            * Thuban/UI/view.py: Remove unused imports
61    
62    2003-07-18  Bernhard Herzog  <[email protected]>
63    
64            * test/test_export.py Remove unused imports. The OutputTransform
65            function is now in viewport.py and is called output_transform
66            (TestScalebar.test_output_transform)
67            (TestScalebar.test_OutputTransform): Renamed to
68            test_output_transform and updated to use output_transform instead
69            of OutputTransform
70    
71            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
72            renamed.
73            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
74            renamed to output_transform
75    
76            * Thuban/UI/viewport.py (OutputTransform, output_transform):
77            Rename to output_transform
78    
79    2003-07-18  Bernhard Herzog  <[email protected]>
80    
81            * Thuban/Model/layer.py (Layer.__init__): Rename
82            classificationField to classificatin_column and init it here so
83            that it can be used in SetClassificationColumn
84            (Layer.GetClassificationColumn, Layer.GetClassificationField):
85            Rename to GetClassificationColumn.
86            (Layer.SetClassificationColumn, Layer.SetClassificationField):
87            Rename to SetClassificationColumn and issue a LAYER_CHANGED
88            message if the column changes.
89            (Layer._classification_changed, Layer.ClassChanged): Rename to
90            _classification_changed. Update the callers.
91            (Layer.SetShapeStore): Further field->column renames.
92    
93            * Thuban/Model/load.py (SessionLoader.start_classification)
94            (SessionLoader.start_clpoint): Updates because of
95            field->column method name changes in the Layer class
96    
97            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
98            because of field->column method name changes in the Layer class
99    
100            * Thuban/UI/classifier.py (Classifier.__init__)
101            (Classifier._OnTry, Classifier._OnRevert): Updates because of
102            field->column method name changes in the Layer class
103    
104            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
105            because of field->column method name changes in the Layer class
106    
107            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
108            of field->column method name changes in the Layer class
109    
110            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
111            (SaveSessionTest.testClassifiedLayer): Update because of
112            field->column method name changes in the Layer class
113    
114            * test/test_layer.py (SetShapeStoreTests.setUp)
115            (SetShapeStoreTests.test_sanity): Update because of field->column
116            method name changes in the Layer class
117            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
118            (TestLayerModification.test_sanity)
119            (TestLayerModification.test_initial_settings): remove unsued code
120            and rename to test_sanity.
121            (TestLayerModification.test_set_classification): New test for
122            SetClassification and SetClassificationField.
123    
124    2003-07-18  Bernhard Herzog  <[email protected]>
125    
126            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
127            the non-fixed values as well. The old test would have accepted a
128            fixed ramp that only returnes the fixed properties
129    
130    2003-07-17  Jonathan Coles   <[email protected]>
131    
132            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
133            shots for the manual. The XCF file is the source image and
134            has additional layers to support changes.
135    
136            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
137    
138            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
139            Return both the new class and the field name.
140    
141            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
142            fit the map to the window as this changes any zoom level that
143            the user may have set.
144    
145    2003-07-16  Jonathan Coles   <[email protected]>
146    
147            * Thuban/Model/classgen.py (generate_singletons,
148            generate_uniform_distribution, generate_quantiles): Remove
149            fixes parameter, but maintain the same functionality by having
150            the calling function pass a FixedRamp object for the ramp.
151            (FixedRamp): New. Adapts a ramp to have fixed property values.
152    
153            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
154            (Classification): Inherit from Publisher.
155            (Classification.__init__): Remove the layer parameter.
156            Classifications no longer need to have a parent layer.
157            (Classification.GetField, Classification.GetFieldType,
158            Classification.SetFieldInfo): Removed. The field name is stored
159            in the layer, and the type can be retreived by calling
160            Layer.GetFieldType().
161            (Classification._set_layer, Classification.GetLayer): Removed.
162            Classifications no longer have a parent layer.
163    
164            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
165            classification.
166            (Layer.SetShapeStore): Reset the classification first while
167            we still have the old shape store to work with.
168            (Layer.GetClassificationField, Layer.SetClassificationField):
169            New. Method for getting/setting the field to classify on.
170            (Layer.SetClassification): Simplified now that the layer
171            simply has to hold a reference to the classification and not
172            tell the classification who owns it.
173            Fixes RTbug #2023.
174    
175            * Thuban/Model/load.py (SessionLoader.start_classification):
176            Set the field name on the layer, not the classification.
177    
178            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
179            classification is modified.
180    
181            * Thuban/Model/save.py (SessionSaver.write_classification):
182            Get the field name and type from the layer.
183    
184            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
185            parameter records to rows and add docstring. Fixes RTbug #1997.
186    
187            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
188            ramp when we need to fix certain values of a ramp rather than
189            using the old fixes parameter. Fixes RTbug #2024.
190    
191            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
192            parameter.
193            (ClassTable.Reset): Add fieldType parameter and use it, rather
194            than asking the classification.
195            (Classifier.__init__): Remember the original class's field
196            and ask the layer for the field type, rather than the classification.
197            (Classifier.__SetGridTable): Retrieve the field and field type
198            for the table because they are not in the classification.
199            (Classifier._OnTry, Classifier._OnRevert): Set the classification
200            field on the layer in addition to the classification itself.
201    
202            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
203            classification field from layer.
204    
205            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
206            classification field from layer. Split up tests and remove
207            *-imports. Fixes RTbug #1992.
208    
209            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
210    
211            * test/test_classification.py
212            (TestClassification.test_classification): Remove tests for methods
213            that no longer exist.
214    
215            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
216            __init__ no longer has a field parameter, use SetClassificationField.
217            (SetShapeStoreTests.test_sanity): Use layer object to get class
218            field info.
219    
220            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
221            SetClassificationField on layer to set class field info.
222    
223            * test/test_viewport.py: Renamed from test/test_view.py.
224    
225    2003-07-16  Jan-Oliver Wagner <[email protected]>
226    
227            * Doc/manual/thuban-manual.xml: Added authors and an initial
228            coarse structure.
229    
230    2003-07-15  Bernhard Herzog  <[email protected]>
231    
232            * test/support.py (FloatComparisonMixin): This is a mix-in class
233            and therefore should not be derived from any other class.
234    
235            * test/test_range.py (RangeTest): FloatComparisonMixin is a
236            mix-in, so derive from TestCase as well.
237    
238    2003-07-15  Bernhard Herzog  <[email protected]>
239    
240            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
241            draw_func handling a bit to remove one layer of indirection. This
242            makes the renderer about 10% faster in the non-classifying case
243            and the code a bit cleaner
244            (MapRenderer.draw_point_shape): Add the pen and brush parameters
245            and set them in the dc. Now the draw_point_shape method and
246            wxproj's draw_polygon_shape function have basically the same
247            signature so that both can be directly used as draw_func
248    
249  2003-07-15  Bernhard Herzog  <[email protected]>  2003-07-15  Bernhard Herzog  <[email protected]>
250    
251          * Thuban/Model/save.py (SessionSaver.write_classification): Encode          * Thuban/Model/save.py (SessionSaver.write_classification): Encode

Legend:
Removed from v.1418  
changed lines
  Added in v.1465

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26