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]> |
2002-05-07 Bernhard Herzog <[email protected]> |
123 |
|
|
124 |
* setup.py: Add the shptree extension module. See |
* setup.py: Add the shptree extension module. See |