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