1 |
|
2002-07-19 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around |
4 |
|
for the wxPython locale bug to __init__.py so that it's |
5 |
|
automatically executed by anybody using UI code from Thuban. |
6 |
|
|
7 |
|
2002-07-18 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* Thuban/UI/main.py (main): app no longer needs to be global |
10 |
|
|
11 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add application |
12 |
|
as parameter and store it in an instance variable |
13 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui) |
14 |
|
(MainWindow.save_modified_session, MainWindow.NewSession) |
15 |
|
(MainWindow.OpenSession, MainWindow.SaveSession) |
16 |
|
(MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's |
17 |
|
application object. |
18 |
|
|
19 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate |
20 |
|
the main window with self. |
21 |
|
|
22 |
|
* Thuban/UI/context.py: New module with the context class |
23 |
|
|
24 |
|
* Thuban/UI/command.py (Command): Update doc string. |
25 |
|
|
26 |
|
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
27 |
|
MainWindow.update_command_ui): Pass an instance of the context |
28 |
|
class to the command's methods |
29 |
|
(check_current_tool, call_method): Handle the new context |
30 |
|
implementation |
31 |
|
|
32 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool, |
33 |
|
check_simple_tool): Handle the new context implementation |
34 |
|
|
35 |
|
* Examples/simple_extensions/simple_command.py (simple_command): |
36 |
|
Handle the new context implementation. Update the comments about |
37 |
|
the context. |
38 |
|
|
39 |
|
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
40 |
|
doc-string |
41 |
|
(ThubanApplication.Session): New method to return the session |
42 |
|
object |
43 |
|
|
44 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
45 |
|
interactor's selected_layer may not be a layer of the current |
46 |
|
session when the tree is updated while a new session is being set. |
47 |
|
|
48 |
|
2002-07-17 Bernhard Herzog <[email protected]> |
49 |
|
|
50 |
|
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
51 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
52 |
|
update_tree into update_tree and add_items. The tree now uses a |
53 |
|
more generic way to display the contents of the tree. |
54 |
|
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
55 |
|
|
56 |
|
* Thuban/Model/layer.py (Layer.TreeInfo), |
57 |
|
Thuban/Model/extension.py (Extension.TreeInfo), |
58 |
|
Thuban/Model/map.py (Map.TreeInfo), |
59 |
|
Thuban/Model/session.py (Session.TreeInfo): |
60 |
|
Add TreeInfo methods to implement the new tree view update scheme |
61 |
|
|
62 |
|
2002-07-16 Bernhard Herzog <[email protected]> |
63 |
|
|
64 |
|
* Thuban/UI/application.py: Don't use "import from" for the |
65 |
|
MainWindow. It can't always be resolved. |
66 |
|
(ThubanApplication.OnInit): change reference to MainWindow |
67 |
|
accordingly. |
68 |
|
|
69 |
|
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
70 |
|
completely |
71 |
|
|
72 |
2002-07-10 Bernhard Herzog <[email protected]> |
2002-07-10 Bernhard Herzog <[email protected]> |
73 |
|
|
74 |
* setup.py (create_init_module): New configurable variable whose |
* setup.py (create_init_module): New configurable variable whose |