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

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
23 23
24 def __init__(self, parent=None): 24 def __init__(self, parent=None):
25 """ 25 """
26 Constructor 26 Constructor
27 27
28 @param parent reference to the parent widget (QWidget) 28 @param parent reference to the parent widget
29 @type QWidget
29 """ 30 """
30 super().__init__(parent) 31 super().__init__(parent)
31 self.setupUi(self) 32 self.setupUi(self)
32 33
33 msh = self.minimumSizeHint() 34 msh = self.minimumSizeHint()
35 36
36 def getData(self): 37 def getData(self):
37 """ 38 """
38 Public method to get the user data. 39 Public method to get the user data.
39 40
40 @return tuple containing the message (string), a flag indicating to 41 @return tuple containing the message, a flag indicating to keep changes
41 keep changes in the staging area (boolean) and an indication to 42 in the staging area and an indication to stash untracked and/or
42 stash untracked and/or ignored files (integer) 43 ignored files
44 @rtype tuple of (str, bool, int)
43 """ 45 """
44 if self.noneRadioButton.isChecked(): 46 if self.noneRadioButton.isChecked():
45 untracked = self.NoUntracked 47 untracked = self.NoUntracked
46 elif self.untrackedRadioButton.isChecked(): 48 elif self.untrackedRadioButton.isChecked():
47 untracked = self.UntrackedOnly 49 untracked = self.UntrackedOnly

eric ide

mercurial