src/eric7/Plugins/PluginEricapi.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9420
92810aebc909
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
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."""
172 172
173 def __doEricapi(self): 173 def __doEricapi(self):
174 """ 174 """
175 Private slot to perform the eric7_api api generation. 175 Private slot to perform the eric7_api api generation.
176 """ 176 """
177 from DocumentationPlugins.Ericapi.EricapiConfigDialog import EricapiConfigDialog 177 from eric7.Plugins.DocumentationPlugins.Ericapi.EricapiConfigDialog import (
178 EricapiConfigDialog,
179 )
178 180
179 eolTranslation = { 181 eolTranslation = {
180 "\r": "cr", 182 "\r": "cr",
181 "\n": "lf", 183 "\n": "lf",
182 "\r\n": "crlf", 184 "\r\n": "crlf",
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()

eric ide

mercurial