|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric4.Preferences.ConfigurationPages.EditorAPIsPage</title> |
|
6 <style> |
|
7 body { |
|
8 background:white; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #4FA4FF; } |
|
14 h2 { color: white; background: #4FA4FF; } |
|
15 h3 { color: white; background: #00557F; } |
|
16 h4 { color: white; background: #00557F; } |
|
17 |
|
18 a { color: #AA5500; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric4.Preferences.ConfigurationPages.EditorAPIsPage</h1> |
|
24 <p> |
|
25 Module implementing the Editor APIs configuration page. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#EditorAPIsPage">EditorAPIsPage</a></td> |
|
35 <td>Class implementing the Editor APIs configuration page.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr> |
|
41 <td><a href="#create">create</a></td> |
|
42 <td>Module function to create the configuration page.</td> |
|
43 </tr> |
|
44 </table> |
|
45 <hr /><hr /> |
|
46 <a NAME="EditorAPIsPage" ID="EditorAPIsPage"></a> |
|
47 <h2>EditorAPIsPage</h2> |
|
48 <p> |
|
49 Class implementing the Editor APIs configuration page. |
|
50 </p> |
|
51 <h3>Derived from</h3> |
|
52 ConfigurationPageBase, Ui_EditorAPIsPage |
|
53 <h3>Class Attributes</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#EditorAPIsPage.__init__">EditorAPIsPage</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#EditorAPIsPage.__apiPreparationCancelled">__apiPreparationCancelled</a></td> |
|
64 <td>Private slot called after the API preparation has been cancelled.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#EditorAPIsPage.__apiPreparationFinished">__apiPreparationFinished</a></td> |
|
67 <td>Private method called after the API preparation has finished.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#EditorAPIsPage.__apiPreparationStarted">__apiPreparationStarted</a></td> |
|
70 <td>Private method called after the API preparation has started.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#EditorAPIsPage.__editorGetApisFromApiList">__editorGetApisFromApiList</a></td> |
|
73 <td>Private slot to retrieve the api filenames from the list.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#EditorAPIsPage.on_addApiFileButton_clicked">on_addApiFileButton_clicked</a></td> |
|
76 <td>Private slot to add the api file displayed to the listbox.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#EditorAPIsPage.on_addInstalledApiFileButton_clicked">on_addInstalledApiFileButton_clicked</a></td> |
|
79 <td>Private slot to add an API file from the list of installed API files for the selected lexer language.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#EditorAPIsPage.on_addPluginApiFileButton_clicked">on_addPluginApiFileButton_clicked</a></td> |
|
82 <td>Private slot to add an API file from the list of API files installed by plugins for the selected lexer language.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#EditorAPIsPage.on_apiFileButton_clicked">on_apiFileButton_clicked</a></td> |
|
85 <td>Private method to select an api file.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#EditorAPIsPage.on_apiLanguageComboBox_activated">on_apiLanguageComboBox_activated</a></td> |
|
88 <td>Private slot to fill the api listbox of the api page.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#EditorAPIsPage.on_deleteApiFileButton_clicked">on_deleteApiFileButton_clicked</a></td> |
|
91 <td>Private slot to delete the currently selected file of the listbox.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#EditorAPIsPage.on_prepareApiButton_clicked">on_prepareApiButton_clicked</a></td> |
|
94 <td>Private slot to prepare the API file for the currently selected language.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#EditorAPIsPage.save">save</a></td> |
|
97 <td>Public slot to save the Editor APIs configuration.</td> |
|
98 </tr><tr> |
|
99 <td><a href="#EditorAPIsPage.saveState">saveState</a></td> |
|
100 <td>Public method to save the current state of the widget.</td> |
|
101 </tr><tr> |
|
102 <td><a href="#EditorAPIsPage.setState">setState</a></td> |
|
103 <td>Public method to set the state of the widget.</td> |
|
104 </tr> |
|
105 </table> |
|
106 <a NAME="EditorAPIsPage.__init__" ID="EditorAPIsPage.__init__"></a> |
|
107 <h4>EditorAPIsPage (Constructor)</h4> |
|
108 <b>EditorAPIsPage</b>(<i></i>) |
|
109 <p> |
|
110 Constructor |
|
111 </p><a NAME="EditorAPIsPage.__apiPreparationCancelled" ID="EditorAPIsPage.__apiPreparationCancelled"></a> |
|
112 <h4>EditorAPIsPage.__apiPreparationCancelled</h4> |
|
113 <b>__apiPreparationCancelled</b>(<i></i>) |
|
114 <p> |
|
115 Private slot called after the API preparation has been cancelled. |
|
116 </p><a NAME="EditorAPIsPage.__apiPreparationFinished" ID="EditorAPIsPage.__apiPreparationFinished"></a> |
|
117 <h4>EditorAPIsPage.__apiPreparationFinished</h4> |
|
118 <b>__apiPreparationFinished</b>(<i></i>) |
|
119 <p> |
|
120 Private method called after the API preparation has finished. |
|
121 </p><a NAME="EditorAPIsPage.__apiPreparationStarted" ID="EditorAPIsPage.__apiPreparationStarted"></a> |
|
122 <h4>EditorAPIsPage.__apiPreparationStarted</h4> |
|
123 <b>__apiPreparationStarted</b>(<i></i>) |
|
124 <p> |
|
125 Private method called after the API preparation has started. |
|
126 </p><a NAME="EditorAPIsPage.__editorGetApisFromApiList" ID="EditorAPIsPage.__editorGetApisFromApiList"></a> |
|
127 <h4>EditorAPIsPage.__editorGetApisFromApiList</h4> |
|
128 <b>__editorGetApisFromApiList</b>(<i></i>) |
|
129 <p> |
|
130 Private slot to retrieve the api filenames from the list. |
|
131 </p><dl> |
|
132 <dt>Returns:</dt> |
|
133 <dd> |
|
134 list of api filenames (list of strings) |
|
135 </dd> |
|
136 </dl><a NAME="EditorAPIsPage.on_addApiFileButton_clicked" ID="EditorAPIsPage.on_addApiFileButton_clicked"></a> |
|
137 <h4>EditorAPIsPage.on_addApiFileButton_clicked</h4> |
|
138 <b>on_addApiFileButton_clicked</b>(<i></i>) |
|
139 <p> |
|
140 Private slot to add the api file displayed to the listbox. |
|
141 </p><a NAME="EditorAPIsPage.on_addInstalledApiFileButton_clicked" ID="EditorAPIsPage.on_addInstalledApiFileButton_clicked"></a> |
|
142 <h4>EditorAPIsPage.on_addInstalledApiFileButton_clicked</h4> |
|
143 <b>on_addInstalledApiFileButton_clicked</b>(<i></i>) |
|
144 <p> |
|
145 Private slot to add an API file from the list of installed API files |
|
146 for the selected lexer language. |
|
147 </p><a NAME="EditorAPIsPage.on_addPluginApiFileButton_clicked" ID="EditorAPIsPage.on_addPluginApiFileButton_clicked"></a> |
|
148 <h4>EditorAPIsPage.on_addPluginApiFileButton_clicked</h4> |
|
149 <b>on_addPluginApiFileButton_clicked</b>(<i></i>) |
|
150 <p> |
|
151 Private slot to add an API file from the list of API files installed |
|
152 by plugins for the selected lexer language. |
|
153 </p><a NAME="EditorAPIsPage.on_apiFileButton_clicked" ID="EditorAPIsPage.on_apiFileButton_clicked"></a> |
|
154 <h4>EditorAPIsPage.on_apiFileButton_clicked</h4> |
|
155 <b>on_apiFileButton_clicked</b>(<i></i>) |
|
156 <p> |
|
157 Private method to select an api file. |
|
158 </p><a NAME="EditorAPIsPage.on_apiLanguageComboBox_activated" ID="EditorAPIsPage.on_apiLanguageComboBox_activated"></a> |
|
159 <h4>EditorAPIsPage.on_apiLanguageComboBox_activated</h4> |
|
160 <b>on_apiLanguageComboBox_activated</b>(<i>language</i>) |
|
161 <p> |
|
162 Private slot to fill the api listbox of the api page. |
|
163 </p><dl> |
|
164 <dt><i>language</i></dt> |
|
165 <dd> |
|
166 selected API language (string) |
|
167 </dd> |
|
168 </dl><a NAME="EditorAPIsPage.on_deleteApiFileButton_clicked" ID="EditorAPIsPage.on_deleteApiFileButton_clicked"></a> |
|
169 <h4>EditorAPIsPage.on_deleteApiFileButton_clicked</h4> |
|
170 <b>on_deleteApiFileButton_clicked</b>(<i></i>) |
|
171 <p> |
|
172 Private slot to delete the currently selected file of the listbox. |
|
173 </p><a NAME="EditorAPIsPage.on_prepareApiButton_clicked" ID="EditorAPIsPage.on_prepareApiButton_clicked"></a> |
|
174 <h4>EditorAPIsPage.on_prepareApiButton_clicked</h4> |
|
175 <b>on_prepareApiButton_clicked</b>(<i></i>) |
|
176 <p> |
|
177 Private slot to prepare the API file for the currently selected language. |
|
178 </p><a NAME="EditorAPIsPage.save" ID="EditorAPIsPage.save"></a> |
|
179 <h4>EditorAPIsPage.save</h4> |
|
180 <b>save</b>(<i></i>) |
|
181 <p> |
|
182 Public slot to save the Editor APIs configuration. |
|
183 </p><a NAME="EditorAPIsPage.saveState" ID="EditorAPIsPage.saveState"></a> |
|
184 <h4>EditorAPIsPage.saveState</h4> |
|
185 <b>saveState</b>(<i></i>) |
|
186 <p> |
|
187 Public method to save the current state of the widget. |
|
188 </p><dl> |
|
189 <dt>Returns:</dt> |
|
190 <dd> |
|
191 index of the selected lexer language (integer) |
|
192 </dd> |
|
193 </dl><a NAME="EditorAPIsPage.setState" ID="EditorAPIsPage.setState"></a> |
|
194 <h4>EditorAPIsPage.setState</h4> |
|
195 <b>setState</b>(<i>state</i>) |
|
196 <p> |
|
197 Public method to set the state of the widget. |
|
198 </p><dl> |
|
199 <dt><i>state</i></dt> |
|
200 <dd> |
|
201 state data generated by saveState |
|
202 </dd> |
|
203 </dl> |
|
204 <div align="right"><a href="#top">Up</a></div> |
|
205 <hr /><hr /> |
|
206 <a NAME="create" ID="create"></a> |
|
207 <h2>create</h2> |
|
208 <b>create</b>(<i>dlg</i>) |
|
209 <p> |
|
210 Module function to create the configuration page. |
|
211 </p><dl> |
|
212 <dt><i>dlg</i></dt> |
|
213 <dd> |
|
214 reference to the configuration dialog |
|
215 </dd> |
|
216 </dl> |
|
217 <div align="right"><a href="#top">Up</a></div> |
|
218 <hr /> |
|
219 </body></html> |