20 from QScintilla.APIsManager import APIsManager |
20 from QScintilla.APIsManager import APIsManager |
21 import QScintilla.Lexers |
21 import QScintilla.Lexers |
22 |
22 |
23 import Preferences |
23 import Preferences |
24 import Utilities |
24 import Utilities |
|
25 |
25 |
26 |
26 class EditorAPIsPage(ConfigurationPageBase, Ui_EditorAPIsPage): |
27 class EditorAPIsPage(ConfigurationPageBase, Ui_EditorAPIsPage): |
27 """ |
28 """ |
28 Class implementing the Editor APIs configuration page. |
29 Class implementing the Editor APIs configuration page. |
29 """ |
30 """ |
205 if self.__inPreparation: |
206 if self.__inPreparation: |
206 self.__currentAPI and self.__currentAPI.cancelPreparation() |
207 self.__currentAPI and self.__currentAPI.cancelPreparation() |
207 else: |
208 else: |
208 if self.__currentAPI is not None: |
209 if self.__currentAPI is not None: |
209 self.__currentAPI.prepareAPIs( |
210 self.__currentAPI.prepareAPIs( |
210 ondemand = True, |
211 ondemand=True, |
211 rawList = self.__editorGetApisFromApiList()) |
212 rawList=self.__editorGetApisFromApiList()) |
212 |
213 |
213 def __apiPreparationFinished(self): |
214 def __apiPreparationFinished(self): |
214 """ |
215 """ |
215 Private method called after the API preparation has finished. |
216 Private method called after the API preparation has finished. |
216 """ |
217 """ |
250 @param state state data generated by saveState |
251 @param state state data generated by saveState |
251 """ |
252 """ |
252 self.apiLanguageComboBox.setCurrentIndex(state) |
253 self.apiLanguageComboBox.setCurrentIndex(state) |
253 self.on_apiLanguageComboBox_activated(self.apiLanguageComboBox.currentText()) |
254 self.on_apiLanguageComboBox_activated(self.apiLanguageComboBox.currentText()) |
254 |
255 |
|
256 |
255 def create(dlg): |
257 def create(dlg): |
256 """ |
258 """ |
257 Module function to create the configuration page. |
259 Module function to create the configuration page. |
258 |
260 |
259 @param dlg reference to the configuration dialog |
261 @param dlg reference to the configuration dialog |