Plugins/PluginEricdoc.py

changeset 2407
b98cc8ee1142
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2596
32c4afbe0801
equal deleted inserted replaced
2406:975af671146d 2407:b98cc8ee1142
13 from PyQt4.QtGui import QDialog, QApplication 13 from PyQt4.QtGui import QDialog, QApplication
14 14
15 from E5Gui.E5Application import e5App 15 from E5Gui.E5Application import e5App
16 16
17 from E5Gui.E5Action import E5Action 17 from E5Gui.E5Action import E5Action
18
19 from DocumentationPlugins.Ericdoc.EricdocConfigDialog import EricdocConfigDialog
20 from DocumentationPlugins.Ericdoc.EricdocExecDialog import EricdocExecDialog
21 18
22 import Utilities 19 import Utilities
23 20
24 from eric5config import getConfig 21 from eric5config import getConfig
25 22
175 172
176 def __doEricdoc(self): 173 def __doEricdoc(self):
177 """ 174 """
178 Private slot to perform the eric5_doc api documentation generation. 175 Private slot to perform the eric5_doc api documentation generation.
179 """ 176 """
177 from DocumentationPlugins.Ericdoc.EricdocConfigDialog import EricdocConfigDialog
180 eolTranslation = { 178 eolTranslation = {
181 '\r': 'cr', 179 '\r': 'cr',
182 '\n': 'lf', 180 '\n': 'lf',
183 '\r\n': 'crlf', 181 '\r\n': 'crlf',
184 } 182 }
192 # add parameter for the eol setting 190 # add parameter for the eol setting
193 if not project.useSystemEol(): 191 if not project.useSystemEol():
194 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) 192 args.append("--eol={0}".format(eolTranslation[project.getEolString()]))
195 193
196 # now do the call 194 # now do the call
195 from DocumentationPlugins.Ericdoc.EricdocExecDialog import EricdocExecDialog
197 dia = EricdocExecDialog("Ericdoc") 196 dia = EricdocExecDialog("Ericdoc")
198 res = dia.start(args, project.ppath) 197 res = dia.start(args, project.ppath)
199 if res: 198 if res:
200 dia.exec_() 199 dia.exec_()
201 200

eric ide

mercurial