1 |
2001-09-07 Bernhard Herzog <[email protected]> |
2 |
|
3 |
* Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter |
4 |
that can limit the search to the currently selected layer. |
5 |
(MapCanvas.SelectShapeAt): Make sure that the currently selected |
6 |
layer stays selected even when no shape is found |
7 |
(MapCanvas.FitRectToWindow): If the rect has zero with or zero |
8 |
height do nothing (avoids zero division errors) |
9 |
|
10 |
2001-09-06 Bernhard Herzog <[email protected]> |
11 |
|
12 |
* Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__): |
13 |
Correct the spelling of SessionTreeCtrl. dabbrev is too damn |
14 |
convenient :-) |
15 |
(SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce |
16 |
a new instvar layer_to_item to map layers to tree items |
17 |
(SessionTreeCtrl.layer_selected): Select the appropriate tree item |
18 |
to match the current selection in the interactor |
19 |
|
20 |
* Thuban/UI/interactor.py (Interactor.SelectedLayer): |
21 |
(Interactor.HasSelectedLayer): New methods to query the current |
22 |
selection |
23 |
|
24 |
* Thuban/UI/mainwindow.py (MainWindow.current_layer): |
25 |
(MainWindow.has_selected_layer): Simply call the appropriate |
26 |
interactor method |
27 |
|
28 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): |
29 |
(MainWindow.LayerShowTable): |
30 |
(MainWindow.identify_view_on_demand): Store the interactor in an |
31 |
instvar and use that reference instead of going through main.app |
32 |
|
33 |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
34 |
* Thuban/UI/application.py (ThubanApplication.OnInit): |
35 |
* Thuban/UI/main.py (main): Create the session tree view in main |
36 |
with the new mainwindow method ShowSessionTree and not directly |
37 |
the application's OnInit method |
38 |
|
39 |
* Thuban/UI/tree.py (myTreeCtrlPanel): |
40 |
(SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a |
41 |
TreeCtrl isntead of a panel. This affects most method since we now |
42 |
refer to self instead of self.tree |
43 |
(SessionTreeView): New class implementing a non-modal dialog |
44 |
showing the session tree. |
45 |
|
46 |
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the |
47 |
layer to the tableview dialog. |
48 |
|
49 |
* Thuban/UI/tableview.py: Add some doc-strings |
50 |
(TableGrid): |
51 |
(TableGrid.OnRangeSelect): |
52 |
(TableGrid.OnSelectCell): |
53 |
(TableFrame.__init__): |
54 |
(TableFrame.row_selected): |
55 |
Selecting rows in the grid view now updates the selected shapes |
56 |
through the TableFrame. To achieve this we derive TableGrid from |
57 |
Publisher and introduce the message type ROW_SELECTED which the |
58 |
TableFrame subscribes to and which is issued by OnRangeSelect and |
59 |
OnSelectCell |
60 |
|
61 |
(DataTable.SelectRow): Removed because it's no longer needed in |
62 |
the row/shape selection scheme |
63 |
|
64 |
* Thuban/UI/dialogs.py: New file implementing common classes for |
65 |
dialogs |
66 |
|
67 |
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
68 |
the SELECTED_SHAPE message anymore. This is now handled by the |
69 |
parent. |
70 |
(TableGrid.select_shape): Only update the selection if the shape |
71 |
is not None. |
72 |
(TableFrame): Inherit from the new NonModalDialog class. |
73 |
(TableFrame.__init__, TableFrame.select_shape): Handle the |
74 |
SELECT_SHAPE message. |
75 |
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
76 |
SELECT_SHAPE |
77 |
|
78 |
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
79 |
(MainWindow.add_dialog): |
80 |
(MainWindow.dialog_open): |
81 |
(MainWindow.remove_dialog): |
82 |
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
83 |
of opened non-modal dialogs. |
84 |
|
85 |
(MainWindow.__init__): Initialize the new non-modal dictionary |
86 |
management code |
87 |
(MainWindow.LayerShowTable): maintain separate dialogs for each |
88 |
table using the non-modal dialog management code to only open a |
89 |
view once for each table. |
90 |
|
91 |
(MainWindow.IdentifyTool): |
92 |
(MainWindow.__init__): |
93 |
(MainWindow.identify_view_on_demand): Don't open the identify view |
94 |
in IdentifyTool anymore. This will be done automatically by the |
95 |
new method identify_view_on_demand which handles the |
96 |
SELECTED_SHAPE message so that the identify view will be opened on |
97 |
demand |
98 |
|
99 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
100 |
the interactor argument. The SELECTED_SHAPE message is now handled |
101 |
by the parent. |
102 |
(IdentifyView.__init__): Add the interactor argument so that we |
103 |
can handle the SELECTED_SHAPE message here |
104 |
(IdentifyView.selected_shape): New method to handle the |
105 |
SELECTED_SHAPE messages |
106 |
|
107 |
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
108 |
NonModalDialog class |
109 |
(IdentifyView.OnClose): Extend the inherited version to |
110 |
unsubscribe SELECT_SHAPE |
111 |
|
112 |
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
113 |
|
114 |
2001-09-05 Bernhard Herzog <[email protected]> |
115 |
|
116 |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
117 |
|
118 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
119 |
interactor to pass through to the MapCanvas |
120 |
|
121 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
122 |
argument to the MainWindow constructor to get rid of the ugly hack |
123 |
that made main.app available early just so that the mapcanvas |
124 |
could access the interactor object. |
125 |
|
126 |
2001-09-04 Bernhard Herzog <[email protected]> |
127 |
|
128 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
129 |
that runs a modal message box |
130 |
(MainWindow.OnClose): Use the new method |
131 |
(MainWindow.RemoveLayer): Just do nothing in case no layer is |
132 |
selected. The command should be grayed out anyway, so there's no |
133 |
need to pop up a message box. |
134 |
(MainWindow.AddLayer): Pop up a message box with an error message |
135 |
if the shape file can't be opened |
136 |
|
137 |
* Thuban/Model/layer.py (Layer.__init__): Open the shapefile |
138 |
immediately. This will cause an exception in case the file can't |
139 |
be opened and we can display an appropriate message. |
140 |
|
141 |
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
142 |
|
143 |
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |
144 |
specific bdist_rpm command. |
145 |
|
146 |
* Thuban/UI/main.py: Catch ImportError exceptions when importing |
147 |
the locale module because it may not be available on some |
148 |
installations. |
149 |
|
150 |
* extensions/pyprojection/LICENSE: Copy of the license text in |
151 |
Projection.i. Having it in a separate file makes it easier to |
152 |
refer to license text in e.g. RPMs |
153 |
|
154 |
2001-09-03 Bernhard Herzog <[email protected]> |
155 |
|
156 |
* setup.py: use wx-config instead of wxgtk-config because it's |
157 |
more generic |
158 |
|
159 |
* setup.py (ThubanInstall.get_outputs): Add the symlink in |
160 |
<prefix>/bin to the outputs |
161 |
(ThubanInstall.link_file): New method to link files. We need this |
162 |
because the standard copy_files refuses to link non-existing |
163 |
files. |
164 |
(ThubanInstall.run): Remove the leading install root from the |
165 |
script filename if an install root was specified and use the new |
166 |
link_file method |
167 |
|
168 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
169 |
the window when the first layer is added to the map. |
170 |
|
171 |
* setup.py (ThubanInstall.run): Honor the build root (self.root) |
172 |
when linking thuban.py to <prefix>/bin |
173 |
|
174 |
2001-08-31 Bernhard Herzog <[email protected]> |
175 |
|
176 |
* setup.py: In the setup call, the install parameters shouldn't |
177 |
have trailing slashes because distutils on non-posix platforms |
178 |
doesn't like that. The same applies to other directories like |
179 |
"Resources/Bitmaps" |
180 |
|
181 |
In the configuration section for nt, move the wxWindows directory |
182 |
optins into the part clearly marked as editable. |
183 |
|
184 |
(InstallLocal.initialize_options): |
185 |
(InstallLocal.user_options): remove the currently unused debug |
186 |
flag |
187 |
(thuban_build_py.find_all_modules): Add this method so that it |
188 |
works for our case of having packages and modules in one |
189 |
distribution as well. |
190 |
(ThubanInstall.initialize_options): |
191 |
(ThubanInstall.finalize_options): |
192 |
(ThubanInstall.user_options): |
193 |
(ThubanInstall.boolean_options): Add new options, do-symlink and |
194 |
extra files. Since these are the first ThubanInstall specific |
195 |
options, override user_options and boolean_options |
196 |
(ThubanInstall.run): Honor the new do-symlink and extra-files |
197 |
options. |
198 |
(ThubanInstall.get_outputs): Add to override the base-class's |
199 |
version and add the extra-files to the outputs |
200 |
(bdist_inno): New class for windows distributions with Inno Setup |
201 |
(InnoIconItem): Helper class for bdist_inno |
202 |
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
203 |
this together with the appropriate parameters, to the setup call. |
204 |
|
205 |
* setup.cfg (bdist_inno): added new section for the inno setup |
206 |
installer |
207 |
|
208 |
* Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var |
209 |
changing_selection to avoid recursive selection events when |
210 |
modifying the selection in response to a selection event. |
211 |
(myTreeCtrlPanel.normalize_selection): Set the new inst var when |
212 |
changing the tree's selection. |
213 |
(myTreeCtrlPanel.OnSelChanged): Only normalize the selection when |
214 |
we're not being called indirectly from normalize_selection. |
215 |
|
216 |
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call |
217 |
event.Check only if the command is actuall checkable. |
218 |
(MainWindow.__init__): Call the toolbar's Realize method to make |
219 |
sure that the items are actually shown |
220 |
|
221 |
2001-08-28 Bernhard Herzog <[email protected]> |
222 |
|
223 |
* setup.py: Fix some doc strings |
224 |
|
225 |
* ChangeLog: started |
226 |
|