20 </style> |
20 </style> |
21 </head> |
21 </head> |
22 <body><a NAME="top" ID="top"></a> |
22 <body><a NAME="top" ID="top"></a> |
23 <h1>eric5.QScintilla.APIsManager</h1> |
23 <h1>eric5.QScintilla.APIsManager</h1> |
24 <p> |
24 <p> |
25 Module implementing the APIsManager. |
25 Module implementing the APIsManager. |
26 </p> |
26 </p> |
27 <h3>Global Attributes</h3> |
27 <h3>Global Attributes</h3> |
28 <table> |
28 <table> |
29 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
30 </table> |
30 </table> |
31 <h3>Classes</h3> |
31 <h3>Classes</h3> |
32 <table> |
32 <table> |
33 <tr> |
33 <tr> |
34 <td><a href="#APIs">APIs</a></td> |
34 <td><a href="#APIs">APIs</a></td> |
35 <td>Class implementing an API storage entity.</td> |
35 <td>Class implementing an API storage entity.</td> |
36 </tr><tr> |
36 </tr><tr> |
37 <td><a href="#APIsManager">APIsManager</a></td> |
37 <td><a href="#APIsManager">APIsManager</a></td> |
38 <td>Class implementing the APIsManager class, which is the central store for API information used by autocompletion and calltips.</td> |
38 <td>Class implementing the APIsManager class, which is the central store for API information used by autocompletion and calltips.</td> |
39 </tr> |
39 </tr> |
40 </table> |
40 </table> |
41 <h3>Functions</h3> |
41 <h3>Functions</h3> |
42 <table> |
42 <table> |
43 <tr><td>None</td></tr> |
43 <tr><td>None</td></tr> |
44 </table> |
44 </table> |
45 <hr /><hr /> |
45 <hr /><hr /> |
46 <a NAME="APIs" ID="APIs"></a> |
46 <a NAME="APIs" ID="APIs"></a> |
47 <h2>APIs</h2> |
47 <h2>APIs</h2> |
48 <p> |
48 <p> |
49 Class implementing an API storage entity. |
49 Class implementing an API storage entity. |
50 </p><h4>Signals</h4> |
50 </p><h4>Signals</h4> |
51 <dl> |
51 <dl> |
52 <dt>apiPreparationCancelled()</dt> |
52 <dt>apiPreparationCancelled()</dt> |
53 <dd> |
53 <dd> |
54 emitted after the API preparation has been cancelled |
54 emitted after the API preparation has been cancelled |
55 </dd><dt>apiPreparationFinished()</dt> |
55 </dd><dt>apiPreparationFinished()</dt> |
56 <dd> |
56 <dd> |
57 emitted after the API preparation has finished |
57 emitted after the API preparation has finished |
58 </dd><dt>apiPreparationStarted()</dt> |
58 </dd><dt>apiPreparationStarted()</dt> |
59 <dd> |
59 <dd> |
60 emitted after the API preparation has started |
60 emitted after the API preparation has started |
61 </dd> |
61 </dd> |
62 </dl> |
62 </dl> |
63 <h3>Derived from</h3> |
63 <h3>Derived from</h3> |
64 QObject |
64 QObject |
65 <h3>Class Attributes</h3> |
65 <h3>Class Attributes</h3> |
68 </table> |
68 </table> |
69 <h3>Methods</h3> |
69 <h3>Methods</h3> |
70 <table> |
70 <table> |
71 <tr> |
71 <tr> |
72 <td><a href="#APIs.__init__">APIs</a></td> |
72 <td><a href="#APIs.__init__">APIs</a></td> |
73 <td>Constructor</td> |
73 <td>Constructor</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#APIs.__apiPreparationCancelled">__apiPreparationCancelled</a></td> |
75 <td><a href="#APIs.__apiPreparationCancelled">__apiPreparationCancelled</a></td> |
76 <td>Private method called, after the API preparation process has been cancelled.</td> |
76 <td>Private method called, after the API preparation process has been cancelled.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#APIs.__apiPreparationFinished">__apiPreparationFinished</a></td> |
78 <td><a href="#APIs.__apiPreparationFinished">__apiPreparationFinished</a></td> |
79 <td>Private method called to save an API, after it has been prepared.</td> |
79 <td>Private method called to save an API, after it has been prepared.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#APIs.__apiPreparationStarted">__apiPreparationStarted</a></td> |
81 <td><a href="#APIs.__apiPreparationStarted">__apiPreparationStarted</a></td> |
82 <td>Private method called, when the API preparation process started.</td> |
82 <td>Private method called, when the API preparation process started.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#APIs.__defaultPreparedName">__defaultPreparedName</a></td> |
84 <td><a href="#APIs.__defaultPreparedName">__defaultPreparedName</a></td> |
85 <td>Private method returning the default name of a prepared API file.</td> |
85 <td>Private method returning the default name of a prepared API file.</td> |
86 </tr><tr> |
86 </tr><tr> |
87 <td><a href="#APIs.__loadAPIs">__loadAPIs</a></td> |
87 <td><a href="#APIs.__loadAPIs">__loadAPIs</a></td> |
88 <td>Private method to load the APIs.</td> |
88 <td>Private method to load the APIs.</td> |
89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#APIs.cancelPreparation">cancelPreparation</a></td> |
90 <td><a href="#APIs.cancelPreparation">cancelPreparation</a></td> |
91 <td>Public slot to cancel the APIs preparation.</td> |
91 <td>Public slot to cancel the APIs preparation.</td> |
92 </tr><tr> |
92 </tr><tr> |
93 <td><a href="#APIs.getQsciAPIs">getQsciAPIs</a></td> |
93 <td><a href="#APIs.getQsciAPIs">getQsciAPIs</a></td> |
94 <td>Public method to get a reference to QsciAPIs object.</td> |
94 <td>Public method to get a reference to QsciAPIs object.</td> |
95 </tr><tr> |
95 </tr><tr> |
96 <td><a href="#APIs.installedAPIFiles">installedAPIFiles</a></td> |
96 <td><a href="#APIs.installedAPIFiles">installedAPIFiles</a></td> |
97 <td>Public method to get a list of installed API files.</td> |
97 <td>Public method to get a list of installed API files.</td> |
98 </tr><tr> |
98 </tr><tr> |
99 <td><a href="#APIs.prepareAPIs">prepareAPIs</a></td> |
99 <td><a href="#APIs.prepareAPIs">prepareAPIs</a></td> |
100 <td>Public method to prepare the APIs if necessary.</td> |
100 <td>Public method to prepare the APIs if necessary.</td> |
101 </tr><tr> |
101 </tr><tr> |
102 <td><a href="#APIs.reloadAPIs">reloadAPIs</a></td> |
102 <td><a href="#APIs.reloadAPIs">reloadAPIs</a></td> |
103 <td>Public method to reload the API information.</td> |
103 <td>Public method to reload the API information.</td> |
104 </tr> |
104 </tr> |
105 </table> |
105 </table> |
106 <a NAME="APIs.__init__" ID="APIs.__init__"></a> |
106 <a NAME="APIs.__init__" ID="APIs.__init__"></a> |
107 <h4>APIs (Constructor)</h4> |
107 <h4>APIs (Constructor)</h4> |
108 <b>APIs</b>(<i>language, forPreparation = False, parent = None</i>) |
108 <b>APIs</b>(<i>language, forPreparation = False, parent = None</i>) |
109 <p> |
109 <p> |
110 Constructor |
110 Constructor |
111 </p><dl> |
111 </p><dl> |
112 <dt><i>language</i></dt> |
112 <dt><i>language</i></dt> |
113 <dd> |
113 <dd> |
114 language of the APIs object (string) |
114 language of the APIs object (string) |
115 </dd><dt><i>forPreparation</i></dt> |
115 </dd><dt><i>forPreparation</i></dt> |
116 <dd> |
116 <dd> |
117 flag indicating this object is just needed |
117 flag indicating this object is just needed |
118 for a preparation process (boolean) |
118 for a preparation process (boolean) |
119 </dd><dt><i>parent</i></dt> |
119 </dd><dt><i>parent</i></dt> |
120 <dd> |
120 <dd> |
121 reference to the parent object (QObject) |
121 reference to the parent object (QObject) |
122 </dd> |
122 </dd> |
123 </dl><a NAME="APIs.__apiPreparationCancelled" ID="APIs.__apiPreparationCancelled"></a> |
123 </dl><a NAME="APIs.__apiPreparationCancelled" ID="APIs.__apiPreparationCancelled"></a> |
124 <h4>APIs.__apiPreparationCancelled</h4> |
124 <h4>APIs.__apiPreparationCancelled</h4> |
125 <b>__apiPreparationCancelled</b>(<i></i>) |
125 <b>__apiPreparationCancelled</b>(<i></i>) |
126 <p> |
126 <p> |
127 Private method called, after the API preparation process has been cancelled. |
127 Private method called, after the API preparation process has been cancelled. |
128 </p><a NAME="APIs.__apiPreparationFinished" ID="APIs.__apiPreparationFinished"></a> |
128 </p><a NAME="APIs.__apiPreparationFinished" ID="APIs.__apiPreparationFinished"></a> |
129 <h4>APIs.__apiPreparationFinished</h4> |
129 <h4>APIs.__apiPreparationFinished</h4> |
130 <b>__apiPreparationFinished</b>(<i></i>) |
130 <b>__apiPreparationFinished</b>(<i></i>) |
131 <p> |
131 <p> |
132 Private method called to save an API, after it has been prepared. |
132 Private method called to save an API, after it has been prepared. |
133 </p><a NAME="APIs.__apiPreparationStarted" ID="APIs.__apiPreparationStarted"></a> |
133 </p><a NAME="APIs.__apiPreparationStarted" ID="APIs.__apiPreparationStarted"></a> |
134 <h4>APIs.__apiPreparationStarted</h4> |
134 <h4>APIs.__apiPreparationStarted</h4> |
135 <b>__apiPreparationStarted</b>(<i></i>) |
135 <b>__apiPreparationStarted</b>(<i></i>) |
136 <p> |
136 <p> |
137 Private method called, when the API preparation process started. |
137 Private method called, when the API preparation process started. |
138 </p><a NAME="APIs.__defaultPreparedName" ID="APIs.__defaultPreparedName"></a> |
138 </p><a NAME="APIs.__defaultPreparedName" ID="APIs.__defaultPreparedName"></a> |
139 <h4>APIs.__defaultPreparedName</h4> |
139 <h4>APIs.__defaultPreparedName</h4> |
140 <b>__defaultPreparedName</b>(<i></i>) |
140 <b>__defaultPreparedName</b>(<i></i>) |
141 <p> |
141 <p> |
142 Private method returning the default name of a prepared API file. |
142 Private method returning the default name of a prepared API file. |
143 </p><dl> |
143 </p><dl> |
144 <dt>Returns:</dt> |
144 <dt>Returns:</dt> |
145 <dd> |
145 <dd> |
146 complete filename for the Prepared APIs file (string) |
146 complete filename for the Prepared APIs file (string) |
147 </dd> |
147 </dd> |
148 </dl><a NAME="APIs.__loadAPIs" ID="APIs.__loadAPIs"></a> |
148 </dl><a NAME="APIs.__loadAPIs" ID="APIs.__loadAPIs"></a> |
149 <h4>APIs.__loadAPIs</h4> |
149 <h4>APIs.__loadAPIs</h4> |
150 <b>__loadAPIs</b>(<i></i>) |
150 <b>__loadAPIs</b>(<i></i>) |
151 <p> |
151 <p> |
152 Private method to load the APIs. |
152 Private method to load the APIs. |
153 </p><a NAME="APIs.cancelPreparation" ID="APIs.cancelPreparation"></a> |
153 </p><a NAME="APIs.cancelPreparation" ID="APIs.cancelPreparation"></a> |
154 <h4>APIs.cancelPreparation</h4> |
154 <h4>APIs.cancelPreparation</h4> |
155 <b>cancelPreparation</b>(<i></i>) |
155 <b>cancelPreparation</b>(<i></i>) |
156 <p> |
156 <p> |
157 Public slot to cancel the APIs preparation. |
157 Public slot to cancel the APIs preparation. |
158 </p><a NAME="APIs.getQsciAPIs" ID="APIs.getQsciAPIs"></a> |
158 </p><a NAME="APIs.getQsciAPIs" ID="APIs.getQsciAPIs"></a> |
159 <h4>APIs.getQsciAPIs</h4> |
159 <h4>APIs.getQsciAPIs</h4> |
160 <b>getQsciAPIs</b>(<i></i>) |
160 <b>getQsciAPIs</b>(<i></i>) |
161 <p> |
161 <p> |
162 Public method to get a reference to QsciAPIs object. |
162 Public method to get a reference to QsciAPIs object. |
163 </p><dl> |
163 </p><dl> |
164 <dt>Returns:</dt> |
164 <dt>Returns:</dt> |
165 <dd> |
165 <dd> |
166 reference to the QsciAPIs object (QsciAPIs) |
166 reference to the QsciAPIs object (QsciAPIs) |
167 </dd> |
167 </dd> |
168 </dl><a NAME="APIs.installedAPIFiles" ID="APIs.installedAPIFiles"></a> |
168 </dl><a NAME="APIs.installedAPIFiles" ID="APIs.installedAPIFiles"></a> |
169 <h4>APIs.installedAPIFiles</h4> |
169 <h4>APIs.installedAPIFiles</h4> |
170 <b>installedAPIFiles</b>(<i></i>) |
170 <b>installedAPIFiles</b>(<i></i>) |
171 <p> |
171 <p> |
172 Public method to get a list of installed API files. |
172 Public method to get a list of installed API files. |
173 </p><dl> |
173 </p><dl> |
174 <dt>Returns:</dt> |
174 <dt>Returns:</dt> |
175 <dd> |
175 <dd> |
176 list of installed API files (list of strings) |
176 list of installed API files (list of strings) |
177 </dd> |
177 </dd> |
178 </dl><a NAME="APIs.prepareAPIs" ID="APIs.prepareAPIs"></a> |
178 </dl><a NAME="APIs.prepareAPIs" ID="APIs.prepareAPIs"></a> |
179 <h4>APIs.prepareAPIs</h4> |
179 <h4>APIs.prepareAPIs</h4> |
180 <b>prepareAPIs</b>(<i>ondemand = False, rawList = None</i>) |
180 <b>prepareAPIs</b>(<i>ondemand = False, rawList = None</i>) |
181 <p> |
181 <p> |
182 Public method to prepare the APIs if necessary. |
182 Public method to prepare the APIs if necessary. |
183 </p><dl> |
183 </p><dl> |
184 <dt><i>ondemand=</i></dt> |
184 <dt><i>ondemand=</i></dt> |
185 <dd> |
185 <dd> |
186 flag indicating a requested preparation (boolean) |
186 flag indicating a requested preparation (boolean) |
187 </dd><dt><i>rawList=</i></dt> |
187 </dd><dt><i>rawList=</i></dt> |
188 <dd> |
188 <dd> |
189 list of raw API files (list of strings) |
189 list of raw API files (list of strings) |
190 </dd> |
190 </dd> |
191 </dl><a NAME="APIs.reloadAPIs" ID="APIs.reloadAPIs"></a> |
191 </dl><a NAME="APIs.reloadAPIs" ID="APIs.reloadAPIs"></a> |
192 <h4>APIs.reloadAPIs</h4> |
192 <h4>APIs.reloadAPIs</h4> |
193 <b>reloadAPIs</b>(<i></i>) |
193 <b>reloadAPIs</b>(<i></i>) |
194 <p> |
194 <p> |
195 Public method to reload the API information. |
195 Public method to reload the API information. |
196 </p> |
196 </p> |
197 <div align="right"><a href="#top">Up</a></div> |
197 <div align="right"><a href="#top">Up</a></div> |
198 <hr /><hr /> |
198 <hr /><hr /> |
199 <a NAME="APIsManager" ID="APIsManager"></a> |
199 <a NAME="APIsManager" ID="APIsManager"></a> |
200 <h2>APIsManager</h2> |
200 <h2>APIsManager</h2> |
201 <p> |
201 <p> |
202 Class implementing the APIsManager class, which is the central store for |
202 Class implementing the APIsManager class, which is the central store for |
203 API information used by autocompletion and calltips. |
203 API information used by autocompletion and calltips. |
204 </p> |
204 </p> |
205 <h3>Derived from</h3> |
205 <h3>Derived from</h3> |
206 QObject |
206 QObject |
207 <h3>Class Attributes</h3> |
207 <h3>Class Attributes</h3> |
208 <table> |
208 <table> |
210 </table> |
210 </table> |
211 <h3>Methods</h3> |
211 <h3>Methods</h3> |
212 <table> |
212 <table> |
213 <tr> |
213 <tr> |
214 <td><a href="#APIsManager.__init__">APIsManager</a></td> |
214 <td><a href="#APIsManager.__init__">APIsManager</a></td> |
215 <td>Constructor</td> |
215 <td>Constructor</td> |
216 </tr><tr> |
216 </tr><tr> |
217 <td><a href="#APIsManager.getAPIs">getAPIs</a></td> |
217 <td><a href="#APIsManager.getAPIs">getAPIs</a></td> |
218 <td>Public method to get an apis object for autocompletion/calltips.</td> |
218 <td>Public method to get an apis object for autocompletion/calltips.</td> |
219 </tr><tr> |
219 </tr><tr> |
220 <td><a href="#APIsManager.reloadAPIs">reloadAPIs</a></td> |
220 <td><a href="#APIsManager.reloadAPIs">reloadAPIs</a></td> |
221 <td>Public slot to reload the api information.</td> |
221 <td>Public slot to reload the api information.</td> |
222 </tr> |
222 </tr> |
223 </table> |
223 </table> |
224 <a NAME="APIsManager.__init__" ID="APIsManager.__init__"></a> |
224 <a NAME="APIsManager.__init__" ID="APIsManager.__init__"></a> |
225 <h4>APIsManager (Constructor)</h4> |
225 <h4>APIsManager (Constructor)</h4> |
226 <b>APIsManager</b>(<i>parent = None</i>) |
226 <b>APIsManager</b>(<i>parent = None</i>) |
227 <p> |
227 <p> |
228 Constructor |
228 Constructor |
229 </p><dl> |
229 </p><dl> |
230 <dt><i>parent</i></dt> |
230 <dt><i>parent</i></dt> |
231 <dd> |
231 <dd> |
232 reference to the parent object (QObject) |
232 reference to the parent object (QObject) |
233 </dd> |
233 </dd> |
234 </dl><a NAME="APIsManager.getAPIs" ID="APIsManager.getAPIs"></a> |
234 </dl><a NAME="APIsManager.getAPIs" ID="APIsManager.getAPIs"></a> |
235 <h4>APIsManager.getAPIs</h4> |
235 <h4>APIsManager.getAPIs</h4> |
236 <b>getAPIs</b>(<i>language, forPreparation = False</i>) |
236 <b>getAPIs</b>(<i>language, forPreparation = False</i>) |
237 <p> |
237 <p> |
238 Public method to get an apis object for autocompletion/calltips. |
238 Public method to get an apis object for autocompletion/calltips. |
239 </p><p> |
239 </p><p> |
240 This method creates and loads an APIs object dynamically upon request. |
240 This method creates and loads an APIs object dynamically upon request. |
241 This saves memory for languages, that might not be needed at the moment. |
241 This saves memory for languages, that might not be needed at the moment. |
242 </p><dl> |
242 </p><dl> |
243 <dt><i>language</i></dt> |
243 <dt><i>language</i></dt> |
244 <dd> |
244 <dd> |
245 the language of the requested api object (string) |
245 the language of the requested api object (string) |
246 </dd><dt><i>forPreparation</i></dt> |
246 </dd><dt><i>forPreparation</i></dt> |
247 <dd> |
247 <dd> |
248 flag indicating the requested api object is just needed |
248 flag indicating the requested api object is just needed |
249 for a preparation process (boolean) |
249 for a preparation process (boolean) |
250 </dd> |
250 </dd> |
251 </dl><dl> |
251 </dl><dl> |
252 <dt>Returns:</dt> |
252 <dt>Returns:</dt> |
253 <dd> |
253 <dd> |
254 the apis object (APIs) |
254 the apis object (APIs) |
255 </dd> |
255 </dd> |
256 </dl><a NAME="APIsManager.reloadAPIs" ID="APIsManager.reloadAPIs"></a> |
256 </dl><a NAME="APIsManager.reloadAPIs" ID="APIsManager.reloadAPIs"></a> |
257 <h4>APIsManager.reloadAPIs</h4> |
257 <h4>APIsManager.reloadAPIs</h4> |
258 <b>reloadAPIs</b>(<i></i>) |
258 <b>reloadAPIs</b>(<i></i>) |
259 <p> |
259 <p> |
260 Public slot to reload the api information. |
260 Public slot to reload the api information. |
261 </p> |
261 </p> |
262 <div align="right"><a href="#top">Up</a></div> |
262 <div align="right"><a href="#top">Up</a></div> |
263 <hr /> |
263 <hr /> |
264 </body></html> |
264 </body></html> |