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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26