84 # 1a. Translation Converter |
86 # 1a. Translation Converter |
85 exe = Utilities.isWindowsPlatform() and \ |
87 exe = Utilities.isWindowsPlatform() and \ |
86 "{0}.exe".format(Utilities.generateQtToolName("lrelease")) or \ |
88 "{0}.exe".format(Utilities.generateQtToolName("lrelease")) or \ |
87 Utilities.generateQtToolName("lrelease") |
89 Utilities.generateQtToolName("lrelease") |
88 exe = os.path.join(Utilities.getQtBinariesPath(), exe) |
90 exe = os.path.join(Utilities.getQtBinariesPath(), exe) |
89 version = self.__createProgramEntry(self.trUtf8("Translation Converter (Qt)"), |
91 version = self.__createProgramEntry( |
90 exe, '-version', 'lrelease', -1) |
92 self.trUtf8("Translation Converter (Qt)"), exe, '-version', |
|
93 'lrelease', -1) |
91 # 1b. Qt Designer |
94 # 1b. Qt Designer |
92 if Utilities.isWindowsPlatform(): |
95 if Utilities.isWindowsPlatform(): |
93 exe = os.path.join(Utilities.getQtBinariesPath(), |
96 exe = os.path.join(Utilities.getQtBinariesPath(), |
94 "{0}.exe".format(Utilities.generateQtToolName("designer"))) |
97 "{0}.exe".format(Utilities.generateQtToolName("designer"))) |
95 elif Utilities.isMacPlatform(): |
98 elif Utilities.isMacPlatform(): |
96 exe = Utilities.getQtMacBundle("designer") |
99 exe = Utilities.getQtMacBundle("designer") |
97 else: |
100 else: |
98 exe = os.path.join(Utilities.getQtBinariesPath(), |
101 exe = os.path.join(Utilities.getQtBinariesPath(), |
99 Utilities.generateQtToolName("designer")) |
102 Utilities.generateQtToolName("designer")) |
100 self.__createProgramEntry(self.trUtf8("Qt Designer"), exe, version=version) |
103 self.__createProgramEntry( |
|
104 self.trUtf8("Qt Designer"), exe, version=version) |
101 # 1c. Qt Linguist |
105 # 1c. Qt Linguist |
102 if Utilities.isWindowsPlatform(): |
106 if Utilities.isWindowsPlatform(): |
103 exe = os.path.join(Utilities.getQtBinariesPath(), |
107 exe = os.path.join(Utilities.getQtBinariesPath(), |
104 "{0}.exe".format(Utilities.generateQtToolName("linguist"))) |
108 "{0}.exe".format(Utilities.generateQtToolName("linguist"))) |
105 elif Utilities.isMacPlatform(): |
109 elif Utilities.isMacPlatform(): |
106 exe = Utilities.getQtMacBundle("linguist") |
110 exe = Utilities.getQtMacBundle("linguist") |
107 else: |
111 else: |
108 exe = os.path.join(Utilities.getQtBinariesPath(), |
112 exe = os.path.join(Utilities.getQtBinariesPath(), |
109 Utilities.generateQtToolName("linguist")) |
113 Utilities.generateQtToolName("linguist")) |
110 self.__createProgramEntry(self.trUtf8("Qt Linguist"), exe, version=version) |
114 self.__createProgramEntry( |
|
115 self.trUtf8("Qt Linguist"), exe, version=version) |
111 # 1d. Qt Assistant |
116 # 1d. Qt Assistant |
112 if Utilities.isWindowsPlatform(): |
117 if Utilities.isWindowsPlatform(): |
113 exe = os.path.join(Utilities.getQtBinariesPath(), |
118 exe = os.path.join(Utilities.getQtBinariesPath(), |
114 "{0}.exe".format(Utilities.generateQtToolName("assistant"))) |
119 "{0}.exe".format(Utilities.generateQtToolName("assistant"))) |
115 elif Utilities.isMacPlatform(): |
120 elif Utilities.isMacPlatform(): |
116 exe = Utilities.getQtMacBundle("assistant") |
121 exe = Utilities.getQtMacBundle("assistant") |
117 else: |
122 else: |
118 exe = os.path.join(Utilities.getQtBinariesPath(), |
123 exe = os.path.join(Utilities.getQtBinariesPath(), |
119 Utilities.generateQtToolName("assistant")) |
124 Utilities.generateQtToolName("assistant")) |
120 self.__createProgramEntry(self.trUtf8("Qt Assistant"), exe, version=version) |
125 self.__createProgramEntry( |
|
126 self.trUtf8("Qt Assistant"), exe, version=version) |
121 |
127 |
122 # 2. do the PyQt programs |
128 # 2. do the PyQt programs |
123 # 2a. Translation Extractor PyQt4 |
129 # 2a. Translation Extractor PyQt4 |
124 self.__createProgramEntry(self.trUtf8("Translation Extractor (Python, PyQt4)"), |
130 self.__createProgramEntry( |
|
131 self.trUtf8("Translation Extractor (Python, PyQt4)"), |
125 Utilities.isWindowsPlatform() and "pylupdate4.exe" or "pylupdate4", |
132 Utilities.isWindowsPlatform() and "pylupdate4.exe" or "pylupdate4", |
126 '-version', 'pylupdate', -1) |
133 '-version', 'pylupdate', -1) |
127 # 2b. Forms Compiler PyQt4 |
134 # 2b. Forms Compiler PyQt4 |
128 self.__createProgramEntry(self.trUtf8("Forms Compiler (Python, PyQt4)"), |
135 self.__createProgramEntry( |
|
136 self.trUtf8("Forms Compiler (Python, PyQt4)"), |
129 Utilities.isWindowsPlatform() and "pyuic4.bat" or "pyuic4", |
137 Utilities.isWindowsPlatform() and "pyuic4.bat" or "pyuic4", |
130 '--version', 'Python User', 4) |
138 '--version', 'Python User', 4) |
131 # 2c. Resource Compiler PyQt4 |
139 # 2c. Resource Compiler PyQt4 |
132 self.__createProgramEntry(self.trUtf8("Resource Compiler (Python, PyQt4)"), |
140 self.__createProgramEntry( |
|
141 self.trUtf8("Resource Compiler (Python, PyQt4)"), |
133 Utilities.isWindowsPlatform() and "pyrcc4.exe" or "pyrcc4", |
142 Utilities.isWindowsPlatform() and "pyrcc4.exe" or "pyrcc4", |
134 '-version', 'Resource Compiler', -1) |
143 '-version', 'Resource Compiler', -1) |
135 # 2d. Translation Extractor PyQt5 |
144 # 2d. Translation Extractor PyQt5 |
136 self.__createProgramEntry(self.trUtf8("Translation Extractor (Python, PyQt5)"), |
145 self.__createProgramEntry( |
|
146 self.trUtf8("Translation Extractor (Python, PyQt5)"), |
137 Utilities.isWindowsPlatform() and "pylupdate5.exe" or "pylupdate5", |
147 Utilities.isWindowsPlatform() and "pylupdate5.exe" or "pylupdate5", |
138 '-version', 'pylupdate', -1) |
148 '-version', 'pylupdate', -1) |
139 # 2e. Forms Compiler PyQt4 |
149 # 2e. Forms Compiler PyQt4 |
140 self.__createProgramEntry(self.trUtf8("Forms Compiler (Python, PyQt5)"), |
150 self.__createProgramEntry( |
|
151 self.trUtf8("Forms Compiler (Python, PyQt5)"), |
141 Utilities.isWindowsPlatform() and "pyuic5.bat" or "pyuic5", |
152 Utilities.isWindowsPlatform() and "pyuic5.bat" or "pyuic5", |
142 '--version', 'Python User', 4) |
153 '--version', 'Python User', 4) |
143 # 2f. Resource Compiler PyQt4 |
154 # 2f. Resource Compiler PyQt4 |
144 self.__createProgramEntry(self.trUtf8("Resource Compiler (Python, PyQt5)"), |
155 self.__createProgramEntry( |
|
156 self.trUtf8("Resource Compiler (Python, PyQt5)"), |
145 Utilities.isWindowsPlatform() and "pyrcc5.exe" or "pyrcc5", |
157 Utilities.isWindowsPlatform() and "pyrcc5.exe" or "pyrcc5", |
146 '-version', 'Resource Compiler', -1) |
158 '-version', 'Resource Compiler', -1) |
147 |
159 |
148 # 3. do the PySide programs |
160 # 3. do the PySide programs |
149 # 3a. Translation Extractor PySide |
161 # 3a. Translation Extractor PySide |
150 self.__createProgramEntry(self.trUtf8("Translation Extractor (Python, PySide)"), |
162 self.__createProgramEntry( |
|
163 self.trUtf8("Translation Extractor (Python, PySide)"), |
151 Utilities.generatePySideToolPath("pyside-lupdate"), |
164 Utilities.generatePySideToolPath("pyside-lupdate"), |
152 '-version', '', -1, versionRe='lupdate') |
165 '-version', '', -1, versionRe='lupdate') |
153 # 3b. Forms Compiler PySide |
166 # 3b. Forms Compiler PySide |
154 self.__createProgramEntry(self.trUtf8("Forms Compiler (Python, PySide)"), |
167 self.__createProgramEntry( |
|
168 self.trUtf8("Forms Compiler (Python, PySide)"), |
155 Utilities.generatePySideToolPath("pyside-uic"), |
169 Utilities.generatePySideToolPath("pyside-uic"), |
156 '--version', 'PySide User', 5, versionCleanup=(0, -1)) |
170 '--version', 'PySide User', 5, versionCleanup=(0, -1)) |
157 # 3.c Resource Compiler PySide |
171 # 3.c Resource Compiler PySide |
158 self.__createProgramEntry(self.trUtf8("Resource Compiler (Python, PySide)"), |
172 self.__createProgramEntry( |
|
173 self.trUtf8("Resource Compiler (Python, PySide)"), |
159 Utilities.generatePySideToolPath("pyside-rcc"), |
174 Utilities.generatePySideToolPath("pyside-rcc"), |
160 '-version', 'Resource Compiler', -1) |
175 '-version', 'Resource Compiler', -1) |
161 |
176 |
162 # 4. do the Ruby programs |
177 # 4. do the Ruby programs |
163 # 4a. Forms Compiler for Qt4 |
178 # 4a. Forms Compiler for Qt4 |