11 import sys |
11 import sys |
12 |
12 |
13 from PyQt6.QtCore import QObject, QCoreApplication |
13 from PyQt6.QtCore import QObject, QCoreApplication |
14 from PyQt6.QtWidgets import QDialog |
14 from PyQt6.QtWidgets import QDialog |
15 |
15 |
16 from EricWidgets.EricApplication import ericApp |
16 from eric7.EricWidgets.EricApplication import ericApp |
17 |
17 |
18 from EricGui.EricAction import EricAction |
18 from eric7.EricGui.EricAction import EricAction |
19 |
19 |
20 import Utilities |
20 from eric7 import Utilities |
21 import UI.Info |
21 from eric7.UI import Info |
22 |
22 |
23 from eric7config import getConfig |
23 from eric7config import getConfig |
24 |
24 |
25 # Start-Of-Header |
25 # Start-Of-Header |
26 name = "Ericdoc Plugin" |
26 name = "Ericdoc Plugin" |
27 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
27 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
28 autoactivate = True |
28 autoactivate = True |
29 deactivateable = True |
29 deactivateable = True |
30 version = UI.Info.VersionOnly |
30 version = Info.VersionOnly |
31 className = "EricdocPlugin" |
31 className = "EricdocPlugin" |
32 packageName = "__core__" |
32 packageName = "__core__" |
33 shortDescription = "Show the Ericdoc dialogs." |
33 shortDescription = "Show the Ericdoc dialogs." |
34 longDescription = ( |
34 longDescription = ( |
35 """This plugin implements the Ericdoc dialogs.""" |
35 """This plugin implements the Ericdoc dialogs.""" |
238 # add parameter for the eol setting |
240 # add parameter for the eol setting |
239 if not project.useSystemEol(): |
241 if not project.useSystemEol(): |
240 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) |
242 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) |
241 |
243 |
242 # now do the call |
244 # now do the call |
243 from DocumentationPlugins.Ericdoc.EricdocExecDialog import EricdocExecDialog |
245 from eric7.Plugins.DocumentationPlugins.Ericdoc.EricdocExecDialog import ( |
|
246 EricdocExecDialog, |
|
247 ) |
244 |
248 |
245 dia = EricdocExecDialog("Ericdoc") |
249 dia = EricdocExecDialog("Ericdoc") |
246 res = dia.start(args, startDir) |
250 res = dia.start(args, startDir) |
247 if res: |
251 if res: |
248 dia.exec() |
252 dia.exec() |