src/eric7/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/LfConvertDataDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
26 26
27 def __init__(self, currentPath, mode, parent=None): 27 def __init__(self, currentPath, mode, parent=None):
28 """ 28 """
29 Constructor 29 Constructor
30 30
31 @param currentPath directory name of the current project (string) 31 @param currentPath directory name of the current project
32 @param mode dialog mode (string, one of 'largefiles' or 'normal') 32 @type str
33 @param parent reference to the parent widget (QWidget) 33 @param mode dialog mode (one of 'largefiles' or 'normal')
34 @type str
35 @param parent reference to the parent widget
36 @type QWidget
34 """ 37 """
35 super().__init__(parent) 38 super().__init__(parent)
36 self.setupUi(self) 39 self.setupUi(self)
37 40
38 self.newProjectPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) 41 self.newProjectPicker.setMode(EricPathPickerModes.DIRECTORY_MODE)
56 @pyqtSlot(str) 59 @pyqtSlot(str)
57 def on_newProjectPicker_textChanged(self, txt): 60 def on_newProjectPicker_textChanged(self, txt):
58 """ 61 """
59 Private slot to handle editing of the new project directory. 62 Private slot to handle editing of the new project directory.
60 63
61 @param txt new project directory name (string) 64 @param txt new project directory name
65 @type str
62 """ 66 """
63 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( 67 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
64 txt 68 txt
65 and FileSystemUtilities.toNativeSeparators(txt) 69 and FileSystemUtilities.toNativeSeparators(txt)
66 != os.path.dirname(self.__currentPath) 70 != os.path.dirname(self.__currentPath)
68 72
69 def getData(self): 73 def getData(self):
70 """ 74 """
71 Public method to retrieve the entered data. 75 Public method to retrieve the entered data.
72 76
73 @return tuple containing the new project directory name (string), 77 @return tuple containing the new project directory name, minimum file size
74 minimum file size (integer) and file patterns (list of string) 78 and file patterns
79 @rtype tuple of (str, int, list of str)
75 """ 80 """
76 patterns = self.lfFilePatternsEdit.text().split() 81 patterns = self.lfFilePatternsEdit.text().split()
77 if set(patterns) == set(self.__defaults["pattern"]): 82 if set(patterns) == set(self.__defaults["pattern"]):
78 patterns = [] 83 patterns = []
79 84

eric ide

mercurial