src/eric7/Documentation/Source/eric7.Preferences.ConfigurationPages.EditorGeneralPage.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 10684
58c7f23ae1cb
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.ConfigurationPages.EditorGeneralPage</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.Preferences.ConfigurationPages.EditorGeneralPage</h1>
<p>
Module implementing the Editor General configuration page.
</p>

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

<h3>Classes</h3>
<table>
<tr>
<td><a href="#EditorGeneralPage">EditorGeneralPage</a></td>
<td>Class implementing the Editor General configuration page.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr>
<td><a href="#create">create</a></td>
<td>Module function to create the configuration page.</td>
</tr>
</table>

<hr />
<hr />
<a NAME="EditorGeneralPage" ID="EditorGeneralPage"></a>
<h2>EditorGeneralPage</h2>
<p>
    Class implementing the Editor General configuration page.
</p>

<h3>Derived from</h3>
ConfigurationPageBase, Ui_EditorGeneralPage
<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="#EditorGeneralPage.__init__">EditorGeneralPage</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.__createOverrideItem">__createOverrideItem</a></td>
<td>Private method to create an entry for a language override.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.__populateLanguageOverrideWidget">__populateLanguageOverrideWidget</a></td>
<td>Private method to populate the language specific indentation and tab width override widget.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.__resizeOverrideColumns">__resizeOverrideColumns</a></td>
<td>Private method to resize the list columns.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.__saveLanguageOverrides">__saveLanguageOverrides</a></td>
<td>Private method to save the language specific indentation and tab width overrides.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.on_addButton_clicked">on_addButton_clicked</a></td>
<td>Private slot to add a new override entry.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.on_deleteButton_clicked">on_deleteButton_clicked</a></td>
<td>Private slot to delete the selected override entries.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.on_editButton_clicked">on_editButton_clicked</a></td>
<td>Private slot to edit the selected override entry.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.on_languageOverrideWidget_itemSelectionChanged">on_languageOverrideWidget_itemSelectionChanged</a></td>
<td>Private slot handling a change of the override selection.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.on_tabforindentationCheckBox_toggled">on_tabforindentationCheckBox_toggled</a></td>
<td>Private slot used to set the tab conversion check box.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.save">save</a></td>
<td>Public slot to save the Editor General configuration.</td>
</tr>
<tr>
<td><a href="#EditorGeneralPage.setMode">setMode</a></td>
<td>Public method to perform mode dependent setups.</td>
</tr>
</table>

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


<a NAME="EditorGeneralPage.__init__" ID="EditorGeneralPage.__init__"></a>
<h4>EditorGeneralPage (Constructor)</h4>
<b>EditorGeneralPage</b>(<i></i>)
<p>
        Constructor
</p>

<a NAME="EditorGeneralPage.__createOverrideItem" ID="EditorGeneralPage.__createOverrideItem"></a>
<h4>EditorGeneralPage.__createOverrideItem</h4>
<b>__createOverrideItem</b>(<i>language, tabWidth, indentWidth</i>)
<p>
        Private method to create an entry for a language override.
</p>

<dl>

<dt><i>language</i> (str)</dt>
<dd>
name of the language
</dd>
<dt><i>tabWidth</i> (int)</dt>
<dd>
tabulator width
</dd>
<dt><i>indentWidth</i> (int)</dt>
<dd>
indentation width
</dd>
</dl>
<a NAME="EditorGeneralPage.__populateLanguageOverrideWidget" ID="EditorGeneralPage.__populateLanguageOverrideWidget"></a>
<h4>EditorGeneralPage.__populateLanguageOverrideWidget</h4>
<b>__populateLanguageOverrideWidget</b>(<i></i>)
<p>
        Private method to populate the language specific indentation and tab
        width override widget.
</p>

<a NAME="EditorGeneralPage.__resizeOverrideColumns" ID="EditorGeneralPage.__resizeOverrideColumns"></a>
<h4>EditorGeneralPage.__resizeOverrideColumns</h4>
<b>__resizeOverrideColumns</b>(<i></i>)
<p>
        Private method to resize the list columns.
</p>

<a NAME="EditorGeneralPage.__saveLanguageOverrides" ID="EditorGeneralPage.__saveLanguageOverrides"></a>
<h4>EditorGeneralPage.__saveLanguageOverrides</h4>
<b>__saveLanguageOverrides</b>(<i></i>)
<p>
        Private method to save the language specific indentation and tab width
        overrides.
</p>

<a NAME="EditorGeneralPage.on_addButton_clicked" ID="EditorGeneralPage.on_addButton_clicked"></a>
<h4>EditorGeneralPage.on_addButton_clicked</h4>
<b>on_addButton_clicked</b>(<i></i>)
<p>
        Private slot to add a new override entry.
</p>

<a NAME="EditorGeneralPage.on_deleteButton_clicked" ID="EditorGeneralPage.on_deleteButton_clicked"></a>
<h4>EditorGeneralPage.on_deleteButton_clicked</h4>
<b>on_deleteButton_clicked</b>(<i></i>)
<p>
        Private slot to delete the selected override entries.
</p>

<a NAME="EditorGeneralPage.on_editButton_clicked" ID="EditorGeneralPage.on_editButton_clicked"></a>
<h4>EditorGeneralPage.on_editButton_clicked</h4>
<b>on_editButton_clicked</b>(<i></i>)
<p>
        Private slot to edit the selected override entry.
</p>

<a NAME="EditorGeneralPage.on_languageOverrideWidget_itemSelectionChanged" ID="EditorGeneralPage.on_languageOverrideWidget_itemSelectionChanged"></a>
<h4>EditorGeneralPage.on_languageOverrideWidget_itemSelectionChanged</h4>
<b>on_languageOverrideWidget_itemSelectionChanged</b>(<i></i>)
<p>
        Private slot handling a change of the override selection.
</p>

<a NAME="EditorGeneralPage.on_tabforindentationCheckBox_toggled" ID="EditorGeneralPage.on_tabforindentationCheckBox_toggled"></a>
<h4>EditorGeneralPage.on_tabforindentationCheckBox_toggled</h4>
<b>on_tabforindentationCheckBox_toggled</b>(<i>checked</i>)
<p>
        Private slot used to set the tab conversion check box.
</p>

<dl>

<dt><i>checked</i> (bool)</dt>
<dd>
flag received from the signal
</dd>
</dl>
<a NAME="EditorGeneralPage.save" ID="EditorGeneralPage.save"></a>
<h4>EditorGeneralPage.save</h4>
<b>save</b>(<i></i>)
<p>
        Public slot to save the Editor General configuration.
</p>

<a NAME="EditorGeneralPage.setMode" ID="EditorGeneralPage.setMode"></a>
<h4>EditorGeneralPage.setMode</h4>
<b>setMode</b>(<i>displayMode</i>)
<p>
        Public method to perform mode dependent setups.
</p>

<dl>

<dt><i>displayMode</i> (ConfigurationMode)</dt>
<dd>
mode of the configuration dialog
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="create" ID="create"></a>
<h2>create</h2>
<b>create</b>(<i>_dlg</i>)
<p>
    Module function to create the configuration page.
</p>

<dl>

<dt><i>_dlg</i> (ConfigurationDialog)</dt>
<dd>
reference to the configuration dialog (unused)
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the instantiated page
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
ConfigurationPageBase
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial