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