44 Public method to support the display of some executable info. |
44 Public method to support the display of some executable info. |
45 |
45 |
46 @return dictionary containing the data to query the presence of |
46 @return dictionary containing the data to query the presence of |
47 the executable |
47 the executable |
48 """ |
48 """ |
49 exe = 'eric4-api' |
49 exe = 'eric5-api' |
50 if Utilities.isWindowsPlatform(): |
50 if Utilities.isWindowsPlatform(): |
51 exe += '.bat' |
51 exe += '.bat' |
52 |
52 |
53 data = { |
53 data = { |
54 "programEntry" : True, |
54 "programEntry" : True, |
55 "header" : QApplication.translate("EricapiPlugin", |
55 "header" : QApplication.translate("EricapiPlugin", |
56 "Eric4 API File Generator"), |
56 "Eric4 API File Generator"), |
57 "exe" : exe, |
57 "exe" : exe, |
58 "versionCommand" : '--version', |
58 "versionCommand" : '--version', |
59 "versionStartsWith" : 'eric4-', |
59 "versionStartsWith" : 'eric5-', |
60 "versionPosition" : -2, |
60 "versionPosition" : -2, |
61 "version" : "", |
61 "version" : "", |
62 "versionCleanup" : None, |
62 "versionCleanup" : None, |
63 } |
63 } |
64 |
64 |
90 |
90 |
91 @return tuple of None and activation status (boolean) |
91 @return tuple of None and activation status (boolean) |
92 """ |
92 """ |
93 menu = e4App().getObject("Project").getMenu("Apidoc") |
93 menu = e4App().getObject("Project").getMenu("Apidoc") |
94 if menu: |
94 if menu: |
95 self.__projectAct = E4Action(self.trUtf8('Generate API file (eric4-api)'), |
95 self.__projectAct = E4Action(self.trUtf8('Generate API file (eric5-api)'), |
96 self.trUtf8('Generate &API file (eric4-api)'), 0, 0, |
96 self.trUtf8('Generate &API file (eric5-api)'), 0, 0, |
97 self, 'doc_eric4_api') |
97 self, 'doc_eric5_api') |
98 self.__projectAct.setStatusTip(\ |
98 self.__projectAct.setStatusTip(\ |
99 self.trUtf8('Generate an API file using eric4-api')) |
99 self.trUtf8('Generate an API file using eric5-api')) |
100 self.__projectAct.setWhatsThis(self.trUtf8( |
100 self.__projectAct.setWhatsThis(self.trUtf8( |
101 """<b>Generate API file</b>""" |
101 """<b>Generate API file</b>""" |
102 """<p>Generate an API file using eric4-api.</p>""" |
102 """<p>Generate an API file using eric5-api.</p>""" |
103 )) |
103 )) |
104 self.connect(self.__projectAct, SIGNAL('triggered()'), self.__doEricapi) |
104 self.connect(self.__projectAct, SIGNAL('triggered()'), self.__doEricapi) |
105 e4App().getObject("Project").addE4Actions([self.__projectAct]) |
105 e4App().getObject("Project").addE4Actions([self.__projectAct]) |
106 menu.addAction(self.__projectAct) |
106 menu.addAction(self.__projectAct) |
107 |
107 |
137 e4App().getObject("Project").getProjectLanguage() in \ |
137 e4App().getObject("Project").getProjectLanguage() in \ |
138 ["Python", "Python3", "Ruby"]) |
138 ["Python", "Python3", "Ruby"]) |
139 |
139 |
140 def __doEricapi(self): |
140 def __doEricapi(self): |
141 """ |
141 """ |
142 Private slot to perform the eric4-api api generation. |
142 Private slot to perform the eric5-api api generation. |
143 """ |
143 """ |
144 project = e4App().getObject("Project") |
144 project = e4App().getObject("Project") |
145 parms = project.getData('DOCUMENTATIONPARMS', "ERIC4API") |
145 parms = project.getData('DOCUMENTATIONPARMS', "ERIC4API") |
146 dlg = EricapiConfigDialog(project, parms) |
146 dlg = EricapiConfigDialog(project, parms) |
147 if dlg.exec_() == QDialog.Accepted: |
147 if dlg.exec_() == QDialog.Accepted: |