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 = "Ericapi Plugin" |
26 name = "Ericapi 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 = "EricapiPlugin" |
31 className = "EricapiPlugin" |
32 packageName = "__core__" |
32 packageName = "__core__" |
33 shortDescription = "Show the Ericapi dialogs." |
33 shortDescription = "Show the Ericapi dialogs." |
34 longDescription = ( |
34 longDescription = ( |
35 """This plugin implements the Ericapi dialogs.""" |
35 """This plugin implements the Ericapi dialogs.""" |
194 # add parameter for the eol setting |
196 # add parameter for the eol setting |
195 if not project.useSystemEol(): |
197 if not project.useSystemEol(): |
196 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) |
198 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) |
197 |
199 |
198 # now do the call |
200 # now do the call |
199 from DocumentationPlugins.Ericapi.EricapiExecDialog import EricapiExecDialog |
201 from eric7.Plugins.DocumentationPlugins.Ericapi.EricapiExecDialog import ( |
|
202 EricapiExecDialog, |
|
203 ) |
200 |
204 |
201 dia = EricapiExecDialog("Ericapi") |
205 dia = EricapiExecDialog("Ericapi") |
202 res = dia.start(args, startDir) |
206 res = dia.start(args, startDir) |
203 if res: |
207 if res: |
204 dia.exec() |
208 dia.exec() |