|
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 currentuser 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></dt> |
|
93 <dd> |
|
94 reference to the VCS object (Hg) |
|
95 </dd><dt><i>revs</i></dt> |
|
96 <dd> |
|
97 list of revisions to show in the revisions pane (list of |
|
98 strings) |
|
99 </dd><dt><i>parent</i></dt> |
|
100 <dd> |
|
101 reference to the parent widget (QWidget) |
|
102 </dd> |
|
103 </dl><a NAME="HgGraftDialog.__updateOk" ID="HgGraftDialog.__updateOk"></a> |
|
104 <h4>HgGraftDialog.__updateOk</h4> |
|
105 <b>__updateOk</b>(<i></i>) |
|
106 <p> |
|
107 Private slot to update the state of the OK button. |
|
108 </p><a NAME="HgGraftDialog.getData" ID="HgGraftDialog.getData"></a> |
|
109 <h4>HgGraftDialog.getData</h4> |
|
110 <b>getData</b>(<i></i>) |
|
111 <p> |
|
112 Public method to retrieve the entered data. |
|
113 </p><dl> |
|
114 <dt>Returns:</dt> |
|
115 <dd> |
|
116 tuple with list of revisions, a tuple giving a |
|
117 flag indicating to set the user, a flag indicating to use the |
|
118 current user and the user name, another tuple giving a flag |
|
119 indicating to set the date, a flag indicating to use the |
|
120 current date and the date, a flag indicating to append graft info |
|
121 to the log message and a flag indicating a dry-run (list of |
|
122 strings, (boolean, boolean, string), (boolean, boolean, string), |
|
123 boolean, boolean) |
|
124 </dd> |
|
125 </dl><a NAME="HgGraftDialog.on_currentUserCheckBox_toggled" ID="HgGraftDialog.on_currentUserCheckBox_toggled"></a> |
|
126 <h4>HgGraftDialog.on_currentUserCheckBox_toggled</h4> |
|
127 <b>on_currentUserCheckBox_toggled</b>(<i>checked</i>) |
|
128 <p> |
|
129 Private slot to handle changes of the currentuser state. |
|
130 </p><dl> |
|
131 <dt><i>checked</i></dt> |
|
132 <dd> |
|
133 flag giving the checked state (boolean) |
|
134 </dd> |
|
135 </dl><a NAME="HgGraftDialog.on_revisionsEdit_textChanged" ID="HgGraftDialog.on_revisionsEdit_textChanged"></a> |
|
136 <h4>HgGraftDialog.on_revisionsEdit_textChanged</h4> |
|
137 <b>on_revisionsEdit_textChanged</b>(<i></i>) |
|
138 <p> |
|
139 Private slot to react upon changes of revisions. |
|
140 </p><a NAME="HgGraftDialog.on_userEdit_textChanged" ID="HgGraftDialog.on_userEdit_textChanged"></a> |
|
141 <h4>HgGraftDialog.on_userEdit_textChanged</h4> |
|
142 <b>on_userEdit_textChanged</b>(<i>txt</i>) |
|
143 <p> |
|
144 Private slot to handle changes of the user name. |
|
145 </p><dl> |
|
146 <dt><i>txt</i></dt> |
|
147 <dd> |
|
148 text of the edit (string) |
|
149 </dd> |
|
150 </dl><a NAME="HgGraftDialog.on_userGroup_toggled" ID="HgGraftDialog.on_userGroup_toggled"></a> |
|
151 <h4>HgGraftDialog.on_userGroup_toggled</h4> |
|
152 <b>on_userGroup_toggled</b>(<i>checked</i>) |
|
153 <p> |
|
154 Private slot to handle changes of the user group state. |
|
155 </p><dl> |
|
156 <dt><i>checked</i></dt> |
|
157 <dd> |
|
158 flag giving the checked state (boolean) |
|
159 </dd> |
|
160 </dl> |
|
161 <div align="right"><a href="#top">Up</a></div> |
|
162 <hr /> |
|
163 </body></html> |