|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Network.IRC.IrcNetworkEditDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Network.IRC.IrcNetworkEditDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog for editing IRC network definitions. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#IrcNetworkEditDialog">IrcNetworkEditDialog</a></td> |
|
25 <td>Class implementing a dialog for editing IRC network definitions.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="IrcNetworkEditDialog" ID="IrcNetworkEditDialog"></a> |
|
36 <h2>IrcNetworkEditDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog for editing IRC network definitions. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_IrcNetworkEditDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#IrcNetworkEditDialog.__init__">IrcNetworkEditDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#IrcNetworkEditDialog.__editChannel">__editChannel</a></td> |
|
63 <td>Private method to edit a channel.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#IrcNetworkEditDialog.__refreshIdentityCombo">__refreshIdentityCombo</a></td> |
|
67 <td>Private method to refresh the identity combo.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#IrcNetworkEditDialog.__updateOkButton">__updateOkButton</a></td> |
|
71 <td>Private method to update the OK button state.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#IrcNetworkEditDialog.getNetwork">getNetwork</a></td> |
|
75 <td>Public method to get the network object.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#IrcNetworkEditDialog.on_addChannelButton_clicked">on_addChannelButton_clicked</a></td> |
|
79 <td>Private slot to add a channel.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#IrcNetworkEditDialog.on_channelList_itemActivated">on_channelList_itemActivated</a></td> |
|
83 <td>Private slot to handle the activation of a channel entry.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#IrcNetworkEditDialog.on_channelList_itemSelectionChanged">on_channelList_itemSelectionChanged</a></td> |
|
87 <td>Private slot to handle changes of the selection of channels.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#IrcNetworkEditDialog.on_deleteChannelButton_clicked">on_deleteChannelButton_clicked</a></td> |
|
91 <td>Private slot to delete the selected channel.</td> |
|
92 </tr> |
|
93 <tr> |
|
94 <td><a href="#IrcNetworkEditDialog.on_editChannelButton_clicked">on_editChannelButton_clicked</a></td> |
|
95 <td>Private slot to edit the selected channel.</td> |
|
96 </tr> |
|
97 <tr> |
|
98 <td><a href="#IrcNetworkEditDialog.on_editIdentitiesButton_clicked">on_editIdentitiesButton_clicked</a></td> |
|
99 <td>Private slot to edit the identities.</td> |
|
100 </tr> |
|
101 <tr> |
|
102 <td><a href="#IrcNetworkEditDialog.on_editServerButton_clicked">on_editServerButton_clicked</a></td> |
|
103 <td>Private slot to edit the server configuration.</td> |
|
104 </tr> |
|
105 <tr> |
|
106 <td><a href="#IrcNetworkEditDialog.on_identityCombo_currentTextChanged">on_identityCombo_currentTextChanged</a></td> |
|
107 <td>Private slot to handle the selection of an identity.</td> |
|
108 </tr> |
|
109 <tr> |
|
110 <td><a href="#IrcNetworkEditDialog.on_networkEdit_textChanged">on_networkEdit_textChanged</a></td> |
|
111 <td>Private slot to handle changes of the network name.</td> |
|
112 </tr> |
|
113 <tr> |
|
114 <td><a href="#IrcNetworkEditDialog.on_serverEdit_textChanged">on_serverEdit_textChanged</a></td> |
|
115 <td>Private slot to handle changes of the server name.</td> |
|
116 </tr> |
|
117 </table> |
|
118 <h3>Static Methods</h3> |
|
119 |
|
120 <table> |
|
121 <tr><td>None</td></tr> |
|
122 </table> |
|
123 |
|
124 <a NAME="IrcNetworkEditDialog.__init__" ID="IrcNetworkEditDialog.__init__"></a> |
|
125 <h4>IrcNetworkEditDialog (Constructor)</h4> |
|
126 <b>IrcNetworkEditDialog</b>(<i>manager, networkName, parent=None</i>) |
|
127 |
|
128 <p> |
|
129 Constructor |
|
130 </p> |
|
131 <dl> |
|
132 |
|
133 <dt><i>manager</i></dt> |
|
134 <dd> |
|
135 reference to the IRC network manager object |
|
136 (IrcNetworkManager) |
|
137 </dd> |
|
138 <dt><i>networkName</i></dt> |
|
139 <dd> |
|
140 name of the network to work on (string) |
|
141 </dd> |
|
142 <dt><i>parent</i></dt> |
|
143 <dd> |
|
144 reference to the parent widget (QWidget) |
|
145 </dd> |
|
146 </dl> |
|
147 <a NAME="IrcNetworkEditDialog.__editChannel" ID="IrcNetworkEditDialog.__editChannel"></a> |
|
148 <h4>IrcNetworkEditDialog.__editChannel</h4> |
|
149 <b>__editChannel</b>(<i>itm</i>) |
|
150 |
|
151 <p> |
|
152 Private method to edit a channel. |
|
153 </p> |
|
154 <dl> |
|
155 |
|
156 <dt><i>itm</i></dt> |
|
157 <dd> |
|
158 reference to the item to be edited (QTreeWidgetItem) |
|
159 </dd> |
|
160 </dl> |
|
161 <a NAME="IrcNetworkEditDialog.__refreshIdentityCombo" ID="IrcNetworkEditDialog.__refreshIdentityCombo"></a> |
|
162 <h4>IrcNetworkEditDialog.__refreshIdentityCombo</h4> |
|
163 <b>__refreshIdentityCombo</b>(<i>currentIdentity</i>) |
|
164 |
|
165 <p> |
|
166 Private method to refresh the identity combo. |
|
167 </p> |
|
168 <dl> |
|
169 |
|
170 <dt><i>currentIdentity</i></dt> |
|
171 <dd> |
|
172 name of the identity to select (string) |
|
173 </dd> |
|
174 </dl> |
|
175 <a NAME="IrcNetworkEditDialog.__updateOkButton" ID="IrcNetworkEditDialog.__updateOkButton"></a> |
|
176 <h4>IrcNetworkEditDialog.__updateOkButton</h4> |
|
177 <b>__updateOkButton</b>(<i></i>) |
|
178 |
|
179 <p> |
|
180 Private method to update the OK button state. |
|
181 </p> |
|
182 <a NAME="IrcNetworkEditDialog.getNetwork" ID="IrcNetworkEditDialog.getNetwork"></a> |
|
183 <h4>IrcNetworkEditDialog.getNetwork</h4> |
|
184 <b>getNetwork</b>(<i></i>) |
|
185 |
|
186 <p> |
|
187 Public method to get the network object. |
|
188 </p> |
|
189 <dl> |
|
190 <dt>Return:</dt> |
|
191 <dd> |
|
192 edited network object (IrcNetwork) |
|
193 </dd> |
|
194 </dl> |
|
195 <a NAME="IrcNetworkEditDialog.on_addChannelButton_clicked" ID="IrcNetworkEditDialog.on_addChannelButton_clicked"></a> |
|
196 <h4>IrcNetworkEditDialog.on_addChannelButton_clicked</h4> |
|
197 <b>on_addChannelButton_clicked</b>(<i></i>) |
|
198 |
|
199 <p> |
|
200 Private slot to add a channel. |
|
201 </p> |
|
202 <a NAME="IrcNetworkEditDialog.on_channelList_itemActivated" ID="IrcNetworkEditDialog.on_channelList_itemActivated"></a> |
|
203 <h4>IrcNetworkEditDialog.on_channelList_itemActivated</h4> |
|
204 <b>on_channelList_itemActivated</b>(<i>item, column</i>) |
|
205 |
|
206 <p> |
|
207 Private slot to handle the activation of a channel entry. |
|
208 </p> |
|
209 <dl> |
|
210 |
|
211 <dt><i>item</i></dt> |
|
212 <dd> |
|
213 reference to the activated item (QTreeWidgetItem) |
|
214 </dd> |
|
215 <dt><i>column</i></dt> |
|
216 <dd> |
|
217 column the activation occurred in (integer) |
|
218 </dd> |
|
219 </dl> |
|
220 <a NAME="IrcNetworkEditDialog.on_channelList_itemSelectionChanged" ID="IrcNetworkEditDialog.on_channelList_itemSelectionChanged"></a> |
|
221 <h4>IrcNetworkEditDialog.on_channelList_itemSelectionChanged</h4> |
|
222 <b>on_channelList_itemSelectionChanged</b>(<i></i>) |
|
223 |
|
224 <p> |
|
225 Private slot to handle changes of the selection of channels. |
|
226 </p> |
|
227 <a NAME="IrcNetworkEditDialog.on_deleteChannelButton_clicked" ID="IrcNetworkEditDialog.on_deleteChannelButton_clicked"></a> |
|
228 <h4>IrcNetworkEditDialog.on_deleteChannelButton_clicked</h4> |
|
229 <b>on_deleteChannelButton_clicked</b>(<i></i>) |
|
230 |
|
231 <p> |
|
232 Private slot to delete the selected channel. |
|
233 </p> |
|
234 <a NAME="IrcNetworkEditDialog.on_editChannelButton_clicked" ID="IrcNetworkEditDialog.on_editChannelButton_clicked"></a> |
|
235 <h4>IrcNetworkEditDialog.on_editChannelButton_clicked</h4> |
|
236 <b>on_editChannelButton_clicked</b>(<i></i>) |
|
237 |
|
238 <p> |
|
239 Private slot to edit the selected channel. |
|
240 </p> |
|
241 <a NAME="IrcNetworkEditDialog.on_editIdentitiesButton_clicked" ID="IrcNetworkEditDialog.on_editIdentitiesButton_clicked"></a> |
|
242 <h4>IrcNetworkEditDialog.on_editIdentitiesButton_clicked</h4> |
|
243 <b>on_editIdentitiesButton_clicked</b>(<i></i>) |
|
244 |
|
245 <p> |
|
246 Private slot to edit the identities. |
|
247 </p> |
|
248 <a NAME="IrcNetworkEditDialog.on_editServerButton_clicked" ID="IrcNetworkEditDialog.on_editServerButton_clicked"></a> |
|
249 <h4>IrcNetworkEditDialog.on_editServerButton_clicked</h4> |
|
250 <b>on_editServerButton_clicked</b>(<i></i>) |
|
251 |
|
252 <p> |
|
253 Private slot to edit the server configuration. |
|
254 </p> |
|
255 <a NAME="IrcNetworkEditDialog.on_identityCombo_currentTextChanged" ID="IrcNetworkEditDialog.on_identityCombo_currentTextChanged"></a> |
|
256 <h4>IrcNetworkEditDialog.on_identityCombo_currentTextChanged</h4> |
|
257 <b>on_identityCombo_currentTextChanged</b>(<i>identity</i>) |
|
258 |
|
259 <p> |
|
260 Private slot to handle the selection of an identity. |
|
261 </p> |
|
262 <dl> |
|
263 |
|
264 <dt><i>identity</i> (str)</dt> |
|
265 <dd> |
|
266 selected identity |
|
267 </dd> |
|
268 </dl> |
|
269 <a NAME="IrcNetworkEditDialog.on_networkEdit_textChanged" ID="IrcNetworkEditDialog.on_networkEdit_textChanged"></a> |
|
270 <h4>IrcNetworkEditDialog.on_networkEdit_textChanged</h4> |
|
271 <b>on_networkEdit_textChanged</b>(<i>txt</i>) |
|
272 |
|
273 <p> |
|
274 Private slot to handle changes of the network name. |
|
275 </p> |
|
276 <dl> |
|
277 |
|
278 <dt><i>txt</i></dt> |
|
279 <dd> |
|
280 text entered into the network name edit (string) |
|
281 </dd> |
|
282 </dl> |
|
283 <a NAME="IrcNetworkEditDialog.on_serverEdit_textChanged" ID="IrcNetworkEditDialog.on_serverEdit_textChanged"></a> |
|
284 <h4>IrcNetworkEditDialog.on_serverEdit_textChanged</h4> |
|
285 <b>on_serverEdit_textChanged</b>(<i>txt</i>) |
|
286 |
|
287 <p> |
|
288 Private slot to handle changes of the server name. |
|
289 </p> |
|
290 <dl> |
|
291 |
|
292 <dt><i>txt</i></dt> |
|
293 <dd> |
|
294 text entered into the server name edit (string) |
|
295 </dd> |
|
296 </dl> |
|
297 <div align="right"><a href="#top">Up</a></div> |
|
298 <hr /> |
|
299 </body></html> |