/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 85 by bh, Wed Apr 3 15:21:58 2002 UTC revision 217 by bh, Wed Jul 17 10:50:40 2002 UTC
# Line 1  Line 1 
1    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    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    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    2002-07-09  Bernhard Herzog  <[email protected]>
40    
41            * setup.py: In the setup call, use the thuban homepage as the
42            value of the url parameter.
43    
44            * 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            * 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            * 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    2002-07-08  Bernhard Herzog  <[email protected]>
72    
73            * 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            * 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    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    2002-05-29  Bernhard Herzog  <[email protected]>
104    
105            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
106            the events for a command.
107            (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    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            * 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    2002-05-23  Bernhard Herzog  <[email protected]>
135    
136            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
137            layer_outline_color. Fix it in the definition of the command too.
138    
139            * Thuban/UI/command.py (Command): Fix typo in doc string
140    
141    2002-05-22  Bernhard Herzog  <[email protected]>
142    
143            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
144            in the docstring
145    
146    2002-05-15  Bernhard Herzog  <[email protected]>
147    
148            * 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            * 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    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    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    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    2002-05-07  Bernhard Herzog  <[email protected]>
198    
199            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
200            the file to have a .thuban extension.
201    
202            * 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            * 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    2002-05-03  Bernhard Herzog  <[email protected]>
266    
267            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
268            MainWindow.OpenSession): Change the file extension of the session
269            files to .thuban
270    
271            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
272            Move the map channels to be forwarded by the session into the
273            class constant with forwarded_channels. Also add
274            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
275            forwarded_channels
276    
277            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
278            typo and some rewording).
279    
280    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    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    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            
328            * Resources/Bitmaps/identify.xpm: shadow added
329    
330            * Resources/Bitmaps/fullextent.xpm: new
331            
332    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    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    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    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    2002-04-04  Bernhard Herzog  <[email protected]>
378    
379            * setup.py (thuban_bdist_rpm.initialize_options): Use
380            initialize_options to create the scripts for the rpm.
381    
382            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
383    
384  2002-04-03  Bernhard Herzog  <[email protected]>  2002-04-03  Bernhard Herzog  <[email protected]>
385    
386            * setup.py: Increment version to 0.1.1
387    
388          * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add          * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
389          Layer" and "Remove Layer" commands from the layer menu to the map          Layer" and "Remove Layer" commands from the layer menu to the map
390          menu          menu

Legend:
Removed from v.85  
changed lines
  Added in v.217

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26