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

Legend:
Removed from v.72  
changed lines
  Added in v.234

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26