1 |
|
2002-07-23 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/menu.py (Menu.item_index): Also search for menus not |
4 |
|
just commands. |
5 |
|
|
6 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Change the |
7 |
|
parameter list a bit to allow setting the window title and the |
8 |
|
initial message in the status bar. Update the callers. |
9 |
|
|
10 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
11 |
|
(ThubanApplication.CreateMainWindow): Put the mainwindow |
12 |
|
instantiation into a separate method so that it can be overridden |
13 |
|
by a subclass. |
14 |
|
|
15 |
|
2002-07-19 Bernhard Herzog <[email protected]> |
16 |
|
|
17 |
|
* Thuban/Model/session.py: Issue a CHANGED message every time |
18 |
|
another changed message is issued to make it easier to get |
19 |
|
notified of changes. |
20 |
|
(Session): Update the doc string |
21 |
|
(Session.forward): Issue changed-events as CHANGED as well. |
22 |
|
(Session.changed): Overwrite the inherited version to issue |
23 |
|
CHANGED events as well. |
24 |
|
|
25 |
|
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
26 |
|
CHANGED channel to be informed of changes. |
27 |
|
(SessionTreeCtrl.session_channels): Not needed any longer. |
28 |
|
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
29 |
|
Only have to (un)subscribe CHANGED |
30 |
|
|
31 |
|
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
32 |
|
|
33 |
|
* Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around |
34 |
|
for the wxPython locale bug to __init__.py so that it's |
35 |
|
automatically executed by anybody using UI code from Thuban. |
36 |
|
|
37 |
|
2002-07-18 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* Thuban/UI/main.py (main): app no longer needs to be global |
40 |
|
|
41 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add application |
42 |
|
as parameter and store it in an instance variable |
43 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui) |
44 |
|
(MainWindow.save_modified_session, MainWindow.NewSession) |
45 |
|
(MainWindow.OpenSession, MainWindow.SaveSession) |
46 |
|
(MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's |
47 |
|
application object. |
48 |
|
|
49 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate |
50 |
|
the main window with self. |
51 |
|
|
52 |
|
* Thuban/UI/context.py: New module with the context class |
53 |
|
|
54 |
|
* Thuban/UI/command.py (Command): Update doc string. |
55 |
|
|
56 |
|
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
57 |
|
MainWindow.update_command_ui): Pass an instance of the context |
58 |
|
class to the command's methods |
59 |
|
(check_current_tool, call_method): Handle the new context |
60 |
|
implementation |
61 |
|
|
62 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool, |
63 |
|
check_simple_tool): Handle the new context implementation |
64 |
|
|
65 |
|
* Examples/simple_extensions/simple_command.py (simple_command): |
66 |
|
Handle the new context implementation. Update the comments about |
67 |
|
the context. |
68 |
|
|
69 |
|
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
70 |
|
doc-string |
71 |
|
(ThubanApplication.Session): New method to return the session |
72 |
|
object |
73 |
|
|
74 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
75 |
|
interactor's selected_layer may not be a layer of the current |
76 |
|
session when the tree is updated while a new session is being set. |
77 |
|
|
78 |
|
2002-07-17 Bernhard Herzog <[email protected]> |
79 |
|
|
80 |
|
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
81 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
82 |
|
update_tree into update_tree and add_items. The tree now uses a |
83 |
|
more generic way to display the contents of the tree. |
84 |
|
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
85 |
|
|
86 |
|
* Thuban/Model/layer.py (Layer.TreeInfo), |
87 |
|
Thuban/Model/extension.py (Extension.TreeInfo), |
88 |
|
Thuban/Model/map.py (Map.TreeInfo), |
89 |
|
Thuban/Model/session.py (Session.TreeInfo): |
90 |
|
Add TreeInfo methods to implement the new tree view update scheme |
91 |
|
|
92 |
|
2002-07-16 Bernhard Herzog <[email protected]> |
93 |
|
|
94 |
|
* Thuban/UI/application.py: Don't use "import from" for the |
95 |
|
MainWindow. It can't always be resolved. |
96 |
|
(ThubanApplication.OnInit): change reference to MainWindow |
97 |
|
accordingly. |
98 |
|
|
99 |
|
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
100 |
|
completely |
101 |
|
|
102 |
|
2002-07-10 Bernhard Herzog <[email protected]> |
103 |
|
|
104 |
|
* setup.py (create_init_module): New configurable variable whose |
105 |
|
default depends on the platform we're running on. |
106 |
|
(ThubanInstall.initialize_options): Initialize |
107 |
|
self.create_init_module from the global create_init_module |
108 |
|
(ThubanInstall.user_options): indictate that the options |
109 |
|
create-init-module and init-module-dir have arguments. |
110 |
|
|
111 |
|
* setup.py: In the setup call change the version number to include |
112 |
|
cvs. |
113 |
|
|
114 |
|
* MANIFEST.in: Add the files in Examples |
115 |
|
|
116 |
2002-07-09 Bernhard Herzog <[email protected]> |
2002-07-09 Bernhard Herzog <[email protected]> |
117 |
|
|
118 |
|
* setup.py: In the setup call, use the thuban homepage as the |
119 |
|
value of the url parameter. |
120 |
|
|
121 |
* Examples: New subdirectory for examples. |
* Examples: New subdirectory for examples. |
122 |
|
|
123 |
* Examples/simple_extensions/simple_tool.xpm, |
* Examples/simple_extensions/simple_tool.xpm, |