src/eric7/Plugins/VcsPlugins/vcsGit/GitSubmodulesSyncDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
14 14
15 class GitSubmodulesSyncDialog(QDialog, Ui_GitSubmodulesSyncDialog): 15 class GitSubmodulesSyncDialog(QDialog, Ui_GitSubmodulesSyncDialog):
16 """ 16 """
17 Class implementing a dialog to enter submodule synchronization options. 17 Class implementing a dialog to enter submodule synchronization options.
18 """ 18 """
19
19 def __init__(self, submodulePaths, parent=None): 20 def __init__(self, submodulePaths, parent=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param submodulePaths list of submodule paths 24 @param submodulePaths list of submodule paths
24 @type list of str 25 @type list of str
25 @param parent reference to the parent widget 26 @param parent reference to the parent widget
26 @type QWidget 27 @type QWidget
27 """ 28 """
28 super().__init__(parent) 29 super().__init__(parent)
29 self.setupUi(self) 30 self.setupUi(self)
30 31
31 self.submodulesList.addItems(sorted(submodulePaths)) 32 self.submodulesList.addItems(sorted(submodulePaths))
32 33
33 def getData(self): 34 def getData(self):
34 """ 35 """
35 Public method to get the entered data. 36 Public method to get the entered data.
36 37
37 @return tuple containing a list of selected submodules and a flag 38 @return tuple containing a list of selected submodules and a flag
38 indicating a recursive operation 39 indicating a recursive operation
39 @rtype tuple of (list of str, bool) 40 @rtype tuple of (list of str, bool)
40 """ 41 """
41 submodulePaths = [] 42 submodulePaths = []
42 for itm in self.submodulesList.selectedItems(): 43 for itm in self.submodulesList.selectedItems():
43 submodulePaths.append(itm.text()) 44 submodulePaths.append(itm.text())
44 45
45 return submodulePaths, self.recursiveCheckBox.isChecked() 46 return submodulePaths, self.recursiveCheckBox.isChecked()

eric ide

mercurial