108 vcsSystemDisplay = \ |
108 vcsSystemDisplay = \ |
109 vcsSystemsDict[self.project.pdata["VCS"][0]] |
109 vcsSystemsDict[self.project.pdata["VCS"][0]] |
110 except KeyError: |
110 except KeyError: |
111 vcsSystemDisplay = "None" |
111 vcsSystemDisplay = "None" |
112 self.vcsLabel.setText( |
112 self.vcsLabel.setText( |
113 self.trUtf8( |
113 self.tr( |
114 "The project is version controlled by <b>{0}</b>.") |
114 "The project is version controlled by <b>{0}</b>.") |
115 .format(vcsSystemDisplay)) |
115 .format(vcsSystemDisplay)) |
116 self.vcsInfoButton.show() |
116 self.vcsInfoButton.show() |
117 else: |
117 else: |
118 self.vcsLabel.setText( |
118 self.vcsLabel.setText( |
119 self.trUtf8("The project is not version controlled.")) |
119 self.tr("The project is not version controlled.")) |
120 self.vcsInfoButton.hide() |
120 self.vcsInfoButton.hide() |
121 self.vcsCheckBox.hide() |
121 self.vcsCheckBox.hide() |
122 else: |
122 else: |
123 self.languageComboBox.setCurrentIndex( |
123 self.languageComboBox.setCurrentIndex( |
124 self.languageComboBox.findText("Python3")) |
124 self.languageComboBox.findText("Python3")) |
156 """ |
156 """ |
157 Private slot to display a directory selection dialog. |
157 Private slot to display a directory selection dialog. |
158 """ |
158 """ |
159 directory = E5FileDialog.getExistingDirectory( |
159 directory = E5FileDialog.getExistingDirectory( |
160 self, |
160 self, |
161 self.trUtf8("Select project directory"), |
161 self.tr("Select project directory"), |
162 self.dirEdit.text(), |
162 self.dirEdit.text(), |
163 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
163 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
164 |
164 |
165 if directory: |
165 if directory: |
166 self.dirEdit.setText(Utilities.toNativeSeparators(directory)) |
166 self.dirEdit.setText(Utilities.toNativeSeparators(directory)) |
205 dir = QDir.currentPath() |
205 dir = QDir.currentPath() |
206 patterns = [] |
206 patterns = [] |
207 for pattern, filetype in list(self.project.pdata["FILETYPES"].items()): |
207 for pattern, filetype in list(self.project.pdata["FILETYPES"].items()): |
208 if filetype == "SOURCES": |
208 if filetype == "SOURCES": |
209 patterns.append(pattern) |
209 patterns.append(pattern) |
210 filters = self.trUtf8("Source Files ({0});;All Files (*)")\ |
210 filters = self.tr("Source Files ({0});;All Files (*)")\ |
211 .format(" ".join(patterns)) |
211 .format(" ".join(patterns)) |
212 fn = E5FileDialog.getOpenFileName( |
212 fn = E5FileDialog.getOpenFileName( |
213 self, |
213 self, |
214 self.trUtf8("Select main script file"), |
214 self.tr("Select main script file"), |
215 dir, |
215 dir, |
216 filters) |
216 filters) |
217 |
217 |
218 if fn: |
218 if fn: |
219 ppath = self.dirEdit.text() |
219 ppath = self.dirEdit.text() |