|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.ShelveExtension.ProjectHelper</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.ShelveExtension.ProjectHelper</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the shelve extension project helper. |
|
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="#ShelveProjectHelper">ShelveProjectHelper</a></td> |
|
39 <td>Class implementing the shelve extension project helper.</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="ShelveProjectHelper" ID="ShelveProjectHelper"></a> |
|
50 <h2>ShelveProjectHelper</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing the shelve extension project helper. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 HgExtensionProjectHelper |
|
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="#ShelveProjectHelper.__init__">ShelveProjectHelper</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#ShelveProjectHelper.__hgCleanupShelves">__hgCleanupShelves</a></td> |
|
77 <td>Private slot to delete all shelves.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#ShelveProjectHelper.__hgDeleteShelves">__hgDeleteShelves</a></td> |
|
81 <td>Private slot to delete selected shelves.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#ShelveProjectHelper.__hgShelve">__hgShelve</a></td> |
|
85 <td>Private slot used to shelve all current changes.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#ShelveProjectHelper.__hgShelveBrowser">__hgShelveBrowser</a></td> |
|
89 <td>Private slot to show the shelve browser dialog.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#ShelveProjectHelper.__hgUnshelve">__hgUnshelve</a></td> |
|
93 <td>Private slot used to restore a shelved change.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#ShelveProjectHelper.__hgUnshelveAbort">__hgUnshelveAbort</a></td> |
|
97 <td>Private slot used to abort an ongoing restore operation.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#ShelveProjectHelper.__hgUnshelveContinue">__hgUnshelveContinue</a></td> |
|
101 <td>Private slot used to continue an ongoing restore operation.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#ShelveProjectHelper.__reopenProject">__reopenProject</a></td> |
|
105 <td>Private method to reopen the project if needed and wanted.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#ShelveProjectHelper.initActions">initActions</a></td> |
|
109 <td>Public method to generate the action objects.</td> |
|
110 </tr> |
|
111 <tr> |
|
112 <td><a href="#ShelveProjectHelper.initMenu">initMenu</a></td> |
|
113 <td>Public method to generate the extension menu.</td> |
|
114 </tr> |
|
115 <tr> |
|
116 <td><a href="#ShelveProjectHelper.menuTitle">menuTitle</a></td> |
|
117 <td>Public method to get the menu title.</td> |
|
118 </tr> |
|
119 </table> |
|
120 <h3>Static Methods</h3> |
|
121 |
|
122 <table> |
|
123 <tr><td>None</td></tr> |
|
124 </table> |
|
125 |
|
126 <a NAME="ShelveProjectHelper.__init__" ID="ShelveProjectHelper.__init__"></a> |
|
127 <h4>ShelveProjectHelper (Constructor)</h4> |
|
128 <b>ShelveProjectHelper</b>(<i></i>) |
|
129 |
|
130 <p> |
|
131 Constructor |
|
132 </p> |
|
133 <a NAME="ShelveProjectHelper.__hgCleanupShelves" ID="ShelveProjectHelper.__hgCleanupShelves"></a> |
|
134 <h4>ShelveProjectHelper.__hgCleanupShelves</h4> |
|
135 <b>__hgCleanupShelves</b>(<i></i>) |
|
136 |
|
137 <p> |
|
138 Private slot to delete all shelves. |
|
139 </p> |
|
140 <a NAME="ShelveProjectHelper.__hgDeleteShelves" ID="ShelveProjectHelper.__hgDeleteShelves"></a> |
|
141 <h4>ShelveProjectHelper.__hgDeleteShelves</h4> |
|
142 <b>__hgDeleteShelves</b>(<i></i>) |
|
143 |
|
144 <p> |
|
145 Private slot to delete selected shelves. |
|
146 </p> |
|
147 <a NAME="ShelveProjectHelper.__hgShelve" ID="ShelveProjectHelper.__hgShelve"></a> |
|
148 <h4>ShelveProjectHelper.__hgShelve</h4> |
|
149 <b>__hgShelve</b>(<i></i>) |
|
150 |
|
151 <p> |
|
152 Private slot used to shelve all current changes. |
|
153 </p> |
|
154 <a NAME="ShelveProjectHelper.__hgShelveBrowser" ID="ShelveProjectHelper.__hgShelveBrowser"></a> |
|
155 <h4>ShelveProjectHelper.__hgShelveBrowser</h4> |
|
156 <b>__hgShelveBrowser</b>(<i></i>) |
|
157 |
|
158 <p> |
|
159 Private slot to show the shelve browser dialog. |
|
160 </p> |
|
161 <a NAME="ShelveProjectHelper.__hgUnshelve" ID="ShelveProjectHelper.__hgUnshelve"></a> |
|
162 <h4>ShelveProjectHelper.__hgUnshelve</h4> |
|
163 <b>__hgUnshelve</b>(<i></i>) |
|
164 |
|
165 <p> |
|
166 Private slot used to restore a shelved change. |
|
167 </p> |
|
168 <a NAME="ShelveProjectHelper.__hgUnshelveAbort" ID="ShelveProjectHelper.__hgUnshelveAbort"></a> |
|
169 <h4>ShelveProjectHelper.__hgUnshelveAbort</h4> |
|
170 <b>__hgUnshelveAbort</b>(<i></i>) |
|
171 |
|
172 <p> |
|
173 Private slot used to abort an ongoing restore operation. |
|
174 </p> |
|
175 <a NAME="ShelveProjectHelper.__hgUnshelveContinue" ID="ShelveProjectHelper.__hgUnshelveContinue"></a> |
|
176 <h4>ShelveProjectHelper.__hgUnshelveContinue</h4> |
|
177 <b>__hgUnshelveContinue</b>(<i></i>) |
|
178 |
|
179 <p> |
|
180 Private slot used to continue an ongoing restore operation. |
|
181 </p> |
|
182 <a NAME="ShelveProjectHelper.__reopenProject" ID="ShelveProjectHelper.__reopenProject"></a> |
|
183 <h4>ShelveProjectHelper.__reopenProject</h4> |
|
184 <b>__reopenProject</b>(<i>shouldReopen, title</i>) |
|
185 |
|
186 <p> |
|
187 Private method to reopen the project if needed and wanted. |
|
188 </p> |
|
189 <dl> |
|
190 |
|
191 <dt><i>shouldReopen</i></dt> |
|
192 <dd> |
|
193 flag indicating that the project should |
|
194 be reopened (boolean) |
|
195 </dd> |
|
196 <dt><i>title</i></dt> |
|
197 <dd> |
|
198 title of the message box (string) |
|
199 </dd> |
|
200 </dl> |
|
201 <a NAME="ShelveProjectHelper.initActions" ID="ShelveProjectHelper.initActions"></a> |
|
202 <h4>ShelveProjectHelper.initActions</h4> |
|
203 <b>initActions</b>(<i></i>) |
|
204 |
|
205 <p> |
|
206 Public method to generate the action objects. |
|
207 </p> |
|
208 <a NAME="ShelveProjectHelper.initMenu" ID="ShelveProjectHelper.initMenu"></a> |
|
209 <h4>ShelveProjectHelper.initMenu</h4> |
|
210 <b>initMenu</b>(<i>mainMenu</i>) |
|
211 |
|
212 <p> |
|
213 Public method to generate the extension menu. |
|
214 </p> |
|
215 <dl> |
|
216 |
|
217 <dt><i>mainMenu</i></dt> |
|
218 <dd> |
|
219 reference to the main menu (QMenu) |
|
220 </dd> |
|
221 </dl> |
|
222 <dl> |
|
223 <dt>Return:</dt> |
|
224 <dd> |
|
225 populated menu (QMenu) |
|
226 </dd> |
|
227 </dl> |
|
228 <a NAME="ShelveProjectHelper.menuTitle" ID="ShelveProjectHelper.menuTitle"></a> |
|
229 <h4>ShelveProjectHelper.menuTitle</h4> |
|
230 <b>menuTitle</b>(<i></i>) |
|
231 |
|
232 <p> |
|
233 Public method to get the menu title. |
|
234 </p> |
|
235 <dl> |
|
236 <dt>Return:</dt> |
|
237 <dd> |
|
238 title of the menu (string) |
|
239 </dd> |
|
240 </dl> |
|
241 <div align="right"><a href="#top">Up</a></div> |
|
242 <hr /> |
|
243 </body></html> |