1 |
|
2002-07-10 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* setup.py (create_init_module): New configurable variable whose |
4 |
|
default depends on the platform we're running on. |
5 |
|
(ThubanInstall.initialize_options): Initialize |
6 |
|
self.create_init_module from the global create_init_module |
7 |
|
(ThubanInstall.user_options): indictate that the options |
8 |
|
create-init-module and init-module-dir have arguments. |
9 |
|
|
10 |
|
* setup.py: In the setup call change the version number to include |
11 |
|
cvs. |
12 |
|
|
13 |
|
* MANIFEST.in: Add the files in Examples |
14 |
|
|
15 |
|
2002-07-09 Bernhard Herzog <[email protected]> |
16 |
|
|
17 |
|
* setup.py: In the setup call, use the thuban homepage as the |
18 |
|
value of the url parameter. |
19 |
|
|
20 |
|
* Examples: New subdirectory for examples. |
21 |
|
|
22 |
|
* Examples/simple_extensions/simple_tool.xpm, |
23 |
|
Examples/simple_extensions/simple_tool.py, |
24 |
|
Examples/simple_extensions/simple_command.py, |
25 |
|
Examples/simple_extensions/README: Simple examples showing how to |
26 |
|
add new commands and tools. |
27 |
|
|
28 |
|
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
29 |
|
bdist_rpm that we also have an install script. |
30 |
|
(bdist_inno): Add 2002 to the copyright notice. |
31 |
|
|
32 |
|
* setup.py: Create a file in python's site-packages directory to |
33 |
|
make installation of Thuban as a library easier. |
34 |
|
(ThubanInstall.user_options): Add two new options, |
35 |
|
create-init-module and init-module-dir |
36 |
|
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
37 |
|
filenames for installation in the default directories. |
38 |
|
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
39 |
|
the inherited methods to capture some filenames before they're |
40 |
|
transformed too much by distutils. |
41 |
|
(ThubanInstall.run): Create the init module if requested. |
42 |
|
(ThubanInstall.thuban_init_filename): New method to return the |
43 |
|
full name of the init module. |
44 |
|
(ThubanInstall.get_outputs): Append the filename of the init |
45 |
|
module. |
46 |
|
|
47 |
|
2002-07-08 Bernhard Herzog <[email protected]> |
48 |
|
|
49 |
|
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
50 |
|
handle the prefix properly which means that the default for the |
51 |
|
installation prefix should be /usr for RPMs and /usr/local when |
52 |
|
doing a normal source install. |
53 |
|
(bdist_rpm_install_script): Script to override the default install |
54 |
|
commands in the specfile generated by the bdist_rpm command. |
55 |
|
(thuban_bdist_rpm.user_options): Add a prefix option |
56 |
|
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
57 |
|
Create the script files for the spec files as empty files here |
58 |
|
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
59 |
|
to fill the script files with content. |
60 |
|
|
61 |
|
* Thuban/Model/save.py (relative_filename): Wrapper around |
62 |
|
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
63 |
|
argument. save_session now automatically uses this version, |
64 |
|
solving a problem when saving to a relative filename. |
65 |
|
|
66 |
|
* setup.py: In the setup call, make sure that the library |
67 |
|
directories are under $prefix/lib not directly under $prefix. |
68 |
|
|
69 |
|
2002-06-20 Jan-Oliver Wagner <[email protected]> |
70 |
|
|
71 |
|
* Thuban/Model/extension.py: new module to handle extension objects. |
72 |
|
* Thuban/Model/messages.py: new messages for extensions. |
73 |
|
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
74 |
|
Session.AddExtension): new for handling extensions. |
75 |
|
Also some other minor changes to round up extension handling. |
76 |
|
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
77 |
|
of Extension titles and title and names of its objects. |
78 |
|
|
79 |
|
2002-05-29 Bernhard Herzog <[email protected]> |
80 |
|
|
81 |
|
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
82 |
|
the events for a command. |
83 |
|
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
84 |
|
Call bind_command_events to bind the events. add_toolbar_command |
85 |
|
can now bind events too so that it's possible to have commands |
86 |
|
that are only available through the toolbar. |
87 |
|
(MainWindow.init_ids): New instance variable events_bound to keep |
88 |
|
track of for which commands events have been bound. |
89 |
|
|
90 |
|
2002-05-28 Bernhard Herzog <[email protected]> |
91 |
|
|
92 |
|
* Thuban/UI/menu.py: New module to build and manage menus. |
93 |
|
|
94 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports. |
95 |
|
(MainWindow.__init__, main_menu): move the definition of the main |
96 |
|
menu from __init__ to the Menu instance main_menu. |
97 |
|
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
98 |
|
build the menu bar and sub-menus from a menu description. |
99 |
|
|
100 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
101 |
|
startup file |
102 |
|
(ThubanApplication.read_startup_files): New method to run |
103 |
|
~/.thuban/thubanstart.py |
104 |
|
|
105 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
106 |
|
Move the toolbar definition to the Menu instance main_toolbar. |
107 |
|
(MainWindow.build_toolbar): New method to build the toolbar |
108 |
|
similar to the build_menu methods |
109 |
|
|
110 |
|
2002-05-23 Bernhard Herzog <[email protected]> |
111 |
|
|
112 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
113 |
|
layer_outline_color. Fix it in the definition of the command too. |
114 |
|
|
115 |
|
* Thuban/UI/command.py (Command): Fix typo in doc string |
116 |
|
|
117 |
|
2002-05-22 Bernhard Herzog <[email protected]> |
118 |
|
|
119 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
120 |
|
in the docstring |
121 |
|
|
122 |
|
2002-05-15 Bernhard Herzog <[email protected]> |
123 |
|
|
124 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
125 |
|
when the shapefile is empty. |
126 |
|
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
127 |
|
now return None for empty shapefiles. Update doc-strings. |
128 |
|
|
129 |
|
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
130 |
|
the layer's bbox being None. |
131 |
|
|
132 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
133 |
|
layer's bbox being None. |
134 |
|
|
135 |
|
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
136 |
|
necessary. |
137 |
|
(MapCanvas.__init__): New instance variables, last_selected_layer |
138 |
|
and last_selected_shape to determine how the selection has |
139 |
|
changed. |
140 |
|
|
141 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
142 |
|
AutoSizeColumns because it will cause a traversal of the entire |
143 |
|
table which for large .dbf files will take a very long time. |
144 |
|
|
145 |
|
2002-05-14 Bernhard Herzog <[email protected]> |
146 |
|
|
147 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
148 |
|
maximum depth for the tree than shapelib does by default. |
149 |
|
|
150 |
|
2002-05-10 Bernhard Herzog <[email protected]> |
151 |
|
|
152 |
|
* setup.py (py_modules): The shptree modules doesn't have a |
153 |
|
wrapper, so don't include it in the py_modules |
154 |
|
|
155 |
|
2002-05-08 Bernhard Herzog <[email protected]> |
156 |
|
|
157 |
|
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
158 |
|
const void * as in the qsort prototype |
159 |
|
(SHPTreeFindLikelyShapes): Remove some unused variables. |
160 |
|
|
161 |
|
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
162 |
|
maintains to redraw the window during a drag. |
163 |
|
(MapCanvas.unprojected_rect_around_point): New method to determine |
164 |
|
a small region around a point for hit-testing. |
165 |
|
(MapCanvas.find_shape_at): Only test the shapes in a small region |
166 |
|
around the point. |
167 |
|
|
168 |
|
* setup.py: Increment the version to 0.1.2 |
169 |
|
|
170 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
171 |
|
debug print and set session to None after unsubscribing |
172 |
|
|
173 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
174 |
|
|
175 |
|
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
176 |
|
the file to have a .thuban extension. |
177 |
|
|
178 |
|
* Thuban/UI/tree.py (session_channels): New class constant with |
179 |
|
all the session channels to subscribe to to update the tree |
180 |
|
(SessionTreeCtrl.session_changed): Remember the session so that we |
181 |
|
can unsubscribe properly. Use the new class constant to |
182 |
|
unsubscribe from the old session and subscribe to the new one. |
183 |
|
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
184 |
|
subscriptions of the SessionTreeCtrl. |
185 |
|
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
186 |
|
|
187 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
188 |
|
Session Tree" command to the file menu. |
189 |
|
|
190 |
|
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
191 |
|
as update_region to the renderer. |
192 |
|
|
193 |
|
* Thuban/UI/renderer.py |
194 |
|
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
195 |
|
update box is now directly a tuple, not a wxRect anymore. |
196 |
|
|
197 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
198 |
|
prints. |
199 |
|
|
200 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
201 |
|
|
202 |
|
* setup.py: Add the shptree extension module. See |
203 |
|
extensions/pyshapelib/ChangeLog for more details. |
204 |
|
|
205 |
|
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
206 |
|
extensions/shapelib/dbfopen.c: Really update to the versions of |
207 |
|
shapelib 1.2.9. For some reason it wasn't really done on |
208 |
|
2002-04-11. |
209 |
|
|
210 |
|
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
211 |
|
shapelib 1.2.9. The only real difference is the use of qsort |
212 |
|
instead of a bubble sort implementation |
213 |
|
|
214 |
|
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
215 |
|
shapetree to hold the shapelib quadtree for the shapefile |
216 |
|
(Layer.open_shapefile): Create the quad tree. |
217 |
|
(Layer.ShapesInRegion): New method to return the ids of shapes in |
218 |
|
a given region using the quad tree. |
219 |
|
|
220 |
|
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
221 |
|
comment |
222 |
|
(draw_polygon_shape): Accept both arcs and polygons. |
223 |
|
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
224 |
|
the api. |
225 |
|
|
226 |
|
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
227 |
|
return the shape ids to be rendered in a given layer. |
228 |
|
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
229 |
|
ids. Use draw_polygon_shape to draw arc shapes as well. |
230 |
|
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
231 |
|
has to be updated |
232 |
|
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
233 |
|
calling it's ShapesInRegion method. |
234 |
|
|
235 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
236 |
|
update_region for the update region. |
237 |
|
(MapCanvas.OnPaint): Maintain the update region |
238 |
|
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
239 |
|
to the renderer when drawing the bitmap. Reset the update_region. |
240 |
|
|
241 |
|
2002-05-03 Bernhard Herzog <[email protected]> |
242 |
|
|
243 |
|
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
244 |
|
MainWindow.OpenSession): Change the file extension of the session |
245 |
|
files to .thuban |
246 |
|
|
247 |
|
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
248 |
|
Move the map channels to be forwarded by the session into the |
249 |
|
class constant with forwarded_channels. Also add |
250 |
|
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
251 |
|
forwarded_channels |
252 |
|
|
253 |
|
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
254 |
|
typo and some rewording). |
255 |
|
|
256 |
|
2002-05-02 Bernhard Herzog <[email protected]> |
257 |
|
|
258 |
|
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
259 |
|
around to speed up most redraws: |
260 |
|
(MapCanvas.__init__): New instance variable bitmap which holds the |
261 |
|
bitmap |
262 |
|
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
263 |
|
self.bitmap to draw. |
264 |
|
(MapCanvas.full_redraw): New method to force a full redraw |
265 |
|
including the bitmap |
266 |
|
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
267 |
|
make sure the bitmap is redrawn. |
268 |
|
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
269 |
|
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
270 |
|
make sure the bitmap is redrawn. |
271 |
|
(MapCanvas.OnSize): New method to handle size events so that the |
272 |
|
bitmap can be redrawn. |
273 |
|
|
274 |
|
2002-04-29 Bernhard Herzog <[email protected]> |
275 |
|
|
276 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
277 |
|
canvas' VIEW_POSITION event |
278 |
|
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
279 |
|
Update the text in the status-bar accordingly. |
280 |
|
|
281 |
|
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
282 |
|
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
283 |
|
called. |
284 |
|
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
285 |
|
current_position |
286 |
|
(MapCanvas.set_current_position): New method to set |
287 |
|
current_position. Issue a VIEW_POSITION event |
288 |
|
(MapCanvas.CurrentPosition): New public method to return the value |
289 |
|
of current_position. Should be called when the VIEW_POSITION event |
290 |
|
is processed. |
291 |
|
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
292 |
|
Update the position. |
293 |
|
(MapCanvas.OnLeaveWindow): Set the position to None. |
294 |
|
|
295 |
|
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
296 |
|
position in the statusbar |
297 |
|
|
298 |
|
2002-04-26 Frank Koormann <[email protected]> |
299 |
|
|
300 |
|
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
301 |
|
|
302 |
|
2002-04-24 Frank Koormann <[email protected]> |
303 |
|
|
304 |
|
* Resources/Bitmaps/identify.xpm: shadow added |
305 |
|
|
306 |
|
* Resources/Bitmaps/fullextent.xpm: new |
307 |
|
|
308 |
|
2002-04-22 Jan-Oliver Wagner <[email protected]> |
309 |
|
|
310 |
|
* Thuban/UI/tree.py (update_tree): added test for None on map bounding box |
311 |
|
|
312 |
|
2002-04-21 Jan-Oliver Wagner <[email protected]> |
313 |
|
|
314 |
|
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
315 |
|
|
316 |
|
* Thuban/UI/tree.py (update_tree): added added map extent |
317 |
|
|
318 |
|
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
319 |
|
icon; added map_full_extend as tool |
320 |
|
|
321 |
|
2002-04-19 Jan-Oliver Wagner <[email protected]> |
322 |
|
|
323 |
|
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
324 |
|
saving _new_ sessions |
325 |
|
|
326 |
|
* Thuban/Model/session.py (create_empty_session): new session |
327 |
|
don't have a filename (set to None) |
328 |
|
|
329 |
|
* Thuban/UI/tree.py (update_tree): added filename and modified flag |
330 |
|
|
331 |
|
* Thuban/Model/load.py (ProcessSession): convert projection |
332 |
|
parameters from unicode to regular string |
333 |
|
|
334 |
|
* Data/iceland_sample.session: Added UTM Zone 26 projection. |
335 |
|
|
336 |
|
2002-04-11 Bernhard Herzog <[email protected]> |
337 |
|
|
338 |
|
* extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c, |
339 |
|
extensions/shapelib/dbfopen.c: Update to the versions of shapelib |
340 |
|
1.2.9 |
341 |
|
|
342 |
|
* setup.py (Lib.wxproj extension): Don't link shpopen.c and put |
343 |
|
the pyshapelib directoy into the list of include dirs, so that |
344 |
|
pyshapelib_api.h can be found. |
345 |
|
|
346 |
|
* extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that |
347 |
|
holds the pyshapelib C-API |
348 |
|
(draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use |
349 |
|
pyshapelib_api to access the shapelib functions. |
350 |
|
(initwxproj): Import the c_api from the shapelib module and |
351 |
|
initialize pyshapelib_api. |
352 |
|
|
353 |
|
2002-04-04 Bernhard Herzog <[email protected]> |
354 |
|
|
355 |
|
* setup.py (thuban_bdist_rpm.initialize_options): Use |
356 |
|
initialize_options to create the scripts for the rpm. |
357 |
|
|
358 |
|
* extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use / |
359 |
|
|
360 |
|
2002-04-03 Bernhard Herzog <[email protected]> |
361 |
|
|
362 |
|
* setup.py: Increment version to 0.1.1 |
363 |
|
|
364 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
365 |
|
Layer" and "Remove Layer" commands from the layer menu to the map |
366 |
|
menu |
367 |
|
|
368 |
2002-02-15 Bernhard Herzog <[email protected]> |
2002-02-15 Bernhard Herzog <[email protected]> |
369 |
|
|
370 |
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |