1 |
bh |
217 |
2002-07-17 Bernhard Herzog <[email protected]> |
2 |
|
|
|
3 |
|
|
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
4 |
|
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
5 |
|
|
update_tree into update_tree and add_items. The tree now uses a |
6 |
|
|
more generic way to display the contents of the tree. |
7 |
|
|
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
8 |
|
|
|
9 |
|
|
* Thuban/Model/layer.py (Layer.TreeInfo), |
10 |
|
|
Thuban/Model/extension.py (Extension.TreeInfo), |
11 |
|
|
Thuban/Model/map.py (Map.TreeInfo), |
12 |
|
|
Thuban/Model/session.py (Session.TreeInfo): |
13 |
|
|
Add TreeInfo methods to implement the new tree view update scheme |
14 |
|
|
|
15 |
bh |
216 |
2002-07-16 Bernhard Herzog <[email protected]> |
16 |
|
|
|
17 |
|
|
* Thuban/UI/application.py: Don't use "import from" for the |
18 |
|
|
MainWindow. It can't always be resolved. |
19 |
|
|
(ThubanApplication.OnInit): change reference to MainWindow |
20 |
|
|
accordingly. |
21 |
|
|
|
22 |
|
|
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
23 |
|
|
completely |
24 |
|
|
|
25 |
bh |
213 |
2002-07-10 Bernhard Herzog <[email protected]> |
26 |
|
|
|
27 |
|
|
* setup.py (create_init_module): New configurable variable whose |
28 |
|
|
default depends on the platform we're running on. |
29 |
|
|
(ThubanInstall.initialize_options): Initialize |
30 |
|
|
self.create_init_module from the global create_init_module |
31 |
|
|
(ThubanInstall.user_options): indictate that the options |
32 |
|
|
create-init-module and init-module-dir have arguments. |
33 |
|
|
|
34 |
|
|
* setup.py: In the setup call change the version number to include |
35 |
|
|
cvs. |
36 |
|
|
|
37 |
|
|
* MANIFEST.in: Add the files in Examples |
38 |
|
|
|
39 |
bh |
205 |
2002-07-09 Bernhard Herzog <[email protected]> |
40 |
|
|
|
41 |
bh |
210 |
* setup.py: In the setup call, use the thuban homepage as the |
42 |
|
|
value of the url parameter. |
43 |
|
|
|
44 |
bh |
208 |
* Examples: New subdirectory for examples. |
45 |
|
|
|
46 |
|
|
* Examples/simple_extensions/simple_tool.xpm, |
47 |
|
|
Examples/simple_extensions/simple_tool.py, |
48 |
|
|
Examples/simple_extensions/simple_command.py, |
49 |
|
|
Examples/simple_extensions/README: Simple examples showing how to |
50 |
|
|
add new commands and tools. |
51 |
|
|
|
52 |
bh |
207 |
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
53 |
|
|
bdist_rpm that we also have an install script. |
54 |
|
|
(bdist_inno): Add 2002 to the copyright notice. |
55 |
|
|
|
56 |
bh |
205 |
* setup.py: Create a file in python's site-packages directory to |
57 |
|
|
make installation of Thuban as a library easier. |
58 |
|
|
(ThubanInstall.user_options): Add two new options, |
59 |
|
|
create-init-module and init-module-dir |
60 |
|
|
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
61 |
|
|
filenames for installation in the default directories. |
62 |
|
|
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
63 |
|
|
the inherited methods to capture some filenames before they're |
64 |
|
|
transformed too much by distutils. |
65 |
|
|
(ThubanInstall.run): Create the init module if requested. |
66 |
|
|
(ThubanInstall.thuban_init_filename): New method to return the |
67 |
|
|
full name of the init module. |
68 |
|
|
(ThubanInstall.get_outputs): Append the filename of the init |
69 |
|
|
module. |
70 |
|
|
|
71 |
bh |
202 |
2002-07-08 Bernhard Herzog <[email protected]> |
72 |
|
|
|
73 |
bh |
205 |
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
74 |
|
|
handle the prefix properly which means that the default for the |
75 |
|
|
installation prefix should be /usr for RPMs and /usr/local when |
76 |
|
|
doing a normal source install. |
77 |
|
|
(bdist_rpm_install_script): Script to override the default install |
78 |
|
|
commands in the specfile generated by the bdist_rpm command. |
79 |
|
|
(thuban_bdist_rpm.user_options): Add a prefix option |
80 |
|
|
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
81 |
|
|
Create the script files for the spec files as empty files here |
82 |
|
|
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
83 |
|
|
to fill the script files with content. |
84 |
|
|
|
85 |
bh |
202 |
* Thuban/Model/save.py (relative_filename): Wrapper around |
86 |
|
|
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
87 |
|
|
argument. save_session now automatically uses this version, |
88 |
|
|
solving a problem when saving to a relative filename. |
89 |
|
|
|
90 |
|
|
* setup.py: In the setup call, make sure that the library |
91 |
|
|
directories are under $prefix/lib not directly under $prefix. |
92 |
|
|
|
93 |
jan |
199 |
2002-06-20 Jan-Oliver Wagner <[email protected]> |
94 |
|
|
|
95 |
|
|
* Thuban/Model/extension.py: new module to handle extension objects. |
96 |
|
|
* Thuban/Model/messages.py: new messages for extensions. |
97 |
|
|
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
98 |
|
|
Session.AddExtension): new for handling extensions. |
99 |
|
|
Also some other minor changes to round up extension handling. |
100 |
|
|
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
101 |
|
|
of Extension titles and title and names of its objects. |
102 |
|
|
|
103 |
bh |
194 |
2002-05-29 Bernhard Herzog <[email protected]> |
104 |
|
|
|
105 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
106 |
bh |
202 |
the events for a command. |
107 |
bh |
194 |
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
108 |
|
|
Call bind_command_events to bind the events. add_toolbar_command |
109 |
|
|
can now bind events too so that it's possible to have commands |
110 |
|
|
that are only available through the toolbar. |
111 |
|
|
(MainWindow.init_ids): New instance variable events_bound to keep |
112 |
|
|
track of for which commands events have been bound. |
113 |
|
|
|
114 |
bh |
190 |
2002-05-28 Bernhard Herzog <[email protected]> |
115 |
|
|
|
116 |
|
|
* Thuban/UI/menu.py: New module to build and manage menus. |
117 |
|
|
|
118 |
|
|
* Thuban/UI/mainwindow.py: Remove some unused imports. |
119 |
|
|
(MainWindow.__init__, main_menu): move the definition of the main |
120 |
|
|
menu from __init__ to the Menu instance main_menu. |
121 |
|
|
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
122 |
|
|
build the menu bar and sub-menus from a menu description. |
123 |
|
|
|
124 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
125 |
|
|
startup file |
126 |
|
|
(ThubanApplication.read_startup_files): New method to run |
127 |
|
|
~/.thuban/thubanstart.py |
128 |
|
|
|
129 |
bh |
192 |
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
130 |
|
|
Move the toolbar definition to the Menu instance main_toolbar. |
131 |
|
|
(MainWindow.build_toolbar): New method to build the toolbar |
132 |
|
|
similar to the build_menu methods |
133 |
|
|
|
134 |
bh |
184 |
2002-05-23 Bernhard Herzog <[email protected]> |
135 |
|
|
|
136 |
bh |
186 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
137 |
|
|
layer_outline_color. Fix it in the definition of the command too. |
138 |
|
|
|
139 |
bh |
184 |
* Thuban/UI/command.py (Command): Fix typo in doc string |
140 |
|
|
|
141 |
bh |
182 |
2002-05-22 Bernhard Herzog <[email protected]> |
142 |
|
|
|
143 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
144 |
|
|
in the docstring |
145 |
|
|
|
146 |
bh |
175 |
2002-05-15 Bernhard Herzog <[email protected]> |
147 |
|
|
|
148 |
bh |
180 |
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
149 |
|
|
when the shapefile is empty. |
150 |
|
|
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
151 |
|
|
now return None for empty shapefiles. Update doc-strings. |
152 |
|
|
|
153 |
|
|
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
154 |
|
|
the layer's bbox being None. |
155 |
|
|
|
156 |
|
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
157 |
|
|
layer's bbox being None. |
158 |
|
|
|
159 |
bh |
175 |
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
160 |
|
|
necessary. |
161 |
|
|
(MapCanvas.__init__): New instance variables, last_selected_layer |
162 |
|
|
and last_selected_shape to determine how the selection has |
163 |
|
|
changed. |
164 |
|
|
|
165 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
166 |
|
|
AutoSizeColumns because it will cause a traversal of the entire |
167 |
|
|
table which for large .dbf files will take a very long time. |
168 |
|
|
|
169 |
bh |
172 |
2002-05-14 Bernhard Herzog <[email protected]> |
170 |
|
|
|
171 |
|
|
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
172 |
|
|
maximum depth for the tree than shapelib does by default. |
173 |
|
|
|
174 |
bh |
165 |
2002-05-10 Bernhard Herzog <[email protected]> |
175 |
|
|
|
176 |
|
|
* setup.py (py_modules): The shptree modules doesn't have a |
177 |
|
|
wrapper, so don't include it in the py_modules |
178 |
|
|
|
179 |
bh |
163 |
2002-05-08 Bernhard Herzog <[email protected]> |
180 |
|
|
|
181 |
|
|
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
182 |
|
|
const void * as in the qsort prototype |
183 |
|
|
(SHPTreeFindLikelyShapes): Remove some unused variables. |
184 |
|
|
|
185 |
|
|
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
186 |
|
|
maintains to redraw the window during a drag. |
187 |
|
|
(MapCanvas.unprojected_rect_around_point): New method to determine |
188 |
|
|
a small region around a point for hit-testing. |
189 |
|
|
(MapCanvas.find_shape_at): Only test the shapes in a small region |
190 |
|
|
around the point. |
191 |
|
|
|
192 |
|
|
* setup.py: Increment the version to 0.1.2 |
193 |
|
|
|
194 |
|
|
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
195 |
|
|
debug print and set session to None after unsubscribing |
196 |
|
|
|
197 |
bh |
146 |
2002-05-07 Bernhard Herzog <[email protected]> |
198 |
|
|
|
199 |
bh |
154 |
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
200 |
|
|
the file to have a .thuban extension. |
201 |
|
|
|
202 |
bh |
152 |
* Thuban/UI/tree.py (session_channels): New class constant with |
203 |
|
|
all the session channels to subscribe to to update the tree |
204 |
|
|
(SessionTreeCtrl.session_changed): Remember the session so that we |
205 |
|
|
can unsubscribe properly. Use the new class constant to |
206 |
|
|
unsubscribe from the old session and subscribe to the new one. |
207 |
|
|
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
208 |
|
|
subscriptions of the SessionTreeCtrl. |
209 |
|
|
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
210 |
|
|
|
211 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
212 |
|
|
Session Tree" command to the file menu. |
213 |
|
|
|
214 |
|
|
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
215 |
|
|
as update_region to the renderer. |
216 |
|
|
|
217 |
|
|
* Thuban/UI/renderer.py |
218 |
|
|
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
219 |
|
|
update box is now directly a tuple, not a wxRect anymore. |
220 |
|
|
|
221 |
|
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
222 |
|
|
prints. |
223 |
|
|
|
224 |
|
|
2002-05-07 Bernhard Herzog <[email protected]> |
225 |
|
|
|
226 |
bh |
146 |
* setup.py: Add the shptree extension module. See |
227 |
|
|
extensions/pyshapelib/ChangeLog for more details. |
228 |
|
|
|
229 |
|
|
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
230 |
|
|
extensions/shapelib/dbfopen.c: Really update to the versions of |
231 |
|
|
shapelib 1.2.9. For some reason it wasn't really done on |
232 |
|
|
2002-04-11. |
233 |
|
|
|
234 |
|
|
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
235 |
|
|
shapelib 1.2.9. The only real difference is the use of qsort |
236 |
|
|
instead of a bubble sort implementation |
237 |
|
|
|
238 |
|
|
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
239 |
|
|
shapetree to hold the shapelib quadtree for the shapefile |
240 |
|
|
(Layer.open_shapefile): Create the quad tree. |
241 |
|
|
(Layer.ShapesInRegion): New method to return the ids of shapes in |
242 |
|
|
a given region using the quad tree. |
243 |
|
|
|
244 |
|
|
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
245 |
|
|
comment |
246 |
|
|
(draw_polygon_shape): Accept both arcs and polygons. |
247 |
|
|
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
248 |
|
|
the api. |
249 |
|
|
|
250 |
|
|
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
251 |
|
|
return the shape ids to be rendered in a given layer. |
252 |
|
|
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
253 |
|
|
ids. Use draw_polygon_shape to draw arc shapes as well. |
254 |
|
|
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
255 |
|
|
has to be updated |
256 |
|
|
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
257 |
|
|
calling it's ShapesInRegion method. |
258 |
|
|
|
259 |
|
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
260 |
|
|
update_region for the update region. |
261 |
|
|
(MapCanvas.OnPaint): Maintain the update region |
262 |
|
|
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
263 |
|
|
to the renderer when drawing the bitmap. Reset the update_region. |
264 |
|
|
|
265 |
bh |
129 |
2002-05-03 Bernhard Herzog <[email protected]> |
266 |
|
|
|
267 |
bh |
131 |
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
268 |
|
|
MainWindow.OpenSession): Change the file extension of the session |
269 |
|
|
files to .thuban |
270 |
|
|
|
271 |
bh |
129 |
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
272 |
|
|
Move the map channels to be forwarded by the session into the |
273 |
bh |
146 |
class constant with forwarded_channels. Also add |
274 |
|
|
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
275 |
|
|
forwarded_channels |
276 |
bh |
129 |
|
277 |
|
|
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
278 |
|
|
typo and some rewording). |
279 |
|
|
|
280 |
bh |
126 |
2002-05-02 Bernhard Herzog <[email protected]> |
281 |
|
|
|
282 |
|
|
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
283 |
|
|
around to speed up most redraws: |
284 |
|
|
(MapCanvas.__init__): New instance variable bitmap which holds the |
285 |
|
|
bitmap |
286 |
|
|
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
287 |
|
|
self.bitmap to draw. |
288 |
|
|
(MapCanvas.full_redraw): New method to force a full redraw |
289 |
|
|
including the bitmap |
290 |
|
|
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
291 |
|
|
make sure the bitmap is redrawn. |
292 |
|
|
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
293 |
|
|
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
294 |
|
|
make sure the bitmap is redrawn. |
295 |
|
|
(MapCanvas.OnSize): New method to handle size events so that the |
296 |
|
|
bitmap can be redrawn. |
297 |
|
|
|
298 |
bh |
124 |
2002-04-29 Bernhard Herzog <[email protected]> |
299 |
|
|
|
300 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
301 |
|
|
canvas' VIEW_POSITION event |
302 |
|
|
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
303 |
|
|
Update the text in the status-bar accordingly. |
304 |
|
|
|
305 |
|
|
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
306 |
|
|
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
307 |
|
|
called. |
308 |
|
|
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
309 |
|
|
current_position |
310 |
|
|
(MapCanvas.set_current_position): New method to set |
311 |
|
|
current_position. Issue a VIEW_POSITION event |
312 |
|
|
(MapCanvas.CurrentPosition): New public method to return the value |
313 |
|
|
of current_position. Should be called when the VIEW_POSITION event |
314 |
|
|
is processed. |
315 |
|
|
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
316 |
|
|
Update the position. |
317 |
|
|
(MapCanvas.OnLeaveWindow): Set the position to None. |
318 |
|
|
|
319 |
|
|
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
320 |
|
|
position in the statusbar |
321 |
|
|
|
322 |
frank |
120 |
2002-04-26 Frank Koormann <[email protected]> |
323 |
|
|
|
324 |
|
|
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
325 |
|
|
|
326 |
|
|
2002-04-24 Frank Koormann <[email protected]> |
327 |
frank |
118 |
|
328 |
|
|
* Resources/Bitmaps/identify.xpm: shadow added |
329 |
|
|
|
330 |
|
|
* Resources/Bitmaps/fullextent.xpm: new |
331 |
|
|
|
332 |
jan |
116 |
2002-04-22 Jan-Oliver Wagner <[email protected]> |
333 |
|
|
|
334 |
|
|
* Thuban/UI/tree.py (update_tree): added test for None on map bounding box |
335 |
|
|
|
336 |
jan |
114 |
2002-04-21 Jan-Oliver Wagner <[email protected]> |
337 |
|
|
|
338 |
|
|
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
339 |
|
|
|
340 |
|
|
* Thuban/UI/tree.py (update_tree): added added map extent |
341 |
|
|
|
342 |
|
|
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
343 |
|
|
icon; added map_full_extend as tool |
344 |
|
|
|
345 |
jan |
107 |
2002-04-19 Jan-Oliver Wagner <[email protected]> |
346 |
|
|
|
347 |
|
|
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
348 |
|
|
saving _new_ sessions |
349 |
|
|
|
350 |
|
|
* Thuban/Model/session.py (create_empty_session): new session |
351 |
|
|
don't have a filename (set to None) |
352 |
|
|
|
353 |
|
|
* Thuban/UI/tree.py (update_tree): added filename and modified flag |
354 |
|
|
|
355 |
|
|
* Thuban/Model/load.py (ProcessSession): convert projection |
356 |
|
|
parameters from unicode to regular string |
357 |
|
|
|
358 |
|
|
* Data/iceland_sample.session: Added UTM Zone 26 projection. |
359 |
|
|
|
360 |
bh |
100 |
2002-04-11 Bernhard Herzog <[email protected]> |
361 |
|
|
|
362 |
|
|
* extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c, |
363 |
|
|
extensions/shapelib/dbfopen.c: Update to the versions of shapelib |
364 |
|
|
1.2.9 |
365 |
|
|
|
366 |
|
|
* setup.py (Lib.wxproj extension): Don't link shpopen.c and put |
367 |
|
|
the pyshapelib directoy into the list of include dirs, so that |
368 |
|
|
pyshapelib_api.h can be found. |
369 |
|
|
|
370 |
|
|
* extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that |
371 |
|
|
holds the pyshapelib C-API |
372 |
|
|
(draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use |
373 |
|
|
pyshapelib_api to access the shapelib functions. |
374 |
|
|
(initwxproj): Import the c_api from the shapelib module and |
375 |
|
|
initialize pyshapelib_api. |
376 |
|
|
|
377 |
bh |
89 |
2002-04-04 Bernhard Herzog <[email protected]> |
378 |
|
|
|
379 |
bh |
91 |
* setup.py (thuban_bdist_rpm.initialize_options): Use |
380 |
|
|
initialize_options to create the scripts for the rpm. |
381 |
|
|
|
382 |
bh |
89 |
* extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use / |
383 |
|
|
|
384 |
bh |
85 |
2002-04-03 Bernhard Herzog <[email protected]> |
385 |
|
|
|
386 |
bh |
87 |
* setup.py: Increment version to 0.1.1 |
387 |
|
|
|
388 |
bh |
85 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
389 |
|
|
Layer" and "Remove Layer" commands from the layer menu to the map |
390 |
|
|
menu |
391 |
|
|
|
392 |
bh |
83 |
2002-02-15 Bernhard Herzog <[email protected]> |
393 |
|
|
|
394 |
|
|
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |
395 |
|
|
argument (python <= 1.5.2 erroneously accepted multiuple |
396 |
|
|
arguments) |
397 |
|
|
|
398 |
bh |
81 |
2002-02-04 Bernhard Herzog <[email protected]> |
399 |
|
|
|
400 |
|
|
* Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a |
401 |
|
|
RecordGrid in the identifyview. |
402 |
|
|
(IdentifyView.__init__): Use IdentifyGridCtrl instead of |
403 |
|
|
IdentifyListCtrl. The grid allows editing of the values. |
404 |
|
|
|
405 |
|
|
* Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes |
406 |
|
|
implementing a grid for a single row of a thuban table. |
407 |
|
|
|
408 |
|
|
* Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all |
409 |
|
|
layers by default. Easier to use than the previous default of only |
410 |
|
|
searching through the select layer which meant that if no layer |
411 |
|
|
was selected, you couldn't select a shape. |
412 |
|
|
|
413 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Fix typo |
414 |
|
|
|
415 |
|
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the |
416 |
|
|
stroke_width attribute |
417 |
|
|
|
418 |
|
|
* Thuban/Model/save.py (save_session): Write the new stroke_width |
419 |
|
|
attribute |
420 |
|
|
|
421 |
|
|
* Thuban/Model/load.py (ProcessSession.startElement): Read the |
422 |
|
|
stroke_width attribute |
423 |
|
|
|
424 |
|
|
* Thuban/Model/layer.py (Layer.__init__): New parameter and |
425 |
|
|
instance variable stroke_width |
426 |
|
|
(Layer.SetStrokeWidth): Set the stroke_width. |
427 |
|
|
|
428 |
bh |
72 |
2002-02-01 Bernhard Herzog <[email protected]> |
429 |
|
|
|
430 |
|
|
* extensions/thuban/wxproj.cpp (project_points): Fix two |
431 |
|
|
off-by-one errors in the last loop that joins the various parts |
432 |
|
|
together. |
433 |
|
|
|
434 |
bh |
71 |
2002-01-14 Bernhard Herzog <[email protected]> |
435 |
|
|
|
436 |
|
|
* setup.py (data_dist.make_distribution): Fix some typos |
437 |
|
|
|
438 |
bh |
70 |
2001-09-18 Bernhard Herzog <[email protected]> |
439 |
|
|
|
440 |
|
|
* README: Slight tweaking in preparation for the 0.1 release |
441 |
|
|
|
442 |
|
|
* setup.cfg: Add section for sdist to create both tgz and zip |
443 |
|
|
archives |
444 |
|
|
|
445 |
|
|
* setup.py: increase version number to 0.1 |
446 |
|
|
(data_dist): New command class for data distribution |
447 |
|
|
|
448 |
|
|
|
449 |
bh |
64 |
2001-09-14 Bernhard Herzog <[email protected]> |
450 |
|
|
|
451 |
bh |
70 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
452 |
|
|
Handle the case of no layer (i.e. layer is None) properly. |
453 |
|
|
|
454 |
|
|
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
455 |
|
|
Set the initial selection of the combo boxes to reflect the |
456 |
|
|
projection we're starting with in a way that works on windows, |
457 |
|
|
too. |
458 |
|
|
|
459 |
bh |
64 |
* Thuban/Lib/connector.py (Connector.print_connections): Print the |
460 |
|
|
puiblisher's ids in hex to make it easier to compare them to the |
461 |
|
|
standard repr of python methods |
462 |
|
|
|
463 |
|
|
* Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer |
464 |
|
|
messages |
465 |
|
|
|
466 |
bh |
59 |
2001-09-13 Bernhard Herzog <[email protected]> |
467 |
|
|
|
468 |
bh |
64 |
* Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to |
469 |
|
|
deselect the layer if no layer is selected |
470 |
|
|
|
471 |
bh |
59 |
* Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to |
472 |
|
|
idle time when there actually is something to draw. If there's |
473 |
|
|
nothing to draw simply clear the window |
474 |
|
|
(MapCanvas.do_redraw): Call dc.EndDrawing and add some comments. |
475 |
|
|
(MapCanvas.SetMap): force a redraw in all cases because |
476 |
|
|
FitMapToWindow doesn't always do it. |
477 |
|
|
(MapCanvas.ZoomFactor): Add an optional parameter, center, to |
478 |
|
|
specify the point to move into the center of the window |
479 |
|
|
(ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't |
480 |
|
|
dragged, zoon in/out by a factor of 2 |
481 |
bh |
64 |
(MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing |
482 |
|
|
index, i.e. reversed drawing order) so that objects appearing to |
483 |
|
|
be in from of others are selected first. This is probably mostly |
484 |
|
|
relevant for point shapes where the symbols used may overlap |
485 |
bh |
59 |
|
486 |
|
|
* Thuban/Model/session.py (create_empty_session): Unset the |
487 |
|
|
modified bit before returning it |
488 |
|
|
|
489 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession): Use |
490 |
|
|
create_empty_session session to create the new, empty session. |
491 |
|
|
|
492 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of |
493 |
|
|
the tool bitmaps. |
494 |
|
|
(MainWindow.OnClose, MainWindow.save_modified_session): Separate |
495 |
|
|
the code that asks whether the session should be saved into the |
496 |
|
|
new method save_modified_session. |
497 |
|
|
(MainWindow.OpenSession, MainWindow.NewSession): Use the new |
498 |
|
|
method to save modified session here too. |
499 |
|
|
|
500 |
bh |
55 |
2001-09-11 Bernhard Herzog <[email protected]> |
501 |
|
|
|
502 |
|
|
* setup.py (InnoIconItem): fix typo |
503 |
|
|
|
504 |
|
|
(thuban_bdist_inno.run): |
505 |
|
|
(bdist_inno.run): Move the decision not to create symlinks on |
506 |
|
|
non-nt platforms to thuban_bdist_inno and do it unconditinally |
507 |
|
|
since we never want to create the symlinks here |
508 |
|
|
|
509 |
bh |
48 |
2001-09-10 Bernhard Herzog <[email protected]> |
510 |
|
|
|
511 |
bh |
53 |
* Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the |
512 |
|
|
identify view immediately |
513 |
|
|
|
514 |
|
|
* Thuban/UI/controls.py: New file with two classes RecordListCtrl |
515 |
|
|
and SelectableRecordListCtrl that implement the code shared by the |
516 |
|
|
identify view and the label dialog |
517 |
|
|
|
518 |
|
|
* Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the |
519 |
|
|
new class RecordListCtrl |
520 |
|
|
|
521 |
|
|
* Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the |
522 |
|
|
return value of GetValue is None instead of using it as a boolean |
523 |
|
|
directly so that Zero numbers are handled properly. |
524 |
|
|
(LabelListCtrl): Derive from the new class |
525 |
|
|
SelectableRecordListCtrl |
526 |
|
|
|
527 |
bh |
48 |
* Thuban/UI/proj4dialog.py (Proj4Dialog.__init__): |
528 |
|
|
(Proj4Dialog.dialogLayout): Make the window resizable and set the |
529 |
|
|
size of the text control explicitly to make the sizers work on |
530 |
|
|
both Windows and X. |
531 |
|
|
|
532 |
bh |
44 |
2001-09-07 Bernhard Herzog <[email protected]> |
533 |
|
|
|
534 |
|
|
* Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter |
535 |
|
|
that can limit the search to the currently selected layer. |
536 |
|
|
(MapCanvas.SelectShapeAt): Make sure that the currently selected |
537 |
|
|
layer stays selected even when no shape is found |
538 |
bh |
46 |
(MapCanvas.FitRectToWindow): If the rect has zero with or zero |
539 |
|
|
height do nothing (avoids zero division errors) |
540 |
bh |
44 |
|
541 |
bh |
32 |
2001-09-06 Bernhard Herzog <[email protected]> |
542 |
|
|
|
543 |
bh |
42 |
* Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__): |
544 |
|
|
Correct the spelling of SessionTreeCtrl. dabbrev is too damn |
545 |
|
|
convenient :-) |
546 |
|
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce |
547 |
|
|
a new instvar layer_to_item to map layers to tree items |
548 |
|
|
(SessionTreeCtrl.layer_selected): Select the appropriate tree item |
549 |
|
|
to match the current selection in the interactor |
550 |
|
|
|
551 |
bh |
40 |
* Thuban/UI/interactor.py (Interactor.SelectedLayer): |
552 |
|
|
(Interactor.HasSelectedLayer): New methods to query the current |
553 |
|
|
selection |
554 |
|
|
|
555 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.current_layer): |
556 |
|
|
(MainWindow.has_selected_layer): Simply call the appropriate |
557 |
|
|
interactor method |
558 |
|
|
|
559 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): |
560 |
|
|
(MainWindow.LayerShowTable): |
561 |
|
|
(MainWindow.identify_view_on_demand): Store the interactor in an |
562 |
|
|
instvar and use that reference instead of going through main.app |
563 |
|
|
|
564 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
565 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
566 |
|
|
* Thuban/UI/main.py (main): Create the session tree view in main |
567 |
|
|
with the new mainwindow method ShowSessionTree and not directly |
568 |
|
|
the application's OnInit method |
569 |
|
|
|
570 |
|
|
* Thuban/UI/tree.py (myTreeCtrlPanel): |
571 |
|
|
(SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a |
572 |
|
|
TreeCtrl isntead of a panel. This affects most method since we now |
573 |
|
|
refer to self instead of self.tree |
574 |
|
|
(SessionTreeView): New class implementing a non-modal dialog |
575 |
|
|
showing the session tree. |
576 |
|
|
|
577 |
bh |
35 |
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the |
578 |
|
|
layer to the tableview dialog. |
579 |
|
|
|
580 |
|
|
* Thuban/UI/tableview.py: Add some doc-strings |
581 |
|
|
(TableGrid): |
582 |
|
|
(TableGrid.OnRangeSelect): |
583 |
|
|
(TableGrid.OnSelectCell): |
584 |
|
|
(TableFrame.__init__): |
585 |
|
|
(TableFrame.row_selected): |
586 |
|
|
Selecting rows in the grid view now updates the selected shapes |
587 |
|
|
through the TableFrame. To achieve this we derive TableGrid from |
588 |
|
|
Publisher and introduce the message type ROW_SELECTED which the |
589 |
|
|
TableFrame subscribes to and which is issued by OnRangeSelect and |
590 |
|
|
OnSelectCell |
591 |
|
|
|
592 |
|
|
(DataTable.SelectRow): Removed because it's no longer needed in |
593 |
|
|
the row/shape selection scheme |
594 |
|
|
|
595 |
bh |
32 |
* Thuban/UI/dialogs.py: New file implementing common classes for |
596 |
|
|
dialogs |
597 |
|
|
|
598 |
|
|
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
599 |
|
|
the SELECTED_SHAPE message anymore. This is now handled by the |
600 |
|
|
parent. |
601 |
|
|
(TableGrid.select_shape): Only update the selection if the shape |
602 |
|
|
is not None. |
603 |
|
|
(TableFrame): Inherit from the new NonModalDialog class. |
604 |
|
|
(TableFrame.__init__, TableFrame.select_shape): Handle the |
605 |
|
|
SELECT_SHAPE message. |
606 |
|
|
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
607 |
|
|
SELECT_SHAPE |
608 |
|
|
|
609 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
610 |
|
|
(MainWindow.add_dialog): |
611 |
|
|
(MainWindow.dialog_open): |
612 |
|
|
(MainWindow.remove_dialog): |
613 |
|
|
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
614 |
|
|
of opened non-modal dialogs. |
615 |
|
|
|
616 |
|
|
(MainWindow.__init__): Initialize the new non-modal dictionary |
617 |
|
|
management code |
618 |
|
|
(MainWindow.LayerShowTable): maintain separate dialogs for each |
619 |
|
|
table using the non-modal dialog management code to only open a |
620 |
|
|
view once for each table. |
621 |
|
|
|
622 |
|
|
(MainWindow.IdentifyTool): |
623 |
|
|
(MainWindow.__init__): |
624 |
|
|
(MainWindow.identify_view_on_demand): Don't open the identify view |
625 |
|
|
in IdentifyTool anymore. This will be done automatically by the |
626 |
|
|
new method identify_view_on_demand which handles the |
627 |
|
|
SELECTED_SHAPE message so that the identify view will be opened on |
628 |
|
|
demand |
629 |
|
|
|
630 |
|
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
631 |
|
|
the interactor argument. The SELECTED_SHAPE message is now handled |
632 |
|
|
by the parent. |
633 |
|
|
(IdentifyView.__init__): Add the interactor argument so that we |
634 |
|
|
can handle the SELECTED_SHAPE message here |
635 |
|
|
(IdentifyView.selected_shape): New method to handle the |
636 |
|
|
SELECTED_SHAPE messages |
637 |
|
|
|
638 |
|
|
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
639 |
|
|
NonModalDialog class |
640 |
|
|
(IdentifyView.OnClose): Extend the inherited version to |
641 |
|
|
unsubscribe SELECT_SHAPE |
642 |
|
|
|
643 |
|
|
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
644 |
|
|
|
645 |
bh |
26 |
2001-09-05 Bernhard Herzog <[email protected]> |
646 |
|
|
|
647 |
|
|
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
648 |
|
|
|
649 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
650 |
|
|
interactor to pass through to the MapCanvas |
651 |
|
|
|
652 |
|
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
653 |
|
|
argument to the MainWindow constructor to get rid of the ugly hack |
654 |
|
|
that made main.app available early just so that the mapcanvas |
655 |
|
|
could access the interactor object. |
656 |
|
|
|
657 |
bh |
19 |
2001-09-04 Bernhard Herzog <[email protected]> |
658 |
|
|
|
659 |
bh |
22 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
660 |
|
|
that runs a modal message box |
661 |
|
|
(MainWindow.OnClose): Use the new method |
662 |
|
|
(MainWindow.RemoveLayer): Just do nothing in case no layer is |
663 |
|
|
selected. The command should be grayed out anyway, so there's no |
664 |
|
|
need to pop up a message box. |
665 |
|
|
(MainWindow.AddLayer): Pop up a message box with an error message |
666 |
|
|
if the shape file can't be opened |
667 |
|
|
|
668 |
|
|
* Thuban/Model/layer.py (Layer.__init__): Open the shapefile |
669 |
|
|
immediately. This will cause an exception in case the file can't |
670 |
|
|
be opened and we can display an appropriate message. |
671 |
|
|
|
672 |
bh |
19 |
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
673 |
|
|
|
674 |
|
|
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |
675 |
|
|
specific bdist_rpm command. |
676 |
|
|
|
677 |
|
|
* Thuban/UI/main.py: Catch ImportError exceptions when importing |
678 |
|
|
the locale module because it may not be available on some |
679 |
|
|
installations. |
680 |
|
|
|
681 |
|
|
* extensions/pyprojection/LICENSE: Copy of the license text in |
682 |
|
|
Projection.i. Having it in a separate file makes it easier to |
683 |
|
|
refer to license text in e.g. RPMs |
684 |
|
|
|
685 |
bh |
18 |
2001-09-03 Bernhard Herzog <[email protected]> |
686 |
|
|
|
687 |
bh |
19 |
* setup.py: use wx-config instead of wxgtk-config because it's |
688 |
|
|
more generic |
689 |
|
|
|
690 |
|
|
* setup.py (ThubanInstall.get_outputs): Add the symlink in |
691 |
|
|
<prefix>/bin to the outputs |
692 |
|
|
(ThubanInstall.link_file): New method to link files. We need this |
693 |
|
|
because the standard copy_files refuses to link non-existing |
694 |
|
|
files. |
695 |
|
|
(ThubanInstall.run): Remove the leading install root from the |
696 |
|
|
script filename if an install root was specified and use the new |
697 |
|
|
link_file method |
698 |
|
|
|
699 |
bh |
18 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
700 |
|
|
the window when the first layer is added to the map. |
701 |
|
|
|
702 |
|
|
* setup.py (ThubanInstall.run): Honor the build root (self.root) |
703 |
|
|
when linking thuban.py to <prefix>/bin |
704 |
|
|
|
705 |
bh |
16 |
2001-08-31 Bernhard Herzog <[email protected]> |
706 |
|
|
|
707 |
|
|
* setup.py: In the setup call, the install parameters shouldn't |
708 |
|
|
have trailing slashes because distutils on non-posix platforms |
709 |
|
|
doesn't like that. The same applies to other directories like |
710 |
|
|
"Resources/Bitmaps" |
711 |
|
|
|
712 |
|
|
In the configuration section for nt, move the wxWindows directory |
713 |
|
|
optins into the part clearly marked as editable. |
714 |
|
|
|
715 |
|
|
(InstallLocal.initialize_options): |
716 |
|
|
(InstallLocal.user_options): remove the currently unused debug |
717 |
|
|
flag |
718 |
|
|
(thuban_build_py.find_all_modules): Add this method so that it |
719 |
|
|
works for our case of having packages and modules in one |
720 |
|
|
distribution as well. |
721 |
|
|
(ThubanInstall.initialize_options): |
722 |
|
|
(ThubanInstall.finalize_options): |
723 |
|
|
(ThubanInstall.user_options): |
724 |
|
|
(ThubanInstall.boolean_options): Add new options, do-symlink and |
725 |
|
|
extra files. Since these are the first ThubanInstall specific |
726 |
|
|
options, override user_options and boolean_options |
727 |
|
|
(ThubanInstall.run): Honor the new do-symlink and extra-files |
728 |
|
|
options. |
729 |
|
|
(ThubanInstall.get_outputs): Add to override the base-class's |
730 |
|
|
version and add the extra-files to the outputs |
731 |
|
|
(bdist_inno): New class for windows distributions with Inno Setup |
732 |
|
|
(InnoIconItem): Helper class for bdist_inno |
733 |
|
|
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
734 |
|
|
this together with the appropriate parameters, to the setup call. |
735 |
|
|
|
736 |
|
|
* setup.cfg (bdist_inno): added new section for the inno setup |
737 |
|
|
installer |
738 |
|
|
|
739 |
|
|
* Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var |
740 |
|
|
changing_selection to avoid recursive selection events when |
741 |
|
|
modifying the selection in response to a selection event. |
742 |
|
|
(myTreeCtrlPanel.normalize_selection): Set the new inst var when |
743 |
|
|
changing the tree's selection. |
744 |
|
|
(myTreeCtrlPanel.OnSelChanged): Only normalize the selection when |
745 |
|
|
we're not being called indirectly from normalize_selection. |
746 |
|
|
|
747 |
|
|
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call |
748 |
|
|
event.Check only if the command is actuall checkable. |
749 |
|
|
(MainWindow.__init__): Call the toolbar's Realize method to make |
750 |
|
|
sure that the items are actually shown |
751 |
|
|
|
752 |
bh |
7 |
2001-08-28 Bernhard Herzog <[email protected]> |
753 |
|
|
|
754 |
bh |
9 |
* setup.py: Fix some doc strings |
755 |
|
|
|
756 |
bh |
7 |
* ChangeLog: started |
757 |
|
|
|