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 = "5.4.0" |
30 version = "5.5.0" |
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 = """This plugin implements the Ericapi dialogs.""" \ |
34 longDescription = """This plugin implements the Ericapi dialogs.""" \ |
35 """ Ericapi is used to generate a QScintilla API file for Python and""" \ |
35 """ Ericapi is used to generate a QScintilla API file for Python and""" \ |
93 @return tuple of None and activation status (boolean) |
93 @return tuple of None and activation status (boolean) |
94 """ |
94 """ |
95 menu = e5App().getObject("Project").getMenu("Apidoc") |
95 menu = e5App().getObject("Project").getMenu("Apidoc") |
96 if menu: |
96 if menu: |
97 self.__projectAct = E5Action( |
97 self.__projectAct = E5Action( |
98 self.trUtf8('Generate API file (eric5_api)'), |
98 self.tr('Generate API file (eric5_api)'), |
99 self.trUtf8('Generate &API file (eric5_api)'), 0, 0, |
99 self.tr('Generate &API file (eric5_api)'), 0, 0, |
100 self, 'doc_eric5_api') |
100 self, 'doc_eric5_api') |
101 self.__projectAct.setStatusTip(self.trUtf8( |
101 self.__projectAct.setStatusTip(self.tr( |
102 'Generate an API file using eric5_api')) |
102 'Generate an API file using eric5_api')) |
103 self.__projectAct.setWhatsThis(self.trUtf8( |
103 self.__projectAct.setWhatsThis(self.tr( |
104 """<b>Generate API file</b>""" |
104 """<b>Generate API file</b>""" |
105 """<p>Generate an API file using eric5_api.</p>""" |
105 """<p>Generate an API file using eric5_api.</p>""" |
106 )) |
106 )) |
107 self.__projectAct.triggered[()].connect(self.__doEricapi) |
107 self.__projectAct.triggered.connect(self.__doEricapi) |
108 e5App().getObject("Project").addE5Actions([self.__projectAct]) |
108 e5App().getObject("Project").addE5Actions([self.__projectAct]) |
109 menu.addAction(self.__projectAct) |
109 menu.addAction(self.__projectAct) |
110 |
110 |
111 e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) |
111 e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) |
112 |
112 |