src/eric7/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesNewPatchDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
27 """ 27 """
28 Constructor 28 Constructor
29 29
30 @param mode mode of the dialog (HgQueuesNewPatchDialog.NEW_MODE, 30 @param mode mode of the dialog (HgQueuesNewPatchDialog.NEW_MODE,
31 HgQueuesNewPatchDialog.REFRESH_MODE) 31 HgQueuesNewPatchDialog.REFRESH_MODE)
32 @param message text to set as the commit message (string) 32 @type int
33 @param parent reference to the parent widget (QWidget) 33 @param message text to set as the commit message
34 @type str
35 @param parent reference to the parent widget
36 @type QWidget
34 @exception ValueError raised to indicate an invalid dialog mode 37 @exception ValueError raised to indicate an invalid dialog mode
35 """ 38 """
36 super().__init__(parent) 39 super().__init__(parent)
37 self.setupUi(self) 40 self.setupUi(self)
38 41
77 @pyqtSlot(str) 80 @pyqtSlot(str)
78 def on_nameEdit_textChanged(self, txt): 81 def on_nameEdit_textChanged(self, txt):
79 """ 82 """
80 Private slot to handle changes of the patch name. 83 Private slot to handle changes of the patch name.
81 84
82 @param txt text of the edit (string) 85 @param txt text of the edit
86 @type str
83 """ 87 """
84 self.__updateUI() 88 self.__updateUI()
85 89
86 @pyqtSlot() 90 @pyqtSlot()
87 def on_messageEdit_textChanged(self): 91 def on_messageEdit_textChanged(self):
93 @pyqtSlot(bool) 97 @pyqtSlot(bool)
94 def on_userGroup_toggled(self, checked): 98 def on_userGroup_toggled(self, checked):
95 """ 99 """
96 Private slot to handle changes of the user group state. 100 Private slot to handle changes of the user group state.
97 101
98 @param checked flag giving the checked state (boolean) 102 @param checked flag giving the checked state
103 @type bool
99 """ 104 """
100 self.__updateUI() 105 self.__updateUI()
101 106
102 @pyqtSlot(bool) 107 @pyqtSlot(bool)
103 def on_currentUserCheckBox_toggled(self, checked): 108 def on_currentUserCheckBox_toggled(self, checked):
104 """ 109 """
105 Private slot to handle changes of the currentuser state. 110 Private slot to handle changes of the currentuser state.
106 111
107 @param checked flag giving the checked state (boolean) 112 @param checked flag giving the checked state
113 @type bool
108 """ 114 """
109 self.__updateUI() 115 self.__updateUI()
110 116
111 @pyqtSlot(str) 117 @pyqtSlot(str)
112 def on_userEdit_textChanged(self, txt): 118 def on_userEdit_textChanged(self, txt):
113 """ 119 """
114 Private slot to handle changes of the user name. 120 Private slot to handle changes of the user name.
115 121
116 @param txt text of the edit (string) 122 @param txt text of the edit
123 @type str
117 """ 124 """
118 self.__updateUI() 125 self.__updateUI()
119 126
120 def getData(self): 127 def getData(self):
121 """ 128 """
123 130
124 @return tuple giving the patch name and message, a tuple giving a 131 @return tuple giving the patch name and message, a tuple giving a
125 flag indicating to set the user, a flag indicating to use the 132 flag indicating to set the user, a flag indicating to use the
126 current user and the user name and another tuple giving a flag 133 current user and the user name and another tuple giving a flag
127 indicating to set the date, a flag indicating to use the 134 indicating to set the date, a flag indicating to use the
128 current date and the date (string, string, (boolean, boolean, 135 current date and the date
129 string), (boolean, boolean, string)) 136 @rtype tuple of (str, str, tuple of (bool, bool, str), tuple of
137 (bool, bool, str))
130 """ 138 """
131 userData = ( 139 userData = (
132 self.userGroup.isChecked(), 140 self.userGroup.isChecked(),
133 self.currentUserCheckBox.isChecked(), 141 self.currentUserCheckBox.isChecked(),
134 self.userEdit.text(), 142 self.userEdit.text(),

eric ide

mercurial