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

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
14 14
15 class GitApplyBundleDataDialog(QDialog, Ui_GitApplyBundleDataDialog): 15 class GitApplyBundleDataDialog(QDialog, Ui_GitApplyBundleDataDialog):
16 """ 16 """
17 Class implementing a dialog to enter the data for applying a bundle. 17 Class implementing a dialog to enter the data for applying a bundle.
18 """ 18 """
19
19 def __init__(self, bundleHeads, branches, parent=None): 20 def __init__(self, bundleHeads, branches, parent=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param bundleHeads list of heads contained in a bundle 24 @param bundleHeads list of heads contained in a bundle
24 (list of strings) 25 (list of strings)
25 @param branches list of available branch names (list of strings) 26 @param branches list of available branch names (list of strings)
26 @param parent reference to the parent widget (QWidget) 27 @param parent reference to the parent widget (QWidget)
27 """ 28 """
28 super().__init__(parent) 29 super().__init__(parent)
29 self.setupUi(self) 30 self.setupUi(self)
30 31
31 self.headCombo.addItems(sorted(bundleHeads)) 32 self.headCombo.addItems(sorted(bundleHeads))
32 self.branchCombo.addItems([""] + sorted(branches)) 33 self.branchCombo.addItems([""] + sorted(branches))
33 34
34 def getData(self): 35 def getData(self):
35 """ 36 """
36 Public method to get the entered data. 37 Public method to get the entered data.
37 38
38 @return tuple with the bundle head (string) and the local branch 39 @return tuple with the bundle head (string) and the local branch
39 name (string) 40 name (string)
40 """ 41 """
41 return self.headCombo.currentText(), self.branchCombo.currentText() 42 return self.headCombo.currentText(), self.branchCombo.currentText()

eric ide

mercurial