|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsGit.GitPatchFilesDialog</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.GitPatchFilesDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a dialog to select a list of patch files. |
|
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="#GitPatchFilesDialog">GitPatchFilesDialog</a></td> |
|
39 <td>Class implementing a dialog to select a list of patch files.</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="GitPatchFilesDialog" ID="GitPatchFilesDialog"></a> |
|
50 <h2>GitPatchFilesDialog</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a dialog to select a list of patch files. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QDialog, Ui_GitPatchFilesDialog |
|
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="#GitPatchFilesDialog.__init__">GitPatchFilesDialog</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#GitPatchFilesDialog.__getPatchFilesList">__getPatchFilesList</a></td> |
|
77 <td>Private method to get the list of patch files.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#GitPatchFilesDialog.getData">getData</a></td> |
|
81 <td>Public slot to get the entered data.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#GitPatchFilesDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
|
85 <td>Private slot to add patch files to the list.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#GitPatchFilesDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> |
|
89 <td>Private slot to delete the selected patch files.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#GitPatchFilesDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
|
93 <td>Private slot to move an entry down in the list.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#GitPatchFilesDialog.on_patchFilesList_itemSelectionChanged">on_patchFilesList_itemSelectionChanged</a></td> |
|
97 <td>Private slot to enable button states depending on selection.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#GitPatchFilesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
|
101 <td>Private slot to move an entry up in the list.</td> |
|
102 </tr> |
|
103 </table> |
|
104 <h3>Static Methods</h3> |
|
105 |
|
106 <table> |
|
107 <tr><td>None</td></tr> |
|
108 </table> |
|
109 |
|
110 <a NAME="GitPatchFilesDialog.__init__" ID="GitPatchFilesDialog.__init__"></a> |
|
111 <h4>GitPatchFilesDialog (Constructor)</h4> |
|
112 <b>GitPatchFilesDialog</b>(<i>rootDir, patchCheckData, parent=None</i>) |
|
113 |
|
114 <p> |
|
115 Constructor |
|
116 </p> |
|
117 <dl> |
|
118 |
|
119 <dt><i>rootDir</i></dt> |
|
120 <dd> |
|
121 root of the directory tree (string) |
|
122 </dd> |
|
123 <dt><i>patchCheckData</i></dt> |
|
124 <dd> |
|
125 tuple of data as returned by the |
|
126 getData() method |
|
127 </dd> |
|
128 <dt><i>parent</i></dt> |
|
129 <dd> |
|
130 reference to the parent widget (QWidget) |
|
131 </dd> |
|
132 </dl> |
|
133 <a NAME="GitPatchFilesDialog.__getPatchFilesList" ID="GitPatchFilesDialog.__getPatchFilesList"></a> |
|
134 <h4>GitPatchFilesDialog.__getPatchFilesList</h4> |
|
135 <b>__getPatchFilesList</b>(<i></i>) |
|
136 |
|
137 <p> |
|
138 Private method to get the list of patch files. |
|
139 </p> |
|
140 <dl> |
|
141 <dt>Return:</dt> |
|
142 <dd> |
|
143 list of patch files (list of string) |
|
144 </dd> |
|
145 </dl> |
|
146 <a NAME="GitPatchFilesDialog.getData" ID="GitPatchFilesDialog.getData"></a> |
|
147 <h4>GitPatchFilesDialog.getData</h4> |
|
148 <b>getData</b>(<i></i>) |
|
149 |
|
150 <p> |
|
151 Public slot to get the entered data. |
|
152 </p> |
|
153 <dl> |
|
154 <dt>Return:</dt> |
|
155 <dd> |
|
156 tuple of list of patch files, strip count, flag indicating |
|
157 that the patch has inaccurate end-of-file marker and a flag |
|
158 indicating to not trust the line count information |
|
159 (list of string, integer, boolean, boolean) |
|
160 </dd> |
|
161 </dl> |
|
162 <a NAME="GitPatchFilesDialog.on_addButton_clicked" ID="GitPatchFilesDialog.on_addButton_clicked"></a> |
|
163 <h4>GitPatchFilesDialog.on_addButton_clicked</h4> |
|
164 <b>on_addButton_clicked</b>(<i></i>) |
|
165 |
|
166 <p> |
|
167 Private slot to add patch files to the list. |
|
168 </p> |
|
169 <a NAME="GitPatchFilesDialog.on_deleteButton_clicked" ID="GitPatchFilesDialog.on_deleteButton_clicked"></a> |
|
170 <h4>GitPatchFilesDialog.on_deleteButton_clicked</h4> |
|
171 <b>on_deleteButton_clicked</b>(<i></i>) |
|
172 |
|
173 <p> |
|
174 Private slot to delete the selected patch files. |
|
175 </p> |
|
176 <a NAME="GitPatchFilesDialog.on_downButton_clicked" ID="GitPatchFilesDialog.on_downButton_clicked"></a> |
|
177 <h4>GitPatchFilesDialog.on_downButton_clicked</h4> |
|
178 <b>on_downButton_clicked</b>(<i></i>) |
|
179 |
|
180 <p> |
|
181 Private slot to move an entry down in the list. |
|
182 </p> |
|
183 <a NAME="GitPatchFilesDialog.on_patchFilesList_itemSelectionChanged" ID="GitPatchFilesDialog.on_patchFilesList_itemSelectionChanged"></a> |
|
184 <h4>GitPatchFilesDialog.on_patchFilesList_itemSelectionChanged</h4> |
|
185 <b>on_patchFilesList_itemSelectionChanged</b>(<i></i>) |
|
186 |
|
187 <p> |
|
188 Private slot to enable button states depending on selection. |
|
189 </p> |
|
190 <a NAME="GitPatchFilesDialog.on_upButton_clicked" ID="GitPatchFilesDialog.on_upButton_clicked"></a> |
|
191 <h4>GitPatchFilesDialog.on_upButton_clicked</h4> |
|
192 <b>on_upButton_clicked</b>(<i></i>) |
|
193 |
|
194 <p> |
|
195 Private slot to move an entry up in the list. |
|
196 </p> |
|
197 <div align="right"><a href="#top">Up</a></div> |
|
198 <hr /> |
|
199 </body></html> |