Plugins/PluginEricdoc.py

changeset 3022
57179e4cdadd
parent 3004
c4bf32c791d0
child 3034
7ce719013078
child 3058
0a02c433f52d
equal deleted inserted replaced
3021:801289962f4e 3022:57179e4cdadd
51 exe = 'eric5_doc' 51 exe = 'eric5_doc'
52 if Utilities.isWindowsPlatform(): 52 if Utilities.isWindowsPlatform():
53 exe = os.path.join(getConfig("bindir"), exe + '.bat') 53 exe = os.path.join(getConfig("bindir"), exe + '.bat')
54 dataList.append({ 54 dataList.append({
55 "programEntry": True, 55 "programEntry": True,
56 "header": QApplication.translate("EricdocPlugin", 56 "header": QApplication.translate(
57 "Eric5 Documentation Generator"), 57 "EricdocPlugin", "Eric5 Documentation Generator"),
58 "exe": exe, 58 "exe": exe,
59 "versionCommand": '--version', 59 "versionCommand": '--version',
60 "versionStartsWith": 'eric5_', 60 "versionStartsWith": 'eric5_',
61 "versionPosition": -3, 61 "versionPosition": -3,
62 "version": "", 62 "version": "",
67 exe = os.path.join(Utilities.getQtBinariesPath(), 'qhelpgenerator') 67 exe = os.path.join(Utilities.getQtBinariesPath(), 'qhelpgenerator')
68 if Utilities.isWindowsPlatform(): 68 if Utilities.isWindowsPlatform():
69 exe += '.exe' 69 exe += '.exe'
70 dataList.append({ 70 dataList.append({
71 "programEntry": True, 71 "programEntry": True,
72 "header": QApplication.translate("EricdocPlugin", 72 "header": QApplication.translate(
73 "Qt Help Tools"), 73 "EricdocPlugin", "Qt Help Tools"),
74 "exe": exe, 74 "exe": exe,
75 "versionCommand": '-v', 75 "versionCommand": '-v',
76 "versionStartsWith": 'Qt', 76 "versionStartsWith": 'Qt',
77 "versionPosition": -1, 77 "versionPosition": -1,
78 "version": "", 78 "version": "",
83 exe = os.path.join(Utilities.getQtBinariesPath(), 'qcollectiongenerator') 83 exe = os.path.join(Utilities.getQtBinariesPath(), 'qcollectiongenerator')
84 if Utilities.isWindowsPlatform(): 84 if Utilities.isWindowsPlatform():
85 exe += '.exe' 85 exe += '.exe'
86 dataList.append({ 86 dataList.append({
87 "programEntry": True, 87 "programEntry": True,
88 "header": QApplication.translate("EricdocPlugin", 88 "header": QApplication.translate(
89 "Qt Help Tools"), 89 "EricdocPlugin", "Qt Help Tools"),
90 "exe": exe, 90 "exe": exe,
91 "versionCommand": '-v', 91 "versionCommand": '-v',
92 "versionStartsWith": 'Qt', 92 "versionStartsWith": 'Qt',
93 "versionPosition": -1, 93 "versionPosition": -1,
94 "version": "", 94 "version": "",
125 @return tuple of None and activation status (boolean) 125 @return tuple of None and activation status (boolean)
126 """ 126 """
127 menu = e5App().getObject("Project").getMenu("Apidoc") 127 menu = e5App().getObject("Project").getMenu("Apidoc")
128 if menu: 128 if menu:
129 self.__projectAct = \ 129 self.__projectAct = \
130 E5Action(self.trUtf8('Generate documentation (eric5_doc)'), 130 E5Action(
131 self.trUtf8('Generate documentation (eric5_doc)'),
131 self.trUtf8('Generate &documentation (eric5_doc)'), 0, 0, 132 self.trUtf8('Generate &documentation (eric5_doc)'), 0, 0,
132 self, 'doc_eric5_doc') 133 self, 'doc_eric5_doc')
133 self.__projectAct.setStatusTip( 134 self.__projectAct.setStatusTip(
134 self.trUtf8('Generate API documentation using eric5_doc')) 135 self.trUtf8('Generate API documentation using eric5_doc'))
135 self.__projectAct.setWhatsThis(self.trUtf8( 136 self.__projectAct.setWhatsThis(self.trUtf8(

eric ide

mercurial