1 |
|
2003-06-05 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
4 |
|
Use ListCtrl instead of GridCtrl |
5 |
|
|
6 |
|
* Thuban/Model/resource.py: |
7 |
|
Guess location of .thuban directory from tempdir parent directory. |
8 |
|
|
9 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
10 |
|
Guess location of .thuban directory from tempdir parent directory. |
11 |
|
|
12 |
|
2003-06-04 Bernhard Herzog <[email protected]> |
13 |
|
|
14 |
|
Do not cache the values returned by the tree widget's |
15 |
|
GetFirstChild and GetNextChild methods because it led to lots of |
16 |
|
segfaults. The new way requires more brute force but is more |
17 |
|
reliable. |
18 |
|
|
19 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Remove instance |
20 |
|
variable layer2id |
21 |
|
(LegendTree.find_layer): New method to do with brute force what |
22 |
|
layer2id tried to accomplish |
23 |
|
(LegendTree._OnMsgLayerChanged) |
24 |
|
(LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer): |
25 |
|
Use find_layer instead of layer2id |
26 |
|
(LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to |
27 |
|
update layer2id anymore |
28 |
|
(LegendTree._OnMsgMapLayersRemoved) |
29 |
|
(LegendTree._OnMsgMapLayersAdded): Get by without layer2id. |
30 |
|
|
31 |
|
2003-06-03 Thomas Koester <[email protected]> |
32 |
|
|
33 |
|
* Thuban/Model/classgen.py (GenQuantiles0): New function. |
34 |
|
|
35 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
36 |
|
|
37 |
|
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
38 |
|
New commands. |
39 |
|
(main_menu): Add the new commands. |
40 |
|
(MainWindow.TableRename): New. Implementation of the table_rename |
41 |
|
command. |
42 |
|
(MainWindow.RenameLayer): New. Implementation of the layer_rename |
43 |
|
command. |
44 |
|
|
45 |
|
* Thuban/Model/session.py (Session.AddTable): call self.changed to |
46 |
|
set the modified flag |
47 |
|
|
48 |
|
* test/test_session.py (TestSessionSimple.test_add_table): Test |
49 |
|
whether the modified flag is set properly |
50 |
|
|
51 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call changed |
52 |
|
instead of issue so that the modified flags get updated. |
53 |
|
|
54 |
|
* test/test_base.py (SomeTitledObject): Derive from Modifiable |
55 |
|
instead of Publisher to reflect reality better and to accomodate |
56 |
|
the fact that SetTitle now calls changed instead of issue |
57 |
|
|
58 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
59 |
|
|
60 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource |
61 |
|
acquisition has to happen before the try in a try-finally. |
62 |
|
|
63 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
64 |
|
|
65 |
|
* Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's |
66 |
|
possible that a layer is removed that is not currently selected in |
67 |
|
the legend so don't check for this. |
68 |
|
|
69 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
* Thuban/Model/layer.py (Layer.Destroy): Set all instance |
72 |
|
variables to None that have direct or indirect references to |
73 |
|
shapefiles or dbf files to make sure that they do go away and the |
74 |
|
files are closed. |
75 |
|
|
76 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
77 |
|
|
78 |
|
* Thuban/UI/legend.py (LegendTree.GetRootItem): Reset |
79 |
|
availImgListIndices when a new image list is created |
80 |
|
|
81 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
82 |
|
|
83 |
|
* Thuban/UI/legend.py (LegendTree.__init__): New instance variable |
84 |
|
changing_selection to indicate whether the LegendTree code itself |
85 |
|
is currently changing the selection |
86 |
|
(LegendTree.normalize_selection): New method to normalize the |
87 |
|
selection by selecting the layer item even if the user clicked on |
88 |
|
the classification. |
89 |
|
(LegendTree._OnSelChanged): normalize the selection. This works |
90 |
|
around a bug in wx which doesn't keep track of the selection |
91 |
|
properly when subtrees are deleted. |
92 |
|
|
93 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
94 |
|
|
95 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
96 |
|
maximum and minimum scale factors. |
97 |
|
|
98 |
|
* test/test_classgen.py (ClassGenTest.test): Update to reflect the |
99 |
|
changes in classgen.py |
100 |
|
|
101 |
|
2003-05-30 Jonathan Coles <[email protected]> |
102 |
|
|
103 |
|
* Thuban/Model/classgen.py: Remove ClassGenerator class but make |
104 |
|
all the methods functions. Fixes RTBug #1903. |
105 |
|
|
106 |
|
* Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed |
107 |
|
to MoveLayerToTop and MoveLayerToBottom respectively. Fixes |
108 |
|
RTBug #1907. |
109 |
|
|
110 |
|
* Thuban/UI/classgen.py: Use classgen functions that were part |
111 |
|
of the ClassGenerator class. Put try/finally blocks around |
112 |
|
code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes |
113 |
|
RTBug #1904. |
114 |
|
|
115 |
|
* Thuban/UI/classifier.py: Remove unused import of ClassGenerator. |
116 |
|
|
117 |
|
* Thuban/UI/legend.py: The legend was cleared and repopulated any |
118 |
|
time something changed which caused some state to be lost such |
119 |
|
as which children were expanded or collapsed. Fixes RTBug #1901. |
120 |
|
(LegendTree._OnMsgMapLayersAdded): Add only new layers. |
121 |
|
(LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in |
122 |
|
the legend but not in the map. |
123 |
|
(LegendTree.__FillTree): Move main functionality out into smaller |
124 |
|
methods that can be used by other methods. |
125 |
|
(LegendTree.__FillTreeLayer): Reuse old slots in the image list |
126 |
|
if they are available. |
127 |
|
(LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so |
128 |
|
that we override the wxTreeCtrl method. Iterate over children |
129 |
|
and call __RemoveLayer. |
130 |
|
(LegendTree.__AddLayer): New. Add a new layer to the legend. |
131 |
|
(LegendTree.__RemoveLayer): Remove a layer from the legend. |
132 |
|
(LegendTree.DeleteChildren): New, overrides wxTreeCtrl method. |
133 |
|
Should only be called with the id of a layer branch. |
134 |
|
(LegendTree.GetRootItem): New, overrides wxTreeCtrl method. |
135 |
|
Returns the root item or creates one if necessary. |
136 |
|
|
137 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call |
138 |
|
ProjectRasterFile with tuple arguments instead of strings. |
139 |
|
|
140 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code |
141 |
|
with try/finally. Fixes RTBug #1904. |
142 |
|
|
143 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code |
144 |
|
with try/finally. Fixes RTBug #1904. |
145 |
|
(MapCanvas.FitSelectedToWindow): If a single point is selected |
146 |
|
simply center it on the display. Fixes RTBug #1849. |
147 |
|
|
148 |
|
* extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp |
149 |
|
to be compiled as a standalone app. Now the code can only be |
150 |
|
called from Python which simplifies the parameter passing. |
151 |
|
(ProjectRasterFile): Handle Python arguments. Remove code that |
152 |
|
checks for a destination dataset. Add more clean up code. |
153 |
|
|
154 |
|
* test/test_map.py (TestMapWithContents.test_raise_layer_top, |
155 |
|
TestMapWithContents.test_lower_layer_bottom): |
156 |
|
Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively. |
157 |
|
Fixes RTBug #1907. |
158 |
|
|
159 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full |
160 |
|
extent to the map when the legend is toggled. Fixes RTBug #1881. |
161 |
|
|
162 |
|
2003-05-29 Jan-Oliver Wagner <[email protected]> |
163 |
|
|
164 |
|
* Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now |
165 |
|
unsubscribes all that is subcribed in __init__. |
166 |
|
|
167 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
168 |
|
|
169 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
170 |
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
171 |
|
Layer/Duplicate command. |
172 |
|
(layer_duplicate command): New. |
173 |
|
(main_menu): Add layer_duplicate to the Layer menu. |
174 |
|
|
175 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
176 |
|
|
177 |
|
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
178 |
|
renderer so that NULL/None values get displayed differently (by a |
179 |
|
gray rectangle). |
180 |
|
(TableGrid.__init__): Override the default renderers |
181 |
|
|
182 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
183 |
|
|
184 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
185 |
|
classification to "None" if the type of the field has changed. |
186 |
|
|
187 |
|
* test/test_layer.py (SetShapeStoreTests): New. Class with a few |
188 |
|
test for the Layer.SetShapeStore method |
189 |
|
|
190 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
191 |
|
|
192 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer |
193 |
|
does not necessarily have a filename). |
194 |
|
|
195 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
196 |
|
|
197 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow): |
198 |
|
sort the selection list for the dialog. |
199 |
|
|
200 |
|
2003-05-28 Frank Koormann <[email protected]> |
201 |
|
|
202 |
|
* extensions/thuban/wxproj.cpp |
203 |
|
(project_point): Removed cast to int for projected point coordinates. |
204 |
|
(shape_centroid): Return last point if all polygon vertices fall |
205 |
|
to one point. |
206 |
|
|
207 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
208 |
|
|
209 |
|
* Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope |
210 |
|
with layers that don't have shapestores, i.e. raster layers. |
211 |
|
|
212 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
213 |
|
|
214 |
|
* Thuban/Model/table.py (DBFTable.__init__): Omit the extension |
215 |
|
when determining the title from the filename. |
216 |
|
|
217 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): Update to |
218 |
|
reflect changes in the way the title is derived from the filename |
219 |
|
|
220 |
|
2003-05-28 Frank Koormann <[email protected]> |
221 |
|
|
222 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): |
223 |
|
Added wxDEFAULT_DIALOG_STYLE to show table dialog styles. |
224 |
|
|
225 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
226 |
|
|
227 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
228 |
|
delegate SelectedLayer. |
229 |
|
(MainWindow.LayerUnjoinTable): Implement. |
230 |
|
(_can_unjoin): New. Helper function for the sensitivity of the |
231 |
|
layer/unjoin command. |
232 |
|
|
233 |
|
* Thuban/Model/data.py (ShapefileStore.OrigShapeStore) |
234 |
|
(DerivedShapeStore.OrigShapeStore): New. Return the original |
235 |
|
shapestore. Used to figure out how to unjoin. |
236 |
|
(DerivedShapeStore.Shapefile): Fix a typo. |
237 |
|
|
238 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
239 |
|
|
240 |
|
* Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as |
241 |
|
well |
242 |
|
(JoinDialog.__init__): Use the layer parameter and only build the |
243 |
|
left choice when a layer is given |
244 |
|
(JoinDialog.OnJoin): Handle layer joins as well |
245 |
|
(JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case |
246 |
|
that the user selects the "Select..." item. The sensitivitly |
247 |
|
updating is now in update_sensitivity |
248 |
|
(JoinDialog.y): New method to refactor the sensitivity update of |
249 |
|
the join button into its own method. |
250 |
|
|
251 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement. |
252 |
|
|
253 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
254 |
|
|
255 |
|
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive |
256 |
|
iff there are unreferenced tables in the session |
257 |
|
|
258 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
259 |
|
|
260 |
|
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
261 |
|
|
262 |
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
263 |
|
to return tables that are not referenced by other tables or shape |
264 |
|
stores and can be removed. |
265 |
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
266 |
|
removing the table |
267 |
|
|
268 |
|
* Thuban/UI/mainwindow.py: Remove unused imports |
269 |
|
(MainWindow.TableClose): Implement. |
270 |
|
|
271 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
272 |
|
messages so that the frame will be automatically closed when a new |
273 |
|
session is opened or the table is removed. |
274 |
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
275 |
|
__init__ |
276 |
|
(TableFrame.close_on_session_replaced) |
277 |
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
278 |
|
the window |
279 |
|
|
280 |
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
281 |
|
(TestSessionSimple.test_remove_table): Move the test to |
282 |
|
TestSessionSimple and add test for the TABLE_REMOVED message |
283 |
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
284 |
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
285 |
|
UnreferencedTables method. |
286 |
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
287 |
|
tests for UnreferencedTables. |
288 |
|
|
289 |
|
2003-05-27 Frank Koormann <[email protected]> |
290 |
|
|
291 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
292 |
|
display has some unwanted side effects. Removed again. |
293 |
|
|
294 |
2003-05-27 Frank Koormann <[email protected]> |
2003-05-27 Frank Koormann <[email protected]> |
295 |
|
|
296 |
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
299 |
|
|
300 |
2003-05-27 Jan-Oliver Wagner <[email protected]> |
2003-05-27 Jan-Oliver Wagner <[email protected]> |
301 |
|
|
302 |
* test/test_menu.py (MenuTest.test): Added test for Menu.RemoveItem(). |
* test/test_menu.py (MenuTest.test): Added test for |
303 |
|
Menu.RemoveItem(). |
304 |
|
|
305 |
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from the menu. |
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
306 |
|
the menu. |
307 |
|
|
308 |
2003-05-27 Frank Koormann <[email protected]> |
2003-05-27 Frank Koormann <[email protected]> |
309 |
|
|