1 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
4 |
|
New commands. |
5 |
|
(main_menu): Add the new commands. |
6 |
|
(MainWindow.TableRename): New. Implementation of the table_rename |
7 |
|
command. |
8 |
|
(MainWindow.RenameLayer): New. Implementation of the layer_rename |
9 |
|
command. |
10 |
|
|
11 |
|
* Thuban/Model/session.py (Session.AddTable): call self.changed to |
12 |
|
set the modified flag |
13 |
|
|
14 |
|
* test/test_session.py (TestSessionSimple.test_add_table): Test |
15 |
|
whether the modified flag is set properly |
16 |
|
|
17 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call changed |
18 |
|
instead of issue so that the modified flags get updated. |
19 |
|
|
20 |
|
* test/test_base.py (SomeTitledObject): Derive from Modifiable |
21 |
|
instead of Publisher to reflect reality better and to accomodate |
22 |
|
the fact that SetTitle now calls changed instead of issue |
23 |
|
|
24 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
25 |
|
|
26 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource |
27 |
|
acquisition has to happen before the try in a try-finally. |
28 |
|
|
29 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
* Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's |
32 |
|
possible that a layer is removed that is not currently selected in |
33 |
|
the legend so don't check for this. |
34 |
|
|
35 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
36 |
|
|
37 |
|
* Thuban/Model/layer.py (Layer.Destroy): Set all instance |
38 |
|
variables to None that have direct or indirect references to |
39 |
|
shapefiles or dbf files to make sure that they do go away and the |
40 |
|
files are closed. |
41 |
|
|
42 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
43 |
|
|
44 |
|
* Thuban/UI/legend.py (LegendTree.GetRootItem): Reset |
45 |
|
availImgListIndices when a new image list is created |
46 |
|
|
47 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
48 |
|
|
49 |
|
* Thuban/UI/legend.py (LegendTree.__init__): New instance variable |
50 |
|
changing_selection to indicate whether the LegendTree code itself |
51 |
|
is currently changing the selection |
52 |
|
(LegendTree.normalize_selection): New method to normalize the |
53 |
|
selection by selecting the layer item even if the user clicked on |
54 |
|
the classification. |
55 |
|
(LegendTree._OnSelChanged): normalize the selection. This works |
56 |
|
around a bug in wx which doesn't keep track of the selection |
57 |
|
properly when subtrees are deleted. |
58 |
|
|
59 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
60 |
|
|
61 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
62 |
|
maximum and minimum scale factors. |
63 |
|
|
64 |
|
* test/test_classgen.py (ClassGenTest.test): Update to reflect the |
65 |
|
changes in classgen.py |
66 |
|
|
67 |
|
2003-05-30 Jonathan Coles <[email protected]> |
68 |
|
|
69 |
|
* Thuban/Model/classgen.py: Remove ClassGenerator class but make |
70 |
|
all the methods functions. Fixes RTBug #1903. |
71 |
|
|
72 |
|
* Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed |
73 |
|
to MoveLayerToTop and MoveLayerToBottom respectively. Fixes |
74 |
|
RTBug #1907. |
75 |
|
|
76 |
|
* Thuban/UI/classgen.py: Use classgen functions that were part |
77 |
|
of the ClassGenerator class. Put try/finally blocks around |
78 |
|
code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes |
79 |
|
RTBug #1904. |
80 |
|
|
81 |
|
* Thuban/UI/classifier.py: Remove unused import of ClassGenerator. |
82 |
|
|
83 |
|
* Thuban/UI/legend.py: The legend was cleared and repopulated any |
84 |
|
time something changed which caused some state to be lost such |
85 |
|
as which children were expanded or collapsed. Fixes RTBug #1901. |
86 |
|
(LegendTree._OnMsgMapLayersAdded): Add only new layers. |
87 |
|
(LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in |
88 |
|
the legend but not in the map. |
89 |
|
(LegendTree.__FillTree): Move main functionality out into smaller |
90 |
|
methods that can be used by other methods. |
91 |
|
(LegendTree.__FillTreeLayer): Reuse old slots in the image list |
92 |
|
if they are available. |
93 |
|
(LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so |
94 |
|
that we override the wxTreeCtrl method. Iterate over children |
95 |
|
and call __RemoveLayer. |
96 |
|
(LegendTree.__AddLayer): New. Add a new layer to the legend. |
97 |
|
(LegendTree.__RemoveLayer): Remove a layer from the legend. |
98 |
|
(LegendTree.DeleteChildren): New, overrides wxTreeCtrl method. |
99 |
|
Should only be called with the id of a layer branch. |
100 |
|
(LegendTree.GetRootItem): New, overrides wxTreeCtrl method. |
101 |
|
Returns the root item or creates one if necessary. |
102 |
|
|
103 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call |
104 |
|
ProjectRasterFile with tuple arguments instead of strings. |
105 |
|
|
106 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code |
107 |
|
with try/finally. Fixes RTBug #1904. |
108 |
|
|
109 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code |
110 |
|
with try/finally. Fixes RTBug #1904. |
111 |
|
(MapCanvas.FitSelectedToWindow): If a single point is selected |
112 |
|
simply center it on the display. Fixes RTBug #1849. |
113 |
|
|
114 |
|
* extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp |
115 |
|
to be compiled as a standalone app. Now the code can only be |
116 |
|
called from Python which simplifies the parameter passing. |
117 |
|
(ProjectRasterFile): Handle Python arguments. Remove code that |
118 |
|
checks for a destination dataset. Add more clean up code. |
119 |
|
|
120 |
|
* test/test_map.py (TestMapWithContents.test_raise_layer_top, |
121 |
|
TestMapWithContents.test_lower_layer_bottom): |
122 |
|
Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively. |
123 |
|
Fixes RTBug #1907. |
124 |
|
|
125 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full |
126 |
|
extent to the map when the legend is toggled. Fixes RTBug #1881. |
127 |
|
|
128 |
|
2003-05-29 Jan-Oliver Wagner <[email protected]> |
129 |
|
|
130 |
|
* Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now |
131 |
|
unsubscribes all that is subcribed in __init__. |
132 |
|
|
133 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
134 |
|
|
135 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
136 |
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
137 |
|
Layer/Duplicate command. |
138 |
|
(layer_duplicate command): New. |
139 |
|
(main_menu): Add layer_duplicate to the Layer menu. |
140 |
|
|
141 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
142 |
|
|
143 |
|
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
144 |
|
renderer so that NULL/None values get displayed differently (by a |
145 |
|
gray rectangle). |
146 |
|
(TableGrid.__init__): Override the default renderers |
147 |
|
|
148 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
149 |
|
|
150 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
151 |
|
classification to "None" if the type of the field has changed. |
152 |
|
|
153 |
|
* test/test_layer.py (SetShapeStoreTests): New. Class with a few |
154 |
|
test for the Layer.SetShapeStore method |
155 |
|
|
156 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
157 |
|
|
158 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer |
159 |
|
does not necessarily have a filename). |
160 |
|
|
161 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
162 |
|
|
163 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow): |
164 |
|
sort the selection list for the dialog. |
165 |
|
|
166 |
|
2003-05-28 Frank Koormann <[email protected]> |
167 |
|
|
168 |
|
* extensions/thuban/wxproj.cpp |
169 |
|
(project_point): Removed cast to int for projected point coordinates. |
170 |
|
(shape_centroid): Return last point if all polygon vertices fall |
171 |
|
to one point. |
172 |
|
|
173 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
174 |
|
|
175 |
|
* Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope |
176 |
|
with layers that don't have shapestores, i.e. raster layers. |
177 |
|
|
178 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
179 |
|
|
180 |
|
* Thuban/Model/table.py (DBFTable.__init__): Omit the extension |
181 |
|
when determining the title from the filename. |
182 |
|
|
183 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): Update to |
184 |
|
reflect changes in the way the title is derived from the filename |
185 |
|
|
186 |
|
2003-05-28 Frank Koormann <[email protected]> |
187 |
|
|
188 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): |
189 |
|
Added wxDEFAULT_DIALOG_STYLE to show table dialog styles. |
190 |
|
|
191 |
2003-05-27 Bernhard Herzog <[email protected]> |
2003-05-27 Bernhard Herzog <[email protected]> |
192 |
|
|
193 |
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |