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