28 |
28 |
29 @param mode mode of the dialog (HgQueuesNewPatchDialog.NEW_MODE, |
29 @param mode mode of the dialog (HgQueuesNewPatchDialog.NEW_MODE, |
30 HgQueuesNewPatchDialog.REFRESH_MODE) |
30 HgQueuesNewPatchDialog.REFRESH_MODE) |
31 @param message text to set as the commit message (string) |
31 @param message text to set as the commit message (string) |
32 @param parent reference to the parent widget (QWidget) |
32 @param parent reference to the parent widget (QWidget) |
|
33 @exception ValueError raised to indicate an invalid dialog mode |
33 """ |
34 """ |
34 super(HgQueuesNewPatchDialog, self).__init__(parent) |
35 super(HgQueuesNewPatchDialog, self).__init__(parent) |
35 self.setupUi(self) |
36 self.setupUi(self) |
36 |
37 |
37 self.__mode = mode |
38 self.__mode = mode |
118 |
117 |
119 @return tuple giving the patch name and message, a tuple giving a |
118 @return tuple giving the patch name and message, a tuple giving a |
120 flag indicating to set the user, a flag indicating to use the |
119 flag indicating to set the user, a flag indicating to use the |
121 current user and the user name and another tuple giving a flag |
120 current user and the user name and another tuple giving a flag |
122 indicating to set the date, a flag indicating to use the |
121 indicating to set the date, a flag indicating to use the |
123 current date and the date (string, string, (boolean, boolean, string), |
122 current date and the date (string, string, (boolean, boolean, |
124 (boolean, boolean, string)) |
123 string), (boolean, boolean, string)) |
125 """ |
124 """ |
126 userData = (self.userGroup.isChecked(), |
125 userData = (self.userGroup.isChecked(), |
127 self.currentUserCheckBox.isChecked(), |
126 self.currentUserCheckBox.isChecked(), |
128 self.userEdit.text()) |
127 self.userEdit.text()) |
129 dateData = (self.dateGroup.isChecked(), |
128 dateData = (self.dateGroup.isChecked(), |