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