|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.MicroPython.AddEditDevicesDialog</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.AddEditDevicesDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a dialog to add or edit data of unknown MicroPython |
|
27 devices. |
|
28 </p> |
|
29 <h3>Global Attributes</h3> |
|
30 |
|
31 <table> |
|
32 <tr><td>None</td></tr> |
|
33 </table> |
|
34 <h3>Classes</h3> |
|
35 |
|
36 <table> |
|
37 |
|
38 <tr> |
|
39 <td><a href="#AddEditDevicesDialog">AddEditDevicesDialog</a></td> |
|
40 <td>Class implementing a dialog to add or edit data of unknown MicroPython devices.</td> |
|
41 </tr> |
|
42 </table> |
|
43 <h3>Functions</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <hr /> |
|
49 <hr /> |
|
50 <a NAME="AddEditDevicesDialog" ID="AddEditDevicesDialog"></a> |
|
51 <h2>AddEditDevicesDialog</h2> |
|
52 |
|
53 <p> |
|
54 Class implementing a dialog to add or edit data of unknown MicroPython |
|
55 devices. |
|
56 </p> |
|
57 <h3>Derived from</h3> |
|
58 QDialog, Ui_AddEditDevicesDialog |
|
59 <h3>Class Attributes</h3> |
|
60 |
|
61 <table> |
|
62 <tr><td>None</td></tr> |
|
63 </table> |
|
64 <h3>Class Methods</h3> |
|
65 |
|
66 <table> |
|
67 <tr><td>None</td></tr> |
|
68 </table> |
|
69 <h3>Methods</h3> |
|
70 |
|
71 <table> |
|
72 |
|
73 <tr> |
|
74 <td><a href="#AddEditDevicesDialog.__init__">AddEditDevicesDialog</a></td> |
|
75 <td>Constructor</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#AddEditDevicesDialog.getDeviceDict">getDeviceDict</a></td> |
|
79 <td>Public method to get the entered data as a dictionary.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#AddEditDevicesDialog.on_deviceTypeComboBox_currentIndexChanged">on_deviceTypeComboBox_currentIndexChanged</a></td> |
|
83 <td>Private slot to handle the selection of a device type.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#AddEditDevicesDialog.on_reportButton_clicked">on_reportButton_clicked</a></td> |
|
87 <td>Private slot to report the entered data to the eric-bugs email address.</td> |
|
88 </tr> |
|
89 </table> |
|
90 <h3>Static Methods</h3> |
|
91 |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 |
|
96 <a NAME="AddEditDevicesDialog.__init__" ID="AddEditDevicesDialog.__init__"></a> |
|
97 <h4>AddEditDevicesDialog (Constructor)</h4> |
|
98 <b>AddEditDevicesDialog</b>(<i>vid=0, pid=0, description=0, deviceData=None, parent=None</i>) |
|
99 |
|
100 <p> |
|
101 Constructor |
|
102 </p> |
|
103 <p> |
|
104 Note: Either vid and pid and description or deviceData dictionary |
|
105 must be given. |
|
106 </p> |
|
107 <dl> |
|
108 |
|
109 <dt><i>vid</i> (int (optional))</dt> |
|
110 <dd> |
|
111 vendor ID of the device (defaults to 0) |
|
112 </dd> |
|
113 <dt><i>pid</i> (int (optional))</dt> |
|
114 <dd> |
|
115 product ID of the device (defaults to 0) |
|
116 </dd> |
|
117 <dt><i>description</i> (str (optional))</dt> |
|
118 <dd> |
|
119 description for the device (defaults to "") |
|
120 </dd> |
|
121 <dt><i>deviceData</i> (dict (optional))</dt> |
|
122 <dd> |
|
123 type of the device (defaults to None) |
|
124 </dd> |
|
125 <dt><i>parent</i> (QWidget (optional))</dt> |
|
126 <dd> |
|
127 reference to the parent widget (defaults to None) |
|
128 </dd> |
|
129 </dl> |
|
130 <a NAME="AddEditDevicesDialog.getDeviceDict" ID="AddEditDevicesDialog.getDeviceDict"></a> |
|
131 <h4>AddEditDevicesDialog.getDeviceDict</h4> |
|
132 <b>getDeviceDict</b>(<i></i>) |
|
133 |
|
134 <p> |
|
135 Public method to get the entered data as a dictionary. |
|
136 </p> |
|
137 <dl> |
|
138 <dt>Return:</dt> |
|
139 <dd> |
|
140 dictionary containing the entered data |
|
141 </dd> |
|
142 </dl> |
|
143 <dl> |
|
144 <dt>Return Type:</dt> |
|
145 <dd> |
|
146 dict |
|
147 </dd> |
|
148 </dl> |
|
149 <a NAME="AddEditDevicesDialog.on_deviceTypeComboBox_currentIndexChanged" ID="AddEditDevicesDialog.on_deviceTypeComboBox_currentIndexChanged"></a> |
|
150 <h4>AddEditDevicesDialog.on_deviceTypeComboBox_currentIndexChanged</h4> |
|
151 <b>on_deviceTypeComboBox_currentIndexChanged</b>(<i>index</i>) |
|
152 |
|
153 <p> |
|
154 Private slot to handle the selection of a device type. |
|
155 </p> |
|
156 <dl> |
|
157 |
|
158 <dt><i>index</i> (int)</dt> |
|
159 <dd> |
|
160 index of the current item |
|
161 </dd> |
|
162 </dl> |
|
163 <a NAME="AddEditDevicesDialog.on_reportButton_clicked" ID="AddEditDevicesDialog.on_reportButton_clicked"></a> |
|
164 <h4>AddEditDevicesDialog.on_reportButton_clicked</h4> |
|
165 <b>on_reportButton_clicked</b>(<i></i>) |
|
166 |
|
167 <p> |
|
168 Private slot to report the entered data to the eric-bugs email address. |
|
169 </p> |
|
170 <div align="right"><a href="#top">Up</a></div> |
|
171 <hr /> |
|
172 </body></html> |