|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesNewPatchDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesNewPatchDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to get the data for a new patch. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#HgQueuesNewPatchDialog">HgQueuesNewPatchDialog</a></td> |
|
25 <td>Class implementing a dialog to get the data for a new patch.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="HgQueuesNewPatchDialog" ID="HgQueuesNewPatchDialog"></a> |
|
36 <h2>HgQueuesNewPatchDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to get the data for a new patch. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_HgQueuesNewPatchDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>NEW_MODE</td></tr><tr><td>REFRESH_MODE</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#HgQueuesNewPatchDialog.__init__">HgQueuesNewPatchDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#HgQueuesNewPatchDialog.__updateUI">__updateUI</a></td> |
|
63 <td>Private slot to update the UI.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#HgQueuesNewPatchDialog.getData">getData</a></td> |
|
67 <td>Public method to retrieve the entered data.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#HgQueuesNewPatchDialog.on_currentUserCheckBox_toggled">on_currentUserCheckBox_toggled</a></td> |
|
71 <td>Private slot to handle changes of the currentuser state.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#HgQueuesNewPatchDialog.on_messageEdit_textChanged">on_messageEdit_textChanged</a></td> |
|
75 <td>Private slot to handle changes of the patch message.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#HgQueuesNewPatchDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> |
|
79 <td>Private slot to handle changes of the patch name.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#HgQueuesNewPatchDialog.on_userEdit_textChanged">on_userEdit_textChanged</a></td> |
|
83 <td>Private slot to handle changes of the user name.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#HgQueuesNewPatchDialog.on_userGroup_toggled">on_userGroup_toggled</a></td> |
|
87 <td>Private slot to handle changes of the user group state.</td> |
|
88 </tr> |
|
89 </table> |
|
90 <h3>Static Methods</h3> |
|
91 |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 |
|
96 <a NAME="HgQueuesNewPatchDialog.__init__" ID="HgQueuesNewPatchDialog.__init__"></a> |
|
97 <h4>HgQueuesNewPatchDialog (Constructor)</h4> |
|
98 <b>HgQueuesNewPatchDialog</b>(<i>mode, message="", parent=None</i>) |
|
99 |
|
100 <p> |
|
101 Constructor |
|
102 </p> |
|
103 <dl> |
|
104 |
|
105 <dt><i>mode</i></dt> |
|
106 <dd> |
|
107 mode of the dialog (HgQueuesNewPatchDialog.NEW_MODE, |
|
108 HgQueuesNewPatchDialog.REFRESH_MODE) |
|
109 </dd> |
|
110 <dt><i>message</i></dt> |
|
111 <dd> |
|
112 text to set as the commit message (string) |
|
113 </dd> |
|
114 <dt><i>parent</i></dt> |
|
115 <dd> |
|
116 reference to the parent widget (QWidget) |
|
117 </dd> |
|
118 </dl> |
|
119 <dl> |
|
120 |
|
121 <dt>Raises <b>ValueError</b>:</dt> |
|
122 <dd> |
|
123 raised to indicate an invalid dialog mode |
|
124 </dd> |
|
125 </dl> |
|
126 <a NAME="HgQueuesNewPatchDialog.__updateUI" ID="HgQueuesNewPatchDialog.__updateUI"></a> |
|
127 <h4>HgQueuesNewPatchDialog.__updateUI</h4> |
|
128 <b>__updateUI</b>(<i></i>) |
|
129 |
|
130 <p> |
|
131 Private slot to update the UI. |
|
132 </p> |
|
133 <a NAME="HgQueuesNewPatchDialog.getData" ID="HgQueuesNewPatchDialog.getData"></a> |
|
134 <h4>HgQueuesNewPatchDialog.getData</h4> |
|
135 <b>getData</b>(<i></i>) |
|
136 |
|
137 <p> |
|
138 Public method to retrieve the entered data. |
|
139 </p> |
|
140 <dl> |
|
141 <dt>Return:</dt> |
|
142 <dd> |
|
143 tuple giving the patch name and message, a tuple giving a |
|
144 flag indicating to set the user, a flag indicating to use the |
|
145 current user and the user name and another tuple giving a flag |
|
146 indicating to set the date, a flag indicating to use the |
|
147 current date and the date (string, string, (boolean, boolean, |
|
148 string), (boolean, boolean, string)) |
|
149 </dd> |
|
150 </dl> |
|
151 <a NAME="HgQueuesNewPatchDialog.on_currentUserCheckBox_toggled" ID="HgQueuesNewPatchDialog.on_currentUserCheckBox_toggled"></a> |
|
152 <h4>HgQueuesNewPatchDialog.on_currentUserCheckBox_toggled</h4> |
|
153 <b>on_currentUserCheckBox_toggled</b>(<i>checked</i>) |
|
154 |
|
155 <p> |
|
156 Private slot to handle changes of the currentuser state. |
|
157 </p> |
|
158 <dl> |
|
159 |
|
160 <dt><i>checked</i></dt> |
|
161 <dd> |
|
162 flag giving the checked state (boolean) |
|
163 </dd> |
|
164 </dl> |
|
165 <a NAME="HgQueuesNewPatchDialog.on_messageEdit_textChanged" ID="HgQueuesNewPatchDialog.on_messageEdit_textChanged"></a> |
|
166 <h4>HgQueuesNewPatchDialog.on_messageEdit_textChanged</h4> |
|
167 <b>on_messageEdit_textChanged</b>(<i></i>) |
|
168 |
|
169 <p> |
|
170 Private slot to handle changes of the patch message. |
|
171 </p> |
|
172 <a NAME="HgQueuesNewPatchDialog.on_nameEdit_textChanged" ID="HgQueuesNewPatchDialog.on_nameEdit_textChanged"></a> |
|
173 <h4>HgQueuesNewPatchDialog.on_nameEdit_textChanged</h4> |
|
174 <b>on_nameEdit_textChanged</b>(<i>txt</i>) |
|
175 |
|
176 <p> |
|
177 Private slot to handle changes of the patch name. |
|
178 </p> |
|
179 <dl> |
|
180 |
|
181 <dt><i>txt</i></dt> |
|
182 <dd> |
|
183 text of the edit (string) |
|
184 </dd> |
|
185 </dl> |
|
186 <a NAME="HgQueuesNewPatchDialog.on_userEdit_textChanged" ID="HgQueuesNewPatchDialog.on_userEdit_textChanged"></a> |
|
187 <h4>HgQueuesNewPatchDialog.on_userEdit_textChanged</h4> |
|
188 <b>on_userEdit_textChanged</b>(<i>txt</i>) |
|
189 |
|
190 <p> |
|
191 Private slot to handle changes of the user name. |
|
192 </p> |
|
193 <dl> |
|
194 |
|
195 <dt><i>txt</i></dt> |
|
196 <dd> |
|
197 text of the edit (string) |
|
198 </dd> |
|
199 </dl> |
|
200 <a NAME="HgQueuesNewPatchDialog.on_userGroup_toggled" ID="HgQueuesNewPatchDialog.on_userGroup_toggled"></a> |
|
201 <h4>HgQueuesNewPatchDialog.on_userGroup_toggled</h4> |
|
202 <b>on_userGroup_toggled</b>(<i>checked</i>) |
|
203 |
|
204 <p> |
|
205 Private slot to handle changes of the user group state. |
|
206 </p> |
|
207 <dl> |
|
208 |
|
209 <dt><i>checked</i></dt> |
|
210 <dd> |
|
211 flag giving the checked state (boolean) |
|
212 </dd> |
|
213 </dl> |
|
214 <div align="right"><a href="#top">Up</a></div> |
|
215 <hr /> |
|
216 </body></html> |