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