1 |
|
2002-08-15 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method |
4 |
|
with self. |
5 |
|
|
6 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse |
7 |
|
when we have actually captured it. |
8 |
|
|
9 |
|
* Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the |
10 |
|
shapefile and destroy the table. |
11 |
|
|
12 |
|
* Thuban/Model/table.py (Table.Destroy): New. Close the DBF file. |
13 |
|
|
14 |
|
2002-08-14 Bernhard Herzog <[email protected]> |
15 |
|
|
16 |
|
* Thuban/UI/controls.py (RecordTable.__init__): Remove the unused |
17 |
|
instance variable columns |
18 |
|
(RecordTable.GetTypeName): row and col may be negative in some |
19 |
|
cases. |
20 |
|
|
21 |
|
* setup.py (InstallLocal.initialize_options) |
22 |
|
(InstallLocal.finalize_options, InstallLocal.user_options): New |
23 |
|
option create-init-file to build a thubaninit.py when running |
24 |
|
install_local |
25 |
|
(InstallLocal.run): Create the thubaninit.py module when requested |
26 |
|
(thubaninit_contents): Split the template into several parts and |
27 |
|
create a new function thubaninit_contents that creates the |
28 |
|
contents of a thubaninit module. |
29 |
|
(ThubanInstall.run): Use the new function to create the thubaninit |
30 |
|
module. |
31 |
|
|
32 |
|
2002-07-30 Bernhard Herzog <[email protected]> |
33 |
|
|
34 |
|
* Thuban/UI/application.py (ThubanApplication.OnExit): Do some |
35 |
|
cleanup. |
36 |
|
(ThubanApplication.MainLoop): Extend to automatically call OnExit. |
37 |
|
|
38 |
|
* Thuban/Model/session.py (Session.Destroy): Don't bypass the |
39 |
|
direct base class' Destroy method. |
40 |
|
|
41 |
|
* Thuban/Model/map.py (Map.ClearLayers): New method to delete all |
42 |
|
layers. |
43 |
|
(Map.Destroy): Destroy the label_layer as well and call the |
44 |
|
inherited Desatroymethod first so that no more messages are |
45 |
|
issued. |
46 |
|
(Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED |
47 |
|
message if the stacking order actually has changed. Add |
48 |
|
doc-strings. |
49 |
|
(Map.BoundingBox): Correct the doc-string. |
50 |
|
(Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers) |
51 |
|
(Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings. |
52 |
|
|
53 |
|
* Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete |
54 |
|
all labels. |
55 |
|
|
56 |
|
2002-07-29 Bernhard Herzog <[email protected]> |
57 |
|
|
58 |
|
* Thuban/Model/map.py (Map.subscribe_layer_channels) |
59 |
|
(Map.unsubscribe_layer_channels): Put the code that (un)subscribes |
60 |
|
to a layer's channels into separate methods. |
61 |
|
(Map.RemoveLayer, Map.AddLayer): Call the new methods |
62 |
|
(Map.Destroy): Unsubscribe from a layer's channels before |
63 |
|
destroying it. |
64 |
|
|
65 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Change the |
66 |
|
selected_layer parameter to searched_layer which is the layer to |
67 |
|
search in. |
68 |
|
(MapCanvas.SelectShapeAt): New parameter layer to restrict the |
69 |
|
search to that layer. Return the selected layer and shape. |
70 |
|
|
71 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Fix a |
72 |
|
typo |
73 |
|
|
74 |
|
2002-07-24 Bernhard Herzog <[email protected]> |
75 |
|
|
76 |
|
* Thuban/UI/application.py (ThubanApplication.create_session): |
77 |
|
Extend the doc string. |
78 |
|
(ThubanApplication.subscribe_session) |
79 |
|
(ThubanApplication.unsubscribe_session): New methods to |
80 |
|
subscribe/unsubscribe to/from session channels. |
81 |
|
(ThubanApplication.SetSession): Call the new methods here. |
82 |
|
(ThubanApplication.maps_changed, ThubanApplication.set_map): |
83 |
|
Renamed set_map to maps_changed. Its now a subscriber for |
84 |
|
MAPS_CHANGED. |
85 |
|
|
86 |
|
* Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct |
87 |
|
x-coordinate in case of simple clicks |
88 |
|
|
89 |
|
* Thuban/Model/base.py (Modifiable.changed): Apply the args tuple, |
90 |
|
don't pass it as a parameter |
91 |
|
|
92 |
|
* Thuban/Model/session.py (Session.RemoveMap): New |
93 |
|
|
94 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial |
95 |
|
window size into a parameter. |
96 |
|
|
97 |
|
2002-07-23 Bernhard Herzog <[email protected]> |
98 |
|
|
99 |
|
* Thuban/UI/menu.py (Menu.item_index): Also search for menus not |
100 |
|
just commands. |
101 |
|
|
102 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Change the |
103 |
|
parameter list a bit to allow setting the window title and the |
104 |
|
initial message in the status bar. Update the callers. |
105 |
|
|
106 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
107 |
|
(ThubanApplication.CreateMainWindow): Put the mainwindow |
108 |
|
instantiation into a separate method so that it can be overridden |
109 |
|
by a subclass. |
110 |
|
|
111 |
|
2002-07-19 Bernhard Herzog <[email protected]> |
112 |
|
|
113 |
|
* Thuban/Model/session.py: Issue a CHANGED message every time |
114 |
|
another changed message is issued to make it easier to get |
115 |
|
notified of changes. |
116 |
|
(Session): Update the doc string |
117 |
|
(Session.forward): Issue changed-events as CHANGED as well. |
118 |
|
(Session.changed): Overwrite the inherited version to issue |
119 |
|
CHANGED events as well. |
120 |
|
|
121 |
|
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
122 |
|
CHANGED channel to be informed of changes. |
123 |
|
(SessionTreeCtrl.session_channels): Not needed any longer. |
124 |
|
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
125 |
|
Only have to (un)subscribe CHANGED |
126 |
|
|
127 |
|
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
128 |
|
|
129 |
|
* Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around |
130 |
|
for the wxPython locale bug to __init__.py so that it's |
131 |
|
automatically executed by anybody using UI code from Thuban. |
132 |
|
|
133 |
|
2002-07-18 Bernhard Herzog <[email protected]> |
134 |
|
|
135 |
|
* Thuban/UI/main.py (main): app no longer needs to be global |
136 |
|
|
137 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add application |
138 |
|
as parameter and store it in an instance variable |
139 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui) |
140 |
|
(MainWindow.save_modified_session, MainWindow.NewSession) |
141 |
|
(MainWindow.OpenSession, MainWindow.SaveSession) |
142 |
|
(MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's |
143 |
|
application object. |
144 |
|
|
145 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate |
146 |
|
the main window with self. |
147 |
|
|
148 |
|
* Thuban/UI/context.py: New module with the context class |
149 |
|
|
150 |
|
* Thuban/UI/command.py (Command): Update doc string. |
151 |
|
|
152 |
|
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
153 |
|
MainWindow.update_command_ui): Pass an instance of the context |
154 |
|
class to the command's methods |
155 |
|
(check_current_tool, call_method): Handle the new context |
156 |
|
implementation |
157 |
|
|
158 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool, |
159 |
|
check_simple_tool): Handle the new context implementation |
160 |
|
|
161 |
|
* Examples/simple_extensions/simple_command.py (simple_command): |
162 |
|
Handle the new context implementation. Update the comments about |
163 |
|
the context. |
164 |
|
|
165 |
|
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
166 |
|
doc-string |
167 |
|
(ThubanApplication.Session): New method to return the session |
168 |
|
object |
169 |
|
|
170 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
171 |
|
interactor's selected_layer may not be a layer of the current |
172 |
|
session when the tree is updated while a new session is being set. |
173 |
|
|
174 |
|
2002-07-17 Bernhard Herzog <[email protected]> |
175 |
|
|
176 |
|
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
177 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
178 |
|
update_tree into update_tree and add_items. The tree now uses a |
179 |
|
more generic way to display the contents of the tree. |
180 |
|
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
181 |
|
|
182 |
|
* Thuban/Model/layer.py (Layer.TreeInfo), |
183 |
|
Thuban/Model/extension.py (Extension.TreeInfo), |
184 |
|
Thuban/Model/map.py (Map.TreeInfo), |
185 |
|
Thuban/Model/session.py (Session.TreeInfo): |
186 |
|
Add TreeInfo methods to implement the new tree view update scheme |
187 |
|
|
188 |
|
2002-07-16 Bernhard Herzog <[email protected]> |
189 |
|
|
190 |
|
* Thuban/UI/application.py: Don't use "import from" for the |
191 |
|
MainWindow. It can't always be resolved. |
192 |
|
(ThubanApplication.OnInit): change reference to MainWindow |
193 |
|
accordingly. |
194 |
|
|
195 |
|
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
196 |
|
completely |
197 |
|
|
198 |
|
2002-07-10 Bernhard Herzog <[email protected]> |
199 |
|
|
200 |
|
* setup.py (create_init_module): New configurable variable whose |
201 |
|
default depends on the platform we're running on. |
202 |
|
(ThubanInstall.initialize_options): Initialize |
203 |
|
self.create_init_module from the global create_init_module |
204 |
|
(ThubanInstall.user_options): indictate that the options |
205 |
|
create-init-module and init-module-dir have arguments. |
206 |
|
|
207 |
|
* setup.py: In the setup call change the version number to include |
208 |
|
cvs. |
209 |
|
|
210 |
|
* MANIFEST.in: Add the files in Examples |
211 |
|
|
212 |
|
2002-07-09 Bernhard Herzog <[email protected]> |
213 |
|
|
214 |
|
* setup.py: In the setup call, use the thuban homepage as the |
215 |
|
value of the url parameter. |
216 |
|
|
217 |
|
* Examples: New subdirectory for examples. |
218 |
|
|
219 |
|
* Examples/simple_extensions/simple_tool.xpm, |
220 |
|
Examples/simple_extensions/simple_tool.py, |
221 |
|
Examples/simple_extensions/simple_command.py, |
222 |
|
Examples/simple_extensions/README: Simple examples showing how to |
223 |
|
add new commands and tools. |
224 |
|
|
225 |
|
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
226 |
|
bdist_rpm that we also have an install script. |
227 |
|
(bdist_inno): Add 2002 to the copyright notice. |
228 |
|
|
229 |
|
* setup.py: Create a file in python's site-packages directory to |
230 |
|
make installation of Thuban as a library easier. |
231 |
|
(ThubanInstall.user_options): Add two new options, |
232 |
|
create-init-module and init-module-dir |
233 |
|
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
234 |
|
filenames for installation in the default directories. |
235 |
|
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
236 |
|
the inherited methods to capture some filenames before they're |
237 |
|
transformed too much by distutils. |
238 |
|
(ThubanInstall.run): Create the init module if requested. |
239 |
|
(ThubanInstall.thuban_init_filename): New method to return the |
240 |
|
full name of the init module. |
241 |
|
(ThubanInstall.get_outputs): Append the filename of the init |
242 |
|
module. |
243 |
|
|
244 |
|
2002-07-08 Bernhard Herzog <[email protected]> |
245 |
|
|
246 |
|
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
247 |
|
handle the prefix properly which means that the default for the |
248 |
|
installation prefix should be /usr for RPMs and /usr/local when |
249 |
|
doing a normal source install. |
250 |
|
(bdist_rpm_install_script): Script to override the default install |
251 |
|
commands in the specfile generated by the bdist_rpm command. |
252 |
|
(thuban_bdist_rpm.user_options): Add a prefix option |
253 |
|
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
254 |
|
Create the script files for the spec files as empty files here |
255 |
|
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
256 |
|
to fill the script files with content. |
257 |
|
|
258 |
|
* Thuban/Model/save.py (relative_filename): Wrapper around |
259 |
|
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
260 |
|
argument. save_session now automatically uses this version, |
261 |
|
solving a problem when saving to a relative filename. |
262 |
|
|
263 |
|
* setup.py: In the setup call, make sure that the library |
264 |
|
directories are under $prefix/lib not directly under $prefix. |
265 |
|
|
266 |
|
2002-06-20 Jan-Oliver Wagner <[email protected]> |
267 |
|
|
268 |
|
* Thuban/Model/extension.py: new module to handle extension objects. |
269 |
|
* Thuban/Model/messages.py: new messages for extensions. |
270 |
|
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
271 |
|
Session.AddExtension): new for handling extensions. |
272 |
|
Also some other minor changes to round up extension handling. |
273 |
|
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
274 |
|
of Extension titles and title and names of its objects. |
275 |
|
|
276 |
|
2002-05-29 Bernhard Herzog <[email protected]> |
277 |
|
|
278 |
|
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
279 |
|
the events for a command. |
280 |
|
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
281 |
|
Call bind_command_events to bind the events. add_toolbar_command |
282 |
|
can now bind events too so that it's possible to have commands |
283 |
|
that are only available through the toolbar. |
284 |
|
(MainWindow.init_ids): New instance variable events_bound to keep |
285 |
|
track of for which commands events have been bound. |
286 |
|
|
287 |
|
2002-05-28 Bernhard Herzog <[email protected]> |
288 |
|
|
289 |
|
* Thuban/UI/menu.py: New module to build and manage menus. |
290 |
|
|
291 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports. |
292 |
|
(MainWindow.__init__, main_menu): move the definition of the main |
293 |
|
menu from __init__ to the Menu instance main_menu. |
294 |
|
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
295 |
|
build the menu bar and sub-menus from a menu description. |
296 |
|
|
297 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
298 |
|
startup file |
299 |
|
(ThubanApplication.read_startup_files): New method to run |
300 |
|
~/.thuban/thubanstart.py |
301 |
|
|
302 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
303 |
|
Move the toolbar definition to the Menu instance main_toolbar. |
304 |
|
(MainWindow.build_toolbar): New method to build the toolbar |
305 |
|
similar to the build_menu methods |
306 |
|
|
307 |
|
2002-05-23 Bernhard Herzog <[email protected]> |
308 |
|
|
309 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
310 |
|
layer_outline_color. Fix it in the definition of the command too. |
311 |
|
|
312 |
|
* Thuban/UI/command.py (Command): Fix typo in doc string |
313 |
|
|
314 |
|
2002-05-22 Bernhard Herzog <[email protected]> |
315 |
|
|
316 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
317 |
|
in the docstring |
318 |
|
|
319 |
|
2002-05-15 Bernhard Herzog <[email protected]> |
320 |
|
|
321 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
322 |
|
when the shapefile is empty. |
323 |
|
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
324 |
|
now return None for empty shapefiles. Update doc-strings. |
325 |
|
|
326 |
|
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
327 |
|
the layer's bbox being None. |
328 |
|
|
329 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
330 |
|
layer's bbox being None. |
331 |
|
|
332 |
|
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
333 |
|
necessary. |
334 |
|
(MapCanvas.__init__): New instance variables, last_selected_layer |
335 |
|
and last_selected_shape to determine how the selection has |
336 |
|
changed. |
337 |
|
|
338 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
339 |
|
AutoSizeColumns because it will cause a traversal of the entire |
340 |
|
table which for large .dbf files will take a very long time. |
341 |
|
|
342 |
|
2002-05-14 Bernhard Herzog <[email protected]> |
343 |
|
|
344 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
345 |
|
maximum depth for the tree than shapelib does by default. |
346 |
|
|
347 |
|
2002-05-10 Bernhard Herzog <[email protected]> |
348 |
|
|
349 |
|
* setup.py (py_modules): The shptree modules doesn't have a |
350 |
|
wrapper, so don't include it in the py_modules |
351 |
|
|
352 |
|
2002-05-08 Bernhard Herzog <[email protected]> |
353 |
|
|
354 |
|
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
355 |
|
const void * as in the qsort prototype |
356 |
|
(SHPTreeFindLikelyShapes): Remove some unused variables. |
357 |
|
|
358 |
|
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
359 |
|
maintains to redraw the window during a drag. |
360 |
|
(MapCanvas.unprojected_rect_around_point): New method to determine |
361 |
|
a small region around a point for hit-testing. |
362 |
|
(MapCanvas.find_shape_at): Only test the shapes in a small region |
363 |
|
around the point. |
364 |
|
|
365 |
|
* setup.py: Increment the version to 0.1.2 |
366 |
|
|
367 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
368 |
|
debug print and set session to None after unsubscribing |
369 |
|
|
370 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
371 |
|
|
372 |
|
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
373 |
|
the file to have a .thuban extension. |
374 |
|
|
375 |
|
* Thuban/UI/tree.py (session_channels): New class constant with |
376 |
|
all the session channels to subscribe to to update the tree |
377 |
|
(SessionTreeCtrl.session_changed): Remember the session so that we |
378 |
|
can unsubscribe properly. Use the new class constant to |
379 |
|
unsubscribe from the old session and subscribe to the new one. |
380 |
|
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
381 |
|
subscriptions of the SessionTreeCtrl. |
382 |
|
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
383 |
|
|
384 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
385 |
|
Session Tree" command to the file menu. |
386 |
|
|
387 |
|
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
388 |
|
as update_region to the renderer. |
389 |
|
|
390 |
|
* Thuban/UI/renderer.py |
391 |
|
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
392 |
|
update box is now directly a tuple, not a wxRect anymore. |
393 |
|
|
394 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
395 |
|
prints. |
396 |
|
|
397 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
398 |
|
|
399 |
|
* setup.py: Add the shptree extension module. See |
400 |
|
extensions/pyshapelib/ChangeLog for more details. |
401 |
|
|
402 |
|
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
403 |
|
extensions/shapelib/dbfopen.c: Really update to the versions of |
404 |
|
shapelib 1.2.9. For some reason it wasn't really done on |
405 |
|
2002-04-11. |
406 |
|
|
407 |
|
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
408 |
|
shapelib 1.2.9. The only real difference is the use of qsort |
409 |
|
instead of a bubble sort implementation |
410 |
|
|
411 |
|
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
412 |
|
shapetree to hold the shapelib quadtree for the shapefile |
413 |
|
(Layer.open_shapefile): Create the quad tree. |
414 |
|
(Layer.ShapesInRegion): New method to return the ids of shapes in |
415 |
|
a given region using the quad tree. |
416 |
|
|
417 |
|
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
418 |
|
comment |
419 |
|
(draw_polygon_shape): Accept both arcs and polygons. |
420 |
|
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
421 |
|
the api. |
422 |
|
|
423 |
|
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
424 |
|
return the shape ids to be rendered in a given layer. |
425 |
|
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
426 |
|
ids. Use draw_polygon_shape to draw arc shapes as well. |
427 |
|
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
428 |
|
has to be updated |
429 |
|
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
430 |
|
calling it's ShapesInRegion method. |
431 |
|
|
432 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
433 |
|
update_region for the update region. |
434 |
|
(MapCanvas.OnPaint): Maintain the update region |
435 |
|
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
436 |
|
to the renderer when drawing the bitmap. Reset the update_region. |
437 |
|
|
438 |
|
2002-05-03 Bernhard Herzog <[email protected]> |
439 |
|
|
440 |
|
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
441 |
|
MainWindow.OpenSession): Change the file extension of the session |
442 |
|
files to .thuban |
443 |
|
|
444 |
|
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
445 |
|
Move the map channels to be forwarded by the session into the |
446 |
|
class constant with forwarded_channels. Also add |
447 |
|
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
448 |
|
forwarded_channels |
449 |
|
|
450 |
|
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
451 |
|
typo and some rewording). |
452 |
|
|
453 |
|
2002-05-02 Bernhard Herzog <[email protected]> |
454 |
|
|
455 |
|
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
456 |
|
around to speed up most redraws: |
457 |
|
(MapCanvas.__init__): New instance variable bitmap which holds the |
458 |
|
bitmap |
459 |
|
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
460 |
|
self.bitmap to draw. |
461 |
|
(MapCanvas.full_redraw): New method to force a full redraw |
462 |
|
including the bitmap |
463 |
|
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
464 |
|
make sure the bitmap is redrawn. |
465 |
|
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
466 |
|
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
467 |
|
make sure the bitmap is redrawn. |
468 |
|
(MapCanvas.OnSize): New method to handle size events so that the |
469 |
|
bitmap can be redrawn. |
470 |
|
|
471 |
|
2002-04-29 Bernhard Herzog <[email protected]> |
472 |
|
|
473 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
474 |
|
canvas' VIEW_POSITION event |
475 |
|
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
476 |
|
Update the text in the status-bar accordingly. |
477 |
|
|
478 |
|
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
479 |
|
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
480 |
|
called. |
481 |
|
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
482 |
|
current_position |
483 |
|
(MapCanvas.set_current_position): New method to set |
484 |
|
current_position. Issue a VIEW_POSITION event |
485 |
|
(MapCanvas.CurrentPosition): New public method to return the value |
486 |
|
of current_position. Should be called when the VIEW_POSITION event |
487 |
|
is processed. |
488 |
|
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
489 |
|
Update the position. |
490 |
|
(MapCanvas.OnLeaveWindow): Set the position to None. |
491 |
|
|
492 |
|
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
493 |
|
position in the statusbar |
494 |
|
|
495 |
|
2002-04-26 Frank Koormann <[email protected]> |
496 |
|
|
497 |
|
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
498 |
|
|
499 |
|
2002-04-24 Frank Koormann <[email protected]> |
500 |
|
|
501 |
|
* Resources/Bitmaps/identify.xpm: shadow added |
502 |
|
|
503 |
|
* Resources/Bitmaps/fullextent.xpm: new |
504 |
|
|
505 |
|
2002-04-22 Jan-Oliver Wagner <[email protected]> |
506 |
|
|
507 |
|
* Thuban/UI/tree.py (update_tree): added test for None on map bounding box |
508 |
|
|
509 |
|
2002-04-21 Jan-Oliver Wagner <[email protected]> |
510 |
|
|
511 |
|
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
512 |
|
|
513 |
|
* Thuban/UI/tree.py (update_tree): added added map extent |
514 |
|
|
515 |
|
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
516 |
|
icon; added map_full_extend as tool |
517 |
|
|
518 |
|
2002-04-19 Jan-Oliver Wagner <[email protected]> |
519 |
|
|
520 |
|
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
521 |
|
saving _new_ sessions |
522 |
|
|
523 |
|
* Thuban/Model/session.py (create_empty_session): new session |
524 |
|
don't have a filename (set to None) |
525 |
|
|
526 |
|
* Thuban/UI/tree.py (update_tree): added filename and modified flag |
527 |
|
|
528 |
|
* Thuban/Model/load.py (ProcessSession): convert projection |
529 |
|
parameters from unicode to regular string |
530 |
|
|
531 |
|
* Data/iceland_sample.session: Added UTM Zone 26 projection. |
532 |
|
|
533 |
|
2002-04-11 Bernhard Herzog <[email protected]> |
534 |
|
|
535 |
|
* extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c, |
536 |
|
extensions/shapelib/dbfopen.c: Update to the versions of shapelib |
537 |
|
1.2.9 |
538 |
|
|
539 |
|
* setup.py (Lib.wxproj extension): Don't link shpopen.c and put |
540 |
|
the pyshapelib directoy into the list of include dirs, so that |
541 |
|
pyshapelib_api.h can be found. |
542 |
|
|
543 |
|
* extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that |
544 |
|
holds the pyshapelib C-API |
545 |
|
(draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use |
546 |
|
pyshapelib_api to access the shapelib functions. |
547 |
|
(initwxproj): Import the c_api from the shapelib module and |
548 |
|
initialize pyshapelib_api. |
549 |
|
|
550 |
|
2002-04-04 Bernhard Herzog <[email protected]> |
551 |
|
|
552 |
|
* setup.py (thuban_bdist_rpm.initialize_options): Use |
553 |
|
initialize_options to create the scripts for the rpm. |
554 |
|
|
555 |
|
* extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use / |
556 |
|
|
557 |
2002-04-03 Bernhard Herzog <[email protected]> |
2002-04-03 Bernhard Herzog <[email protected]> |
558 |
|
|
559 |
|
* setup.py: Increment version to 0.1.1 |
560 |
|
|
561 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
562 |
Layer" and "Remove Layer" commands from the layer menu to the map |
Layer" and "Remove Layer" commands from the layer menu to the map |
563 |
menu |
menu |