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