|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric5.Plugins.VcsPlugins.vcsMercurial.ShelveExtension.ProjectBrowserHelper</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>eric5.Plugins.VcsPlugins.vcsMercurial.ShelveExtension.ProjectBrowserHelper</h1> |
|
23 <p> |
|
24 Module implementing the shelve extension project browser helper. |
|
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="#ShelveProjectBrowserHelper">ShelveProjectBrowserHelper</a></td> |
|
34 <td>Class implementing the shelve extension project browser helper.</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="ShelveProjectBrowserHelper" ID="ShelveProjectBrowserHelper"></a> |
|
43 <h2>ShelveProjectBrowserHelper</h2> |
|
44 <p> |
|
45 Class implementing the shelve extension project browser helper. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 HgExtensionProjectBrowserHelper |
|
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="#ShelveProjectBrowserHelper.__init__">ShelveProjectBrowserHelper</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#ShelveProjectBrowserHelper.__hgShelve">__hgShelve</a></td> |
|
64 <td>Private slot used to shelve all current changes.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#ShelveProjectBrowserHelper.__reopenProject">__reopenProject</a></td> |
|
67 <td>Private method to reopen the project if needed and wanted.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#ShelveProjectBrowserHelper.initMenus">initMenus</a></td> |
|
70 <td>Public method to generate the extension menus.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#ShelveProjectBrowserHelper.menuTitle">menuTitle</a></td> |
|
73 <td>Public method to get the menu title.</td> |
|
74 </tr> |
|
75 </table> |
|
76 <h3>Static Methods</h3> |
|
77 <table> |
|
78 <tr><td>None</td></tr> |
|
79 </table> |
|
80 <a NAME="ShelveProjectBrowserHelper.__init__" ID="ShelveProjectBrowserHelper.__init__"></a> |
|
81 <h4>ShelveProjectBrowserHelper (Constructor)</h4> |
|
82 <b>ShelveProjectBrowserHelper</b>(<i>vcsObject, browserObject, projectObject</i>) |
|
83 <p> |
|
84 Constructor |
|
85 </p><dl> |
|
86 <dt><i>vcsObject</i></dt> |
|
87 <dd> |
|
88 reference to the vcs object |
|
89 </dd><dt><i>browserObject</i></dt> |
|
90 <dd> |
|
91 reference to the project browser object |
|
92 </dd><dt><i>projectObject</i></dt> |
|
93 <dd> |
|
94 reference to the project object |
|
95 </dd> |
|
96 </dl><a NAME="ShelveProjectBrowserHelper.__hgShelve" ID="ShelveProjectBrowserHelper.__hgShelve"></a> |
|
97 <h4>ShelveProjectBrowserHelper.__hgShelve</h4> |
|
98 <b>__hgShelve</b>(<i></i>) |
|
99 <p> |
|
100 Private slot used to shelve all current changes. |
|
101 </p><a NAME="ShelveProjectBrowserHelper.__reopenProject" ID="ShelveProjectBrowserHelper.__reopenProject"></a> |
|
102 <h4>ShelveProjectBrowserHelper.__reopenProject</h4> |
|
103 <b>__reopenProject</b>(<i>shouldReopen, title</i>) |
|
104 <p> |
|
105 Private method to reopen the project if needed and wanted. |
|
106 </p><dl> |
|
107 <dt><i>shouldReopen</i></dt> |
|
108 <dd> |
|
109 flag indicating that the project should |
|
110 be reopened (boolean) |
|
111 </dd><dt><i>title</i></dt> |
|
112 <dd> |
|
113 title of the message box (string) |
|
114 </dd> |
|
115 </dl><a NAME="ShelveProjectBrowserHelper.initMenus" ID="ShelveProjectBrowserHelper.initMenus"></a> |
|
116 <h4>ShelveProjectBrowserHelper.initMenus</h4> |
|
117 <b>initMenus</b>(<i></i>) |
|
118 <p> |
|
119 Public method to generate the extension menus. |
|
120 </p><p> |
|
121 Note: Derived class must implement this method. |
|
122 </p><dl> |
|
123 <dt>Returns:</dt> |
|
124 <dd> |
|
125 dictionary of populated menu (dict of QMenu). The dict |
|
126 must have the keys 'mainMenu', 'multiMenu', 'backMenu', 'dirMenu' |
|
127 and 'dirMultiMenu'. |
|
128 </dd> |
|
129 </dl><a NAME="ShelveProjectBrowserHelper.menuTitle" ID="ShelveProjectBrowserHelper.menuTitle"></a> |
|
130 <h4>ShelveProjectBrowserHelper.menuTitle</h4> |
|
131 <b>menuTitle</b>(<i></i>) |
|
132 <p> |
|
133 Public method to get the menu title. |
|
134 </p><p> |
|
135 Note: Derived class must implement this method. |
|
136 </p><dl> |
|
137 <dt>Returns:</dt> |
|
138 <dd> |
|
139 title of the menu (string) |
|
140 </dd> |
|
141 </dl> |
|
142 <div align="right"><a href="#top">Up</a></div> |
|
143 <hr /> |
|
144 </body></html> |