184 It displays a file selection dialog to |
184 It displays a file selection dialog to |
185 select the file the api is written to. |
185 select the file the api is written to. |
186 """ |
186 """ |
187 filename = E5FileDialog.getSaveFileName( |
187 filename = E5FileDialog.getSaveFileName( |
188 self, |
188 self, |
189 self.trUtf8("Select output file"), |
189 self.tr("Select output file"), |
190 self.outputFileEdit.text(), |
190 self.outputFileEdit.text(), |
191 self.trUtf8("API files (*.api);;All files (*)")) |
191 self.tr("API files (*.api);;All files (*)")) |
192 |
192 |
193 if filename: |
193 if filename: |
194 # make it relative, if it is in a subdirectory of the project path |
194 # make it relative, if it is in a subdirectory of the project path |
195 fn = Utilities.toNativeSeparators(filename) |
195 fn = Utilities.toNativeSeparators(filename) |
196 fn = self.project.getRelativePath(fn) |
196 fn = self.project.getRelativePath(fn) |
215 startDir = self.ignoreDirEdit.text() |
215 startDir = self.ignoreDirEdit.text() |
216 if not startDir: |
216 if not startDir: |
217 startDir = self.ppath |
217 startDir = self.ppath |
218 directory = E5FileDialog.getExistingDirectory( |
218 directory = E5FileDialog.getExistingDirectory( |
219 self, |
219 self, |
220 self.trUtf8("Select directory to exclude"), |
220 self.tr("Select directory to exclude"), |
221 startDir, |
221 startDir, |
222 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
222 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
223 |
223 |
224 if directory: |
224 if directory: |
225 # make it relative, if it is a subdirectory of the project path |
225 # make it relative, if it is a subdirectory of the project path |