|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsGit.GitPullDialog</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.vcsGit.GitPullDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a dialog to enter data for a Pull operation. |
|
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="#GitPullDialog">GitPullDialog</a></td> |
|
39 <td>Class implementing a dialog to enter data for a Pull operation.</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="GitPullDialog" ID="GitPullDialog"></a> |
|
50 <h2>GitPullDialog</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a dialog to enter data for a Pull operation. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QDialog, Ui_GitPullDialog |
|
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="#GitPullDialog.__init__">GitPullDialog</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#GitPullDialog.__okButtonEnable">__okButtonEnable</a></td> |
|
77 <td>Private slot to set the enabled state of the OK button.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#GitPullDialog.__updateButtonEnable">__updateButtonEnable</a></td> |
|
81 <td>Private slot to set the enabled state of the update button.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#GitPullDialog.getData">getData</a></td> |
|
85 <td>Public method to get the entered data.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#GitPullDialog.on_remoteEdit_textChanged">on_remoteEdit_textChanged</a></td> |
|
89 <td>Private slot to handle changes of the URL edit.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#GitPullDialog.on_remotesComboBox_currentTextChanged">on_remotesComboBox_currentTextChanged</a></td> |
|
93 <td>Private slot to handle changes of the selected repository.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#GitPullDialog.on_updateButton_clicked">on_updateButton_clicked</a></td> |
|
97 <td>Private slot to update the list of remote branches.</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="GitPullDialog.__init__" ID="GitPullDialog.__init__"></a> |
|
107 <h4>GitPullDialog (Constructor)</h4> |
|
108 <b>GitPullDialog</b>(<i>vcs, repodir, parent=None</i>) |
|
109 |
|
110 <p> |
|
111 Constructor |
|
112 </p> |
|
113 <dl> |
|
114 |
|
115 <dt><i>vcs</i></dt> |
|
116 <dd> |
|
117 reference to the git object |
|
118 </dd> |
|
119 <dt><i>repodir</i></dt> |
|
120 <dd> |
|
121 directory name of the local repository (string) |
|
122 </dd> |
|
123 <dt><i>parent</i></dt> |
|
124 <dd> |
|
125 reference to the parent widget (QWidget) |
|
126 </dd> |
|
127 </dl> |
|
128 <a NAME="GitPullDialog.__okButtonEnable" ID="GitPullDialog.__okButtonEnable"></a> |
|
129 <h4>GitPullDialog.__okButtonEnable</h4> |
|
130 <b>__okButtonEnable</b>(<i></i>) |
|
131 |
|
132 <p> |
|
133 Private slot to set the enabled state of the OK button. |
|
134 </p> |
|
135 <a NAME="GitPullDialog.__updateButtonEnable" ID="GitPullDialog.__updateButtonEnable"></a> |
|
136 <h4>GitPullDialog.__updateButtonEnable</h4> |
|
137 <b>__updateButtonEnable</b>(<i></i>) |
|
138 |
|
139 <p> |
|
140 Private slot to set the enabled state of the update button. |
|
141 </p> |
|
142 <a NAME="GitPullDialog.getData" ID="GitPullDialog.getData"></a> |
|
143 <h4>GitPullDialog.getData</h4> |
|
144 <b>getData</b>(<i></i>) |
|
145 |
|
146 <p> |
|
147 Public method to get the entered data. |
|
148 </p> |
|
149 <dl> |
|
150 <dt>Return:</dt> |
|
151 <dd> |
|
152 tuple of remote name, remote url (for custom remotes), |
|
153 remote branches, a flag indicating to pull from all repositories |
|
154 and a flag indicating to remove obsolete tracking references |
|
155 (string, string, list of strings, boolean, boolean) |
|
156 </dd> |
|
157 </dl> |
|
158 <a NAME="GitPullDialog.on_remoteEdit_textChanged" ID="GitPullDialog.on_remoteEdit_textChanged"></a> |
|
159 <h4>GitPullDialog.on_remoteEdit_textChanged</h4> |
|
160 <b>on_remoteEdit_textChanged</b>(<i>txt</i>) |
|
161 |
|
162 <p> |
|
163 Private slot to handle changes of the URL edit. |
|
164 </p> |
|
165 <dl> |
|
166 |
|
167 <dt><i>txt</i></dt> |
|
168 <dd> |
|
169 current text of the URL edit (string) |
|
170 </dd> |
|
171 </dl> |
|
172 <a NAME="GitPullDialog.on_remotesComboBox_currentTextChanged" ID="GitPullDialog.on_remotesComboBox_currentTextChanged"></a> |
|
173 <h4>GitPullDialog.on_remotesComboBox_currentTextChanged</h4> |
|
174 <b>on_remotesComboBox_currentTextChanged</b>(<i>txt</i>) |
|
175 |
|
176 <p> |
|
177 Private slot to handle changes of the selected repository. |
|
178 </p> |
|
179 <dl> |
|
180 |
|
181 <dt><i>txt</i></dt> |
|
182 <dd> |
|
183 current text of the combo box (string) |
|
184 </dd> |
|
185 </dl> |
|
186 <a NAME="GitPullDialog.on_updateButton_clicked" ID="GitPullDialog.on_updateButton_clicked"></a> |
|
187 <h4>GitPullDialog.on_updateButton_clicked</h4> |
|
188 <b>on_updateButton_clicked</b>(<i></i>) |
|
189 |
|
190 <p> |
|
191 Private slot to update the list of remote branches. |
|
192 </p> |
|
193 <div align="right"><a href="#top">Up</a></div> |
|
194 <hr /> |
|
195 </body></html> |