src/eric7/Plugins/PluginEricdoc.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 = "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."""
216 216
217 def __doEricdoc(self): 217 def __doEricdoc(self):
218 """ 218 """
219 Private slot to perform the eric7_doc api documentation generation. 219 Private slot to perform the eric7_doc api documentation generation.
220 """ 220 """
221 from DocumentationPlugins.Ericdoc.EricdocConfigDialog import EricdocConfigDialog 221 from eric7.Plugins.DocumentationPlugins.Ericdoc.EricdocConfigDialog import (
222 EricdocConfigDialog,
223 )
222 224
223 eolTranslation = { 225 eolTranslation = {
224 "\r": "cr", 226 "\r": "cr",
225 "\n": "lf", 227 "\n": "lf",
226 "\r\n": "crlf", 228 "\r\n": "crlf",
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()

eric ide

mercurial