Preferences/ConfigurationPages/EditorAPIsPage.py

changeset 53
c3eb7cc1ff8b
parent 20
74944df40dfb
child 55
b5c84934de9c
equal deleted inserted replaced
52:ba69827929ee 53:c3eb7cc1ff8b
8 """ 8 """
9 9
10 from PyQt4.QtCore import QDir, pyqtSlot, SIGNAL, QFileInfo 10 from PyQt4.QtCore import QDir, pyqtSlot, SIGNAL, QFileInfo
11 from PyQt4.QtGui import QFileDialog, QInputDialog 11 from PyQt4.QtGui import QFileDialog, QInputDialog
12 12
13 from E4Gui.E4Application import e4App 13 from E4Gui.E4Application import e5App
14 from E4Gui.E4Completers import E4FileCompleter 14 from E4Gui.E4Completers import E4FileCompleter
15 15
16 from .ConfigurationPageBase import ConfigurationPageBase 16 from .ConfigurationPageBase import ConfigurationPageBase
17 from .Ui_EditorAPIsPage import Ui_EditorAPIsPage 17 from .Ui_EditorAPIsPage import Ui_EditorAPIsPage
18 18
40 self.__inPreparation = False 40 self.__inPreparation = False
41 41
42 self.apiFileCompleter = E4FileCompleter(self.apiFileEdit) 42 self.apiFileCompleter = E4FileCompleter(self.apiFileEdit)
43 43
44 # set initial values 44 # set initial values
45 self.pluginManager = e4App().getObject("PluginManager") 45 self.pluginManager = e5App().getObject("PluginManager")
46 self.apiAutoPrepareCheckBox.setChecked(\ 46 self.apiAutoPrepareCheckBox.setChecked(\
47 Preferences.getEditor("AutoPrepareAPIs")) 47 Preferences.getEditor("AutoPrepareAPIs"))
48 48
49 self.apis = {} 49 self.apis = {}
50 apiLanguages = sorted([''] + list(QScintilla.Lexers.getSupportedLanguages().keys())) 50 apiLanguages = sorted([''] + list(QScintilla.Lexers.getSupportedLanguages().keys()))

eric ide

mercurial