|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric5.Plugins.VcsPlugins.vcsMercurial.HgExtensionProjectBrowserHelper</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.HgExtensionProjectBrowserHelper</h1> |
|
23 <p> |
|
24 Module implementing the project browser helper base for Mercurial extension |
|
25 interfaces. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#HgExtensionProjectBrowserHelper">HgExtensionProjectBrowserHelper</a></td> |
|
35 <td>Class implementing the project browser helper base for Mercurial extension interfaces.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="HgExtensionProjectBrowserHelper" ID="HgExtensionProjectBrowserHelper"></a> |
|
44 <h2>HgExtensionProjectBrowserHelper</h2> |
|
45 <p> |
|
46 Class implementing the project browser helper base for Mercurial extension |
|
47 interfaces. |
|
48 </p><p> |
|
49 Note: The methods initMenus() and menuTitle() have to be reimplemented by |
|
50 derived classes. |
|
51 </p> |
|
52 <h3>Derived from</h3> |
|
53 QObject |
|
54 <h3>Class Attributes</h3> |
|
55 <table> |
|
56 <tr><td>None</td></tr> |
|
57 </table> |
|
58 <h3>Class Methods</h3> |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Methods</h3> |
|
63 <table> |
|
64 <tr> |
|
65 <td><a href="#HgExtensionProjectBrowserHelper.__init__">HgExtensionProjectBrowserHelper</a></td> |
|
66 <td>Constructor</td> |
|
67 </tr><tr> |
|
68 <td><a href="#HgExtensionProjectBrowserHelper.initMenus">initMenus</a></td> |
|
69 <td>Public method to generate the extension menus.</td> |
|
70 </tr><tr> |
|
71 <td><a href="#HgExtensionProjectBrowserHelper.menuTitle">menuTitle</a></td> |
|
72 <td>Public method to get the menu title.</td> |
|
73 </tr> |
|
74 </table> |
|
75 <h3>Static Methods</h3> |
|
76 <table> |
|
77 <tr><td>None</td></tr> |
|
78 </table> |
|
79 <a NAME="HgExtensionProjectBrowserHelper.__init__" ID="HgExtensionProjectBrowserHelper.__init__"></a> |
|
80 <h4>HgExtensionProjectBrowserHelper (Constructor)</h4> |
|
81 <b>HgExtensionProjectBrowserHelper</b>(<i>vcsObject, browserObject, projectObject</i>) |
|
82 <p> |
|
83 Constructor |
|
84 </p><dl> |
|
85 <dt><i>vcsObject</i></dt> |
|
86 <dd> |
|
87 reference to the vcs object |
|
88 </dd><dt><i>browserObject</i></dt> |
|
89 <dd> |
|
90 reference to the project browser object |
|
91 </dd><dt><i>projectObject</i></dt> |
|
92 <dd> |
|
93 reference to the project object |
|
94 </dd> |
|
95 </dl><a NAME="HgExtensionProjectBrowserHelper.initMenus" ID="HgExtensionProjectBrowserHelper.initMenus"></a> |
|
96 <h4>HgExtensionProjectBrowserHelper.initMenus</h4> |
|
97 <b>initMenus</b>(<i></i>) |
|
98 <p> |
|
99 Public method to generate the extension menus. |
|
100 </p><p> |
|
101 Note: Derived class must implement this method. |
|
102 </p><dl> |
|
103 <dt>Returns:</dt> |
|
104 <dd> |
|
105 dictionary of populated menu (dict of QMenu). The dict |
|
106 must have the keys 'mainMenu', 'multiMenu', 'backMenu', 'dirMenu' |
|
107 and 'dirMultiMenu'. |
|
108 </dd> |
|
109 </dl><dl> |
|
110 <dt>Raises <b>NotImplementedError</b>:</dt> |
|
111 <dd> |
|
112 raised if the class has not been |
|
113 reimplemented |
|
114 </dd> |
|
115 </dl><a NAME="HgExtensionProjectBrowserHelper.menuTitle" ID="HgExtensionProjectBrowserHelper.menuTitle"></a> |
|
116 <h4>HgExtensionProjectBrowserHelper.menuTitle</h4> |
|
117 <b>menuTitle</b>(<i></i>) |
|
118 <p> |
|
119 Public method to get the menu title. |
|
120 </p><p> |
|
121 Note: Derived class must implement this method. |
|
122 </p><dl> |
|
123 <dt>Returns:</dt> |
|
124 <dd> |
|
125 title of the menu (string) |
|
126 </dd> |
|
127 </dl><dl> |
|
128 <dt>Raises <b>NotImplementedError</b>:</dt> |
|
129 <dd> |
|
130 raised if the class has not been |
|
131 reimplemented |
|
132 </dd> |
|
133 </dl> |
|
134 <div align="right"><a href="#top">Up</a></div> |
|
135 <hr /> |
|
136 </body></html> |