|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.E5Gui.E5ListSelectionDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.E5Gui.E5ListSelectionDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to select from a list of strings. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#E5ListSelectionDialog">E5ListSelectionDialog</a></td> |
|
34 <td>Class implementing a dialog to select from a list of strings.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="E5ListSelectionDialog" ID="E5ListSelectionDialog"></a> |
|
43 <h2>E5ListSelectionDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to select from a list of strings. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_E5ListSelectionDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#E5ListSelectionDialog.__init__">E5ListSelectionDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#E5ListSelectionDialog.getSelection">getSelection</a></td> |
|
64 <td>Public method to retrieve the selected items.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#E5ListSelectionDialog.on_selectionList_itemChanged">on_selectionList_itemChanged</a></td> |
|
67 <td>Private slot handling a change of an item.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#E5ListSelectionDialog.on_selectionList_itemSelectionChanged">on_selectionList_itemSelectionChanged</a></td> |
|
70 <td>Private slot handling a change of the selection.</td> |
|
71 </tr> |
|
72 </table> |
|
73 <h3>Static Methods</h3> |
|
74 <table> |
|
75 <tr><td>None</td></tr> |
|
76 </table> |
|
77 <a NAME="E5ListSelectionDialog.__init__" ID="E5ListSelectionDialog.__init__"></a> |
|
78 <h4>E5ListSelectionDialog (Constructor)</h4> |
|
79 <b>E5ListSelectionDialog</b>(<i>entries, selectionMode=QAbstractItemView.ExtendedSelection, title="", message="", checkBoxSelection=False, parent=None</i>) |
|
80 <p> |
|
81 Constructor |
|
82 </p><dl> |
|
83 <dt><i>entries</i> (list of str)</dt> |
|
84 <dd> |
|
85 list of entries to select from |
|
86 </dd><dt><i>selectionMode</i> (QAbstractItemView.SelectionMode)</dt> |
|
87 <dd> |
|
88 selection mode for the list |
|
89 </dd><dt><i>title</i> (str)</dt> |
|
90 <dd> |
|
91 tirle of the dialog |
|
92 </dd><dt><i>message</i> (str)</dt> |
|
93 <dd> |
|
94 message to be show in the dialog |
|
95 </dd><dt><i>checkBoxSelection</i> (bool)</dt> |
|
96 <dd> |
|
97 flag indicating to select items via their |
|
98 checkbox |
|
99 </dd><dt><i>parent</i> (QWidget)</dt> |
|
100 <dd> |
|
101 reference to the parent widget |
|
102 </dd> |
|
103 </dl><a NAME="E5ListSelectionDialog.getSelection" ID="E5ListSelectionDialog.getSelection"></a> |
|
104 <h4>E5ListSelectionDialog.getSelection</h4> |
|
105 <b>getSelection</b>(<i></i>) |
|
106 <p> |
|
107 Public method to retrieve the selected items. |
|
108 </p><dl> |
|
109 <dt>Returns:</dt> |
|
110 <dd> |
|
111 selected entries |
|
112 </dd> |
|
113 </dl><dl> |
|
114 <dt>Return Type:</dt> |
|
115 <dd> |
|
116 list of str |
|
117 </dd> |
|
118 </dl><a NAME="E5ListSelectionDialog.on_selectionList_itemChanged" ID="E5ListSelectionDialog.on_selectionList_itemChanged"></a> |
|
119 <h4>E5ListSelectionDialog.on_selectionList_itemChanged</h4> |
|
120 <b>on_selectionList_itemChanged</b>(<i>itm</i>) |
|
121 <p> |
|
122 Private slot handling a change of an item. |
|
123 </p><dl> |
|
124 <dt><i>itm</i> (QListWidgetItem)</dt> |
|
125 <dd> |
|
126 reference to the changed item |
|
127 </dd> |
|
128 </dl><a NAME="E5ListSelectionDialog.on_selectionList_itemSelectionChanged" ID="E5ListSelectionDialog.on_selectionList_itemSelectionChanged"></a> |
|
129 <h4>E5ListSelectionDialog.on_selectionList_itemSelectionChanged</h4> |
|
130 <b>on_selectionList_itemSelectionChanged</b>(<i></i>) |
|
131 <p> |
|
132 Private slot handling a change of the selection. |
|
133 </p> |
|
134 <div align="right"><a href="#top">Up</a></div> |
|
135 <hr /> |
|
136 </body></html> |