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]> |
73 |
|
|
74 |
|
* setup.py (create_init_module): New configurable variable whose |
75 |
|
default depends on the platform we're running on. |
76 |
|
(ThubanInstall.initialize_options): Initialize |
77 |
|
self.create_init_module from the global create_init_module |
78 |
|
(ThubanInstall.user_options): indictate that the options |
79 |
|
create-init-module and init-module-dir have arguments. |
80 |
|
|
81 |
|
* setup.py: In the setup call change the version number to include |
82 |
|
cvs. |
83 |
|
|
84 |
|
* MANIFEST.in: Add the files in Examples |
85 |
|
|
86 |
|
2002-07-09 Bernhard Herzog <[email protected]> |
87 |
|
|
88 |
|
* setup.py: In the setup call, use the thuban homepage as the |
89 |
|
value of the url parameter. |
90 |
|
|
91 |
|
* Examples: New subdirectory for examples. |
92 |
|
|
93 |
|
* Examples/simple_extensions/simple_tool.xpm, |
94 |
|
Examples/simple_extensions/simple_tool.py, |
95 |
|
Examples/simple_extensions/simple_command.py, |
96 |
|
Examples/simple_extensions/README: Simple examples showing how to |
97 |
|
add new commands and tools. |
98 |
|
|
99 |
|
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
100 |
|
bdist_rpm that we also have an install script. |
101 |
|
(bdist_inno): Add 2002 to the copyright notice. |
102 |
|
|
103 |
|
* setup.py: Create a file in python's site-packages directory to |
104 |
|
make installation of Thuban as a library easier. |
105 |
|
(ThubanInstall.user_options): Add two new options, |
106 |
|
create-init-module and init-module-dir |
107 |
|
(ThubanInstall.expand_with_pure_python_dirs): New method to expand |
108 |
|
filenames for installation in the default directories. |
109 |
|
(ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend |
110 |
|
the inherited methods to capture some filenames before they're |
111 |
|
transformed too much by distutils. |
112 |
|
(ThubanInstall.run): Create the init module if requested. |
113 |
|
(ThubanInstall.thuban_init_filename): New method to return the |
114 |
|
full name of the init module. |
115 |
|
(ThubanInstall.get_outputs): Append the filename of the init |
116 |
|
module. |
117 |
|
|
118 |
|
2002-07-08 Bernhard Herzog <[email protected]> |
119 |
|
|
120 |
|
* setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to |
121 |
|
handle the prefix properly which means that the default for the |
122 |
|
installation prefix should be /usr for RPMs and /usr/local when |
123 |
|
doing a normal source install. |
124 |
|
(bdist_rpm_install_script): Script to override the default install |
125 |
|
commands in the specfile generated by the bdist_rpm command. |
126 |
|
(thuban_bdist_rpm.user_options): Add a prefix option |
127 |
|
(thuban_bdist_rpm.initialize_options): Init the prefix option. |
128 |
|
Create the script files for the spec files as empty files here |
129 |
|
(thuban_bdist_rpm._make_spec_file): Override the inherited method |
130 |
|
to fill the script files with content. |
131 |
|
|
132 |
|
* Thuban/Model/save.py (relative_filename): Wrapper around |
133 |
|
Thuban.Lib.fileutil.relative_filename that accepts an empty dir |
134 |
|
argument. save_session now automatically uses this version, |
135 |
|
solving a problem when saving to a relative filename. |
136 |
|
|
137 |
|
* setup.py: In the setup call, make sure that the library |
138 |
|
directories are under $prefix/lib not directly under $prefix. |
139 |
|
|
140 |
|
2002-06-20 Jan-Oliver Wagner <[email protected]> |
141 |
|
|
142 |
|
* Thuban/Model/extension.py: new module to handle extension objects. |
143 |
|
* Thuban/Model/messages.py: new messages for extensions. |
144 |
|
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
145 |
|
Session.AddExtension): new for handling extensions. |
146 |
|
Also some other minor changes to round up extension handling. |
147 |
|
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
148 |
|
of Extension titles and title and names of its objects. |
149 |
|
|
150 |
|
2002-05-29 Bernhard Herzog <[email protected]> |
151 |
|
|
152 |
|
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
153 |
|
the events for a command. |
154 |
|
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
155 |
|
Call bind_command_events to bind the events. add_toolbar_command |
156 |
|
can now bind events too so that it's possible to have commands |
157 |
|
that are only available through the toolbar. |
158 |
|
(MainWindow.init_ids): New instance variable events_bound to keep |
159 |
|
track of for which commands events have been bound. |
160 |
|
|
161 |
|
2002-05-28 Bernhard Herzog <[email protected]> |
162 |
|
|
163 |
|
* Thuban/UI/menu.py: New module to build and manage menus. |
164 |
|
|
165 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports. |
166 |
|
(MainWindow.__init__, main_menu): move the definition of the main |
167 |
|
menu from __init__ to the Menu instance main_menu. |
168 |
|
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
169 |
|
build the menu bar and sub-menus from a menu description. |
170 |
|
|
171 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
172 |
|
startup file |
173 |
|
(ThubanApplication.read_startup_files): New method to run |
174 |
|
~/.thuban/thubanstart.py |
175 |
|
|
176 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
177 |
|
Move the toolbar definition to the Menu instance main_toolbar. |
178 |
|
(MainWindow.build_toolbar): New method to build the toolbar |
179 |
|
similar to the build_menu methods |
180 |
|
|
181 |
|
2002-05-23 Bernhard Herzog <[email protected]> |
182 |
|
|
183 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
184 |
|
layer_outline_color. Fix it in the definition of the command too. |
185 |
|
|
186 |
|
* Thuban/UI/command.py (Command): Fix typo in doc string |
187 |
|
|
188 |
|
2002-05-22 Bernhard Herzog <[email protected]> |
189 |
|
|
190 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
191 |
|
in the docstring |
192 |
|
|
193 |
2002-05-15 Bernhard Herzog <[email protected]> |
2002-05-15 Bernhard Herzog <[email protected]> |
194 |
|
|
195 |
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |