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

Legend:
Removed from v.87  
changed lines
  Added in v.243

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26