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