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

Legend:
Removed from v.120  
changed lines
  Added in v.216

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26