|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.HgGraftDialog</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.HgGraftDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a dialog to enter the data for a graft session. |
|
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="#HgGraftDialog">HgGraftDialog</a></td> |
|
39 <td>Class implementing a dialog to enter the data for a graft session.</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="HgGraftDialog" ID="HgGraftDialog"></a> |
|
50 <h2>HgGraftDialog</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a dialog to enter the data for a graft session. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QDialog, Ui_HgGraftDialog |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</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="#HgGraftDialog.__init__">HgGraftDialog</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#HgGraftDialog.__updateOk">__updateOk</a></td> |
|
77 <td>Private slot to update the state of the OK button.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#HgGraftDialog.getData">getData</a></td> |
|
81 <td>Public method to retrieve the entered data.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#HgGraftDialog.on_currentUserCheckBox_toggled">on_currentUserCheckBox_toggled</a></td> |
|
85 <td>Private slot to handle changes of the current user state.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#HgGraftDialog.on_revisionsEdit_textChanged">on_revisionsEdit_textChanged</a></td> |
|
89 <td>Private slot to react upon changes of revisions.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#HgGraftDialog.on_userEdit_textChanged">on_userEdit_textChanged</a></td> |
|
93 <td>Private slot to handle changes of the user name.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#HgGraftDialog.on_userGroup_toggled">on_userGroup_toggled</a></td> |
|
97 <td>Private slot to handle changes of the user group state.</td> |
|
98 </tr> |
|
99 </table> |
|
100 <h3>Static Methods</h3> |
|
101 |
|
102 <table> |
|
103 <tr><td>None</td></tr> |
|
104 </table> |
|
105 |
|
106 <a NAME="HgGraftDialog.__init__" ID="HgGraftDialog.__init__"></a> |
|
107 <h4>HgGraftDialog (Constructor)</h4> |
|
108 <b>HgGraftDialog</b>(<i>vcs, revs=None, parent=None</i>) |
|
109 |
|
110 <p> |
|
111 Constructor |
|
112 </p> |
|
113 <dl> |
|
114 |
|
115 <dt><i>vcs</i> (Hg)</dt> |
|
116 <dd> |
|
117 reference to the VCS object |
|
118 </dd> |
|
119 <dt><i>revs</i> (list of str)</dt> |
|
120 <dd> |
|
121 list of revisions to show in the revisions pane |
|
122 </dd> |
|
123 <dt><i>parent</i> (QWidget)</dt> |
|
124 <dd> |
|
125 reference to the parent widget |
|
126 </dd> |
|
127 </dl> |
|
128 <a NAME="HgGraftDialog.__updateOk" ID="HgGraftDialog.__updateOk"></a> |
|
129 <h4>HgGraftDialog.__updateOk</h4> |
|
130 <b>__updateOk</b>(<i></i>) |
|
131 |
|
132 <p> |
|
133 Private slot to update the state of the OK button. |
|
134 </p> |
|
135 <a NAME="HgGraftDialog.getData" ID="HgGraftDialog.getData"></a> |
|
136 <h4>HgGraftDialog.getData</h4> |
|
137 <b>getData</b>(<i></i>) |
|
138 |
|
139 <p> |
|
140 Public method to retrieve the entered data. |
|
141 </p> |
|
142 <dl> |
|
143 <dt>Return:</dt> |
|
144 <dd> |
|
145 tuple with list of revisions, a tuple giving a |
|
146 flag indicating to set the user, a flag indicating to use the |
|
147 current user and the user name, another tuple giving a flag |
|
148 indicating to set the date, a flag indicating to use the |
|
149 current date and the date, a flag indicating to append graft info |
|
150 to the log message, a flag indicating a dry-run and a flag |
|
151 indicating to not commit the copied changesets |
|
152 </dd> |
|
153 </dl> |
|
154 <dl> |
|
155 <dt>Return Type:</dt> |
|
156 <dd> |
|
157 tuple of (list of str, (bool, bool, str), (bool, bool, str), |
|
158 bool, bool, bool) |
|
159 </dd> |
|
160 </dl> |
|
161 <a NAME="HgGraftDialog.on_currentUserCheckBox_toggled" ID="HgGraftDialog.on_currentUserCheckBox_toggled"></a> |
|
162 <h4>HgGraftDialog.on_currentUserCheckBox_toggled</h4> |
|
163 <b>on_currentUserCheckBox_toggled</b>(<i>checked</i>) |
|
164 |
|
165 <p> |
|
166 Private slot to handle changes of the current user state. |
|
167 </p> |
|
168 <dl> |
|
169 |
|
170 <dt><i>checked</i> (bool)</dt> |
|
171 <dd> |
|
172 flag giving the checked state |
|
173 </dd> |
|
174 </dl> |
|
175 <a NAME="HgGraftDialog.on_revisionsEdit_textChanged" ID="HgGraftDialog.on_revisionsEdit_textChanged"></a> |
|
176 <h4>HgGraftDialog.on_revisionsEdit_textChanged</h4> |
|
177 <b>on_revisionsEdit_textChanged</b>(<i></i>) |
|
178 |
|
179 <p> |
|
180 Private slot to react upon changes of revisions. |
|
181 </p> |
|
182 <a NAME="HgGraftDialog.on_userEdit_textChanged" ID="HgGraftDialog.on_userEdit_textChanged"></a> |
|
183 <h4>HgGraftDialog.on_userEdit_textChanged</h4> |
|
184 <b>on_userEdit_textChanged</b>(<i>txt</i>) |
|
185 |
|
186 <p> |
|
187 Private slot to handle changes of the user name. |
|
188 </p> |
|
189 <dl> |
|
190 |
|
191 <dt><i>txt</i></dt> |
|
192 <dd> |
|
193 text of the edit (string) |
|
194 </dd> |
|
195 </dl> |
|
196 <a NAME="HgGraftDialog.on_userGroup_toggled" ID="HgGraftDialog.on_userGroup_toggled"></a> |
|
197 <h4>HgGraftDialog.on_userGroup_toggled</h4> |
|
198 <b>on_userGroup_toggled</b>(<i>checked</i>) |
|
199 |
|
200 <p> |
|
201 Private slot to handle changes of the user group state. |
|
202 </p> |
|
203 <dl> |
|
204 |
|
205 <dt><i>checked</i> (bool)</dt> |
|
206 <dd> |
|
207 flag giving the checked state |
|
208 </dd> |
|
209 </dl> |
|
210 <div align="right"><a href="#top">Up</a></div> |
|
211 <hr /> |
|
212 </body></html> |