1 |
|
2002-07-30 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/application.py (ThubanApplication.OnExit): Do some |
4 |
|
cleanup. |
5 |
|
(ThubanApplication.MainLoop): Extend to automatically call OnExit. |
6 |
|
|
7 |
|
* Thuban/Model/session.py (Session.Destroy): Don't bypass the |
8 |
|
direct base class' Destroy method. |
9 |
|
|
10 |
|
* Thuban/Model/map.py (Map.ClearLayers): New method to delete all |
11 |
|
layers. |
12 |
|
(Map.Destroy): Destroy the label_layer as well and call the |
13 |
|
inherited Desatroymethod first so that no more messages are |
14 |
|
issued. |
15 |
|
(Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED |
16 |
|
message if the stacking order actually has changed. Add |
17 |
|
doc-strings. |
18 |
|
(Map.BoundingBox): Correct the doc-string. |
19 |
|
(Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers) |
20 |
|
(Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings. |
21 |
|
|
22 |
|
* Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete |
23 |
|
all labels. |
24 |
|
|
25 |
|
2002-07-29 Bernhard Herzog <[email protected]> |
26 |
|
|
27 |
|
* Thuban/Model/map.py (Map.subscribe_layer_channels) |
28 |
|
(Map.unsubscribe_layer_channels): Put the code that (un)subscribes |
29 |
|
to a layer's channels into separate methods. |
30 |
|
(Map.RemoveLayer, Map.AddLayer): Call the new methods |
31 |
|
(Map.Destroy): Unsubscribe from a layer's channels before |
32 |
|
destroying it. |
33 |
|
|
34 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Change the |
35 |
|
selected_layer parameter to searched_layer which is the layer to |
36 |
|
search in. |
37 |
|
(MapCanvas.SelectShapeAt): New parameter layer to restrict the |
38 |
|
search to that layer. Return the selected layer and shape. |
39 |
|
|
40 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Fix a |
41 |
|
typo |
42 |
|
|
43 |
|
2002-07-24 Bernhard Herzog <[email protected]> |
44 |
|
|
45 |
|
* Thuban/UI/application.py (ThubanApplication.create_session): |
46 |
|
Extend the doc string. |
47 |
|
(ThubanApplication.subscribe_session) |
48 |
|
(ThubanApplication.unsubscribe_session): New methods to |
49 |
|
subscribe/unsubscribe to/from session channels. |
50 |
|
(ThubanApplication.SetSession): Call the new methods here. |
51 |
|
(ThubanApplication.maps_changed, ThubanApplication.set_map): |
52 |
|
Renamed set_map to maps_changed. Its now a subscriber for |
53 |
|
MAPS_CHANGED. |
54 |
|
|
55 |
|
* Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct |
56 |
|
x-coordinate in case of simple clicks |
57 |
|
|
58 |
|
* Thuban/Model/base.py (Modifiable.changed): Apply the args tuple, |
59 |
|
don't pass it as a parameter |
60 |
|
|
61 |
|
* Thuban/Model/session.py (Session.RemoveMap): New |
62 |
|
|
63 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial |
64 |
|
window size into a parameter. |
65 |
|
|
66 |
|
2002-07-23 Bernhard Herzog <[email protected]> |
67 |
|
|
68 |
|
* Thuban/UI/menu.py (Menu.item_index): Also search for menus not |
69 |
|
just commands. |
70 |
|
|
71 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Change the |
72 |
|
parameter list a bit to allow setting the window title and the |
73 |
|
initial message in the status bar. Update the callers. |
74 |
|
|
75 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
76 |
|
(ThubanApplication.CreateMainWindow): Put the mainwindow |
77 |
|
instantiation into a separate method so that it can be overridden |
78 |
|
by a subclass. |
79 |
|
|
80 |
|
2002-07-19 Bernhard Herzog <[email protected]> |
81 |
|
|
82 |
|
* Thuban/Model/session.py: Issue a CHANGED message every time |
83 |
|
another changed message is issued to make it easier to get |
84 |
|
notified of changes. |
85 |
|
(Session): Update the doc string |
86 |
|
(Session.forward): Issue changed-events as CHANGED as well. |
87 |
|
(Session.changed): Overwrite the inherited version to issue |
88 |
|
CHANGED events as well. |
89 |
|
|
90 |
|
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
91 |
|
CHANGED channel to be informed of changes. |
92 |
|
(SessionTreeCtrl.session_channels): Not needed any longer. |
93 |
|
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
94 |
|
Only have to (un)subscribe CHANGED |
95 |
|
|
96 |
|
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
97 |
|
|
98 |
|
* Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around |
99 |
|
for the wxPython locale bug to __init__.py so that it's |
100 |
|
automatically executed by anybody using UI code from Thuban. |
101 |
|
|
102 |
|
2002-07-18 Bernhard Herzog <[email protected]> |
103 |
|
|
104 |
|
* Thuban/UI/main.py (main): app no longer needs to be global |
105 |
|
|
106 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add application |
107 |
|
as parameter and store it in an instance variable |
108 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui) |
109 |
|
(MainWindow.save_modified_session, MainWindow.NewSession) |
110 |
|
(MainWindow.OpenSession, MainWindow.SaveSession) |
111 |
|
(MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's |
112 |
|
application object. |
113 |
|
|
114 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate |
115 |
|
the main window with self. |
116 |
|
|
117 |
|
* Thuban/UI/context.py: New module with the context class |
118 |
|
|
119 |
|
* Thuban/UI/command.py (Command): Update doc string. |
120 |
|
|
121 |
|
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
122 |
|
MainWindow.update_command_ui): Pass an instance of the context |
123 |
|
class to the command's methods |
124 |
|
(check_current_tool, call_method): Handle the new context |
125 |
|
implementation |
126 |
|
|
127 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool, |
128 |
|
check_simple_tool): Handle the new context implementation |
129 |
|
|
130 |
|
* Examples/simple_extensions/simple_command.py (simple_command): |
131 |
|
Handle the new context implementation. Update the comments about |
132 |
|
the context. |
133 |
|
|
134 |
|
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
135 |
|
doc-string |
136 |
|
(ThubanApplication.Session): New method to return the session |
137 |
|
object |
138 |
|
|
139 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
140 |
|
interactor's selected_layer may not be a layer of the current |
141 |
|
session when the tree is updated while a new session is being set. |
142 |
|
|
143 |
|
2002-07-17 Bernhard Herzog <[email protected]> |
144 |
|
|
145 |
|
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
146 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
147 |
|
update_tree into update_tree and add_items. The tree now uses a |
148 |
|
more generic way to display the contents of the tree. |
149 |
|
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
150 |
|
|
151 |
|
* Thuban/Model/layer.py (Layer.TreeInfo), |
152 |
|
Thuban/Model/extension.py (Extension.TreeInfo), |
153 |
|
Thuban/Model/map.py (Map.TreeInfo), |
154 |
|
Thuban/Model/session.py (Session.TreeInfo): |
155 |
|
Add TreeInfo methods to implement the new tree view update scheme |
156 |
|
|
157 |
|
2002-07-16 Bernhard Herzog <[email protected]> |
158 |
|
|
159 |
|
* Thuban/UI/application.py: Don't use "import from" for the |
160 |
|
MainWindow. It can't always be resolved. |
161 |
|
(ThubanApplication.OnInit): change reference to MainWindow |
162 |
|
accordingly. |
163 |
|
|
164 |
|
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
165 |
|
completely |
166 |
|
|
167 |
|
2002-07-10 Bernhard Herzog <[email protected]> |
168 |
|
|
169 |
|
* setup.py (create_init_module): New configurable variable whose |
170 |
|
default depends on the platform we're running on. |
171 |
|
(ThubanInstall.initialize_options): Initialize |
172 |
|
self.create_init_module from the global create_init_module |
173 |
|
(ThubanInstall.user_options): indictate that the options |
174 |
|
create-init-module and init-module-dir have arguments. |
175 |
|
|
176 |
|
* setup.py: In the setup call change the version number to include |
177 |
|
cvs. |
178 |
|
|
179 |
|
* MANIFEST.in: Add the files in Examples |
180 |
|
|
181 |
|
2002-07-09 Bernhard Herzog <[email protected]> |
182 |
|
|
183 |
|
* setup.py: In the setup call, use the thuban homepage as the |
184 |
|
value of the url parameter. |
185 |
|
|
186 |
|
* Examples: New subdirectory for examples. |
187 |
|
|
188 |
|
* Examples/simple_extensions/simple_tool.xpm, |
189 |
|
Examples/simple_extensions/simple_tool.py, |
190 |
|
Examples/simple_extensions/simple_command.py, |
191 |
|
Examples/simple_extensions/README: Simple examples showing how to |
192 |
|
add new commands and tools. |
193 |
|
|
194 |
|
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
195 |
|
bdist_rpm that we also have an install script. |
196 |
|
(bdist_inno): Add 2002 to the copyright notice. |
197 |
|
|
198 |
|
* setup.py: Create a file in python's site-packages directory to |
199 |
|
make installation of Thuban as a library easier. |
200 |
|
(ThubanInstall.user_options): Add two new options, |
201 |
|
create-init-module and init-module-dir |
202 |
|
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
203 |
|
filenames for installation in the default directories. |
204 |
|
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
205 |
|
the inherited methods to capture some filenames before they're |
206 |
|
transformed too much by distutils. |
207 |
|
(ThubanInstall.run): Create the init module if requested. |
208 |
|
(ThubanInstall.thuban_init_filename): New method to return the |
209 |
|
full name of the init module. |
210 |
|
(ThubanInstall.get_outputs): Append the filename of the init |
211 |
|
module. |
212 |
|
|
213 |
2002-07-08 Bernhard Herzog <[email protected]> |
2002-07-08 Bernhard Herzog <[email protected]> |
214 |
|
|
215 |
|
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
216 |
|
handle the prefix properly which means that the default for the |
217 |
|
installation prefix should be /usr for RPMs and /usr/local when |
218 |
|
doing a normal source install. |
219 |
|
(bdist_rpm_install_script): Script to override the default install |
220 |
|
commands in the specfile generated by the bdist_rpm command. |
221 |
|
(thuban_bdist_rpm.user_options): Add a prefix option |
222 |
|
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
223 |
|
Create the script files for the spec files as empty files here |
224 |
|
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
225 |
|
to fill the script files with content. |
226 |
|
|
227 |
* Thuban/Model/save.py (relative_filename): Wrapper around |
* Thuban/Model/save.py (relative_filename): Wrapper around |
228 |
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
229 |
argument. save_session now automatically uses this version, |
argument. save_session now automatically uses this version, |