|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Plugins.VcsPlugins.vcsGit.GitDescribeDialog</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.vcsGit.GitDescribeDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to show the results of the git describe action. |
|
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="#GitDescribeDialog">GitDescribeDialog</a></td> |
|
34 <td>Class implementing a dialog to show the results of the git describe action.</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="GitDescribeDialog" ID="GitDescribeDialog"></a> |
|
43 <h2>GitDescribeDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to show the results of the git describe action. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_GitDescribeDialog |
|
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="#GitDescribeDialog.__init__">GitDescribeDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#GitDescribeDialog.__finish">__finish</a></td> |
|
64 <td>Private slot called when the process finished or the user pressed the button.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#GitDescribeDialog.__procFinished">__procFinished</a></td> |
|
67 <td>Private slot connected to the finished signal.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#GitDescribeDialog.__readStderr">__readStderr</a></td> |
|
70 <td>Private slot to handle the readyReadStderr signal.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#GitDescribeDialog.__readStdout">__readStdout</a></td> |
|
73 <td>Private slot to handle the readyReadStdout signal.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#GitDescribeDialog.__resizeColumns">__resizeColumns</a></td> |
|
76 <td>Private method to resize the list columns.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#GitDescribeDialog.__resort">__resort</a></td> |
|
79 <td>Private method to resort the tree.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#GitDescribeDialog.closeEvent">closeEvent</a></td> |
|
82 <td>Protected slot implementing a close event handler.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#GitDescribeDialog.keyPressEvent">keyPressEvent</a></td> |
|
85 <td>Protected slot to handle a key press event.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#GitDescribeDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
88 <td>Private slot called by a button of the button box clicked.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#GitDescribeDialog.on_input_returnPressed">on_input_returnPressed</a></td> |
|
91 <td>Private slot to handle the press of the return key in the input field.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#GitDescribeDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td> |
|
94 <td>Private slot to handle the password checkbox toggled.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#GitDescribeDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> |
|
97 <td>Private slot to send the input to the git process.</td> |
|
98 </tr><tr> |
|
99 <td><a href="#GitDescribeDialog.start">start</a></td> |
|
100 <td>Public slot to start the tag/branch list command.</td> |
|
101 </tr> |
|
102 </table> |
|
103 <h3>Static Methods</h3> |
|
104 <table> |
|
105 <tr><td>None</td></tr> |
|
106 </table> |
|
107 <a NAME="GitDescribeDialog.__init__" ID="GitDescribeDialog.__init__"></a> |
|
108 <h4>GitDescribeDialog (Constructor)</h4> |
|
109 <b>GitDescribeDialog</b>(<i>vcs, parent=None</i>) |
|
110 <p> |
|
111 Constructor |
|
112 </p><dl> |
|
113 <dt><i>vcs</i></dt> |
|
114 <dd> |
|
115 reference to the vcs object |
|
116 </dd><dt><i>parent</i></dt> |
|
117 <dd> |
|
118 reference to the parent widget (QWidget) |
|
119 </dd> |
|
120 </dl><a NAME="GitDescribeDialog.__finish" ID="GitDescribeDialog.__finish"></a> |
|
121 <h4>GitDescribeDialog.__finish</h4> |
|
122 <b>__finish</b>(<i></i>) |
|
123 <p> |
|
124 Private slot called when the process finished or the user pressed |
|
125 the button. |
|
126 </p><a NAME="GitDescribeDialog.__procFinished" ID="GitDescribeDialog.__procFinished"></a> |
|
127 <h4>GitDescribeDialog.__procFinished</h4> |
|
128 <b>__procFinished</b>(<i>exitCode, exitStatus</i>) |
|
129 <p> |
|
130 Private slot connected to the finished signal. |
|
131 </p><dl> |
|
132 <dt><i>exitCode</i></dt> |
|
133 <dd> |
|
134 exit code of the process (integer) |
|
135 </dd><dt><i>exitStatus</i></dt> |
|
136 <dd> |
|
137 exit status of the process (QProcess.ExitStatus) |
|
138 </dd> |
|
139 </dl><a NAME="GitDescribeDialog.__readStderr" ID="GitDescribeDialog.__readStderr"></a> |
|
140 <h4>GitDescribeDialog.__readStderr</h4> |
|
141 <b>__readStderr</b>(<i></i>) |
|
142 <p> |
|
143 Private slot to handle the readyReadStderr signal. |
|
144 </p><p> |
|
145 It reads the error output of the process and inserts it into the |
|
146 error pane. |
|
147 </p><a NAME="GitDescribeDialog.__readStdout" ID="GitDescribeDialog.__readStdout"></a> |
|
148 <h4>GitDescribeDialog.__readStdout</h4> |
|
149 <b>__readStdout</b>(<i></i>) |
|
150 <p> |
|
151 Private slot to handle the readyReadStdout signal. |
|
152 </p><p> |
|
153 It reads the output of the process, formats it and inserts it into |
|
154 the contents pane. |
|
155 </p><a NAME="GitDescribeDialog.__resizeColumns" ID="GitDescribeDialog.__resizeColumns"></a> |
|
156 <h4>GitDescribeDialog.__resizeColumns</h4> |
|
157 <b>__resizeColumns</b>(<i></i>) |
|
158 <p> |
|
159 Private method to resize the list columns. |
|
160 </p><a NAME="GitDescribeDialog.__resort" ID="GitDescribeDialog.__resort"></a> |
|
161 <h4>GitDescribeDialog.__resort</h4> |
|
162 <b>__resort</b>(<i></i>) |
|
163 <p> |
|
164 Private method to resort the tree. |
|
165 </p><a NAME="GitDescribeDialog.closeEvent" ID="GitDescribeDialog.closeEvent"></a> |
|
166 <h4>GitDescribeDialog.closeEvent</h4> |
|
167 <b>closeEvent</b>(<i>e</i>) |
|
168 <p> |
|
169 Protected slot implementing a close event handler. |
|
170 </p><dl> |
|
171 <dt><i>e</i></dt> |
|
172 <dd> |
|
173 close event (QCloseEvent) |
|
174 </dd> |
|
175 </dl><a NAME="GitDescribeDialog.keyPressEvent" ID="GitDescribeDialog.keyPressEvent"></a> |
|
176 <h4>GitDescribeDialog.keyPressEvent</h4> |
|
177 <b>keyPressEvent</b>(<i>evt</i>) |
|
178 <p> |
|
179 Protected slot to handle a key press event. |
|
180 </p><dl> |
|
181 <dt><i>evt</i></dt> |
|
182 <dd> |
|
183 the key press event (QKeyEvent) |
|
184 </dd> |
|
185 </dl><a NAME="GitDescribeDialog.on_buttonBox_clicked" ID="GitDescribeDialog.on_buttonBox_clicked"></a> |
|
186 <h4>GitDescribeDialog.on_buttonBox_clicked</h4> |
|
187 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
188 <p> |
|
189 Private slot called by a button of the button box clicked. |
|
190 </p><dl> |
|
191 <dt><i>button</i></dt> |
|
192 <dd> |
|
193 button that was clicked (QAbstractButton) |
|
194 </dd> |
|
195 </dl><a NAME="GitDescribeDialog.on_input_returnPressed" ID="GitDescribeDialog.on_input_returnPressed"></a> |
|
196 <h4>GitDescribeDialog.on_input_returnPressed</h4> |
|
197 <b>on_input_returnPressed</b>(<i></i>) |
|
198 <p> |
|
199 Private slot to handle the press of the return key in the input field. |
|
200 </p><a NAME="GitDescribeDialog.on_passwordCheckBox_toggled" ID="GitDescribeDialog.on_passwordCheckBox_toggled"></a> |
|
201 <h4>GitDescribeDialog.on_passwordCheckBox_toggled</h4> |
|
202 <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>) |
|
203 <p> |
|
204 Private slot to handle the password checkbox toggled. |
|
205 </p><dl> |
|
206 <dt><i>isOn</i></dt> |
|
207 <dd> |
|
208 flag indicating the status of the check box (boolean) |
|
209 </dd> |
|
210 </dl><a NAME="GitDescribeDialog.on_sendButton_clicked" ID="GitDescribeDialog.on_sendButton_clicked"></a> |
|
211 <h4>GitDescribeDialog.on_sendButton_clicked</h4> |
|
212 <b>on_sendButton_clicked</b>(<i></i>) |
|
213 <p> |
|
214 Private slot to send the input to the git process. |
|
215 </p><a NAME="GitDescribeDialog.start" ID="GitDescribeDialog.start"></a> |
|
216 <h4>GitDescribeDialog.start</h4> |
|
217 <b>start</b>(<i>path, commits</i>) |
|
218 <p> |
|
219 Public slot to start the tag/branch list command. |
|
220 </p><dl> |
|
221 <dt><i>path</i></dt> |
|
222 <dd> |
|
223 name of directory to be listed (string) |
|
224 </dd><dt><i>commits</i></dt> |
|
225 <dd> |
|
226 list of commits to be described (list of string) |
|
227 </dd> |
|
228 </dl> |
|
229 <div align="right"><a href="#top">Up</a></div> |
|
230 <hr /> |
|
231 </body></html> |