|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.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><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Plugins.VcsPlugins.vcsMercurial.HgGraftDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter the data for a graft session. |
|
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="#HgGraftDialog">HgGraftDialog</a></td> |
|
34 <td>Class implementing a dialog to enter the data for a graft session.</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="HgGraftDialog" ID="HgGraftDialog"></a> |
|
43 <h2>HgGraftDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter the data for a graft session. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_HgGraftDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</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="#HgGraftDialog.__init__">HgGraftDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#HgGraftDialog.__updateOk">__updateOk</a></td> |
|
64 <td>Private slot to update the state of the OK button.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#HgGraftDialog.getData">getData</a></td> |
|
67 <td>Public method to retrieve the entered data.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#HgGraftDialog.on_currentUserCheckBox_toggled">on_currentUserCheckBox_toggled</a></td> |
|
70 <td>Private slot to handle changes of the current user state.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#HgGraftDialog.on_revisionsEdit_textChanged">on_revisionsEdit_textChanged</a></td> |
|
73 <td>Private slot to react upon changes of revisions.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#HgGraftDialog.on_userEdit_textChanged">on_userEdit_textChanged</a></td> |
|
76 <td>Private slot to handle changes of the user name.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#HgGraftDialog.on_userGroup_toggled">on_userGroup_toggled</a></td> |
|
79 <td>Private slot to handle changes of the user group state.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 <table> |
|
84 <tr><td>None</td></tr> |
|
85 </table> |
|
86 <a NAME="HgGraftDialog.__init__" ID="HgGraftDialog.__init__"></a> |
|
87 <h4>HgGraftDialog (Constructor)</h4> |
|
88 <b>HgGraftDialog</b>(<i>vcs, revs=None, parent=None</i>) |
|
89 <p> |
|
90 Constructor |
|
91 </p><dl> |
|
92 <dt><i>vcs</i> (Hg)</dt> |
|
93 <dd> |
|
94 reference to the VCS object |
|
95 </dd><dt><i>revs</i> (list of str)</dt> |
|
96 <dd> |
|
97 list of revisions to show in the revisions pane |
|
98 </dd><dt><i>parent</i> (QWidget)</dt> |
|
99 <dd> |
|
100 reference to the parent widget |
|
101 </dd> |
|
102 </dl><a NAME="HgGraftDialog.__updateOk" ID="HgGraftDialog.__updateOk"></a> |
|
103 <h4>HgGraftDialog.__updateOk</h4> |
|
104 <b>__updateOk</b>(<i></i>) |
|
105 <p> |
|
106 Private slot to update the state of the OK button. |
|
107 </p><a NAME="HgGraftDialog.getData" ID="HgGraftDialog.getData"></a> |
|
108 <h4>HgGraftDialog.getData</h4> |
|
109 <b>getData</b>(<i></i>) |
|
110 <p> |
|
111 Public method to retrieve the entered data. |
|
112 </p><dl> |
|
113 <dt>Returns:</dt> |
|
114 <dd> |
|
115 tuple with list of revisions, a tuple giving a |
|
116 flag indicating to set the user, a flag indicating to use the |
|
117 current user and the user name, another tuple giving a flag |
|
118 indicating to set the date, a flag indicating to use the |
|
119 current date and the date, a flag indicating to append graft info |
|
120 to the log message, a flag indicating a dry-run and a flag |
|
121 indicating to not commit the copied changesets |
|
122 </dd> |
|
123 </dl><dl> |
|
124 <dt>Return Type:</dt> |
|
125 <dd> |
|
126 tuple of (list of str, (bool, bool, str), (bool, bool, str), |
|
127 bool, bool, bool) |
|
128 </dd> |
|
129 </dl><a NAME="HgGraftDialog.on_currentUserCheckBox_toggled" ID="HgGraftDialog.on_currentUserCheckBox_toggled"></a> |
|
130 <h4>HgGraftDialog.on_currentUserCheckBox_toggled</h4> |
|
131 <b>on_currentUserCheckBox_toggled</b>(<i>checked</i>) |
|
132 <p> |
|
133 Private slot to handle changes of the current user state. |
|
134 </p><dl> |
|
135 <dt><i>checked</i> (bool)</dt> |
|
136 <dd> |
|
137 flag giving the checked state |
|
138 </dd> |
|
139 </dl><a NAME="HgGraftDialog.on_revisionsEdit_textChanged" ID="HgGraftDialog.on_revisionsEdit_textChanged"></a> |
|
140 <h4>HgGraftDialog.on_revisionsEdit_textChanged</h4> |
|
141 <b>on_revisionsEdit_textChanged</b>(<i></i>) |
|
142 <p> |
|
143 Private slot to react upon changes of revisions. |
|
144 </p><a NAME="HgGraftDialog.on_userEdit_textChanged" ID="HgGraftDialog.on_userEdit_textChanged"></a> |
|
145 <h4>HgGraftDialog.on_userEdit_textChanged</h4> |
|
146 <b>on_userEdit_textChanged</b>(<i>txt</i>) |
|
147 <p> |
|
148 Private slot to handle changes of the user name. |
|
149 </p><dl> |
|
150 <dt><i>txt</i></dt> |
|
151 <dd> |
|
152 text of the edit (string) |
|
153 </dd> |
|
154 </dl><a NAME="HgGraftDialog.on_userGroup_toggled" ID="HgGraftDialog.on_userGroup_toggled"></a> |
|
155 <h4>HgGraftDialog.on_userGroup_toggled</h4> |
|
156 <b>on_userGroup_toggled</b>(<i>checked</i>) |
|
157 <p> |
|
158 Private slot to handle changes of the user group state. |
|
159 </p><dl> |
|
160 <dt><i>checked</i> (bool)</dt> |
|
161 <dd> |
|
162 flag giving the checked state |
|
163 </dd> |
|
164 </dl> |
|
165 <div align="right"><a href="#top">Up</a></div> |
|
166 <hr /> |
|
167 </body></html> |