src/eric7/Documentation/Source/eric7.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesDefineGuardsDialog.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10479
856476537696
permissions
-rw-r--r--

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.vcsMercurial.QueuesExtension.HgQueuesDefineGuardsDialog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesDefineGuardsDialog</h1>
<p>
Module implementing a dialog to define guards for patches.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog">HgQueuesDefineGuardsDialog</a></td>
<td>Class implementing a dialog to define guards for patches.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="HgQueuesDefineGuardsDialog" ID="HgQueuesDefineGuardsDialog"></a>
<h2>HgQueuesDefineGuardsDialog</h2>
<p>
    Class implementing a dialog to define guards for patches.
</p>

<h3>Derived from</h3>
QDialog, Ui_HgQueuesDefineGuardsDialog
<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="#HgQueuesDefineGuardsDialog.__init__">HgQueuesDefineGuardsDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.__applyGuards">__applyGuards</a></td>
<td>Private slot to apply the defined guards to the current patch.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.__getGuard">__getGuard</a></td>
<td>Private method to get a reference to a named guard.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.closeEvent">closeEvent</a></td>
<td>Protected slot implementing a close event handler.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.on_addButton_clicked">on_addButton_clicked</a></td>
<td>Private slot to add a guard definition to the list or change it.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
<td>Private slot called by a button of the button box clicked.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged">on_guardCombo_editTextChanged</a></td>
<td>Private slot to handle changes of the text of the guard combo.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged">on_guardsList_itemSelectionChanged</a></td>
<td>Private slot to handle changes of the selection of guards.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.on_patchSelector_activated">on_patchSelector_activated</a></td>
<td>Private slot to get the list of guards defined for the given patch name.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.on_removeButton_clicked">on_removeButton_clicked</a></td>
<td>Private slot to remove guard definitions from the list.</td>
</tr>
<tr>
<td><a href="#HgQueuesDefineGuardsDialog.start">start</a></td>
<td>Public slot to start the list command.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="HgQueuesDefineGuardsDialog.__init__" ID="HgQueuesDefineGuardsDialog.__init__"></a>
<h4>HgQueuesDefineGuardsDialog (Constructor)</h4>
<b>HgQueuesDefineGuardsDialog</b>(<i>vcs, extension, patchesList, parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>vcs</i> (Hg)</dt>
<dd>
reference to the vcs object
</dd>
<dt><i>extension</i> (Queues)</dt>
<dd>
reference to the extension module
</dd>
<dt><i>patchesList</i> (list of str)</dt>
<dd>
list of patches
</dd>
<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="HgQueuesDefineGuardsDialog.__applyGuards" ID="HgQueuesDefineGuardsDialog.__applyGuards"></a>
<h4>HgQueuesDefineGuardsDialog.__applyGuards</h4>
<b>__applyGuards</b>(<i></i>)
<p>
        Private slot to apply the defined guards to the current patch.
</p>

<a NAME="HgQueuesDefineGuardsDialog.__getGuard" ID="HgQueuesDefineGuardsDialog.__getGuard"></a>
<h4>HgQueuesDefineGuardsDialog.__getGuard</h4>
<b>__getGuard</b>(<i>guard</i>)
<p>
        Private method to get a reference to a named guard.
</p>

<dl>

<dt><i>guard</i> (str)</dt>
<dd>
name of the guard
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the guard item
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
QListWidgetItem
</dd>
</dl>
<a NAME="HgQueuesDefineGuardsDialog.closeEvent" ID="HgQueuesDefineGuardsDialog.closeEvent"></a>
<h4>HgQueuesDefineGuardsDialog.closeEvent</h4>
<b>closeEvent</b>(<i>e</i>)
<p>
        Protected slot implementing a close event handler.
</p>

<dl>

<dt><i>e</i> (QCloseEvent)</dt>
<dd>
close event
</dd>
</dl>
<a NAME="HgQueuesDefineGuardsDialog.on_addButton_clicked" ID="HgQueuesDefineGuardsDialog.on_addButton_clicked"></a>
<h4>HgQueuesDefineGuardsDialog.on_addButton_clicked</h4>
<b>on_addButton_clicked</b>(<i></i>)
<p>
        Private slot to add a guard definition to the list or change it.
</p>

<a NAME="HgQueuesDefineGuardsDialog.on_buttonBox_clicked" ID="HgQueuesDefineGuardsDialog.on_buttonBox_clicked"></a>
<h4>HgQueuesDefineGuardsDialog.on_buttonBox_clicked</h4>
<b>on_buttonBox_clicked</b>(<i>button</i>)
<p>
        Private slot called by a button of the button box clicked.
</p>

<dl>

<dt><i>button</i> (QAbstractButton)</dt>
<dd>
button that was clicked
</dd>
</dl>
<a NAME="HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged" ID="HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged"></a>
<h4>HgQueuesDefineGuardsDialog.on_guardCombo_editTextChanged</h4>
<b>on_guardCombo_editTextChanged</b>(<i>txt</i>)
<p>
        Private slot to handle changes of the text of the guard combo.
</p>

<dl>

<dt><i>txt</i> (str)</dt>
<dd>
contents of the guard combo line edit
</dd>
</dl>
<a NAME="HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged" ID="HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged"></a>
<h4>HgQueuesDefineGuardsDialog.on_guardsList_itemSelectionChanged</h4>
<b>on_guardsList_itemSelectionChanged</b>(<i></i>)
<p>
        Private slot to handle changes of the selection of guards.
</p>

<a NAME="HgQueuesDefineGuardsDialog.on_patchSelector_activated" ID="HgQueuesDefineGuardsDialog.on_patchSelector_activated"></a>
<h4>HgQueuesDefineGuardsDialog.on_patchSelector_activated</h4>
<b>on_patchSelector_activated</b>(<i>index</i>)
<p>
        Private slot to get the list of guards defined for the given patch
        name.
</p>

<dl>

<dt><i>index</i> (int)</dt>
<dd>
index of the selected entry
</dd>
</dl>
<a NAME="HgQueuesDefineGuardsDialog.on_removeButton_clicked" ID="HgQueuesDefineGuardsDialog.on_removeButton_clicked"></a>
<h4>HgQueuesDefineGuardsDialog.on_removeButton_clicked</h4>
<b>on_removeButton_clicked</b>(<i></i>)
<p>
        Private slot to remove guard definitions from the list.
</p>

<a NAME="HgQueuesDefineGuardsDialog.start" ID="HgQueuesDefineGuardsDialog.start"></a>
<h4>HgQueuesDefineGuardsDialog.start</h4>
<b>start</b>(<i></i>)
<p>
        Public slot to start the list command.
</p>

<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial