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