Plugins/PluginEricdoc.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
53 exe = 'eric5_doc' 53 exe = 'eric5_doc'
54 if Utilities.isWindowsPlatform(): 54 if Utilities.isWindowsPlatform():
55 exe = os.path.join(getConfig("bindir"), exe + '.bat') 55 exe = os.path.join(getConfig("bindir"), exe + '.bat')
56 dataList.append({ 56 dataList.append({
57 "programEntry": True, 57 "programEntry": True,
58 "header": QApplication.translate("EricdocPlugin", 58 "header": QApplication.translate(
59 "Eric5 Documentation Generator"), 59 "EricdocPlugin", "Eric5 Documentation Generator"),
60 "exe": exe, 60 "exe": exe,
61 "versionCommand": '--version', 61 "versionCommand": '--version',
62 "versionStartsWith": 'eric5_', 62 "versionStartsWith": 'eric5_',
63 "versionPosition": -3, 63 "versionPosition": -3,
64 "version": "", 64 "version": "",
69 exe = os.path.join(Utilities.getQtBinariesPath(), 'qhelpgenerator') 69 exe = os.path.join(Utilities.getQtBinariesPath(), 'qhelpgenerator')
70 if Utilities.isWindowsPlatform(): 70 if Utilities.isWindowsPlatform():
71 exe += '.exe' 71 exe += '.exe'
72 dataList.append({ 72 dataList.append({
73 "programEntry": True, 73 "programEntry": True,
74 "header": QApplication.translate("EricdocPlugin", 74 "header": QApplication.translate(
75 "Qt Help Tools"), 75 "EricdocPlugin", "Qt Help Tools"),
76 "exe": exe, 76 "exe": exe,
77 "versionCommand": '-v', 77 "versionCommand": '-v',
78 "versionStartsWith": 'Qt', 78 "versionStartsWith": 'Qt',
79 "versionPosition": -1, 79 "versionPosition": -1,
80 "version": "", 80 "version": "",
85 exe = os.path.join(Utilities.getQtBinariesPath(), 'qcollectiongenerator') 85 exe = os.path.join(Utilities.getQtBinariesPath(), 'qcollectiongenerator')
86 if Utilities.isWindowsPlatform(): 86 if Utilities.isWindowsPlatform():
87 exe += '.exe' 87 exe += '.exe'
88 dataList.append({ 88 dataList.append({
89 "programEntry": True, 89 "programEntry": True,
90 "header": QApplication.translate("EricdocPlugin", 90 "header": QApplication.translate(
91 "Qt Help Tools"), 91 "EricdocPlugin", "Qt Help Tools"),
92 "exe": exe, 92 "exe": exe,
93 "versionCommand": '-v', 93 "versionCommand": '-v',
94 "versionStartsWith": 'Qt', 94 "versionStartsWith": 'Qt',
95 "versionPosition": -1, 95 "versionPosition": -1,
96 "version": "", 96 "version": "",
127 @return tuple of None and activation status (boolean) 127 @return tuple of None and activation status (boolean)
128 """ 128 """
129 menu = e5App().getObject("Project").getMenu("Apidoc") 129 menu = e5App().getObject("Project").getMenu("Apidoc")
130 if menu: 130 if menu:
131 self.__projectAct = \ 131 self.__projectAct = \
132 E5Action(self.trUtf8('Generate documentation (eric5_doc)'), 132 E5Action(
133 self.trUtf8('Generate documentation (eric5_doc)'),
133 self.trUtf8('Generate &documentation (eric5_doc)'), 0, 0, 134 self.trUtf8('Generate &documentation (eric5_doc)'), 0, 0,
134 self, 'doc_eric5_doc') 135 self, 'doc_eric5_doc')
135 self.__projectAct.setStatusTip( 136 self.__projectAct.setStatusTip(
136 self.trUtf8('Generate API documentation using eric5_doc')) 137 self.trUtf8('Generate API documentation using eric5_doc'))
137 self.__projectAct.setWhatsThis(self.trUtf8( 138 self.__projectAct.setWhatsThis(self.trUtf8(

eric ide

mercurial