src/eric7/Documentation/Source/eric7.QScintilla.TypingCompleters.CompleterBase.html

Mon, 09 Jan 2023 11:22:56 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 09 Jan 2023 11:22:56 +0100
branch
eric7
changeset 9686
2eee7a645cba
parent 9209
b99e7fd55fd3
child 10431
64157aeb0312
permissions
-rw-r--r--

Moved the 'QtHelp' subpackage out of the WebBrowser package because it is used in the HelpViewer as well.

<!DOCTYPE html>
<html><head>
<title>eric7.QScintilla.TypingCompleters.CompleterBase</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.QScintilla.TypingCompleters.CompleterBase</h1>

<p>
Module implementing a base class for all typing completers.
</p>
<p>
Typing completers are classes that implement some convenience actions,
that are performed while the user is typing (e.g. insert ')' when the
user types '(').
</p>
<h3>Global Attributes</h3>

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

<table>

<tr>
<td><a href="#CompleterBase">CompleterBase</a></td>
<td>Class implementing the base class for all completers.</td>
</tr>
</table>
<h3>Functions</h3>

<table>
<tr><td>None</td></tr>
</table>
<hr />
<hr />
<a NAME="CompleterBase" ID="CompleterBase"></a>
<h2>CompleterBase</h2>

<p>
    Class implementing the base class for all completers.
</p>
<h3>Derived from</h3>
QObject
<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="#CompleterBase.__init__">CompleterBase</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#CompleterBase.charAdded">charAdded</a></td>
<td>Public slot called to handle the user entering a character.</td>
</tr>
<tr>
<td><a href="#CompleterBase.isEnabled">isEnabled</a></td>
<td>Public method to get the enabled state.</td>
</tr>
<tr>
<td><a href="#CompleterBase.readSettings">readSettings</a></td>
<td>Public slot called to reread the configuration parameters.</td>
</tr>
<tr>
<td><a href="#CompleterBase.setEnabled">setEnabled</a></td>
<td>Public slot to set the enabled state.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="CompleterBase.__init__" ID="CompleterBase.__init__"></a>
<h4>CompleterBase (Constructor)</h4>
<b>CompleterBase</b>(<i>editor, parent=None</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>editor</i></dt>
<dd>
reference to the editor object (QScintilla.Editor)
</dd>
<dt><i>parent</i></dt>
<dd>
reference to the parent object (QObject)
            If parent is None, we set the editor as the parent.
</dd>
</dl>
<a NAME="CompleterBase.charAdded" ID="CompleterBase.charAdded"></a>
<h4>CompleterBase.charAdded</h4>
<b>charAdded</b>(<i>charNumber</i>)

<p>
        Public slot called to handle the user entering a character.
</p>
<p>
        Note 1: this slot must be overridden by subclasses implementing the
        specific behavior for the language.
</p>
<p>
        Note 2: charNumber can be greater than 255 because the editor is
        in UTF-8 mode by default.
</p>
<dl>

<dt><i>charNumber</i></dt>
<dd>
value of the character entered (integer)
</dd>
</dl>
<a NAME="CompleterBase.isEnabled" ID="CompleterBase.isEnabled"></a>
<h4>CompleterBase.isEnabled</h4>
<b>isEnabled</b>(<i></i>)

<p>
        Public method to get the enabled state.
</p>
<dl>
<dt>Return:</dt>
<dd>
enabled state (boolean)
</dd>
</dl>
<a NAME="CompleterBase.readSettings" ID="CompleterBase.readSettings"></a>
<h4>CompleterBase.readSettings</h4>
<b>readSettings</b>(<i></i>)

<p>
        Public slot called to reread the configuration parameters.
</p>
<p>
        Note: this slot should be overridden by subclasses having
        configurable parameters.
</p>
<a NAME="CompleterBase.setEnabled" ID="CompleterBase.setEnabled"></a>
<h4>CompleterBase.setEnabled</h4>
<b>setEnabled</b>(<i>enable</i>)

<p>
        Public slot to set the enabled state.
</p>
<dl>

<dt><i>enable</i></dt>
<dd>
flag indicating the new enabled state (boolean)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial