Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesNewPatchDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3008
7848489bcb92
child 3058
0a02c433f52d
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
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
78 79
79 @pyqtSlot() 80 @pyqtSlot()
80 def on_messageEdit_textChanged(self): 81 def on_messageEdit_textChanged(self):
81 """ 82 """
82 Private slot to handle changes of the patch message. 83 Private slot to handle changes of the patch message.
83
84 @param txt text of the edit (string)
85 """ 84 """
86 self.__updateUI() 85 self.__updateUI()
87 86
88 @pyqtSlot(bool) 87 @pyqtSlot(bool)
89 def on_userGroup_toggled(self, checked): 88 def on_userGroup_toggled(self, checked):
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(),

eric ide

mercurial