1 |
|
2002-08-14 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* setup.py (InstallLocal.initialize_options) |
4 |
|
(InstallLocal.finalize_options, InstallLocal.user_options): New |
5 |
|
option create-init-file to build a thubaninit.py when running |
6 |
|
install_local |
7 |
|
(InstallLocal.run): Create the thubaninit.py module when requested |
8 |
|
(thubaninit_contents): Split the template into several parts and |
9 |
|
create a new function thubaninit_contents that creates the |
10 |
|
contents of a thubaninit module. |
11 |
|
(ThubanInstall.run): Use the new function to create the thubaninit |
12 |
|
module. |
13 |
|
|
14 |
|
2002-07-30 Bernhard Herzog <[email protected]> |
15 |
|
|
16 |
|
* Thuban/UI/application.py (ThubanApplication.OnExit): Do some |
17 |
|
cleanup. |
18 |
|
(ThubanApplication.MainLoop): Extend to automatically call OnExit. |
19 |
|
|
20 |
|
* Thuban/Model/session.py (Session.Destroy): Don't bypass the |
21 |
|
direct base class' Destroy method. |
22 |
|
|
23 |
|
* Thuban/Model/map.py (Map.ClearLayers): New method to delete all |
24 |
|
layers. |
25 |
|
(Map.Destroy): Destroy the label_layer as well and call the |
26 |
|
inherited Desatroymethod first so that no more messages are |
27 |
|
issued. |
28 |
|
(Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED |
29 |
|
message if the stacking order actually has changed. Add |
30 |
|
doc-strings. |
31 |
|
(Map.BoundingBox): Correct the doc-string. |
32 |
|
(Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers) |
33 |
|
(Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings. |
34 |
|
|
35 |
|
* Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete |
36 |
|
all labels. |
37 |
|
|
38 |
|
2002-07-29 Bernhard Herzog <[email protected]> |
39 |
|
|
40 |
|
* Thuban/Model/map.py (Map.subscribe_layer_channels) |
41 |
|
(Map.unsubscribe_layer_channels): Put the code that (un)subscribes |
42 |
|
to a layer's channels into separate methods. |
43 |
|
(Map.RemoveLayer, Map.AddLayer): Call the new methods |
44 |
|
(Map.Destroy): Unsubscribe from a layer's channels before |
45 |
|
destroying it. |
46 |
|
|
47 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Change the |
48 |
|
selected_layer parameter to searched_layer which is the layer to |
49 |
|
search in. |
50 |
|
(MapCanvas.SelectShapeAt): New parameter layer to restrict the |
51 |
|
search to that layer. Return the selected layer and shape. |
52 |
|
|
53 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Fix a |
54 |
|
typo |
55 |
|
|
56 |
|
2002-07-24 Bernhard Herzog <[email protected]> |
57 |
|
|
58 |
|
* Thuban/UI/application.py (ThubanApplication.create_session): |
59 |
|
Extend the doc string. |
60 |
|
(ThubanApplication.subscribe_session) |
61 |
|
(ThubanApplication.unsubscribe_session): New methods to |
62 |
|
subscribe/unsubscribe to/from session channels. |
63 |
|
(ThubanApplication.SetSession): Call the new methods here. |
64 |
|
(ThubanApplication.maps_changed, ThubanApplication.set_map): |
65 |
|
Renamed set_map to maps_changed. Its now a subscriber for |
66 |
|
MAPS_CHANGED. |
67 |
|
|
68 |
|
* Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct |
69 |
|
x-coordinate in case of simple clicks |
70 |
|
|
71 |
|
* Thuban/Model/base.py (Modifiable.changed): Apply the args tuple, |
72 |
|
don't pass it as a parameter |
73 |
|
|
74 |
|
* Thuban/Model/session.py (Session.RemoveMap): New |
75 |
|
|
76 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial |
77 |
|
window size into a parameter. |
78 |
|
|
79 |
|
2002-07-23 Bernhard Herzog <[email protected]> |
80 |
|
|
81 |
|
* Thuban/UI/menu.py (Menu.item_index): Also search for menus not |
82 |
|
just commands. |
83 |
|
|
84 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Change the |
85 |
|
parameter list a bit to allow setting the window title and the |
86 |
|
initial message in the status bar. Update the callers. |
87 |
|
|
88 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
89 |
|
(ThubanApplication.CreateMainWindow): Put the mainwindow |
90 |
|
instantiation into a separate method so that it can be overridden |
91 |
|
by a subclass. |
92 |
|
|
93 |
|
2002-07-19 Bernhard Herzog <[email protected]> |
94 |
|
|
95 |
|
* Thuban/Model/session.py: Issue a CHANGED message every time |
96 |
|
another changed message is issued to make it easier to get |
97 |
|
notified of changes. |
98 |
|
(Session): Update the doc string |
99 |
|
(Session.forward): Issue changed-events as CHANGED as well. |
100 |
|
(Session.changed): Overwrite the inherited version to issue |
101 |
|
CHANGED events as well. |
102 |
|
|
103 |
|
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
104 |
|
CHANGED channel to be informed of changes. |
105 |
|
(SessionTreeCtrl.session_channels): Not needed any longer. |
106 |
|
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
107 |
|
Only have to (un)subscribe CHANGED |
108 |
|
|
109 |
|
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
110 |
|
|
111 |
|
* Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around |
112 |
|
for the wxPython locale bug to __init__.py so that it's |
113 |
|
automatically executed by anybody using UI code from Thuban. |
114 |
|
|
115 |
|
2002-07-18 Bernhard Herzog <[email protected]> |
116 |
|
|
117 |
|
* Thuban/UI/main.py (main): app no longer needs to be global |
118 |
|
|
119 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add application |
120 |
|
as parameter and store it in an instance variable |
121 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui) |
122 |
|
(MainWindow.save_modified_session, MainWindow.NewSession) |
123 |
|
(MainWindow.OpenSession, MainWindow.SaveSession) |
124 |
|
(MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's |
125 |
|
application object. |
126 |
|
|
127 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate |
128 |
|
the main window with self. |
129 |
|
|
130 |
|
* Thuban/UI/context.py: New module with the context class |
131 |
|
|
132 |
|
* Thuban/UI/command.py (Command): Update doc string. |
133 |
|
|
134 |
|
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
135 |
|
MainWindow.update_command_ui): Pass an instance of the context |
136 |
|
class to the command's methods |
137 |
|
(check_current_tool, call_method): Handle the new context |
138 |
|
implementation |
139 |
|
|
140 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool, |
141 |
|
check_simple_tool): Handle the new context implementation |
142 |
|
|
143 |
|
* Examples/simple_extensions/simple_command.py (simple_command): |
144 |
|
Handle the new context implementation. Update the comments about |
145 |
|
the context. |
146 |
|
|
147 |
|
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
148 |
|
doc-string |
149 |
|
(ThubanApplication.Session): New method to return the session |
150 |
|
object |
151 |
|
|
152 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
153 |
|
interactor's selected_layer may not be a layer of the current |
154 |
|
session when the tree is updated while a new session is being set. |
155 |
|
|
156 |
2002-07-17 Bernhard Herzog <[email protected]> |
2002-07-17 Bernhard Herzog <[email protected]> |
157 |
|
|
158 |
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
* Thuban/UI/tree.py (color_string): Removed. No longer used. |