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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26