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

Legend:
Removed from v.91  
changed lines
  Added in v.237

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26