96:9624a110667d | 97:c4086afea02b |
---|---|
5 | 5 |
6 """ | 6 """ |
7 Module implementing the APIsManager. | 7 Module implementing the APIsManager. |
8 """ | 8 """ |
9 | 9 |
10 import os | |
11 | |
12 from PyQt4.QtCore import * | 10 from PyQt4.QtCore import * |
13 from PyQt4.Qsci import QsciAPIs, QsciLexer | 11 from PyQt4.Qsci import QsciAPIs |
14 | 12 |
15 from . import Lexers | 13 from . import Lexers |
16 import Preferences | 14 import Preferences |
17 import Utilities | |
18 | 15 |
19 class APIs(QObject): | 16 class APIs(QObject): |
20 """ | 17 """ |
21 Class implementing an API storage entity. | 18 Class implementing an API storage entity. |
22 | 19 |
88 | 85 |
89 def __apiPreparationFinished(self): | 86 def __apiPreparationFinished(self): |
90 """ | 87 """ |
91 Private method called to save an API, after it has been prepared. | 88 Private method called to save an API, after it has been prepared. |
92 """ | 89 """ |
93 res = self.__apis.savePrepared() | 90 self.__apis.savePrepared() |
94 self.__inPreparation = False | 91 self.__inPreparation = False |
95 self.emit(SIGNAL('apiPreparationFinished()')) | 92 self.emit(SIGNAL('apiPreparationFinished()')) |
96 | 93 |
97 def __apiPreparationCancelled(self): | 94 def __apiPreparationCancelled(self): |
98 """ | 95 """ |