Plugins/PluginEricdoc.py

changeset 438
f62a3f9d2e28
parent 416
9ca4a5979826
child 453
a81097a85889
equal deleted inserted replaced
437:6a62ad60fa99 438:f62a3f9d2e28
38 pyqtApi = 2 38 pyqtApi = 2
39 # End-Of-Header 39 # End-Of-Header
40 40
41 error = "" 41 error = ""
42 42
43 def exeDisplayData(): 43 def exeDisplayDataList():
44 """ 44 """
45 Public method to support the display of some executable info. 45 Public method to support the display of some executable info.
46 46
47 @return dictionary containing the data to query the presence of 47 @return dictionary containing the data to query the presence of
48 the executable 48 the executable
49 """ 49 """
50 dataList = []
51
52 # 1. eric5-doc
50 exe = 'eric5-doc' 53 exe = 'eric5-doc'
51 if Utilities.isWindowsPlatform(): 54 if Utilities.isWindowsPlatform():
52 exe = os.path.join(getConfig("bindir"), exe +'.bat') 55 exe = os.path.join(getConfig("bindir"), exe +'.bat')
53 56 dataList.append({
54 data = {
55 "programEntry" : True, 57 "programEntry" : True,
56 "header" : QApplication.translate("EricdocPlugin", 58 "header" : QApplication.translate("EricdocPlugin",
57 "Eric5 Documentation Generator"), 59 "Eric5 Documentation Generator"),
58 "exe" : exe, 60 "exe" : exe,
59 "versionCommand" : '--version', 61 "versionCommand" : '--version',
60 "versionStartsWith" : 'eric5-', 62 "versionStartsWith" : 'eric5-',
61 "versionPosition" : -3, 63 "versionPosition" : -3,
62 "version" : "", 64 "version" : "",
63 "versionCleanup" : None, 65 "versionCleanup" : None,
64 } 66 })
65 67
66 return data 68 # 2. Qt Help Generator
69 exe = 'qhelpgenerator'
70 if Utilities.isWindowsPlatform():
71 exe += '.exe'
72 dataList.append({
73 "programEntry" : True,
74 "header" : QApplication.translate("EricdocPlugin",
75 "Qt4 Help Tools"),
76 "exe" : exe,
77 "versionCommand" : '-v',
78 "versionStartsWith" : 'Qt',
79 "versionPosition" : -1,
80 "version" : "",
81 "versionCleanup" : (0, -1),
82 })
83
84 # 3. Qt Collection Generator
85 exe = 'qcollectiongenerator'
86 if Utilities.isWindowsPlatform():
87 exe += '.exe'
88 dataList.append({
89 "programEntry" : True,
90 "header" : QApplication.translate("EricdocPlugin",
91 "Qt4 Help Tools"),
92 "exe" : exe,
93 "versionCommand" : '-v',
94 "versionStartsWith" : 'Qt',
95 "versionPosition" : -1,
96 "version" : "",
97 "versionCleanup" : (0, -1),
98 })
99
100 return dataList
67 101
68 class EricdocPlugin(QObject): 102 class EricdocPlugin(QObject):
69 """ 103 """
70 Class implementing the Ericdoc plugin. 104 Class implementing the Ericdoc plugin.
71 """ 105 """

eric ide

mercurial