src/eric7/Documentation/Source/eric7.Preferences.ShortcutDialog.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 10692
9becf9ca115c
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.Preferences.ShortcutDialog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.Preferences.ShortcutDialog</h1>
<p>
Module implementing a dialog for the configuration of a keyboard shortcut.
</p>

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

<h3>Classes</h3>
<table>
<tr>
<td><a href="#ShortcutDialog">ShortcutDialog</a></td>
<td>Class implementing a dialog for the configuration of a keyboard shortcut.</td>
</tr>
</table>

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

<hr />
<hr />
<a NAME="ShortcutDialog" ID="ShortcutDialog"></a>
<h2>ShortcutDialog</h2>
<p>
    Class implementing a dialog for the configuration of a keyboard shortcut.
</p>

<h3>Signals</h3>
<dl>

<dt>shortcutChanged(QKeySequence, QKeySequence, bool, string)</dt>
<dd>
emitted
        after the OK button was pressed
</dd>
</dl>
<h3>Derived from</h3>
QDialog, Ui_ShortcutDialog
<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="#ShortcutDialog.__init__">ShortcutDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#ShortcutDialog.__clear">__clear</a></td>
<td>Private slot to handle the Clear button press.</td>
</tr>
<tr>
<td><a href="#ShortcutDialog.__clearKeys">__clearKeys</a></td>
<td>Private method to clear the list of recorded keys.</td>
</tr>
<tr>
<td><a href="#ShortcutDialog.__setKeyEditText">__setKeyEditText</a></td>
<td>Private method to set the text of a key edit.</td>
</tr>
<tr>
<td><a href="#ShortcutDialog.__typeChanged">__typeChanged</a></td>
<td>Private slot to handle the change of the shortcuts type.</td>
</tr>
<tr>
<td><a href="#ShortcutDialog.eventFilter">eventFilter</a></td>
<td>Public method called to filter the event queue.</td>
</tr>
<tr>
<td><a href="#ShortcutDialog.keyPressEvent">keyPressEvent</a></td>
<td>Protected method to handle a key press event.</td>
</tr>
<tr>
<td><a href="#ShortcutDialog.on_buttonBox_accepted">on_buttonBox_accepted</a></td>
<td>Private slot to handle the OK button press.</td>
</tr>
<tr>
<td><a href="#ShortcutDialog.setKeys">setKeys</a></td>
<td>Public method to set the key to be configured.</td>
</tr>
</table>

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


<a NAME="ShortcutDialog.__init__" ID="ShortcutDialog.__init__"></a>
<h4>ShortcutDialog (Constructor)</h4>
<b>ShortcutDialog</b>(<i>parent=None, name=None, modal=False</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QWidget)</dt>
<dd>
The parent widget of this dialog.
</dd>
<dt><i>name</i> (str)</dt>
<dd>
The name of this dialog.
</dd>
<dt><i>modal</i> (bool)</dt>
<dd>
Flag indicating a modal dialog.
</dd>
</dl>
<a NAME="ShortcutDialog.__clear" ID="ShortcutDialog.__clear"></a>
<h4>ShortcutDialog.__clear</h4>
<b>__clear</b>(<i></i>)
<p>
        Private slot to handle the Clear button press.
</p>

<a NAME="ShortcutDialog.__clearKeys" ID="ShortcutDialog.__clearKeys"></a>
<h4>ShortcutDialog.__clearKeys</h4>
<b>__clearKeys</b>(<i></i>)
<p>
        Private method to clear the list of recorded keys.
</p>

<a NAME="ShortcutDialog.__setKeyEditText" ID="ShortcutDialog.__setKeyEditText"></a>
<h4>ShortcutDialog.__setKeyEditText</h4>
<b>__setKeyEditText</b>(<i>txt</i>)
<p>
        Private method to set the text of a key edit.
</p>

<dl>

<dt><i>txt</i> (str)</dt>
<dd>
text to be set
</dd>
</dl>
<a NAME="ShortcutDialog.__typeChanged" ID="ShortcutDialog.__typeChanged"></a>
<h4>ShortcutDialog.__typeChanged</h4>
<b>__typeChanged</b>(<i></i>)
<p>
        Private slot to handle the change of the shortcuts type.
</p>

<a NAME="ShortcutDialog.eventFilter" ID="ShortcutDialog.eventFilter"></a>
<h4>ShortcutDialog.eventFilter</h4>
<b>eventFilter</b>(<i>_watched, event</i>)
<p>
        Public method called to filter the event queue.
</p>

<dl>

<dt><i>_watched</i> (QObject)</dt>
<dd>
reference to the QObject being watched (unused)
</dd>
<dt><i>event</i> (QEvent)</dt>
<dd>
the event that occurred
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
always False
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="ShortcutDialog.keyPressEvent" ID="ShortcutDialog.keyPressEvent"></a>
<h4>ShortcutDialog.keyPressEvent</h4>
<b>keyPressEvent</b>(<i>evt</i>)
<p>
        Protected method to handle a key press event.
</p>

<dl>

<dt><i>evt</i> (QKeyEvent)</dt>
<dd>
the key event
</dd>
</dl>
<a NAME="ShortcutDialog.on_buttonBox_accepted" ID="ShortcutDialog.on_buttonBox_accepted"></a>
<h4>ShortcutDialog.on_buttonBox_accepted</h4>
<b>on_buttonBox_accepted</b>(<i></i>)
<p>
        Private slot to handle the OK button press.
</p>

<a NAME="ShortcutDialog.setKeys" ID="ShortcutDialog.setKeys"></a>
<h4>ShortcutDialog.setKeys</h4>
<b>setKeys</b>(<i>key, alternateKey, noCheck, objectType</i>)
<p>
        Public method to set the key to be configured.
</p>

<dl>

<dt><i>key</i> (QKeySequence)</dt>
<dd>
key sequence to be changed
</dd>
<dt><i>alternateKey</i> (QKeySequence)</dt>
<dd>
alternate key sequence to be changed
</dd>
<dt><i>noCheck</i> (bool)</dt>
<dd>
flag indicating that no uniqueness check should
            be performed
</dd>
<dt><i>objectType</i> (str)</dt>
<dd>
type of the object
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial