7 Module implementing the Ericdoc plugin. |
7 Module implementing the Ericdoc plugin. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import QObject, QLibraryInfo |
12 from PyQt4.QtCore import QObject |
13 from PyQt4.QtGui import QDialog, QApplication |
13 from PyQt4.QtGui import QDialog, QApplication |
14 |
14 |
15 from E5Gui.E5Application import e5App |
15 from E5Gui.E5Application import e5App |
16 |
16 |
17 from E5Gui.E5Action import E5Action |
17 from E5Gui.E5Action import E5Action |
62 "version": "", |
62 "version": "", |
63 "versionCleanup": None, |
63 "versionCleanup": None, |
64 }) |
64 }) |
65 |
65 |
66 # 2. Qt Help Generator |
66 # 2. Qt Help Generator |
67 exe = os.path.join(QLibraryInfo.location(QLibraryInfo.BinariesPath), |
67 exe = os.path.join(Utilities.getQtBinariesPath(), 'qhelpgenerator') |
68 'qhelpgenerator') |
|
69 if Utilities.isWindowsPlatform(): |
68 if Utilities.isWindowsPlatform(): |
70 exe += '.exe' |
69 exe += '.exe' |
71 dataList.append({ |
70 dataList.append({ |
72 "programEntry": True, |
71 "programEntry": True, |
73 "header": QApplication.translate("EricdocPlugin", |
72 "header": QApplication.translate("EricdocPlugin", |
79 "version": "", |
78 "version": "", |
80 "versionCleanup": (0, -1), |
79 "versionCleanup": (0, -1), |
81 }) |
80 }) |
82 |
81 |
83 # 3. Qt Collection Generator |
82 # 3. Qt Collection Generator |
84 exe = os.path.join(QLibraryInfo.location(QLibraryInfo.BinariesPath), |
83 exe = os.path.join(Utilities.getQtBinariesPath(), 'qcollectiongenerator') |
85 'qcollectiongenerator') |
|
86 if Utilities.isWindowsPlatform(): |
84 if Utilities.isWindowsPlatform(): |
87 exe += '.exe' |
85 exe += '.exe' |
88 dataList.append({ |
86 dataList.append({ |
89 "programEntry": True, |
87 "programEntry": True, |
90 "header": QApplication.translate("EricdocPlugin", |
88 "header": QApplication.translate("EricdocPlugin", |