Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
<!DOCTYPE html> <html><head> <title>eric7.Plugins.VcsPlugins.vcsGit.GitBranchDialog</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.Plugins.VcsPlugins.vcsGit.GitBranchDialog</h1> <p> Module implementing a dialog to enter the data for a branching operation. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#GitBranchDialog">GitBranchDialog</a></td> <td>Class implementing a dialog to enter the data for a branching operation.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="GitBranchDialog" ID="GitBranchDialog"></a> <h2>GitBranchDialog</h2> <p> Class implementing a dialog to enter the data for a branching operation. </p> <h3>Derived from</h3> QDialog, Ui_GitBranchDialog <h3>Class Attributes</h3> <table> <tr><td>CreateBranch</td></tr> <tr><td>CreateSwitchBranch</td></tr> <tr><td>CreateTrackingBranch</td></tr> <tr><td>DeleteBranch</td></tr> <tr><td>RenameBranch</td></tr> <tr><td>SetTrackingBranch</td></tr> <tr><td>UnsetTrackingBranch</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#GitBranchDialog.__init__">GitBranchDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#GitBranchDialog.__updateOK">__updateOK</a></td> <td>Private method used to enable/disable the OK-button.</td> </tr> <tr> <td><a href="#GitBranchDialog.getParameters">getParameters</a></td> <td>Public method to retrieve the branch data.</td> </tr> <tr> <td><a href="#GitBranchDialog.on_branchCombo_editTextChanged">on_branchCombo_editTextChanged</a></td> <td>Private slot to handle a change of the branch.</td> </tr> <tr> <td><a href="#GitBranchDialog.on_createTrackingButton_toggled">on_createTrackingButton_toggled</a></td> <td>Private slot to handle the selection of creating a tracking branch.</td> </tr> <tr> <td><a href="#GitBranchDialog.on_newBranchNameEdit_textChanged">on_newBranchNameEdit_textChanged</a></td> <td>Private slot to handle a change of the new branch.</td> </tr> <tr> <td><a href="#GitBranchDialog.on_setTrackingButton_toggled">on_setTrackingButton_toggled</a></td> <td>Private slot to handle the selection of setting a tracking branch.</td> </tr> <tr> <td><a href="#GitBranchDialog.on_unsetTrackingButton_toggled">on_unsetTrackingButton_toggled</a></td> <td>Private slot to handle the selection of unsetting a tracking branch.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="GitBranchDialog.__init__" ID="GitBranchDialog.__init__"></a> <h4>GitBranchDialog (Constructor)</h4> <b>GitBranchDialog</b>(<i>branchlist, revision=None, branchName=None, branchOp=None, parent=None</i>) <p> Constructor </p> <dl> <dt><i>branchlist</i> (list of str)</dt> <dd> list of previously entered branches </dd> <dt><i>revision</i> (str)</dt> <dd> revision to set tag for </dd> <dt><i>branchName</i> (str)</dt> <dd> name of the branch </dd> <dt><i>branchOp</i> (int)</dt> <dd> desired branch operation </dd> <dt><i>parent</i> (QWidget)</dt> <dd> parent widget </dd> </dl> <a NAME="GitBranchDialog.__updateOK" ID="GitBranchDialog.__updateOK"></a> <h4>GitBranchDialog.__updateOK</h4> <b>__updateOK</b>(<i></i>) <p> Private method used to enable/disable the OK-button. </p> <a NAME="GitBranchDialog.getParameters" ID="GitBranchDialog.getParameters"></a> <h4>GitBranchDialog.getParameters</h4> <b>getParameters</b>(<i></i>) <p> Public method to retrieve the branch data. </p> <dl> <dt>Return:</dt> <dd> tuple containing the branch operation, branch name, revision, new branch name, remote branch name and a flag indicating to enforce the operation </dd> </dl> <dl> <dt>Return Type:</dt> <dd> tuple of (int, str, str, str, str, bool) </dd> </dl> <a NAME="GitBranchDialog.on_branchCombo_editTextChanged" ID="GitBranchDialog.on_branchCombo_editTextChanged"></a> <h4>GitBranchDialog.on_branchCombo_editTextChanged</h4> <b>on_branchCombo_editTextChanged</b>(<i>text</i>) <p> Private slot to handle a change of the branch. </p> <dl> <dt><i>text</i> (str)</dt> <dd> branch name entered in the combo </dd> </dl> <a NAME="GitBranchDialog.on_createTrackingButton_toggled" ID="GitBranchDialog.on_createTrackingButton_toggled"></a> <h4>GitBranchDialog.on_createTrackingButton_toggled</h4> <b>on_createTrackingButton_toggled</b>(<i>checked</i>) <p> Private slot to handle the selection of creating a tracking branch. </p> <dl> <dt><i>checked</i> (bool)</dt> <dd> state of the selection </dd> </dl> <a NAME="GitBranchDialog.on_newBranchNameEdit_textChanged" ID="GitBranchDialog.on_newBranchNameEdit_textChanged"></a> <h4>GitBranchDialog.on_newBranchNameEdit_textChanged</h4> <b>on_newBranchNameEdit_textChanged</b>(<i>text</i>) <p> Private slot to handle a change of the new branch. </p> <dl> <dt><i>text</i> (str)</dt> <dd> new branch name entered </dd> </dl> <a NAME="GitBranchDialog.on_setTrackingButton_toggled" ID="GitBranchDialog.on_setTrackingButton_toggled"></a> <h4>GitBranchDialog.on_setTrackingButton_toggled</h4> <b>on_setTrackingButton_toggled</b>(<i>checked</i>) <p> Private slot to handle the selection of setting a tracking branch. </p> <dl> <dt><i>checked</i> (bool)</dt> <dd> state of the selection </dd> </dl> <a NAME="GitBranchDialog.on_unsetTrackingButton_toggled" ID="GitBranchDialog.on_unsetTrackingButton_toggled"></a> <h4>GitBranchDialog.on_unsetTrackingButton_toggled</h4> <b>on_unsetTrackingButton_toggled</b>(<i>checked</i>) <p> Private slot to handle the selection of unsetting a tracking branch. </p> <dl> <dt><i>checked</i> (bool)</dt> <dd> state of the selection </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>