Mon, 24 Feb 2014 19:27:39 +0100
Added support for the Mercurial shelve extension to the project browser VCS context menu.
<!DOCTYPE html> <html><head> <title>eric5.Plugins.VcsPlugins.vcsMercurial.ShelveExtension.ProjectBrowserHelper</title> <meta charset="UTF-8"> <style> body { background: #EDECE6; margin: 0em 1em 10em 1em; color: black; } h1 { color: white; background: #85774A; } h2 { color: white; background: #85774A; } h3 { color: white; background: #9D936E; } h4 { color: white; background: #9D936E; } a { color: #BA6D36; } </style> </head> <body><a NAME="top" ID="top"></a> <h1>eric5.Plugins.VcsPlugins.vcsMercurial.ShelveExtension.ProjectBrowserHelper</h1> <p> Module implementing the shelve extension project browser helper. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#ShelveProjectBrowserHelper">ShelveProjectBrowserHelper</a></td> <td>Class implementing the shelve extension project browser helper.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /><hr /> <a NAME="ShelveProjectBrowserHelper" ID="ShelveProjectBrowserHelper"></a> <h2>ShelveProjectBrowserHelper</h2> <p> Class implementing the shelve extension project browser helper. </p> <h3>Derived from</h3> HgExtensionProjectBrowserHelper <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#ShelveProjectBrowserHelper.__init__">ShelveProjectBrowserHelper</a></td> <td>Constructor</td> </tr><tr> <td><a href="#ShelveProjectBrowserHelper.__hgShelve">__hgShelve</a></td> <td>Private slot used to shelve all current changes.</td> </tr><tr> <td><a href="#ShelveProjectBrowserHelper.__reopenProject">__reopenProject</a></td> <td>Private method to reopen the project if needed and wanted.</td> </tr><tr> <td><a href="#ShelveProjectBrowserHelper.initMenus">initMenus</a></td> <td>Public method to generate the extension menus.</td> </tr><tr> <td><a href="#ShelveProjectBrowserHelper.menuTitle">menuTitle</a></td> <td>Public method to get the menu title.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="ShelveProjectBrowserHelper.__init__" ID="ShelveProjectBrowserHelper.__init__"></a> <h4>ShelveProjectBrowserHelper (Constructor)</h4> <b>ShelveProjectBrowserHelper</b>(<i>vcsObject, browserObject, projectObject</i>) <p> Constructor </p><dl> <dt><i>vcsObject</i></dt> <dd> reference to the vcs object </dd><dt><i>browserObject</i></dt> <dd> reference to the project browser object </dd><dt><i>projectObject</i></dt> <dd> reference to the project object </dd> </dl><a NAME="ShelveProjectBrowserHelper.__hgShelve" ID="ShelveProjectBrowserHelper.__hgShelve"></a> <h4>ShelveProjectBrowserHelper.__hgShelve</h4> <b>__hgShelve</b>(<i></i>) <p> Private slot used to shelve all current changes. </p><a NAME="ShelveProjectBrowserHelper.__reopenProject" ID="ShelveProjectBrowserHelper.__reopenProject"></a> <h4>ShelveProjectBrowserHelper.__reopenProject</h4> <b>__reopenProject</b>(<i>shouldReopen, title</i>) <p> Private method to reopen the project if needed and wanted. </p><dl> <dt><i>shouldReopen</i></dt> <dd> flag indicating that the project should be reopened (boolean) </dd><dt><i>title</i></dt> <dd> title of the message box (string) </dd> </dl><a NAME="ShelveProjectBrowserHelper.initMenus" ID="ShelveProjectBrowserHelper.initMenus"></a> <h4>ShelveProjectBrowserHelper.initMenus</h4> <b>initMenus</b>(<i></i>) <p> Public method to generate the extension menus. </p><p> Note: Derived class must implement this method. </p><dl> <dt>Returns:</dt> <dd> dictionary of populated menu (dict of QMenu). The dict must have the keys 'mainMenu', 'multiMenu', 'backMenu', 'dirMenu' and 'dirMultiMenu'. </dd> </dl><a NAME="ShelveProjectBrowserHelper.menuTitle" ID="ShelveProjectBrowserHelper.menuTitle"></a> <h4>ShelveProjectBrowserHelper.menuTitle</h4> <b>menuTitle</b>(<i></i>) <p> Public method to get the menu title. </p><p> Note: Derived class must implement this method. </p><dl> <dt>Returns:</dt> <dd> title of the menu (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>