14 |
14 |
15 with contextlib.suppress(ImportError): |
15 with contextlib.suppress(ImportError): |
16 from PyQt6.QtSql import QSqlDatabase, QSqlQuery |
16 from PyQt6.QtSql import QSqlDatabase, QSqlQuery |
17 |
17 |
18 from eric7 import Globals, Preferences, Utilities |
18 from eric7 import Globals, Preferences, Utilities |
|
19 from eric7.DocumentationTools.APIGenerator import APIGenerator |
19 from eric7.EricWidgets.EricApplication import ericApp |
20 from eric7.EricWidgets.EricApplication import ericApp |
20 from eric7.QScintilla import Lexers |
21 from eric7.QScintilla import Lexers |
|
22 from eric7.QScintilla.Editor import Editor |
21 from eric7.Utilities import ModuleParser |
23 from eric7.Utilities import ModuleParser |
22 |
24 |
23 WorkerStatusStarted = 2001 |
25 WorkerStatusStarted = 2001 |
24 WorkerStatusFinished = 2002 |
26 WorkerStatusFinished = 2002 |
25 WorkerStatusAborted = 2003 |
27 WorkerStatusAborted = 2003 |
211 for className in sorted(module.classes.keys()): |
213 for className in sorted(module.classes.keys()): |
212 _class = module.classes[className] |
214 _class = module.classes[className] |
213 classNameStr = "{0}{1}.".format(moduleName, className) |
215 classNameStr = "{0}{1}.".format(moduleName, className) |
214 for variable in sorted(_class.attributes.keys()): |
216 for variable in sorted(_class.attributes.keys()): |
215 if not _class.attributes[variable].isPrivate(): |
217 if not _class.attributes[variable].isPrivate(): |
216 from eric7.QScintilla.Editor import Editor |
|
217 |
|
218 if _class.attributes[variable].isPublic(): |
218 if _class.attributes[variable].isPublic(): |
219 iconId = Editor.AttributeID |
219 iconId = Editor.AttributeID |
220 elif _class.attributes[variable].isProtected(): |
220 elif _class.attributes[variable].isProtected(): |
221 iconId = Editor.AttributeProtectedID |
221 iconId = Editor.AttributeProtectedID |
222 else: |
222 else: |
241 basename=self.__projectPath + os.sep, |
241 basename=self.__projectPath + os.sep, |
242 caching=False, |
242 caching=False, |
243 ) |
243 ) |
244 language = module.getType() |
244 language = module.getType() |
245 if language: |
245 if language: |
246 from eric7.DocumentationTools.APIGenerator import APIGenerator |
|
247 |
|
248 apiGenerator = APIGenerator(module) |
246 apiGenerator = APIGenerator(module) |
249 try: |
247 try: |
250 apis = apiGenerator.genAPI("", True) |
248 apis = apiGenerator.genAPI("", True) |
251 except TypeError: |
249 except TypeError: |
252 # backward compatibility for eric7 < 23.6 |
250 # backward compatibility for eric7 < 23.6 |