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

Legend:
Removed from v.81  
changed lines
  Added in v.205

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26