Plugins/PluginEricapi.py

changeset 2407
b98cc8ee1142
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2712
4354ab0b67c7
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.Ericapi.EricapiConfigDialog import EricapiConfigDialog
20 from DocumentationPlugins.Ericapi.EricapiExecDialog import EricapiExecDialog
21 18
22 import Utilities 19 import Utilities
23 20
24 from eric5config import getConfig 21 from eric5config import getConfig
25 22
139 136
140 def __doEricapi(self): 137 def __doEricapi(self):
141 """ 138 """
142 Private slot to perform the eric5_api api generation. 139 Private slot to perform the eric5_api api generation.
143 """ 140 """
141 from DocumentationPlugins.Ericapi.EricapiConfigDialog import EricapiConfigDialog
144 eolTranslation = { 142 eolTranslation = {
145 '\r': 'cr', 143 '\r': 'cr',
146 '\n': 'lf', 144 '\n': 'lf',
147 '\r\n': 'crlf', 145 '\r\n': 'crlf',
148 } 146 }
156 # add parameter for the eol setting 154 # add parameter for the eol setting
157 if not project.useSystemEol(): 155 if not project.useSystemEol():
158 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) 156 args.append("--eol={0}".format(eolTranslation[project.getEolString()]))
159 157
160 # now do the call 158 # now do the call
159 from DocumentationPlugins.Ericapi.EricapiExecDialog import EricapiExecDialog
161 dia = EricapiExecDialog("Ericapi") 160 dia = EricapiExecDialog("Ericapi")
162 res = dia.start(args, project.ppath) 161 res = dia.start(args, project.ppath)
163 if res: 162 if res:
164 dia.exec_() 163 dia.exec_()
165 164

eric ide

mercurial