57 <tr> |
57 <tr> |
58 <td><a href="#EricListSelectionDialog.__init__">EricListSelectionDialog</a></td> |
58 <td><a href="#EricListSelectionDialog.__init__">EricListSelectionDialog</a></td> |
59 <td>Constructor</td> |
59 <td>Constructor</td> |
60 </tr> |
60 </tr> |
61 <tr> |
61 <tr> |
|
62 <td><a href="#EricListSelectionDialog.__selectAll">__selectAll</a></td> |
|
63 <td>Private method to select or deselect all entries.</td> |
|
64 </tr> |
|
65 <tr> |
62 <td><a href="#EricListSelectionDialog.getSelection">getSelection</a></td> |
66 <td><a href="#EricListSelectionDialog.getSelection">getSelection</a></td> |
63 <td>Public method to retrieve the selected items.</td> |
67 <td>Public method to retrieve the selected items.</td> |
64 </tr> |
68 </tr> |
65 <tr> |
69 <tr> |
66 <td><a href="#EricListSelectionDialog.on_selectionList_itemChanged">on_selectionList_itemChanged</a></td> |
70 <td><a href="#EricListSelectionDialog.on_selectionList_itemChanged">on_selectionList_itemChanged</a></td> |
72 </tr> |
76 </tr> |
73 <tr> |
77 <tr> |
74 <td><a href="#EricListSelectionDialog.on_selectionList_itemSelectionChanged">on_selectionList_itemSelectionChanged</a></td> |
78 <td><a href="#EricListSelectionDialog.on_selectionList_itemSelectionChanged">on_selectionList_itemSelectionChanged</a></td> |
75 <td>Private slot handling a change of the selection.</td> |
79 <td>Private slot handling a change of the selection.</td> |
76 </tr> |
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#EricListSelectionDialog.setSelection">setSelection</a></td> |
|
83 <td>Public method to preselect a list of entries.</td> |
|
84 </tr> |
77 </table> |
85 </table> |
78 <h3>Static Methods</h3> |
86 <h3>Static Methods</h3> |
79 |
87 |
80 <table> |
88 <table> |
81 <tr><td>None</td></tr> |
89 <tr><td>None</td></tr> |
82 </table> |
90 </table> |
83 |
91 |
84 <a NAME="EricListSelectionDialog.__init__" ID="EricListSelectionDialog.__init__"></a> |
92 <a NAME="EricListSelectionDialog.__init__" ID="EricListSelectionDialog.__init__"></a> |
85 <h4>EricListSelectionDialog (Constructor)</h4> |
93 <h4>EricListSelectionDialog (Constructor)</h4> |
86 <b>EricListSelectionDialog</b>(<i>entries, selectionMode=QAbstractItemView.SelectionMode.ExtendedSelection, title="", message="", checkBoxSelection=False, doubleClickOk=False, parent=None, </i>) |
94 <b>EricListSelectionDialog</b>(<i>entries, selectionMode=QAbstractItemView.SelectionMode.ExtendedSelection, title="", message="", checkBoxSelection=False, doubleClickOk=False, emptySelectionOk=False, showSelectAll=False, parent=None, </i>) |
87 |
95 |
88 <p> |
96 <p> |
89 Constructor |
97 Constructor |
90 </p> |
98 </p> |
91 <dl> |
99 <dl> |
92 |
100 |
93 <dt><i>entries</i> (list of str)</dt> |
101 <dt><i>entries</i> (list of str or list of tuple of (str, Any))</dt> |
94 <dd> |
102 <dd> |
95 list of entries to select from |
103 list of entries to select from |
96 </dd> |
104 </dd> |
97 <dt><i>selectionMode</i> (QAbstractItemView.SelectionMode)</dt> |
105 <dt><i>selectionMode</i> (QAbstractItemView.SelectionMode)</dt> |
98 <dd> |
106 <dd> |
114 <dt><i>doubleClickOk</i> (bool)</dt> |
122 <dt><i>doubleClickOk</i> (bool)</dt> |
115 <dd> |
123 <dd> |
116 flag indicating to accept the dialog upon a |
124 flag indicating to accept the dialog upon a |
117 double click of an item (single selection only) |
125 double click of an item (single selection only) |
118 </dd> |
126 </dd> |
|
127 <dt><i>emptySelectionOk</i> (bool)</dt> |
|
128 <dd> |
|
129 flag indicating that an empty selection is allowed |
|
130 </dd> |
|
131 <dt><i>showSelectAll</i> (bool)</dt> |
|
132 <dd> |
|
133 flag indicating to show a 'Select All' button |
|
134 </dd> |
119 <dt><i>parent</i> (QWidget)</dt> |
135 <dt><i>parent</i> (QWidget)</dt> |
120 <dd> |
136 <dd> |
121 reference to the parent widget |
137 reference to the parent widget |
|
138 </dd> |
|
139 </dl> |
|
140 <a NAME="EricListSelectionDialog.__selectAll" ID="EricListSelectionDialog.__selectAll"></a> |
|
141 <h4>EricListSelectionDialog.__selectAll</h4> |
|
142 <b>__selectAll</b>(<i>state</i>) |
|
143 |
|
144 <p> |
|
145 Private method to select or deselect all entries. |
|
146 </p> |
|
147 <dl> |
|
148 |
|
149 <dt><i>state</i> (bool)</dt> |
|
150 <dd> |
|
151 flag indicating the desired selection state |
122 </dd> |
152 </dd> |
123 </dl> |
153 </dl> |
124 <a NAME="EricListSelectionDialog.getSelection" ID="EricListSelectionDialog.getSelection"></a> |
154 <a NAME="EricListSelectionDialog.getSelection" ID="EricListSelectionDialog.getSelection"></a> |
125 <h4>EricListSelectionDialog.getSelection</h4> |
155 <h4>EricListSelectionDialog.getSelection</h4> |
126 <b>getSelection</b>(<i></i>) |
156 <b>getSelection</b>(<i></i>) |
135 </dd> |
165 </dd> |
136 </dl> |
166 </dl> |
137 <dl> |
167 <dl> |
138 <dt>Return Type:</dt> |
168 <dt>Return Type:</dt> |
139 <dd> |
169 <dd> |
140 list of str |
170 list of str or list of tuple of (str, Any) |
141 </dd> |
171 </dd> |
142 </dl> |
172 </dl> |
143 <a NAME="EricListSelectionDialog.on_selectionList_itemChanged" ID="EricListSelectionDialog.on_selectionList_itemChanged"></a> |
173 <a NAME="EricListSelectionDialog.on_selectionList_itemChanged" ID="EricListSelectionDialog.on_selectionList_itemChanged"></a> |
144 <h4>EricListSelectionDialog.on_selectionList_itemChanged</h4> |
174 <h4>EricListSelectionDialog.on_selectionList_itemChanged</h4> |
145 <b>on_selectionList_itemChanged</b>(<i>itm</i>) |
175 <b>on_selectionList_itemChanged</b>(<i>itm</i>) |
173 <b>on_selectionList_itemSelectionChanged</b>(<i></i>) |
203 <b>on_selectionList_itemSelectionChanged</b>(<i></i>) |
174 |
204 |
175 <p> |
205 <p> |
176 Private slot handling a change of the selection. |
206 Private slot handling a change of the selection. |
177 </p> |
207 </p> |
|
208 <a NAME="EricListSelectionDialog.setSelection" ID="EricListSelectionDialog.setSelection"></a> |
|
209 <h4>EricListSelectionDialog.setSelection</h4> |
|
210 <b>setSelection</b>(<i>selection</i>) |
|
211 |
|
212 <p> |
|
213 Public method to preselect a list of entries. |
|
214 </p> |
|
215 <dl> |
|
216 |
|
217 <dt><i>selection</i> (list of str)</dt> |
|
218 <dd> |
|
219 list of selected entries |
|
220 </dd> |
|
221 </dl> |
178 <div align="right"><a href="#top">Up</a></div> |
222 <div align="right"><a href="#top">Up</a></div> |
179 <hr /> |
223 <hr /> |
180 </body></html> |
224 </body></html> |