1 |
|
2003-05-06 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
Addresses the "Selection Extent" wish of RTbug #1787. |
4 |
|
|
5 |
|
* Resources/Bitmaps/fulllayerextent.xpm, |
6 |
|
Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection |
7 |
|
extent. These are just place holders for the real bitmaps. |
8 |
|
|
9 |
|
* Thuban/Model/layer.py (Shape): Since a Shape is immutable only |
10 |
|
calculate the bounding box once (the first time compute_bbox() is |
11 |
|
called). |
12 |
|
(Layer.ShapesBoundingBox): New. Given a list of shape ids, return |
13 |
|
the bounding box for the shapes in lat/long coordinates. |
14 |
|
|
15 |
|
* Thuban/UI/mainwindow.py: Added new "Full selection extent" menu |
16 |
|
option. |
17 |
|
(MainWindow.has_selected_shapes): New. Returns true if there are |
18 |
|
any selected shapes. |
19 |
|
(MainWindow.FullSelectionExtent): New. Calls |
20 |
|
MapCanvas.FitSelectedToWindow() when the user selects the menu option. |
21 |
|
(_has_selected_shapes): New. Returns true if there are any |
22 |
|
selected shapes. |
23 |
|
|
24 |
|
* Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns |
25 |
|
true if there are any selected shapes. |
26 |
|
|
27 |
|
* Thuban/UI/view.py (MapCanvas): Added delegated method |
28 |
|
HasSelectedShapes. |
29 |
|
(MapCanvas.FitSelectedToWindow): New. Centers and scales any selected |
30 |
|
shapes on the canvas using the map projection (if any). |
31 |
|
|
32 |
|
* test/test_layer.py (TestLayer.test_arc_layer): Add some tests |
33 |
|
for Layer.ShapesBoundingBox(). |
34 |
|
|
35 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
36 |
|
|
37 |
|
* Resources/Projections/defaults.proj: Fix spelling of Mercator |
38 |
|
|
39 |
|
2003-05-05 Jonathan Coles <[email protected]> |
40 |
|
|
41 |
|
Addresses the "Full Layer Extent" wish of RTbug #1787. |
42 |
|
|
43 |
|
* Resources/Projections/defaults.proj: Added UK National Grid. |
44 |
|
|
45 |
|
* Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option. |
46 |
|
(MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow() |
47 |
|
when the user selects the menu option. |
48 |
|
|
49 |
|
* Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and |
50 |
|
scales the given layer on the canvas using the map projection. |
51 |
|
|
52 |
2003-05-05 Bernhard Herzog <[email protected]> |
2003-05-05 Bernhard Herzog <[email protected]> |
53 |
|
|
54 |
Convert the table implementations to a new table interface. All |
Convert the table implementations to a new table interface. All |