1 |
|
2001-09-10 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the |
4 |
|
identify view immediately |
5 |
|
|
6 |
|
* Thuban/UI/controls.py: New file with two classes RecordListCtrl |
7 |
|
and SelectableRecordListCtrl that implement the code shared by the |
8 |
|
identify view and the label dialog |
9 |
|
|
10 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the |
11 |
|
new class RecordListCtrl |
12 |
|
|
13 |
|
* Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the |
14 |
|
return value of GetValue is None instead of using it as a boolean |
15 |
|
directly so that Zero numbers are handled properly. |
16 |
|
(LabelListCtrl): Derive from the new class |
17 |
|
SelectableRecordListCtrl |
18 |
|
|
19 |
|
* Thuban/UI/proj4dialog.py (Proj4Dialog.__init__): |
20 |
|
(Proj4Dialog.dialogLayout): Make the window resizable and set the |
21 |
|
size of the text control explicitly to make the sizers work on |
22 |
|
both Windows and X. |
23 |
|
|
24 |
|
2001-09-07 Bernhard Herzog <[email protected]> |
25 |
|
|
26 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter |
27 |
|
that can limit the search to the currently selected layer. |
28 |
|
(MapCanvas.SelectShapeAt): Make sure that the currently selected |
29 |
|
layer stays selected even when no shape is found |
30 |
|
(MapCanvas.FitRectToWindow): If the rect has zero with or zero |
31 |
|
height do nothing (avoids zero division errors) |
32 |
|
|
33 |
|
2001-09-06 Bernhard Herzog <[email protected]> |
34 |
|
|
35 |
|
* Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__): |
36 |
|
Correct the spelling of SessionTreeCtrl. dabbrev is too damn |
37 |
|
convenient :-) |
38 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce |
39 |
|
a new instvar layer_to_item to map layers to tree items |
40 |
|
(SessionTreeCtrl.layer_selected): Select the appropriate tree item |
41 |
|
to match the current selection in the interactor |
42 |
|
|
43 |
|
* Thuban/UI/interactor.py (Interactor.SelectedLayer): |
44 |
|
(Interactor.HasSelectedLayer): New methods to query the current |
45 |
|
selection |
46 |
|
|
47 |
|
* Thuban/UI/mainwindow.py (MainWindow.current_layer): |
48 |
|
(MainWindow.has_selected_layer): Simply call the appropriate |
49 |
|
interactor method |
50 |
|
|
51 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): |
52 |
|
(MainWindow.LayerShowTable): |
53 |
|
(MainWindow.identify_view_on_demand): Store the interactor in an |
54 |
|
instvar and use that reference instead of going through main.app |
55 |
|
|
56 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
57 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
58 |
|
* Thuban/UI/main.py (main): Create the session tree view in main |
59 |
|
with the new mainwindow method ShowSessionTree and not directly |
60 |
|
the application's OnInit method |
61 |
|
|
62 |
|
* Thuban/UI/tree.py (myTreeCtrlPanel): |
63 |
|
(SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a |
64 |
|
TreeCtrl isntead of a panel. This affects most method since we now |
65 |
|
refer to self instead of self.tree |
66 |
|
(SessionTreeView): New class implementing a non-modal dialog |
67 |
|
showing the session tree. |
68 |
|
|
69 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the |
70 |
|
layer to the tableview dialog. |
71 |
|
|
72 |
|
* Thuban/UI/tableview.py: Add some doc-strings |
73 |
|
(TableGrid): |
74 |
|
(TableGrid.OnRangeSelect): |
75 |
|
(TableGrid.OnSelectCell): |
76 |
|
(TableFrame.__init__): |
77 |
|
(TableFrame.row_selected): |
78 |
|
Selecting rows in the grid view now updates the selected shapes |
79 |
|
through the TableFrame. To achieve this we derive TableGrid from |
80 |
|
Publisher and introduce the message type ROW_SELECTED which the |
81 |
|
TableFrame subscribes to and which is issued by OnRangeSelect and |
82 |
|
OnSelectCell |
83 |
|
|
84 |
|
(DataTable.SelectRow): Removed because it's no longer needed in |
85 |
|
the row/shape selection scheme |
86 |
|
|
87 |
|
* Thuban/UI/dialogs.py: New file implementing common classes for |
88 |
|
dialogs |
89 |
|
|
90 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
91 |
|
the SELECTED_SHAPE message anymore. This is now handled by the |
92 |
|
parent. |
93 |
|
(TableGrid.select_shape): Only update the selection if the shape |
94 |
|
is not None. |
95 |
|
(TableFrame): Inherit from the new NonModalDialog class. |
96 |
|
(TableFrame.__init__, TableFrame.select_shape): Handle the |
97 |
|
SELECT_SHAPE message. |
98 |
|
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
99 |
|
SELECT_SHAPE |
100 |
|
|
101 |
|
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
102 |
|
(MainWindow.add_dialog): |
103 |
|
(MainWindow.dialog_open): |
104 |
|
(MainWindow.remove_dialog): |
105 |
|
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
106 |
|
of opened non-modal dialogs. |
107 |
|
|
108 |
|
(MainWindow.__init__): Initialize the new non-modal dictionary |
109 |
|
management code |
110 |
|
(MainWindow.LayerShowTable): maintain separate dialogs for each |
111 |
|
table using the non-modal dialog management code to only open a |
112 |
|
view once for each table. |
113 |
|
|
114 |
|
(MainWindow.IdentifyTool): |
115 |
|
(MainWindow.__init__): |
116 |
|
(MainWindow.identify_view_on_demand): Don't open the identify view |
117 |
|
in IdentifyTool anymore. This will be done automatically by the |
118 |
|
new method identify_view_on_demand which handles the |
119 |
|
SELECTED_SHAPE message so that the identify view will be opened on |
120 |
|
demand |
121 |
|
|
122 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
123 |
|
the interactor argument. The SELECTED_SHAPE message is now handled |
124 |
|
by the parent. |
125 |
|
(IdentifyView.__init__): Add the interactor argument so that we |
126 |
|
can handle the SELECTED_SHAPE message here |
127 |
|
(IdentifyView.selected_shape): New method to handle the |
128 |
|
SELECTED_SHAPE messages |
129 |
|
|
130 |
|
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
131 |
|
NonModalDialog class |
132 |
|
(IdentifyView.OnClose): Extend the inherited version to |
133 |
|
unsubscribe SELECT_SHAPE |
134 |
|
|
135 |
|
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
136 |
|
|
137 |
|
2001-09-05 Bernhard Herzog <[email protected]> |
138 |
|
|
139 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
140 |
|
|
141 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
142 |
|
interactor to pass through to the MapCanvas |
143 |
|
|
144 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
145 |
|
argument to the MainWindow constructor to get rid of the ugly hack |
146 |
|
that made main.app available early just so that the mapcanvas |
147 |
|
could access the interactor object. |
148 |
|
|
149 |
2001-09-04 Bernhard Herzog <[email protected]> |
2001-09-04 Bernhard Herzog <[email protected]> |
150 |
|
|
151 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |