/[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 126 by bh, Thu May 2 18:55:46 2002 UTC revision 194 by bh, Wed May 29 10:34:41 2002 UTC
# Line 1  Line 1 
1    2002-05-29  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
4            the events for a comnmand.
5            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
6            Call bind_command_events to bind the events. add_toolbar_command
7            can now bind events too so that it's possible to have commands
8            that are only available through the toolbar.
9            (MainWindow.init_ids): New instance variable events_bound to keep
10            track of for which commands events have been bound.
11    
12    2002-05-28  Bernhard Herzog  <[email protected]>
13    
14            * Thuban/UI/menu.py: New module to build and manage menus.
15    
16            * Thuban/UI/mainwindow.py: Remove some unused imports.
17            (MainWindow.__init__, main_menu): move the definition of the main
18            menu from __init__ to the Menu instance main_menu.
19            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
20            build the menu bar and sub-menus from a menu description.
21    
22            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
23            startup file
24            (ThubanApplication.read_startup_files): New method to run
25            ~/.thuban/thubanstart.py
26    
27            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
28            Move the toolbar definition to the Menu instance main_toolbar.
29            (MainWindow.build_toolbar): New method to build the toolbar
30            similar to the build_menu methods
31    
32    2002-05-23  Bernhard Herzog  <[email protected]>
33    
34            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
35            layer_outline_color. Fix it in the definition of the command too.
36    
37            * Thuban/UI/command.py (Command): Fix typo in doc string
38    
39    2002-05-22  Bernhard Herzog  <[email protected]>
40    
41            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
42            in the docstring
43    
44    2002-05-15  Bernhard Herzog  <[email protected]>
45    
46            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
47            when the shapefile is empty.
48            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
49            now return None for empty shapefiles. Update doc-strings.
50    
51            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
52            the layer's bbox being None.
53    
54            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
55            layer's bbox being None.
56    
57            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
58            necessary.
59            (MapCanvas.__init__): New instance variables, last_selected_layer
60            and last_selected_shape to determine how the selection has
61            changed.
62    
63            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
64            AutoSizeColumns because it will cause a traversal of the entire
65            table which for large .dbf files will take a very long time.
66    
67    2002-05-14  Bernhard Herzog  <[email protected]>
68    
69            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
70            maximum depth for the tree than shapelib does by default.
71    
72    2002-05-10  Bernhard Herzog  <[email protected]>
73    
74            * setup.py (py_modules): The shptree modules doesn't have a
75            wrapper, so don't include it in the py_modules
76    
77    2002-05-08  Bernhard Herzog  <[email protected]>
78    
79            * extensions/shapelib/shptree.c (compare_ints): Make arguments
80            const void * as in the qsort prototype
81            (SHPTreeFindLikelyShapes): Remove some unused variables.
82    
83            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
84            maintains to redraw the window during a drag.
85            (MapCanvas.unprojected_rect_around_point): New method to determine
86            a small region around a point for hit-testing.
87            (MapCanvas.find_shape_at): Only test the shapes in a small region
88            around the point.
89    
90            * setup.py: Increment the version to 0.1.2
91    
92            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
93            debug print and set session to None after unsubscribing
94    
95    2002-05-07  Bernhard Herzog  <[email protected]>
96    
97            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
98            the file to have a .thuban extension.
99    
100            * Thuban/UI/tree.py (session_channels): New class constant with
101            all the session channels to subscribe to to update the tree
102            (SessionTreeCtrl.session_changed): Remember the session so that we
103            can unsubscribe properly. Use the new class constant to
104            unsubscribe from the old session and subscribe to the new one.
105            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
106            subscriptions of the SessionTreeCtrl.
107            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
108    
109            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
110            Session Tree" command to the file menu.
111    
112            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
113            as update_region to the renderer.
114    
115            * Thuban/UI/renderer.py
116            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
117            update box is now directly a tuple, not a wxRect anymore.
118    
119            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
120            prints.
121    
122    2002-05-07  Bernhard Herzog  <[email protected]>
123    
124            * setup.py: Add the shptree extension module. See
125            extensions/pyshapelib/ChangeLog for more details.
126    
127            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
128            extensions/shapelib/dbfopen.c: Really update to the versions of
129            shapelib 1.2.9. For some reason it wasn't really done on
130            2002-04-11.
131    
132            * extensions/shapelib/shptree.c: Modified version of shptree.c of
133            shapelib 1.2.9. The only real difference is the use of qsort
134            instead of a bubble sort implementation
135    
136            * Thuban/Model/layer.py (Layer.__init__): New instance variable
137            shapetree to hold the shapelib quadtree for the shapefile
138            (Layer.open_shapefile): Create the quad tree.
139            (Layer.ShapesInRegion): New method to return the ids of shapes in
140            a given region using the quad tree.
141    
142            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
143            comment
144            (draw_polygon_shape): Accept both arcs and polygons.
145            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
146            the api.
147    
148            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
149            return the shape ids to be rendered in a given layer.
150            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
151            ids. Use draw_polygon_shape to draw arc shapes as well.
152            (ScreenRenderer.RenderMap): New parameter for the rectangle that
153            has to be updated
154            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
155            calling it's ShapesInRegion method.
156    
157            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
158            update_region for the update region.
159            (MapCanvas.OnPaint): Maintain the update region
160            (MapCanvas.do_redraw): Pass the bounding box of the update_region
161            to the renderer when drawing the bitmap. Reset the update_region.
162    
163    2002-05-03  Bernhard Herzog  <[email protected]>
164    
165            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
166            MainWindow.OpenSession): Change the file extension of the session
167            files to .thuban
168    
169            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
170            Move the map channels to be forwarded by the session into the
171            class constant with forwarded_channels. Also add
172            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
173            forwarded_channels
174    
175            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
176            typo and some rewording).
177    
178  2002-05-02  Bernhard Herzog  <[email protected]>  2002-05-02  Bernhard Herzog  <[email protected]>
179    
180          * Thuban/UI/view.py: Keep the temporary bitmap used during drawing          * Thuban/UI/view.py: Keep the temporary bitmap used during drawing

Legend:
Removed from v.126  
changed lines
  Added in v.194

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26