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 |
|
|
8 |
|
2001-09-06 Bernhard Herzog <[email protected]> |
9 |
|
|
10 |
|
* Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__): |
11 |
|
Correct the spelling of SessionTreeCtrl. dabbrev is too damn |
12 |
|
convenient :-) |
13 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce |
14 |
|
a new instvar layer_to_item to map layers to tree items |
15 |
|
(SessionTreeCtrl.layer_selected): Select the appropriate tree item |
16 |
|
to match the current selection in the interactor |
17 |
|
|
18 |
|
* Thuban/UI/interactor.py (Interactor.SelectedLayer): |
19 |
|
(Interactor.HasSelectedLayer): New methods to query the current |
20 |
|
selection |
21 |
|
|
22 |
|
* Thuban/UI/mainwindow.py (MainWindow.current_layer): |
23 |
|
(MainWindow.has_selected_layer): Simply call the appropriate |
24 |
|
interactor method |
25 |
|
|
26 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): |
27 |
|
(MainWindow.LayerShowTable): |
28 |
|
(MainWindow.identify_view_on_demand): Store the interactor in an |
29 |
|
instvar and use that reference instead of going through main.app |
30 |
|
|
31 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
32 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
33 |
|
* Thuban/UI/main.py (main): Create the session tree view in main |
34 |
|
with the new mainwindow method ShowSessionTree and not directly |
35 |
|
the application's OnInit method |
36 |
|
|
37 |
|
* Thuban/UI/tree.py (myTreeCtrlPanel): |
38 |
|
(SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a |
39 |
|
TreeCtrl isntead of a panel. This affects most method since we now |
40 |
|
refer to self instead of self.tree |
41 |
|
(SessionTreeView): New class implementing a non-modal dialog |
42 |
|
showing the session tree. |
43 |
|
|
44 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the |
45 |
|
layer to the tableview dialog. |
46 |
|
|
47 |
|
* Thuban/UI/tableview.py: Add some doc-strings |
48 |
|
(TableGrid): |
49 |
|
(TableGrid.OnRangeSelect): |
50 |
|
(TableGrid.OnSelectCell): |
51 |
|
(TableFrame.__init__): |
52 |
|
(TableFrame.row_selected): |
53 |
|
Selecting rows in the grid view now updates the selected shapes |
54 |
|
through the TableFrame. To achieve this we derive TableGrid from |
55 |
|
Publisher and introduce the message type ROW_SELECTED which the |
56 |
|
TableFrame subscribes to and which is issued by OnRangeSelect and |
57 |
|
OnSelectCell |
58 |
|
|
59 |
|
(DataTable.SelectRow): Removed because it's no longer needed in |
60 |
|
the row/shape selection scheme |
61 |
|
|
62 |
|
* Thuban/UI/dialogs.py: New file implementing common classes for |
63 |
|
dialogs |
64 |
|
|
65 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
66 |
|
the SELECTED_SHAPE message anymore. This is now handled by the |
67 |
|
parent. |
68 |
|
(TableGrid.select_shape): Only update the selection if the shape |
69 |
|
is not None. |
70 |
|
(TableFrame): Inherit from the new NonModalDialog class. |
71 |
|
(TableFrame.__init__, TableFrame.select_shape): Handle the |
72 |
|
SELECT_SHAPE message. |
73 |
|
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
74 |
|
SELECT_SHAPE |
75 |
|
|
76 |
|
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
77 |
|
(MainWindow.add_dialog): |
78 |
|
(MainWindow.dialog_open): |
79 |
|
(MainWindow.remove_dialog): |
80 |
|
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
81 |
|
of opened non-modal dialogs. |
82 |
|
|
83 |
|
(MainWindow.__init__): Initialize the new non-modal dictionary |
84 |
|
management code |
85 |
|
(MainWindow.LayerShowTable): maintain separate dialogs for each |
86 |
|
table using the non-modal dialog management code to only open a |
87 |
|
view once for each table. |
88 |
|
|
89 |
|
(MainWindow.IdentifyTool): |
90 |
|
(MainWindow.__init__): |
91 |
|
(MainWindow.identify_view_on_demand): Don't open the identify view |
92 |
|
in IdentifyTool anymore. This will be done automatically by the |
93 |
|
new method identify_view_on_demand which handles the |
94 |
|
SELECTED_SHAPE message so that the identify view will be opened on |
95 |
|
demand |
96 |
|
|
97 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
98 |
|
the interactor argument. The SELECTED_SHAPE message is now handled |
99 |
|
by the parent. |
100 |
|
(IdentifyView.__init__): Add the interactor argument so that we |
101 |
|
can handle the SELECTED_SHAPE message here |
102 |
|
(IdentifyView.selected_shape): New method to handle the |
103 |
|
SELECTED_SHAPE messages |
104 |
|
|
105 |
|
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
106 |
|
NonModalDialog class |
107 |
|
(IdentifyView.OnClose): Extend the inherited version to |
108 |
|
unsubscribe SELECT_SHAPE |
109 |
|
|
110 |
|
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
111 |
|
|
112 |
|
2001-09-05 Bernhard Herzog <[email protected]> |
113 |
|
|
114 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
115 |
|
|
116 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
117 |
|
interactor to pass through to the MapCanvas |
118 |
|
|
119 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
120 |
|
argument to the MainWindow constructor to get rid of the ugly hack |
121 |
|
that made main.app available early just so that the mapcanvas |
122 |
|
could access the interactor object. |
123 |
|
|
124 |
|
2001-09-04 Bernhard Herzog <[email protected]> |
125 |
|
|
126 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
127 |
|
that runs a modal message box |
128 |
|
(MainWindow.OnClose): Use the new method |
129 |
|
(MainWindow.RemoveLayer): Just do nothing in case no layer is |
130 |
|
selected. The command should be grayed out anyway, so there's no |
131 |
|
need to pop up a message box. |
132 |
|
(MainWindow.AddLayer): Pop up a message box with an error message |
133 |
|
if the shape file can't be opened |
134 |
|
|
135 |
|
* Thuban/Model/layer.py (Layer.__init__): Open the shapefile |
136 |
|
immediately. This will cause an exception in case the file can't |
137 |
|
be opened and we can display an appropriate message. |
138 |
|
|
139 |
|
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
140 |
|
|
141 |
|
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |
142 |
|
specific bdist_rpm command. |
143 |
|
|
144 |
|
* Thuban/UI/main.py: Catch ImportError exceptions when importing |
145 |
|
the locale module because it may not be available on some |
146 |
|
installations. |
147 |
|
|
148 |
|
* extensions/pyprojection/LICENSE: Copy of the license text in |
149 |
|
Projection.i. Having it in a separate file makes it easier to |
150 |
|
refer to license text in e.g. RPMs |
151 |
|
|
152 |
|
2001-09-03 Bernhard Herzog <[email protected]> |
153 |
|
|
154 |
|
* setup.py: use wx-config instead of wxgtk-config because it's |
155 |
|
more generic |
156 |
|
|
157 |
|
* setup.py (ThubanInstall.get_outputs): Add the symlink in |
158 |
|
<prefix>/bin to the outputs |
159 |
|
(ThubanInstall.link_file): New method to link files. We need this |
160 |
|
because the standard copy_files refuses to link non-existing |
161 |
|
files. |
162 |
|
(ThubanInstall.run): Remove the leading install root from the |
163 |
|
script filename if an install root was specified and use the new |
164 |
|
link_file method |
165 |
|
|
166 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
167 |
|
the window when the first layer is added to the map. |
168 |
|
|
169 |
|
* setup.py (ThubanInstall.run): Honor the build root (self.root) |
170 |
|
when linking thuban.py to <prefix>/bin |
171 |
|
|
172 |
2001-08-31 Bernhard Herzog <[email protected]> |
2001-08-31 Bernhard Herzog <[email protected]> |
173 |
|
|
174 |
* setup.py: In the setup call, the install parameters shouldn't |
* setup.py: In the setup call, the install parameters shouldn't |