/[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 154 by bh, Tue May 7 17:18:45 2002 UTC
# Line 1  Line 1 
1    2002-05-07  Bernhard Herzog  <[email protected]>
2    
3            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
4            the file to have a .thuban extension.
5    
6            * Thuban/UI/tree.py (session_channels): New class constant with
7            all the session channels to subscribe to to update the tree
8            (SessionTreeCtrl.session_changed): Remember the session so that we
9            can unsubscribe properly. Use the new class constant to
10            unsubscribe from the old session and subscribe to the new one.
11            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
12            subscriptions of the SessionTreeCtrl.
13            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
14    
15            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
16            Session Tree" command to the file menu.
17    
18            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
19            as update_region to the renderer.
20    
21            * Thuban/UI/renderer.py
22            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
23            update box is now directly a tuple, not a wxRect anymore.
24    
25            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
26            prints.
27    
28    2002-05-07  Bernhard Herzog  <[email protected]>
29    
30            * setup.py: Add the shptree extension module. See
31            extensions/pyshapelib/ChangeLog for more details.
32    
33            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
34            extensions/shapelib/dbfopen.c: Really update to the versions of
35            shapelib 1.2.9. For some reason it wasn't really done on
36            2002-04-11.
37    
38            * extensions/shapelib/shptree.c: Modified version of shptree.c of
39            shapelib 1.2.9. The only real difference is the use of qsort
40            instead of a bubble sort implementation
41    
42            * Thuban/Model/layer.py (Layer.__init__): New instance variable
43            shapetree to hold the shapelib quadtree for the shapefile
44            (Layer.open_shapefile): Create the quad tree.
45            (Layer.ShapesInRegion): New method to return the ids of shapes in
46            a given region using the quad tree.
47    
48            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
49            comment
50            (draw_polygon_shape): Accept both arcs and polygons.
51            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
52            the api.
53    
54            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
55            return the shape ids to be rendered in a given layer.
56            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
57            ids. Use draw_polygon_shape to draw arc shapes as well.
58            (ScreenRenderer.RenderMap): New parameter for the rectangle that
59            has to be updated
60            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
61            calling it's ShapesInRegion method.
62    
63            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
64            update_region for the update region.
65            (MapCanvas.OnPaint): Maintain the update region
66            (MapCanvas.do_redraw): Pass the bounding box of the update_region
67            to the renderer when drawing the bitmap. Reset the update_region.
68    
69    2002-05-03  Bernhard Herzog  <[email protected]>
70    
71            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
72            MainWindow.OpenSession): Change the file extension of the session
73            files to .thuban
74    
75            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
76            Move the map channels to be forwarded by the session into the
77            class constant with forwarded_channels. Also add
78            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
79            forwarded_channels
80    
81            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
82            typo and some rewording).
83    
84    2002-05-02  Bernhard Herzog  <[email protected]>
85    
86            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
87            around to speed up most redraws:
88            (MapCanvas.__init__): New instance variable bitmap which holds the
89            bitmap
90            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
91            self.bitmap to draw.
92            (MapCanvas.full_redraw): New method to force a full redraw
93            including the bitmap
94            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
95            make sure the bitmap is redrawn.
96            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
97            MapCanvas.shape_selected): Call full_redraw instead of readraw to
98            make sure the bitmap is redrawn.
99            (MapCanvas.OnSize): New method to handle size events so that the
100            bitmap can be redrawn.
101    
102    2002-04-29  Bernhard Herzog  <[email protected]>
103    
104            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
105            canvas' VIEW_POSITION event
106            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
107            Update the text in the status-bar accordingly.
108    
109            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
110            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
111            called.
112            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
113            current_position
114            (MapCanvas.set_current_position): New method to set
115            current_position. Issue a VIEW_POSITION event
116            (MapCanvas.CurrentPosition): New public method to return the value
117            of current_position. Should be called when the VIEW_POSITION event
118            is processed.
119            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
120            Update the position.
121            (MapCanvas.OnLeaveWindow): Set the position to None.
122    
123            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
124            position in the statusbar
125    
126  2002-04-26      Frank Koormann <[email protected]>  2002-04-26      Frank Koormann <[email protected]>
127    
128          * 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.154

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26