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