238 @pyqtSlot(str) |
238 @pyqtSlot(str) |
239 def on_dirPicker_textChanged(self, txt): |
239 def on_dirPicker_textChanged(self, txt): |
240 """ |
240 """ |
241 Private slot to handle a change of the project directory. |
241 Private slot to handle a change of the project directory. |
242 |
242 |
243 @param txt name of the project directory (string) |
243 @param txt name of the project directory |
|
244 @type str |
244 """ |
245 """ |
245 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
246 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
246 bool(txt) |
247 bool(txt) |
247 and FileSystemUtilities.fromNativeSeparators(txt) not in self.__initPaths |
248 and FileSystemUtilities.fromNativeSeparators(txt) not in self.__initPaths |
248 ) |
249 ) |
362 |
363 |
363 def getProjectType(self): |
364 def getProjectType(self): |
364 """ |
365 """ |
365 Public method to get the selected project type. |
366 Public method to get the selected project type. |
366 |
367 |
367 @return selected UI type (string) |
368 @return selected UI type |
|
369 @rtype str |
368 """ |
370 """ |
369 return self.projectTypeComboBox.itemData( |
371 return self.projectTypeComboBox.itemData( |
370 self.projectTypeComboBox.currentIndex() |
372 self.projectTypeComboBox.currentIndex() |
371 ) |
373 ) |
372 |
374 |
373 def getPPath(self): |
375 def getPPath(self): |
374 """ |
376 """ |
375 Public method to get the project path. |
377 Public method to get the project path. |
376 |
378 |
377 @return data of the project directory edit (string) |
379 @return data of the project directory edit |
|
380 @rtype str |
378 """ |
381 """ |
379 return os.path.abspath(self.dirPicker.text()) |
382 return os.path.abspath(self.dirPicker.text()) |
380 |
383 |
381 @pyqtSlot() |
384 @pyqtSlot() |
382 def __initFileTypesDict(self): |
385 def __initFileTypesDict(self): |