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]> |
2002-07-17 Bernhard Herzog <[email protected]> |
65 |
|
|
66 |
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
* Thuban/UI/tree.py (color_string): Removed. No longer used. |