1 |
|
2001-09-06 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/dialogs.py: New file implementing common classes for |
4 |
|
dialogs |
5 |
|
|
6 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
7 |
|
the SELECTED_SHAPE message anymore. This is now handled by the |
8 |
|
parent. |
9 |
|
(TableGrid.select_shape): Only update the selection if the shape |
10 |
|
is not None. |
11 |
|
(TableFrame): Inherit from the new NonModalDialog class. |
12 |
|
(TableFrame.__init__, TableFrame.select_shape): Handle the |
13 |
|
SELECT_SHAPE message. |
14 |
|
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
15 |
|
SELECT_SHAPE |
16 |
|
|
17 |
|
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
18 |
|
(MainWindow.add_dialog): |
19 |
|
(MainWindow.dialog_open): |
20 |
|
(MainWindow.remove_dialog): |
21 |
|
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
22 |
|
of opened non-modal dialogs. |
23 |
|
|
24 |
|
(MainWindow.__init__): Initialize the new non-modal dictionary |
25 |
|
management code |
26 |
|
(MainWindow.LayerShowTable): maintain separate dialogs for each |
27 |
|
table using the non-modal dialog management code to only open a |
28 |
|
view once for each table. |
29 |
|
|
30 |
|
(MainWindow.IdentifyTool): |
31 |
|
(MainWindow.__init__): |
32 |
|
(MainWindow.identify_view_on_demand): Don't open the identify view |
33 |
|
in IdentifyTool anymore. This will be done automatically by the |
34 |
|
new method identify_view_on_demand which handles the |
35 |
|
SELECTED_SHAPE message so that the identify view will be opened on |
36 |
|
demand |
37 |
|
|
38 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
39 |
|
the interactor argument. The SELECTED_SHAPE message is now handled |
40 |
|
by the parent. |
41 |
|
(IdentifyView.__init__): Add the interactor argument so that we |
42 |
|
can handle the SELECTED_SHAPE message here |
43 |
|
(IdentifyView.selected_shape): New method to handle the |
44 |
|
SELECTED_SHAPE messages |
45 |
|
|
46 |
|
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
47 |
|
NonModalDialog class |
48 |
|
(IdentifyView.OnClose): Extend the inherited version to |
49 |
|
unsubscribe SELECT_SHAPE |
50 |
|
|
51 |
|
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
52 |
|
|
53 |
|
2001-09-05 Bernhard Herzog <[email protected]> |
54 |
|
|
55 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
56 |
|
|
57 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
58 |
|
interactor to pass through to the MapCanvas |
59 |
|
|
60 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
61 |
|
argument to the MainWindow constructor to get rid of the ugly hack |
62 |
|
that made main.app available early just so that the mapcanvas |
63 |
|
could access the interactor object. |
64 |
|
|
65 |
2001-09-04 Bernhard Herzog <[email protected]> |
2001-09-04 Bernhard Herzog <[email protected]> |
66 |
|
|
67 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
68 |
|
that runs a modal message box |
69 |
|
(MainWindow.OnClose): Use the new method |
70 |
|
(MainWindow.RemoveLayer): Just do nothing in case no layer is |
71 |
|
selected. The command should be grayed out anyway, so there's no |
72 |
|
need to pop up a message box. |
73 |
|
(MainWindow.AddLayer): Pop up a message box with an error message |
74 |
|
if the shape file can't be opened |
75 |
|
|
76 |
|
* Thuban/Model/layer.py (Layer.__init__): Open the shapefile |
77 |
|
immediately. This will cause an exception in case the file can't |
78 |
|
be opened and we can display an appropriate message. |
79 |
|
|
80 |
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
81 |
|
|
82 |
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |