1 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
4 |
|
maximum and minimum scale factors. |
5 |
|
|
6 |
|
* test/test_classgen.py (ClassGenTest.test): Update to reflect the |
7 |
|
changes in classgen.py |
8 |
|
|
9 |
|
2003-05-30 Jonathan Coles <[email protected]> |
10 |
|
|
11 |
|
* Thuban/Model/classgen.py: Remove ClassGenerator class but make |
12 |
|
all the methods functions. Fixes RTBug #1903. |
13 |
|
|
14 |
|
* Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed |
15 |
|
to MoveLayerToTop and MoveLayerToBottom respectively. Fixes |
16 |
|
RTBug #1907. |
17 |
|
|
18 |
|
* Thuban/UI/classgen.py: Use classgen functions that were part |
19 |
|
of the ClassGenerator class. Put try/finally blocks around |
20 |
|
code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes |
21 |
|
RTBug #1904. |
22 |
|
|
23 |
|
* Thuban/UI/classifier.py: Remove unused import of ClassGenerator. |
24 |
|
|
25 |
|
* Thuban/UI/legend.py: The legend was cleared and repopulated any |
26 |
|
time something changed which caused some state to be lost such |
27 |
|
as which children were expanded or collapsed. Fixes RTBug #1901. |
28 |
|
(LegendTree._OnMsgMapLayersAdded): Add only new layers. |
29 |
|
(LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in |
30 |
|
the legend but not in the map. |
31 |
|
(LegendTree.__FillTree): Move main functionality out into smaller |
32 |
|
methods that can be used by other methods. |
33 |
|
(LegendTree.__FillTreeLayer): Reuse old slots in the image list |
34 |
|
if they are available. |
35 |
|
(LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so |
36 |
|
that we override the wxTreeCtrl method. Iterate over children |
37 |
|
and call __RemoveLayer. |
38 |
|
(LegendTree.__AddLayer): New. Add a new layer to the legend. |
39 |
|
(LegendTree.__RemoveLayer): Remove a layer from the legend. |
40 |
|
(LegendTree.DeleteChildren): New, overrides wxTreeCtrl method. |
41 |
|
Should only be called with the id of a layer branch. |
42 |
|
(LegendTree.GetRootItem): New, overrides wxTreeCtrl method. |
43 |
|
Returns the root item or creates one if necessary. |
44 |
|
|
45 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call |
46 |
|
ProjectRasterFile with tuple arguments instead of strings. |
47 |
|
|
48 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code |
49 |
|
with try/finally. Fixes RTBug #1904. |
50 |
|
|
51 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code |
52 |
|
with try/finally. Fixes RTBug #1904. |
53 |
|
(MapCanvas.FitSelectedToWindow): If a single point is selected |
54 |
|
simply center it on the display. Fixes RTBug #1849. |
55 |
|
|
56 |
|
* extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp |
57 |
|
to be compiled as a standalone app. Now the code can only be |
58 |
|
called from Python which simplifies the parameter passing. |
59 |
|
(ProjectRasterFile): Handle Python arguments. Remove code that |
60 |
|
checks for a destination dataset. Add more clean up code. |
61 |
|
|
62 |
|
* test/test_map.py (TestMapWithContents.test_raise_layer_top, |
63 |
|
TestMapWithContents.test_lower_layer_bottom): |
64 |
|
Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively. |
65 |
|
Fixes RTBug #1907. |
66 |
|
|
67 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full |
68 |
|
extent to the map when the legend is toggled. Fixes RTBug #1881. |
69 |
|
|
70 |
|
2003-05-29 Jan-Oliver Wagner <[email protected]> |
71 |
|
|
72 |
|
* Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now |
73 |
|
unsubscribes all that is subcribed in __init__. |
74 |
|
|
75 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
76 |
|
|
77 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
78 |
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
79 |
|
Layer/Duplicate command. |
80 |
|
(layer_duplicate command): New. |
81 |
|
(main_menu): Add layer_duplicate to the Layer menu. |
82 |
|
|
83 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
84 |
|
|
85 |
|
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
86 |
|
renderer so that NULL/None values get displayed differently (by a |
87 |
|
gray rectangle). |
88 |
|
(TableGrid.__init__): Override the default renderers |
89 |
|
|
90 |
2003-05-28 Bernhard Herzog <[email protected]> |
2003-05-28 Bernhard Herzog <[email protected]> |
91 |
|
|
92 |
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |