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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26