|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.MicroPython.UnknownDevicesDialog</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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.MicroPython.UnknownDevicesDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a dialog to manage the list of unknown devices. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#UnknownDevicesDialog">UnknownDevicesDialog</a></td> |
|
39 <td>Class implementing a dialog to manage the list of unknown devices.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="UnknownDevicesDialog" ID="UnknownDevicesDialog"></a> |
|
50 <h2>UnknownDevicesDialog</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a dialog to manage the list of unknown devices. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QDialog, Ui_UnknownDevicesDialog |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>DeviceDataRole</td></tr><tr><td>ModifiedRole</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#UnknownDevicesDialog.__init__">UnknownDevicesDialog</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#UnknownDevicesDialog.__checkButtons">__checkButtons</a></td> |
|
77 <td>Private slot to set the enabled state of the buttons.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#UnknownDevicesDialog.__editItem">__editItem</a></td> |
|
81 <td>Private method to edit the given item.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#UnknownDevicesDialog.__isDirty">__isDirty</a></td> |
|
85 <td>Private method to check, if the dialog contains unsaved data.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#UnknownDevicesDialog.__loadDevices">__loadDevices</a></td> |
|
89 <td>Private method to load the list of unknown devices.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#UnknownDevicesDialog.__saveDeviceData">__saveDeviceData</a></td> |
|
93 <td>Private method to save the device data.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#UnknownDevicesDialog.on_buttonBox_accepted">on_buttonBox_accepted</a></td> |
|
97 <td>Private slot to handle the OK button press.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#UnknownDevicesDialog.on_buttonBox_rejected">on_buttonBox_rejected</a></td> |
|
101 <td>Private slot handling the cancellation of the dialog.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#UnknownDevicesDialog.on_deleteAllButton_clicked">on_deleteAllButton_clicked</a></td> |
|
105 <td>Private slot to delete all devices.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#UnknownDevicesDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> |
|
109 <td>Private slot to delete the selected entries.</td> |
|
110 </tr> |
|
111 <tr> |
|
112 <td><a href="#UnknownDevicesDialog.on_deviceList_itemActivated">on_deviceList_itemActivated</a></td> |
|
113 <td>Private slot to edit the data of the activated item.</td> |
|
114 </tr> |
|
115 <tr> |
|
116 <td><a href="#UnknownDevicesDialog.on_deviceList_itemSelectionChanged">on_deviceList_itemSelectionChanged</a></td> |
|
117 <td>Private slot to handle a change of selected items.</td> |
|
118 </tr> |
|
119 <tr> |
|
120 <td><a href="#UnknownDevicesDialog.on_editButton_clicked">on_editButton_clicked</a></td> |
|
121 <td>Private slot to edit the selected item.</td> |
|
122 </tr> |
|
123 <tr> |
|
124 <td><a href="#UnknownDevicesDialog.on_reportButton_clicked">on_reportButton_clicked</a></td> |
|
125 <td>Private slot to report the data of all boards to the eric-bugs email address.</td> |
|
126 </tr> |
|
127 <tr> |
|
128 <td><a href="#UnknownDevicesDialog.on_restoreButton_clicked">on_restoreButton_clicked</a></td> |
|
129 <td>Private slot to restore the list of unknown devices.</td> |
|
130 </tr> |
|
131 </table> |
|
132 <h3>Static Methods</h3> |
|
133 |
|
134 <table> |
|
135 <tr><td>None</td></tr> |
|
136 </table> |
|
137 |
|
138 <a NAME="UnknownDevicesDialog.__init__" ID="UnknownDevicesDialog.__init__"></a> |
|
139 <h4>UnknownDevicesDialog (Constructor)</h4> |
|
140 <b>UnknownDevicesDialog</b>(<i>parent=None</i>) |
|
141 |
|
142 <p> |
|
143 Constructor |
|
144 </p> |
|
145 <dl> |
|
146 |
|
147 <dt><i>parent</i> (QWidget (optional))</dt> |
|
148 <dd> |
|
149 reference to the parent widget (defaults to None) |
|
150 </dd> |
|
151 </dl> |
|
152 <a NAME="UnknownDevicesDialog.__checkButtons" ID="UnknownDevicesDialog.__checkButtons"></a> |
|
153 <h4>UnknownDevicesDialog.__checkButtons</h4> |
|
154 <b>__checkButtons</b>(<i></i>) |
|
155 |
|
156 <p> |
|
157 Private slot to set the enabled state of the buttons. |
|
158 </p> |
|
159 <a NAME="UnknownDevicesDialog.__editItem" ID="UnknownDevicesDialog.__editItem"></a> |
|
160 <h4>UnknownDevicesDialog.__editItem</h4> |
|
161 <b>__editItem</b>(<i>item</i>) |
|
162 |
|
163 <p> |
|
164 Private method to edit the given item. |
|
165 </p> |
|
166 <dl> |
|
167 |
|
168 <dt><i>item</i> (QListWidgetItem)</dt> |
|
169 <dd> |
|
170 reference to the item to be edited |
|
171 </dd> |
|
172 </dl> |
|
173 <a NAME="UnknownDevicesDialog.__isDirty" ID="UnknownDevicesDialog.__isDirty"></a> |
|
174 <h4>UnknownDevicesDialog.__isDirty</h4> |
|
175 <b>__isDirty</b>(<i></i>) |
|
176 |
|
177 <p> |
|
178 Private method to check, if the dialog contains unsaved data. |
|
179 </p> |
|
180 <dl> |
|
181 <dt>Return:</dt> |
|
182 <dd> |
|
183 flag indicating the presence of unsaved data |
|
184 </dd> |
|
185 </dl> |
|
186 <dl> |
|
187 <dt>Return Type:</dt> |
|
188 <dd> |
|
189 bool |
|
190 </dd> |
|
191 </dl> |
|
192 <a NAME="UnknownDevicesDialog.__loadDevices" ID="UnknownDevicesDialog.__loadDevices"></a> |
|
193 <h4>UnknownDevicesDialog.__loadDevices</h4> |
|
194 <b>__loadDevices</b>(<i></i>) |
|
195 |
|
196 <p> |
|
197 Private method to load the list of unknown devices. |
|
198 </p> |
|
199 <a NAME="UnknownDevicesDialog.__saveDeviceData" ID="UnknownDevicesDialog.__saveDeviceData"></a> |
|
200 <h4>UnknownDevicesDialog.__saveDeviceData</h4> |
|
201 <b>__saveDeviceData</b>(<i></i>) |
|
202 |
|
203 <p> |
|
204 Private method to save the device data. |
|
205 </p> |
|
206 <dl> |
|
207 <dt>Return:</dt> |
|
208 <dd> |
|
209 flag indicating a successful save |
|
210 </dd> |
|
211 </dl> |
|
212 <dl> |
|
213 <dt>Return Type:</dt> |
|
214 <dd> |
|
215 bool |
|
216 </dd> |
|
217 </dl> |
|
218 <a NAME="UnknownDevicesDialog.on_buttonBox_accepted" ID="UnknownDevicesDialog.on_buttonBox_accepted"></a> |
|
219 <h4>UnknownDevicesDialog.on_buttonBox_accepted</h4> |
|
220 <b>on_buttonBox_accepted</b>(<i></i>) |
|
221 |
|
222 <p> |
|
223 Private slot to handle the OK button press. |
|
224 </p> |
|
225 <p> |
|
226 This action saves the edited list to the preferences store. |
|
227 </p> |
|
228 <a NAME="UnknownDevicesDialog.on_buttonBox_rejected" ID="UnknownDevicesDialog.on_buttonBox_rejected"></a> |
|
229 <h4>UnknownDevicesDialog.on_buttonBox_rejected</h4> |
|
230 <b>on_buttonBox_rejected</b>(<i></i>) |
|
231 |
|
232 <p> |
|
233 Private slot handling the cancellation of the dialog. |
|
234 </p> |
|
235 <a NAME="UnknownDevicesDialog.on_deleteAllButton_clicked" ID="UnknownDevicesDialog.on_deleteAllButton_clicked"></a> |
|
236 <h4>UnknownDevicesDialog.on_deleteAllButton_clicked</h4> |
|
237 <b>on_deleteAllButton_clicked</b>(<i></i>) |
|
238 |
|
239 <p> |
|
240 Private slot to delete all devices. |
|
241 </p> |
|
242 <a NAME="UnknownDevicesDialog.on_deleteButton_clicked" ID="UnknownDevicesDialog.on_deleteButton_clicked"></a> |
|
243 <h4>UnknownDevicesDialog.on_deleteButton_clicked</h4> |
|
244 <b>on_deleteButton_clicked</b>(<i></i>) |
|
245 |
|
246 <p> |
|
247 Private slot to delete the selected entries. |
|
248 </p> |
|
249 <a NAME="UnknownDevicesDialog.on_deviceList_itemActivated" ID="UnknownDevicesDialog.on_deviceList_itemActivated"></a> |
|
250 <h4>UnknownDevicesDialog.on_deviceList_itemActivated</h4> |
|
251 <b>on_deviceList_itemActivated</b>(<i>item</i>) |
|
252 |
|
253 <p> |
|
254 Private slot to edit the data of the activated item. |
|
255 </p> |
|
256 <dl> |
|
257 |
|
258 <dt><i>item</i> (QListWidgetItem)</dt> |
|
259 <dd> |
|
260 reference to the activated item |
|
261 </dd> |
|
262 </dl> |
|
263 <a NAME="UnknownDevicesDialog.on_deviceList_itemSelectionChanged" ID="UnknownDevicesDialog.on_deviceList_itemSelectionChanged"></a> |
|
264 <h4>UnknownDevicesDialog.on_deviceList_itemSelectionChanged</h4> |
|
265 <b>on_deviceList_itemSelectionChanged</b>(<i></i>) |
|
266 |
|
267 <p> |
|
268 Private slot to handle a change of selected items. |
|
269 </p> |
|
270 <a NAME="UnknownDevicesDialog.on_editButton_clicked" ID="UnknownDevicesDialog.on_editButton_clicked"></a> |
|
271 <h4>UnknownDevicesDialog.on_editButton_clicked</h4> |
|
272 <b>on_editButton_clicked</b>(<i></i>) |
|
273 |
|
274 <p> |
|
275 Private slot to edit the selected item. |
|
276 </p> |
|
277 <a NAME="UnknownDevicesDialog.on_reportButton_clicked" ID="UnknownDevicesDialog.on_reportButton_clicked"></a> |
|
278 <h4>UnknownDevicesDialog.on_reportButton_clicked</h4> |
|
279 <b>on_reportButton_clicked</b>(<i></i>) |
|
280 |
|
281 <p> |
|
282 Private slot to report the data of all boards to the eric-bugs email |
|
283 address. |
|
284 </p> |
|
285 <a NAME="UnknownDevicesDialog.on_restoreButton_clicked" ID="UnknownDevicesDialog.on_restoreButton_clicked"></a> |
|
286 <h4>UnknownDevicesDialog.on_restoreButton_clicked</h4> |
|
287 <b>on_restoreButton_clicked</b>(<i></i>) |
|
288 |
|
289 <p> |
|
290 Private slot to restore the list of unknown devices. |
|
291 </p> |
|
292 <div align="right"><a href="#top">Up</a></div> |
|
293 <hr /> |
|
294 </body></html> |