1 |
|
2002-07-18 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/context.py: New module with the context class |
4 |
|
|
5 |
|
* Thuban/UI/command.py (Command): Update doc string. |
6 |
|
|
7 |
|
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
8 |
|
MainWindow.update_command_ui): Pass an instance of the context |
9 |
|
class to the command's methods |
10 |
|
(check_current_tool, call_method): Handle the new context |
11 |
|
implementation |
12 |
|
|
13 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool, |
14 |
|
check_simple_tool): Handle the new context implementation |
15 |
|
|
16 |
|
* Examples/simple_extensions/simple_command.py (simple_command): |
17 |
|
Handle the new context implementation. Update the comments about |
18 |
|
the context. |
19 |
|
|
20 |
|
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
21 |
|
doc-string |
22 |
|
(ThubanApplication.Session): New method to return the session |
23 |
|
object |
24 |
|
|
25 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
26 |
|
interactor's selected_layer may not be a layer of the current |
27 |
|
session when the tree is updated while a new session is being set. |
28 |
|
|
29 |
|
2002-07-17 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
32 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
33 |
|
update_tree into update_tree and add_items. The tree now uses a |
34 |
|
more generic way to display the contents of the tree. |
35 |
|
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
36 |
|
|
37 |
|
* Thuban/Model/layer.py (Layer.TreeInfo), |
38 |
|
Thuban/Model/extension.py (Extension.TreeInfo), |
39 |
|
Thuban/Model/map.py (Map.TreeInfo), |
40 |
|
Thuban/Model/session.py (Session.TreeInfo): |
41 |
|
Add TreeInfo methods to implement the new tree view update scheme |
42 |
|
|
43 |
|
2002-07-16 Bernhard Herzog <[email protected]> |
44 |
|
|
45 |
|
* Thuban/UI/application.py: Don't use "import from" for the |
46 |
|
MainWindow. It can't always be resolved. |
47 |
|
(ThubanApplication.OnInit): change reference to MainWindow |
48 |
|
accordingly. |
49 |
|
|
50 |
|
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
51 |
|
completely |
52 |
|
|
53 |
|
2002-07-10 Bernhard Herzog <[email protected]> |
54 |
|
|
55 |
|
* setup.py (create_init_module): New configurable variable whose |
56 |
|
default depends on the platform we're running on. |
57 |
|
(ThubanInstall.initialize_options): Initialize |
58 |
|
self.create_init_module from the global create_init_module |
59 |
|
(ThubanInstall.user_options): indictate that the options |
60 |
|
create-init-module and init-module-dir have arguments. |
61 |
|
|
62 |
|
* setup.py: In the setup call change the version number to include |
63 |
|
cvs. |
64 |
|
|
65 |
|
* MANIFEST.in: Add the files in Examples |
66 |
|
|
67 |
|
2002-07-09 Bernhard Herzog <[email protected]> |
68 |
|
|
69 |
|
* setup.py: In the setup call, use the thuban homepage as the |
70 |
|
value of the url parameter. |
71 |
|
|
72 |
|
* Examples: New subdirectory for examples. |
73 |
|
|
74 |
|
* Examples/simple_extensions/simple_tool.xpm, |
75 |
|
Examples/simple_extensions/simple_tool.py, |
76 |
|
Examples/simple_extensions/simple_command.py, |
77 |
|
Examples/simple_extensions/README: Simple examples showing how to |
78 |
|
add new commands and tools. |
79 |
|
|
80 |
|
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
81 |
|
bdist_rpm that we also have an install script. |
82 |
|
(bdist_inno): Add 2002 to the copyright notice. |
83 |
|
|
84 |
|
* setup.py: Create a file in python's site-packages directory to |
85 |
|
make installation of Thuban as a library easier. |
86 |
|
(ThubanInstall.user_options): Add two new options, |
87 |
|
create-init-module and init-module-dir |
88 |
|
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
89 |
|
filenames for installation in the default directories. |
90 |
|
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
91 |
|
the inherited methods to capture some filenames before they're |
92 |
|
transformed too much by distutils. |
93 |
|
(ThubanInstall.run): Create the init module if requested. |
94 |
|
(ThubanInstall.thuban_init_filename): New method to return the |
95 |
|
full name of the init module. |
96 |
|
(ThubanInstall.get_outputs): Append the filename of the init |
97 |
|
module. |
98 |
|
|
99 |
|
2002-07-08 Bernhard Herzog <[email protected]> |
100 |
|
|
101 |
|
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
102 |
|
handle the prefix properly which means that the default for the |
103 |
|
installation prefix should be /usr for RPMs and /usr/local when |
104 |
|
doing a normal source install. |
105 |
|
(bdist_rpm_install_script): Script to override the default install |
106 |
|
commands in the specfile generated by the bdist_rpm command. |
107 |
|
(thuban_bdist_rpm.user_options): Add a prefix option |
108 |
|
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
109 |
|
Create the script files for the spec files as empty files here |
110 |
|
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
111 |
|
to fill the script files with content. |
112 |
|
|
113 |
|
* Thuban/Model/save.py (relative_filename): Wrapper around |
114 |
|
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
115 |
|
argument. save_session now automatically uses this version, |
116 |
|
solving a problem when saving to a relative filename. |
117 |
|
|
118 |
|
* setup.py: In the setup call, make sure that the library |
119 |
|
directories are under $prefix/lib not directly under $prefix. |
120 |
|
|
121 |
|
2002-06-20 Jan-Oliver Wagner <[email protected]> |
122 |
|
|
123 |
|
* Thuban/Model/extension.py: new module to handle extension objects. |
124 |
|
* Thuban/Model/messages.py: new messages for extensions. |
125 |
|
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
126 |
|
Session.AddExtension): new for handling extensions. |
127 |
|
Also some other minor changes to round up extension handling. |
128 |
|
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
129 |
|
of Extension titles and title and names of its objects. |
130 |
|
|
131 |
|
2002-05-29 Bernhard Herzog <[email protected]> |
132 |
|
|
133 |
|
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
134 |
|
the events for a command. |
135 |
|
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
136 |
|
Call bind_command_events to bind the events. add_toolbar_command |
137 |
|
can now bind events too so that it's possible to have commands |
138 |
|
that are only available through the toolbar. |
139 |
|
(MainWindow.init_ids): New instance variable events_bound to keep |
140 |
|
track of for which commands events have been bound. |
141 |
|
|
142 |
|
2002-05-28 Bernhard Herzog <[email protected]> |
143 |
|
|
144 |
|
* Thuban/UI/menu.py: New module to build and manage menus. |
145 |
|
|
146 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports. |
147 |
|
(MainWindow.__init__, main_menu): move the definition of the main |
148 |
|
menu from __init__ to the Menu instance main_menu. |
149 |
|
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
150 |
|
build the menu bar and sub-menus from a menu description. |
151 |
|
|
152 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
153 |
|
startup file |
154 |
|
(ThubanApplication.read_startup_files): New method to run |
155 |
|
~/.thuban/thubanstart.py |
156 |
|
|
157 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
158 |
|
Move the toolbar definition to the Menu instance main_toolbar. |
159 |
|
(MainWindow.build_toolbar): New method to build the toolbar |
160 |
|
similar to the build_menu methods |
161 |
|
|
162 |
|
2002-05-23 Bernhard Herzog <[email protected]> |
163 |
|
|
164 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
165 |
|
layer_outline_color. Fix it in the definition of the command too. |
166 |
|
|
167 |
|
* Thuban/UI/command.py (Command): Fix typo in doc string |
168 |
|
|
169 |
|
2002-05-22 Bernhard Herzog <[email protected]> |
170 |
|
|
171 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
172 |
|
in the docstring |
173 |
|
|
174 |
|
2002-05-15 Bernhard Herzog <[email protected]> |
175 |
|
|
176 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
177 |
|
when the shapefile is empty. |
178 |
|
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
179 |
|
now return None for empty shapefiles. Update doc-strings. |
180 |
|
|
181 |
|
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
182 |
|
the layer's bbox being None. |
183 |
|
|
184 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
185 |
|
layer's bbox being None. |
186 |
|
|
187 |
|
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
188 |
|
necessary. |
189 |
|
(MapCanvas.__init__): New instance variables, last_selected_layer |
190 |
|
and last_selected_shape to determine how the selection has |
191 |
|
changed. |
192 |
|
|
193 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
194 |
|
AutoSizeColumns because it will cause a traversal of the entire |
195 |
|
table which for large .dbf files will take a very long time. |
196 |
|
|
197 |
|
2002-05-14 Bernhard Herzog <[email protected]> |
198 |
|
|
199 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
200 |
|
maximum depth for the tree than shapelib does by default. |
201 |
|
|
202 |
|
2002-05-10 Bernhard Herzog <[email protected]> |
203 |
|
|
204 |
|
* setup.py (py_modules): The shptree modules doesn't have a |
205 |
|
wrapper, so don't include it in the py_modules |
206 |
|
|
207 |
|
2002-05-08 Bernhard Herzog <[email protected]> |
208 |
|
|
209 |
|
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
210 |
|
const void * as in the qsort prototype |
211 |
|
(SHPTreeFindLikelyShapes): Remove some unused variables. |
212 |
|
|
213 |
|
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
214 |
|
maintains to redraw the window during a drag. |
215 |
|
(MapCanvas.unprojected_rect_around_point): New method to determine |
216 |
|
a small region around a point for hit-testing. |
217 |
|
(MapCanvas.find_shape_at): Only test the shapes in a small region |
218 |
|
around the point. |
219 |
|
|
220 |
|
* setup.py: Increment the version to 0.1.2 |
221 |
|
|
222 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
223 |
|
debug print and set session to None after unsubscribing |
224 |
|
|
225 |
2002-05-07 Bernhard Herzog <[email protected]> |
2002-05-07 Bernhard Herzog <[email protected]> |
226 |
|
|
227 |
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |