|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsGit.GitPushDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Plugins.VcsPlugins.vcsGit.GitPushDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter data for a Push operation. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#GitPushDialog">GitPushDialog</a></td> |
|
25 <td>Class implementing a dialog to enter data for a Push operation.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="GitPushDialog" ID="GitPushDialog"></a> |
|
36 <h2>GitPushDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to enter data for a Push operation. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_GitPushDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>ForceColumn</td></tr><tr><td>LocalBranchColumn</td></tr><tr><td>PushColumn</td></tr><tr><td>RemoteBranchColumn</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#GitPushDialog.__init__">GitPushDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#GitPushDialog.__resizeColumns">__resizeColumns</a></td> |
|
63 <td>Private slot to adjust the column sizes.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#GitPushDialog.getData">getData</a></td> |
|
67 <td>Public method to get the entered data.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#GitPushDialog.on_branchesTree_itemChanged">on_branchesTree_itemChanged</a></td> |
|
71 <td>Private slot handling changes of a branch item.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#GitPushDialog.on_remotesComboBox_currentTextChanged">on_remotesComboBox_currentTextChanged</a></td> |
|
75 <td>Private slot to handle changes of the selected repository.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#GitPushDialog.on_selectAllCheckBox_stateChanged">on_selectAllCheckBox_stateChanged</a></td> |
|
79 <td>Private slot to select/deselect all branch items.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 |
|
84 <table> |
|
85 <tr><td>None</td></tr> |
|
86 </table> |
|
87 |
|
88 <a NAME="GitPushDialog.__init__" ID="GitPushDialog.__init__"></a> |
|
89 <h4>GitPushDialog (Constructor)</h4> |
|
90 <b>GitPushDialog</b>(<i>vcs, repodir, parent=None</i>) |
|
91 |
|
92 <p> |
|
93 Constructor |
|
94 </p> |
|
95 <dl> |
|
96 |
|
97 <dt><i>vcs</i></dt> |
|
98 <dd> |
|
99 reference to the git object |
|
100 </dd> |
|
101 <dt><i>repodir</i></dt> |
|
102 <dd> |
|
103 directory name of the local repository (string) |
|
104 </dd> |
|
105 <dt><i>parent</i></dt> |
|
106 <dd> |
|
107 reference to the parent widget (QWidget) |
|
108 </dd> |
|
109 </dl> |
|
110 <a NAME="GitPushDialog.__resizeColumns" ID="GitPushDialog.__resizeColumns"></a> |
|
111 <h4>GitPushDialog.__resizeColumns</h4> |
|
112 <b>__resizeColumns</b>(<i></i>) |
|
113 |
|
114 <p> |
|
115 Private slot to adjust the column sizes. |
|
116 </p> |
|
117 <a NAME="GitPushDialog.getData" ID="GitPushDialog.getData"></a> |
|
118 <h4>GitPushDialog.getData</h4> |
|
119 <b>getData</b>(<i></i>) |
|
120 |
|
121 <p> |
|
122 Public method to get the entered data. |
|
123 </p> |
|
124 <dl> |
|
125 <dt>Return:</dt> |
|
126 <dd> |
|
127 remote name, list of branches to be pushed, |
|
128 a flag indicating to push tags as well, a flag indicating |
|
129 to set tracking information and the push method for submodules |
|
130 </dd> |
|
131 </dl> |
|
132 <dl> |
|
133 <dt>Return Type:</dt> |
|
134 <dd> |
|
135 tuple of (str, list of str, bool, bool, str) |
|
136 </dd> |
|
137 </dl> |
|
138 <a NAME="GitPushDialog.on_branchesTree_itemChanged" ID="GitPushDialog.on_branchesTree_itemChanged"></a> |
|
139 <h4>GitPushDialog.on_branchesTree_itemChanged</h4> |
|
140 <b>on_branchesTree_itemChanged</b>(<i>item, column</i>) |
|
141 |
|
142 <p> |
|
143 Private slot handling changes of a branch item. |
|
144 </p> |
|
145 <dl> |
|
146 |
|
147 <dt><i>item</i></dt> |
|
148 <dd> |
|
149 reference to the changed item (QTreeWidgetItem) |
|
150 </dd> |
|
151 <dt><i>column</i></dt> |
|
152 <dd> |
|
153 changed column (integer) |
|
154 </dd> |
|
155 </dl> |
|
156 <a NAME="GitPushDialog.on_remotesComboBox_currentTextChanged" ID="GitPushDialog.on_remotesComboBox_currentTextChanged"></a> |
|
157 <h4>GitPushDialog.on_remotesComboBox_currentTextChanged</h4> |
|
158 <b>on_remotesComboBox_currentTextChanged</b>(<i>txt</i>) |
|
159 |
|
160 <p> |
|
161 Private slot to handle changes of the selected repository. |
|
162 </p> |
|
163 <dl> |
|
164 |
|
165 <dt><i>txt</i></dt> |
|
166 <dd> |
|
167 current text of the combo box (string) |
|
168 </dd> |
|
169 </dl> |
|
170 <a NAME="GitPushDialog.on_selectAllCheckBox_stateChanged" ID="GitPushDialog.on_selectAllCheckBox_stateChanged"></a> |
|
171 <h4>GitPushDialog.on_selectAllCheckBox_stateChanged</h4> |
|
172 <b>on_selectAllCheckBox_stateChanged</b>(<i>state</i>) |
|
173 |
|
174 <p> |
|
175 Private slot to select/deselect all branch items. |
|
176 </p> |
|
177 <dl> |
|
178 |
|
179 <dt><i>state</i></dt> |
|
180 <dd> |
|
181 check state of the check box (Qt.CheckState) |
|
182 </dd> |
|
183 </dl> |
|
184 <div align="right"><a href="#top">Up</a></div> |
|
185 <hr /> |
|
186 </body></html> |