|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.HgCommitDialog</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.HgCommitDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a dialog to enter the commit message. |
|
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="#HgCommitDialog">HgCommitDialog</a></td> |
|
39 <td>Class implementing a dialog to enter the commit message.</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="HgCommitDialog" ID="HgCommitDialog"></a> |
|
50 <h2>HgCommitDialog</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a dialog to enter the commit message. |
|
54 </p> |
|
55 <h3>Signals</h3> |
|
56 <dl> |
|
57 |
|
58 <dt>accepted()</dt> |
|
59 <dd> |
|
60 emitted, if the dialog was accepted |
|
61 </dd> |
|
62 <dt>rejected()</dt> |
|
63 <dd> |
|
64 emitted, if the dialog was rejected |
|
65 </dd> |
|
66 </dl> |
|
67 <h3>Derived from</h3> |
|
68 QWidget, Ui_HgCommitDialog |
|
69 <h3>Class Attributes</h3> |
|
70 |
|
71 <table> |
|
72 <tr><td>None</td></tr> |
|
73 </table> |
|
74 <h3>Class Methods</h3> |
|
75 |
|
76 <table> |
|
77 <tr><td>None</td></tr> |
|
78 </table> |
|
79 <h3>Methods</h3> |
|
80 |
|
81 <table> |
|
82 |
|
83 <tr> |
|
84 <td><a href="#HgCommitDialog.__init__">HgCommitDialog</a></td> |
|
85 <td>Constructor</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#HgCommitDialog.getCommitData">getCommitData</a></td> |
|
89 <td>Public method to retrieve the entered data for the commit.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#HgCommitDialog.on_buttonBox_accepted">on_buttonBox_accepted</a></td> |
|
93 <td>Private slot called by the buttonBox accepted signal.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#HgCommitDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
97 <td>Private slot called by a button of the button box clicked.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#HgCommitDialog.on_buttonBox_rejected">on_buttonBox_rejected</a></td> |
|
101 <td>Private slot called by the buttonBox rejected signal.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#HgCommitDialog.on_recentComboBox_activated">on_recentComboBox_activated</a></td> |
|
105 <td>Private slot to select a commit message from recent ones.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#HgCommitDialog.showEvent">showEvent</a></td> |
|
109 <td>Protected method called when the dialog is about to be shown.</td> |
|
110 </tr> |
|
111 </table> |
|
112 <h3>Static Methods</h3> |
|
113 |
|
114 <table> |
|
115 <tr><td>None</td></tr> |
|
116 </table> |
|
117 |
|
118 <a NAME="HgCommitDialog.__init__" ID="HgCommitDialog.__init__"></a> |
|
119 <h4>HgCommitDialog (Constructor)</h4> |
|
120 <b>HgCommitDialog</b>(<i>vcs, msg, mq, merge, parent=None</i>) |
|
121 |
|
122 <p> |
|
123 Constructor |
|
124 </p> |
|
125 <dl> |
|
126 |
|
127 <dt><i>vcs</i></dt> |
|
128 <dd> |
|
129 reference to the vcs object |
|
130 </dd> |
|
131 <dt><i>msg</i></dt> |
|
132 <dd> |
|
133 initial message (string) |
|
134 </dd> |
|
135 <dt><i>mq</i></dt> |
|
136 <dd> |
|
137 flag indicating a queue commit (boolean) |
|
138 </dd> |
|
139 <dt><i>merge</i></dt> |
|
140 <dd> |
|
141 flag indicating a merge commit (boolean) |
|
142 </dd> |
|
143 <dt><i>parent</i></dt> |
|
144 <dd> |
|
145 parent widget (QWidget) |
|
146 </dd> |
|
147 </dl> |
|
148 <a NAME="HgCommitDialog.getCommitData" ID="HgCommitDialog.getCommitData"></a> |
|
149 <h4>HgCommitDialog.getCommitData</h4> |
|
150 <b>getCommitData</b>(<i></i>) |
|
151 |
|
152 <p> |
|
153 Public method to retrieve the entered data for the commit. |
|
154 </p> |
|
155 <dl> |
|
156 <dt>Return:</dt> |
|
157 <dd> |
|
158 tuple containing the log message, a flag indicating to amend |
|
159 the last commit, a flag indicating to commit subrepositories as |
|
160 well, name of the author and date/time of the commit |
|
161 </dd> |
|
162 </dl> |
|
163 <dl> |
|
164 <dt>Return Type:</dt> |
|
165 <dd> |
|
166 tuple of str, bool, bool, str, str |
|
167 </dd> |
|
168 </dl> |
|
169 <a NAME="HgCommitDialog.on_buttonBox_accepted" ID="HgCommitDialog.on_buttonBox_accepted"></a> |
|
170 <h4>HgCommitDialog.on_buttonBox_accepted</h4> |
|
171 <b>on_buttonBox_accepted</b>(<i></i>) |
|
172 |
|
173 <p> |
|
174 Private slot called by the buttonBox accepted signal. |
|
175 </p> |
|
176 <a NAME="HgCommitDialog.on_buttonBox_clicked" ID="HgCommitDialog.on_buttonBox_clicked"></a> |
|
177 <h4>HgCommitDialog.on_buttonBox_clicked</h4> |
|
178 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
179 |
|
180 <p> |
|
181 Private slot called by a button of the button box clicked. |
|
182 </p> |
|
183 <dl> |
|
184 |
|
185 <dt><i>button</i></dt> |
|
186 <dd> |
|
187 button that was clicked (QAbstractButton) |
|
188 </dd> |
|
189 </dl> |
|
190 <a NAME="HgCommitDialog.on_buttonBox_rejected" ID="HgCommitDialog.on_buttonBox_rejected"></a> |
|
191 <h4>HgCommitDialog.on_buttonBox_rejected</h4> |
|
192 <b>on_buttonBox_rejected</b>(<i></i>) |
|
193 |
|
194 <p> |
|
195 Private slot called by the buttonBox rejected signal. |
|
196 </p> |
|
197 <a NAME="HgCommitDialog.on_recentComboBox_activated" ID="HgCommitDialog.on_recentComboBox_activated"></a> |
|
198 <h4>HgCommitDialog.on_recentComboBox_activated</h4> |
|
199 <b>on_recentComboBox_activated</b>(<i>index</i>) |
|
200 |
|
201 <p> |
|
202 Private slot to select a commit message from recent ones. |
|
203 </p> |
|
204 <dl> |
|
205 |
|
206 <dt><i>index</i> (int)</dt> |
|
207 <dd> |
|
208 index of the selected entry |
|
209 </dd> |
|
210 </dl> |
|
211 <a NAME="HgCommitDialog.showEvent" ID="HgCommitDialog.showEvent"></a> |
|
212 <h4>HgCommitDialog.showEvent</h4> |
|
213 <b>showEvent</b>(<i>evt</i>) |
|
214 |
|
215 <p> |
|
216 Protected method called when the dialog is about to be shown. |
|
217 </p> |
|
218 <dl> |
|
219 |
|
220 <dt><i>evt</i></dt> |
|
221 <dd> |
|
222 the event (QShowEvent) |
|
223 </dd> |
|
224 </dl> |
|
225 <div align="right"><a href="#top">Up</a></div> |
|
226 <hr /> |
|
227 </body></html> |