5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.Preferences.ConfigurationPages.EditorAPIsPage</h1> |
9 <h1>eric7.Preferences.ConfigurationPages.EditorAPIsPage</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing the Editor APIs configuration page. |
11 Module implementing the Editor APIs configuration page. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#EditorAPIsPage">EditorAPIsPage</a></td> |
22 <td><a href="#EditorAPIsPage">EditorAPIsPage</a></td> |
25 <td>Class implementing the Editor APIs configuration page.</td> |
23 <td>Class implementing the Editor APIs configuration page.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
|
31 |
|
32 <tr> |
29 <tr> |
33 <td><a href="#create">create</a></td> |
30 <td><a href="#create">create</a></td> |
34 <td>Module function to create the configuration page.</td> |
31 <td>Module function to create the configuration page.</td> |
35 </tr> |
32 </tr> |
36 </table> |
33 </table> |
|
34 |
37 <hr /> |
35 <hr /> |
38 <hr /> |
36 <hr /> |
39 <a NAME="EditorAPIsPage" ID="EditorAPIsPage"></a> |
37 <a NAME="EditorAPIsPage" ID="EditorAPIsPage"></a> |
40 <h2>EditorAPIsPage</h2> |
38 <h2>EditorAPIsPage</h2> |
41 |
|
42 <p> |
39 <p> |
43 Class implementing the Editor APIs configuration page. |
40 Class implementing the Editor APIs configuration page. |
44 </p> |
41 </p> |
|
42 |
45 <h3>Derived from</h3> |
43 <h3>Derived from</h3> |
46 ConfigurationPageBase, Ui_EditorAPIsPage |
44 ConfigurationPageBase, Ui_EditorAPIsPage |
47 <h3>Class Attributes</h3> |
45 <h3>Class Attributes</h3> |
48 |
|
49 <table> |
46 <table> |
50 <tr><td>None</td></tr> |
47 <tr><td>None</td></tr> |
51 </table> |
48 </table> |
|
49 |
52 <h3>Class Methods</h3> |
50 <h3>Class Methods</h3> |
53 |
|
54 <table> |
51 <table> |
55 <tr><td>None</td></tr> |
52 <tr><td>None</td></tr> |
56 </table> |
53 </table> |
|
54 |
57 <h3>Methods</h3> |
55 <h3>Methods</h3> |
58 |
56 <table> |
59 <table> |
|
60 |
|
61 <tr> |
57 <tr> |
62 <td><a href="#EditorAPIsPage.__init__">EditorAPIsPage</a></td> |
58 <td><a href="#EditorAPIsPage.__init__">EditorAPIsPage</a></td> |
63 <td>Constructor</td> |
59 <td>Constructor</td> |
64 </tr> |
60 </tr> |
65 <tr> |
61 <tr> |
183 </dd> |
180 </dd> |
184 </dl> |
181 </dl> |
185 <a NAME="EditorAPIsPage.__apiPreparationCancelled" ID="EditorAPIsPage.__apiPreparationCancelled"></a> |
182 <a NAME="EditorAPIsPage.__apiPreparationCancelled" ID="EditorAPIsPage.__apiPreparationCancelled"></a> |
186 <h4>EditorAPIsPage.__apiPreparationCancelled</h4> |
183 <h4>EditorAPIsPage.__apiPreparationCancelled</h4> |
187 <b>__apiPreparationCancelled</b>(<i></i>) |
184 <b>__apiPreparationCancelled</b>(<i></i>) |
188 |
|
189 <p> |
185 <p> |
190 Private slot called after the API preparation has been cancelled. |
186 Private slot called after the API preparation has been cancelled. |
191 </p> |
187 </p> |
|
188 |
192 <a NAME="EditorAPIsPage.__apiPreparationFinished" ID="EditorAPIsPage.__apiPreparationFinished"></a> |
189 <a NAME="EditorAPIsPage.__apiPreparationFinished" ID="EditorAPIsPage.__apiPreparationFinished"></a> |
193 <h4>EditorAPIsPage.__apiPreparationFinished</h4> |
190 <h4>EditorAPIsPage.__apiPreparationFinished</h4> |
194 <b>__apiPreparationFinished</b>(<i></i>) |
191 <b>__apiPreparationFinished</b>(<i></i>) |
195 |
|
196 <p> |
192 <p> |
197 Private method called after the API preparation has finished. |
193 Private method called after the API preparation has finished. |
198 </p> |
194 </p> |
|
195 |
199 <a NAME="EditorAPIsPage.__apiPreparationStarted" ID="EditorAPIsPage.__apiPreparationStarted"></a> |
196 <a NAME="EditorAPIsPage.__apiPreparationStarted" ID="EditorAPIsPage.__apiPreparationStarted"></a> |
200 <h4>EditorAPIsPage.__apiPreparationStarted</h4> |
197 <h4>EditorAPIsPage.__apiPreparationStarted</h4> |
201 <b>__apiPreparationStarted</b>(<i></i>) |
198 <b>__apiPreparationStarted</b>(<i></i>) |
202 |
|
203 <p> |
199 <p> |
204 Private method called after the API preparation has started. |
200 Private method called after the API preparation has started. |
205 </p> |
201 </p> |
|
202 |
206 <a NAME="EditorAPIsPage.__editorGetApisFromApiList" ID="EditorAPIsPage.__editorGetApisFromApiList"></a> |
203 <a NAME="EditorAPIsPage.__editorGetApisFromApiList" ID="EditorAPIsPage.__editorGetApisFromApiList"></a> |
207 <h4>EditorAPIsPage.__editorGetApisFromApiList</h4> |
204 <h4>EditorAPIsPage.__editorGetApisFromApiList</h4> |
208 <b>__editorGetApisFromApiList</b>(<i></i>) |
205 <b>__editorGetApisFromApiList</b>(<i></i>) |
209 |
|
210 <p> |
206 <p> |
211 Private slot to retrieve the api filenames from the list. |
207 Private slot to retrieve the api filenames from the list. |
212 </p> |
208 </p> |
|
209 |
213 <dl> |
210 <dl> |
214 <dt>Return:</dt> |
211 <dt>Return:</dt> |
215 <dd> |
212 <dd> |
216 list of api filenames |
213 list of api filenames |
217 </dd> |
214 </dd> |
223 </dd> |
220 </dd> |
224 </dl> |
221 </dl> |
225 <a NAME="EditorAPIsPage.__fillApisList" ID="EditorAPIsPage.__fillApisList"></a> |
222 <a NAME="EditorAPIsPage.__fillApisList" ID="EditorAPIsPage.__fillApisList"></a> |
226 <h4>EditorAPIsPage.__fillApisList</h4> |
223 <h4>EditorAPIsPage.__fillApisList</h4> |
227 <b>__fillApisList</b>(<i></i>) |
224 <b>__fillApisList</b>(<i></i>) |
228 |
|
229 <p> |
225 <p> |
230 Private slot to fill the list of API files. |
226 Private slot to fill the list of API files. |
231 </p> |
227 </p> |
|
228 |
232 <a NAME="EditorAPIsPage.__fillProjectTypeComboBox" ID="EditorAPIsPage.__fillProjectTypeComboBox"></a> |
229 <a NAME="EditorAPIsPage.__fillProjectTypeComboBox" ID="EditorAPIsPage.__fillProjectTypeComboBox"></a> |
233 <h4>EditorAPIsPage.__fillProjectTypeComboBox</h4> |
230 <h4>EditorAPIsPage.__fillProjectTypeComboBox</h4> |
234 <b>__fillProjectTypeComboBox</b>(<i>language</i>) |
231 <b>__fillProjectTypeComboBox</b>(<i>language</i>) |
235 |
|
236 <p> |
232 <p> |
237 Private slot to fill the selection of available project types for the |
233 Private slot to fill the selection of available project types for the |
238 given language. |
234 given language. |
239 </p> |
235 </p> |
|
236 |
240 <dl> |
237 <dl> |
241 |
238 |
242 <dt><i>language</i> (str)</dt> |
239 <dt><i>language</i> (str)</dt> |
243 <dd> |
240 <dd> |
244 selected API language |
241 selected API language |
245 </dd> |
242 </dd> |
246 </dl> |
243 </dl> |
247 <a NAME="EditorAPIsPage.on_addApiFileButton_clicked" ID="EditorAPIsPage.on_addApiFileButton_clicked"></a> |
244 <a NAME="EditorAPIsPage.on_addApiFileButton_clicked" ID="EditorAPIsPage.on_addApiFileButton_clicked"></a> |
248 <h4>EditorAPIsPage.on_addApiFileButton_clicked</h4> |
245 <h4>EditorAPIsPage.on_addApiFileButton_clicked</h4> |
249 <b>on_addApiFileButton_clicked</b>(<i></i>) |
246 <b>on_addApiFileButton_clicked</b>(<i></i>) |
250 |
|
251 <p> |
247 <p> |
252 Private slot to add the api file displayed to the listbox. |
248 Private slot to add the api file displayed to the listbox. |
253 </p> |
249 </p> |
|
250 |
254 <a NAME="EditorAPIsPage.on_addInstalledApiFileButton_clicked" ID="EditorAPIsPage.on_addInstalledApiFileButton_clicked"></a> |
251 <a NAME="EditorAPIsPage.on_addInstalledApiFileButton_clicked" ID="EditorAPIsPage.on_addInstalledApiFileButton_clicked"></a> |
255 <h4>EditorAPIsPage.on_addInstalledApiFileButton_clicked</h4> |
252 <h4>EditorAPIsPage.on_addInstalledApiFileButton_clicked</h4> |
256 <b>on_addInstalledApiFileButton_clicked</b>(<i></i>) |
253 <b>on_addInstalledApiFileButton_clicked</b>(<i></i>) |
257 |
|
258 <p> |
254 <p> |
259 Private slot to add an API file from the list of installed API files |
255 Private slot to add an API file from the list of installed API files |
260 for the selected lexer language. |
256 for the selected lexer language. |
261 </p> |
257 </p> |
|
258 |
262 <a NAME="EditorAPIsPage.on_addPluginApiFileButton_clicked" ID="EditorAPIsPage.on_addPluginApiFileButton_clicked"></a> |
259 <a NAME="EditorAPIsPage.on_addPluginApiFileButton_clicked" ID="EditorAPIsPage.on_addPluginApiFileButton_clicked"></a> |
263 <h4>EditorAPIsPage.on_addPluginApiFileButton_clicked</h4> |
260 <h4>EditorAPIsPage.on_addPluginApiFileButton_clicked</h4> |
264 <b>on_addPluginApiFileButton_clicked</b>(<i></i>) |
261 <b>on_addPluginApiFileButton_clicked</b>(<i></i>) |
265 |
|
266 <p> |
262 <p> |
267 Private slot to add an API file from the list of API files installed |
263 Private slot to add an API file from the list of API files installed |
268 by plugins for the selected lexer language. |
264 by plugins for the selected lexer language. |
269 </p> |
265 </p> |
|
266 |
270 <a NAME="EditorAPIsPage.on_apiFilePicker_textChanged" ID="EditorAPIsPage.on_apiFilePicker_textChanged"></a> |
267 <a NAME="EditorAPIsPage.on_apiFilePicker_textChanged" ID="EditorAPIsPage.on_apiFilePicker_textChanged"></a> |
271 <h4>EditorAPIsPage.on_apiFilePicker_textChanged</h4> |
268 <h4>EditorAPIsPage.on_apiFilePicker_textChanged</h4> |
272 <b>on_apiFilePicker_textChanged</b>(<i>txt</i>) |
269 <b>on_apiFilePicker_textChanged</b>(<i>txt</i>) |
273 |
|
274 <p> |
270 <p> |
275 Private slot to handle the entering of an API file name. |
271 Private slot to handle the entering of an API file name. |
276 </p> |
272 </p> |
|
273 |
277 <dl> |
274 <dl> |
278 |
275 |
279 <dt><i>txt</i> (str)</dt> |
276 <dt><i>txt</i> (str)</dt> |
280 <dd> |
277 <dd> |
281 text of the line edit |
278 text of the line edit |
282 </dd> |
279 </dd> |
283 </dl> |
280 </dl> |
284 <a NAME="EditorAPIsPage.on_apiLanguageComboBox_activated" ID="EditorAPIsPage.on_apiLanguageComboBox_activated"></a> |
281 <a NAME="EditorAPIsPage.on_apiLanguageComboBox_activated" ID="EditorAPIsPage.on_apiLanguageComboBox_activated"></a> |
285 <h4>EditorAPIsPage.on_apiLanguageComboBox_activated</h4> |
282 <h4>EditorAPIsPage.on_apiLanguageComboBox_activated</h4> |
286 <b>on_apiLanguageComboBox_activated</b>(<i>index</i>) |
283 <b>on_apiLanguageComboBox_activated</b>(<i>index</i>) |
287 |
|
288 <p> |
284 <p> |
289 Private slot to fill the api listbox of the api page. |
285 Private slot to fill the api listbox of the api page. |
290 </p> |
286 </p> |
|
287 |
291 <dl> |
288 <dl> |
292 |
289 |
293 <dt><i>index</i> (int)</dt> |
290 <dt><i>index</i> (int)</dt> |
294 <dd> |
291 <dd> |
295 index of the selected entry |
292 index of the selected entry |
296 </dd> |
293 </dd> |
297 </dl> |
294 </dl> |
298 <a NAME="EditorAPIsPage.on_apiList_itemSelectionChanged" ID="EditorAPIsPage.on_apiList_itemSelectionChanged"></a> |
295 <a NAME="EditorAPIsPage.on_apiList_itemSelectionChanged" ID="EditorAPIsPage.on_apiList_itemSelectionChanged"></a> |
299 <h4>EditorAPIsPage.on_apiList_itemSelectionChanged</h4> |
296 <h4>EditorAPIsPage.on_apiList_itemSelectionChanged</h4> |
300 <b>on_apiList_itemSelectionChanged</b>(<i></i>) |
297 <b>on_apiList_itemSelectionChanged</b>(<i></i>) |
301 |
|
302 <p> |
298 <p> |
303 Private slot to react on changes of API selections. |
299 Private slot to react on changes of API selections. |
304 </p> |
300 </p> |
|
301 |
305 <a NAME="EditorAPIsPage.on_deleteApiFileButton_clicked" ID="EditorAPIsPage.on_deleteApiFileButton_clicked"></a> |
302 <a NAME="EditorAPIsPage.on_deleteApiFileButton_clicked" ID="EditorAPIsPage.on_deleteApiFileButton_clicked"></a> |
306 <h4>EditorAPIsPage.on_deleteApiFileButton_clicked</h4> |
303 <h4>EditorAPIsPage.on_deleteApiFileButton_clicked</h4> |
307 <b>on_deleteApiFileButton_clicked</b>(<i></i>) |
304 <b>on_deleteApiFileButton_clicked</b>(<i></i>) |
308 |
|
309 <p> |
305 <p> |
310 Private slot to delete the currently selected file of the listbox. |
306 Private slot to delete the currently selected file of the listbox. |
311 </p> |
307 </p> |
|
308 |
312 <a NAME="EditorAPIsPage.on_prepareApiButton_clicked" ID="EditorAPIsPage.on_prepareApiButton_clicked"></a> |
309 <a NAME="EditorAPIsPage.on_prepareApiButton_clicked" ID="EditorAPIsPage.on_prepareApiButton_clicked"></a> |
313 <h4>EditorAPIsPage.on_prepareApiButton_clicked</h4> |
310 <h4>EditorAPIsPage.on_prepareApiButton_clicked</h4> |
314 <b>on_prepareApiButton_clicked</b>(<i></i>) |
311 <b>on_prepareApiButton_clicked</b>(<i></i>) |
315 |
|
316 <p> |
312 <p> |
317 Private slot to prepare the API file for the currently selected |
313 Private slot to prepare the API file for the currently selected |
318 language. |
314 language. |
319 </p> |
315 </p> |
|
316 |
320 <a NAME="EditorAPIsPage.on_projectTypeComboBox_activated" ID="EditorAPIsPage.on_projectTypeComboBox_activated"></a> |
317 <a NAME="EditorAPIsPage.on_projectTypeComboBox_activated" ID="EditorAPIsPage.on_projectTypeComboBox_activated"></a> |
321 <h4>EditorAPIsPage.on_projectTypeComboBox_activated</h4> |
318 <h4>EditorAPIsPage.on_projectTypeComboBox_activated</h4> |
322 <b>on_projectTypeComboBox_activated</b>(<i>index</i>) |
319 <b>on_projectTypeComboBox_activated</b>(<i>index</i>) |
323 |
|
324 <p> |
320 <p> |
325 Private slot to handle the selection of a project type. |
321 Private slot to handle the selection of a project type. |
326 </p> |
322 </p> |
|
323 |
327 <dl> |
324 <dl> |
328 |
325 |
329 <dt><i>index</i> (str)</dt> |
326 <dt><i>index</i> (str)</dt> |
330 <dd> |
327 <dd> |
331 index of the selected entry |
328 index of the selected entry |
332 </dd> |
329 </dd> |
333 </dl> |
330 </dl> |
334 <a NAME="EditorAPIsPage.save" ID="EditorAPIsPage.save"></a> |
331 <a NAME="EditorAPIsPage.save" ID="EditorAPIsPage.save"></a> |
335 <h4>EditorAPIsPage.save</h4> |
332 <h4>EditorAPIsPage.save</h4> |
336 <b>save</b>(<i></i>) |
333 <b>save</b>(<i></i>) |
337 |
|
338 <p> |
334 <p> |
339 Public slot to save the Editor APIs configuration. |
335 Public slot to save the Editor APIs configuration. |
340 </p> |
336 </p> |
|
337 |
341 <a NAME="EditorAPIsPage.saveState" ID="EditorAPIsPage.saveState"></a> |
338 <a NAME="EditorAPIsPage.saveState" ID="EditorAPIsPage.saveState"></a> |
342 <h4>EditorAPIsPage.saveState</h4> |
339 <h4>EditorAPIsPage.saveState</h4> |
343 <b>saveState</b>(<i></i>) |
340 <b>saveState</b>(<i></i>) |
344 |
|
345 <p> |
341 <p> |
346 Public method to save the current state of the widget. |
342 Public method to save the current state of the widget. |
347 </p> |
343 </p> |
|
344 |
348 <dl> |
345 <dl> |
349 <dt>Return:</dt> |
346 <dt>Return:</dt> |
350 <dd> |
347 <dd> |
351 tuple containing the index of the selected lexer language |
348 tuple containing the index of the selected lexer language |
352 and the index of the selected project type |
349 and the index of the selected project type |