Fri, 09 Sep 2011 19:15:06 +0200
Added support for importing patches to the Mercurial interface and made it's revert action check, if the project should be reread.
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html><head> <title>eric5.Plugins.VcsPlugins.vcsMercurial.HgImportDialog</title> <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.HgImportDialog</h1> <p> Module implementing a dialog to enter data for the Mercurial import command. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#HgImportDialog">HgImportDialog</a></td> <td>Class implementing a dialog to enter data for the Mercurial import command.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /><hr /> <a NAME="HgImportDialog" ID="HgImportDialog"></a> <h2>HgImportDialog</h2> <p> Class implementing a dialog to enter data for the Mercurial import command. </p> <h3>Derived from</h3> QDialog, Ui_HgImportDialog <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="#HgImportDialog.__init__">HgImportDialog</a></td> <td>Constructor</td> </tr><tr> <td><a href="#HgImportDialog.__updateOK">__updateOK</a></td> <td>Private slot to update the OK button.</td> </tr><tr> <td><a href="#HgImportDialog.getParameters">getParameters</a></td> <td>Public method to retrieve the import data.</td> </tr><tr> <td><a href="#HgImportDialog.on_patchFileButton_clicked">on_patchFileButton_clicked</a></td> <td>Private slot called by pressing the file selection button.</td> </tr><tr> <td><a href="#HgImportDialog.on_patchFileEdit_textChanged">on_patchFileEdit_textChanged</a></td> <td>Private slot to react on changes of the patch file edit.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="HgImportDialog.__init__" ID="HgImportDialog.__init__"></a> <h4>HgImportDialog (Constructor)</h4> <b>HgImportDialog</b>(<i>parent=None</i>) <p> Constructor </p><dl> <dt><i>parent</i></dt> <dd> reference to the parent widget (QWidget) </dd> </dl><a NAME="HgImportDialog.__updateOK" ID="HgImportDialog.__updateOK"></a> <h4>HgImportDialog.__updateOK</h4> <b>__updateOK</b>(<i></i>) <p> Private slot to update the OK button. </p><a NAME="HgImportDialog.getParameters" ID="HgImportDialog.getParameters"></a> <h4>HgImportDialog.getParameters</h4> <b>getParameters</b>(<i></i>) <p> Public method to retrieve the import data. </p><dl> <dt>Returns:</dt> <dd> tuple naming the patch file, a flag indicating to not commit, a commit message, a commit date, a commit user, a strip count and a flag indicating to enforce the import (string, boolean, string, string, string, integer, boolean) </dd> </dl><a NAME="HgImportDialog.on_patchFileButton_clicked" ID="HgImportDialog.on_patchFileButton_clicked"></a> <h4>HgImportDialog.on_patchFileButton_clicked</h4> <b>on_patchFileButton_clicked</b>(<i></i>) <p> Private slot called by pressing the file selection button. </p><a NAME="HgImportDialog.on_patchFileEdit_textChanged" ID="HgImportDialog.on_patchFileEdit_textChanged"></a> <h4>HgImportDialog.on_patchFileEdit_textChanged</h4> <b>on_patchFileEdit_textChanged</b>(<i>txt</i>) <p> Private slot to react on changes of the patch file edit. </p><dl> <dt><i>txt</i></dt> <dd> contents of the line edit (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>