src/eric7/Documentation/Source/eric7.Preferences.ConfigurationDialog.html

Tue, 23 Apr 2024 11:26:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 23 Apr 2024 11:26:04 +0200
branch
eric7
changeset 10692
9becf9ca115c
parent 10684
58c7f23ae1cb
permissions
-rw-r--r--

Changed the source code and the source code documentation to improve the indication of unused method/function arguments.

<!DOCTYPE html>
<html><head>
<title>eric7.Preferences.ConfigurationDialog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.Preferences.ConfigurationDialog</h1>
<p>
Module implementing a dialog for the configuration of eric.
</p>

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

<h3>Classes</h3>
<table>
<tr>
<td><a href="#ConfigurationDialog">ConfigurationDialog</a></td>
<td>Class for the dialog variant.</td>
</tr>
<tr>
<td><a href="#ConfigurationMode">ConfigurationMode</a></td>
<td>Class defining the various modes of the configuration widget.</td>
</tr>
<tr>
<td><a href="#ConfigurationPageItem">ConfigurationPageItem</a></td>
<td>Class implementing a QTreeWidgetItem holding the configuration page data.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget">ConfigurationWidget</a></td>
<td>Class implementing a dialog for the configuration of eric.</td>
</tr>
<tr>
<td><a href="#ConfigurationWindow">ConfigurationWindow</a></td>
<td>Main window class for the standalone dialog.</td>
</tr>
</table>

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

<hr />
<hr />
<a NAME="ConfigurationDialog" ID="ConfigurationDialog"></a>
<h2>ConfigurationDialog</h2>
<p>
    Class for the dialog variant.
</p>

<h3>Signals</h3>
<dl>

<dt>mainPasswordChanged(str, str)</dt>
<dd>
emitted after the main
        password has been changed with the old and the new password
</dd>
<dt>preferencesChanged()</dt>
<dd>
emitted after settings have been changed
</dd>
</dl>
<h3>Derived from</h3>
QDialog
<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="#ConfigurationDialog.__init__">ConfigurationDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#ConfigurationDialog.__mainPasswordChanged">__mainPasswordChanged</a></td>
<td>Private slot to handle the change of the main password.</td>
</tr>
<tr>
<td><a href="#ConfigurationDialog.__preferencesChanged">__preferencesChanged</a></td>
<td>Private slot to handle a change of the preferences.</td>
</tr>
<tr>
<td><a href="#ConfigurationDialog.accept">accept</a></td>
<td>Public method to accept the dialog.</td>
</tr>
<tr>
<td><a href="#ConfigurationDialog.getConfigurationPageName">getConfigurationPageName</a></td>
<td>Public method to get the page name of the current page.</td>
</tr>
<tr>
<td><a href="#ConfigurationDialog.getExpandedEntries">getExpandedEntries</a></td>
<td>Public method to get a list of expanded entries.</td>
</tr>
<tr>
<td><a href="#ConfigurationDialog.setPreferences">setPreferences</a></td>
<td>Public method called to store the selected values into the preferences storage.</td>
</tr>
<tr>
<td><a href="#ConfigurationDialog.showConfigurationPageByName">showConfigurationPageByName</a></td>
<td>Public slot to show a named configuration page.</td>
</tr>
</table>

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


<a NAME="ConfigurationDialog.__init__" ID="ConfigurationDialog.__init__"></a>
<h4>ConfigurationDialog (Constructor)</h4>
<b>ConfigurationDialog</b>(<i>parent=None, name=None, modal=False, fromEric=True, displayMode=ConfigurationMode.DEFAULTMODE, expandedEntries=None, </i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QWidget (optional))</dt>
<dd>
reference to the parent widget (defaults to None)
</dd>
<dt><i>name</i> (str (optional))</dt>
<dd>
name of the dialog (defaults to None)
</dd>
<dt><i>modal</i> (bool (optional))</dt>
<dd>
flag indicating a modal dialog (defaults to False)
</dd>
<dt><i>fromEric</i> (bool (optional))</dt>
<dd>
flag indicating a dialog generation from within the
            eric IDE (defaults to True)
</dd>
<dt><i>displayMode</i> (ConfigurationMode (optional))</dt>
<dd>
mode of the configuration dialog (defaults to
            ConfigurationMode.DEFAULTMODE)
</dd>
<dt><i>expandedEntries</i> (list of str (optional))</dt>
<dd>
list of entries to be shown expanded (defaults to None)
</dd>
</dl>
<a NAME="ConfigurationDialog.__mainPasswordChanged" ID="ConfigurationDialog.__mainPasswordChanged"></a>
<h4>ConfigurationDialog.__mainPasswordChanged</h4>
<b>__mainPasswordChanged</b>(<i>oldPassword, newPassword</i>)
<p>
        Private slot to handle the change of the main password.
</p>

<dl>

<dt><i>oldPassword</i> (str)</dt>
<dd>
current password
</dd>
<dt><i>newPassword</i> (str)</dt>
<dd>
new password
</dd>
</dl>
<a NAME="ConfigurationDialog.__preferencesChanged" ID="ConfigurationDialog.__preferencesChanged"></a>
<h4>ConfigurationDialog.__preferencesChanged</h4>
<b>__preferencesChanged</b>(<i></i>)
<p>
        Private slot to handle a change of the preferences.
</p>

<a NAME="ConfigurationDialog.accept" ID="ConfigurationDialog.accept"></a>
<h4>ConfigurationDialog.accept</h4>
<b>accept</b>(<i></i>)
<p>
        Public method to accept the dialog.
</p>

<a NAME="ConfigurationDialog.getConfigurationPageName" ID="ConfigurationDialog.getConfigurationPageName"></a>
<h4>ConfigurationDialog.getConfigurationPageName</h4>
<b>getConfigurationPageName</b>(<i></i>)
<p>
        Public method to get the page name of the current page.
</p>

<dl>
<dt>Return:</dt>
<dd>
page name of the current page
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="ConfigurationDialog.getExpandedEntries" ID="ConfigurationDialog.getExpandedEntries"></a>
<h4>ConfigurationDialog.getExpandedEntries</h4>
<b>getExpandedEntries</b>(<i></i>)
<p>
        Public method to get a list of expanded entries.
</p>

<dl>
<dt>Return:</dt>
<dd>
list of expanded entries
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
list of str
</dd>
</dl>
<a NAME="ConfigurationDialog.setPreferences" ID="ConfigurationDialog.setPreferences"></a>
<h4>ConfigurationDialog.setPreferences</h4>
<b>setPreferences</b>(<i></i>)
<p>
        Public method called to store the selected values into the preferences
        storage.
</p>

<a NAME="ConfigurationDialog.showConfigurationPageByName" ID="ConfigurationDialog.showConfigurationPageByName"></a>
<h4>ConfigurationDialog.showConfigurationPageByName</h4>
<b>showConfigurationPageByName</b>(<i>pageName</i>)
<p>
        Public slot to show a named configuration page.
</p>

<dl>

<dt><i>pageName</i> (str)</dt>
<dd>
name of the configuration page to show
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="ConfigurationMode" ID="ConfigurationMode"></a>
<h2>ConfigurationMode</h2>
<p>
    Class defining the various modes of the configuration widget.
</p>

<h3>Derived from</h3>
enum.Enum
<h3>Class Attributes</h3>
<table>
<tr><td>DEFAULTMODE</td></tr>
<tr><td>EDITORMODE</td></tr>
<tr><td>HEXEDITORMODE</td></tr>
<tr><td>MICROPYTHONMODE</td></tr>
<tr><td>PDFVIEWERMODE</td></tr>
<tr><td>PIPMANAGERMODE</td></tr>
<tr><td>SHELLMODE</td></tr>
<tr><td>TRAYSTARTERMODE</td></tr>
<tr><td>WEBBROWSERMODE</td></tr>
</table>

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

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

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


<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="ConfigurationPageItem" ID="ConfigurationPageItem"></a>
<h2>ConfigurationPageItem</h2>
<p>
    Class implementing a QTreeWidgetItem holding the configuration page data.
</p>

<h3>Derived from</h3>
QTreeWidgetItem
<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="#ConfigurationPageItem.__init__">ConfigurationPageItem</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#ConfigurationPageItem.getPageName">getPageName</a></td>
<td>Public method to get the name of the associated configuration page.</td>
</tr>
</table>

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


<a NAME="ConfigurationPageItem.__init__" ID="ConfigurationPageItem.__init__"></a>
<h4>ConfigurationPageItem (Constructor)</h4>
<b>ConfigurationPageItem</b>(<i>parent, text, pageName, iconFile</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QTreeWidget or QTreeWidgetItem)</dt>
<dd>
parent widget of the item
</dd>
<dt><i>text</i> (str)</dt>
<dd>
text to be displayed
</dd>
<dt><i>pageName</i> (str)</dt>
<dd>
name of the configuration page
</dd>
<dt><i>iconFile</i> (str)</dt>
<dd>
file name of the icon to be shown
</dd>
</dl>
<a NAME="ConfigurationPageItem.getPageName" ID="ConfigurationPageItem.getPageName"></a>
<h4>ConfigurationPageItem.getPageName</h4>
<b>getPageName</b>(<i></i>)
<p>
        Public method to get the name of the associated configuration page.
</p>

<dl>
<dt>Return:</dt>
<dd>
name of the configuration page
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="ConfigurationWidget" ID="ConfigurationWidget"></a>
<h2>ConfigurationWidget</h2>
<p>
    Class implementing a dialog for the configuration of eric.
</p>

<h3>Signals</h3>
<dl>

<dt>accepted()</dt>
<dd>
emitted to indicate acceptance of the changes
</dd>
<dt>mainPasswordChanged(str, str)</dt>
<dd>
emitted after the main
        password has been changed with the old and the new password
</dd>
<dt>preferencesChanged()</dt>
<dd>
emitted after settings have been changed
</dd>
<dt>rejected()</dt>
<dd>
emitted to indicate rejection of the changes
</dd>
</dl>
<h3>Derived from</h3>
QWidget
<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="#ConfigurationWidget.__init__">ConfigurationWidget</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__createInterfaceLightPageWithSidebars">__createInterfaceLightPageWithSidebars</a></td>
<td>Private method to create the interface configuration page in light mode.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__importConfigurationPage">__importConfigurationPage</a></td>
<td>Private method to import a configuration page module.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__initLexers">__initLexers</a></td>
<td>Private method to initialize the dictionary of preferences lexers.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__initPage">__initPage</a></td>
<td>Private method to initialize a configuration page.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__resizeConfigStack">__resizeConfigStack</a></td>
<td>Private method to resize the stack of configuration pages.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__searchChildItems">__searchChildItems</a></td>
<td>Private method to enable child items based on a search string.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__searchTextChanged">__searchTextChanged</a></td>
<td>Private slot to handle a change of the search text.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__setupUi">__setupUi</a></td>
<td>Private method to perform the general setup of the configuration widget.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.__showConfigurationPage">__showConfigurationPage</a></td>
<td>Private slot to show a selected configuration page.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.accept">accept</a></td>
<td>Public slot to accept the buttonBox accept signal.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.calledFromEric">calledFromEric</a></td>
<td>Public method to check, if invoked from within eric.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.getConfigurationPageName">getConfigurationPageName</a></td>
<td>Public method to get the page name of the current page.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.getExpandedEntries">getExpandedEntries</a></td>
<td>Public method to get a list of expanded entries.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.getLexers">getLexers</a></td>
<td>Public method to get a reference to the lexers dictionary.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.getPage">getPage</a></td>
<td>Public method to get a reference to the named page.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.isUsingWebEngine">isUsingWebEngine</a></td>
<td>Public method to get an indication, if QtWebEngine is being used.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.on_applyButton_clicked">on_applyButton_clicked</a></td>
<td>Private slot called to apply the settings of the current page.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.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="#ConfigurationWidget.on_configList_itemCollapsed">on_configList_itemCollapsed</a></td>
<td>Private slot handling a list entry being collapsed.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.on_configList_itemExpanded">on_configList_itemExpanded</a></td>
<td>Private slot handling a list entry being expanded.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.on_resetButton_clicked">on_resetButton_clicked</a></td>
<td>Private slot called to reset the settings of the current page.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.resizeEvent">resizeEvent</a></td>
<td>Protected method to handle the resizing of the widget.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.setPreferences">setPreferences</a></td>
<td>Public method called to store the selected values into the preferences storage.</td>
</tr>
<tr>
<td><a href="#ConfigurationWidget.showConfigurationPageByName">showConfigurationPageByName</a></td>
<td>Public slot to show a named configuration page.</td>
</tr>
</table>

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


<a NAME="ConfigurationWidget.__init__" ID="ConfigurationWidget.__init__"></a>
<h4>ConfigurationWidget (Constructor)</h4>
<b>ConfigurationWidget</b>(<i>parent=None, fromEric=True, displayMode=ConfigurationMode.DEFAULTMODE, expandedEntries=None, withApply=True, </i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QWidget (optional))</dt>
<dd>
reference to the parent widget (defaults to None)
</dd>
<dt><i>fromEric</i> (bool (optional))</dt>
<dd>
flag indicating a dialog generation from within the
            eric IDE (defaults to True)
</dd>
<dt><i>displayMode</i> (ConfigurationMode (optional))</dt>
<dd>
mode of the configuration dialog (defaults to
            ConfigurationMode.DEFAULTMODE)
</dd>
<dt><i>expandedEntries</i> (list of str (optional))</dt>
<dd>
list of entries to be shown expanded (defaults to None)
</dd>
<dt><i>withApply</i> (bool (optional))</dt>
<dd>
flag indicating to show the 'Apply' button (defaults to True)
</dd>
</dl>
<a NAME="ConfigurationWidget.__createInterfaceLightPageWithSidebars" ID="ConfigurationWidget.__createInterfaceLightPageWithSidebars"></a>
<h4>ConfigurationWidget.__createInterfaceLightPageWithSidebars</h4>
<b>__createInterfaceLightPageWithSidebars</b>(<i>_configDlg</i>)
<p>
        Private method to create the interface configuration page in light mode.
</p>

<dl>

<dt><i>_configDlg</i> (ConfigurationWidget)</dt>
<dd>
reference to the configuration dialog (unused)
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the configuration page
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
InterfaceLightPage
</dd>
</dl>
<a NAME="ConfigurationWidget.__importConfigurationPage" ID="ConfigurationWidget.__importConfigurationPage"></a>
<h4>ConfigurationWidget.__importConfigurationPage</h4>
<b>__importConfigurationPage</b>(<i>name</i>)
<p>
        Private method to import a configuration page module.
</p>

<dl>

<dt><i>name</i> (str)</dt>
<dd>
name of the configuration page module
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the configuration page module
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
Module
</dd>
</dl>
<a NAME="ConfigurationWidget.__initLexers" ID="ConfigurationWidget.__initLexers"></a>
<h4>ConfigurationWidget.__initLexers</h4>
<b>__initLexers</b>(<i></i>)
<p>
        Private method to initialize the dictionary of preferences lexers.
</p>

<a NAME="ConfigurationWidget.__initPage" ID="ConfigurationWidget.__initPage"></a>
<h4>ConfigurationWidget.__initPage</h4>
<b>__initPage</b>(<i>pageData</i>)
<p>
        Private method to initialize a configuration page.
</p>

<dl>

<dt><i>pageData</i> (list)</dt>
<dd>
data structure for the page to initialize
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the initialized page
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
ConfigurationPageBase
</dd>
</dl>
<a NAME="ConfigurationWidget.__resizeConfigStack" ID="ConfigurationWidget.__resizeConfigStack"></a>
<h4>ConfigurationWidget.__resizeConfigStack</h4>
<b>__resizeConfigStack</b>(<i></i>)
<p>
        Private method to resize the stack of configuration pages.
</p>

<a NAME="ConfigurationWidget.__searchChildItems" ID="ConfigurationWidget.__searchChildItems"></a>
<h4>ConfigurationWidget.__searchChildItems</h4>
<b>__searchChildItems</b>(<i>parent, text</i>)
<p>
        Private method to enable child items based on a search string.
</p>

<dl>

<dt><i>parent</i> (QTreeWidgetItem)</dt>
<dd>
reference to the parent item
</dd>
<dt><i>text</i> (str)</dt>
<dd>
text to search for
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
flag indicating an enabled child item
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="ConfigurationWidget.__searchTextChanged" ID="ConfigurationWidget.__searchTextChanged"></a>
<h4>ConfigurationWidget.__searchTextChanged</h4>
<b>__searchTextChanged</b>(<i>text</i>)
<p>
        Private slot to handle a change of the search text.
</p>

<dl>

<dt><i>text</i> (str)</dt>
<dd>
text to search for
</dd>
</dl>
<a NAME="ConfigurationWidget.__setupUi" ID="ConfigurationWidget.__setupUi"></a>
<h4>ConfigurationWidget.__setupUi</h4>
<b>__setupUi</b>(<i>withApply=True</i>)
<p>
        Private method to perform the general setup of the configuration
        widget.
</p>

<dl>

<dt><i>withApply</i> (bool (optional))</dt>
<dd>
flag indicating to show the 'Apply' button (defaults to True)
</dd>
</dl>
<a NAME="ConfigurationWidget.__showConfigurationPage" ID="ConfigurationWidget.__showConfigurationPage"></a>
<h4>ConfigurationWidget.__showConfigurationPage</h4>
<b>__showConfigurationPage</b>(<i>itm</i>)
<p>
        Private slot to show a selected configuration page.
</p>

<dl>

<dt><i>itm</i> (QTreeWidgetItem)</dt>
<dd>
reference to the selected item
</dd>
</dl>
<a NAME="ConfigurationWidget.accept" ID="ConfigurationWidget.accept"></a>
<h4>ConfigurationWidget.accept</h4>
<b>accept</b>(<i></i>)
<p>
        Public slot to accept the buttonBox accept signal.
</p>

<a NAME="ConfigurationWidget.calledFromEric" ID="ConfigurationWidget.calledFromEric"></a>
<h4>ConfigurationWidget.calledFromEric</h4>
<b>calledFromEric</b>(<i></i>)
<p>
        Public method to check, if invoked from within eric.
</p>

<dl>
<dt>Return:</dt>
<dd>
flag indicating invocation from within eric
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="ConfigurationWidget.getConfigurationPageName" ID="ConfigurationWidget.getConfigurationPageName"></a>
<h4>ConfigurationWidget.getConfigurationPageName</h4>
<b>getConfigurationPageName</b>(<i></i>)
<p>
        Public method to get the page name of the current page.
</p>

<dl>
<dt>Return:</dt>
<dd>
page name of the current page
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="ConfigurationWidget.getExpandedEntries" ID="ConfigurationWidget.getExpandedEntries"></a>
<h4>ConfigurationWidget.getExpandedEntries</h4>
<b>getExpandedEntries</b>(<i></i>)
<p>
        Public method to get a list of expanded entries.
</p>

<dl>
<dt>Return:</dt>
<dd>
list of expanded entries
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
list of str
</dd>
</dl>
<a NAME="ConfigurationWidget.getLexers" ID="ConfigurationWidget.getLexers"></a>
<h4>ConfigurationWidget.getLexers</h4>
<b>getLexers</b>(<i></i>)
<p>
        Public method to get a reference to the lexers dictionary.
</p>

<dl>
<dt>Return:</dt>
<dd>
reference to the lexers dictionary
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
dict
</dd>
</dl>
<a NAME="ConfigurationWidget.getPage" ID="ConfigurationWidget.getPage"></a>
<h4>ConfigurationWidget.getPage</h4>
<b>getPage</b>(<i>pageName</i>)
<p>
        Public method to get a reference to the named page.
</p>

<dl>

<dt><i>pageName</i> (str)</dt>
<dd>
name of the configuration page
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the page or None, indicating page was
            not loaded yet
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
ConfigurationPageBase
</dd>
</dl>
<a NAME="ConfigurationWidget.isUsingWebEngine" ID="ConfigurationWidget.isUsingWebEngine"></a>
<h4>ConfigurationWidget.isUsingWebEngine</h4>
<b>isUsingWebEngine</b>(<i></i>)
<p>
        Public method to get an indication, if QtWebEngine is being used.
</p>

<dl>
<dt>Return:</dt>
<dd>
flag indicating the use of QtWebEngine
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="ConfigurationWidget.on_applyButton_clicked" ID="ConfigurationWidget.on_applyButton_clicked"></a>
<h4>ConfigurationWidget.on_applyButton_clicked</h4>
<b>on_applyButton_clicked</b>(<i></i>)
<p>
        Private slot called to apply the settings of the current page.
</p>

<a NAME="ConfigurationWidget.on_buttonBox_clicked" ID="ConfigurationWidget.on_buttonBox_clicked"></a>
<h4>ConfigurationWidget.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="ConfigurationWidget.on_configList_itemCollapsed" ID="ConfigurationWidget.on_configList_itemCollapsed"></a>
<h4>ConfigurationWidget.on_configList_itemCollapsed</h4>
<b>on_configList_itemCollapsed</b>(<i>item</i>)
<p>
        Private slot handling a list entry being collapsed.
</p>

<dl>

<dt><i>item</i> (QTreeWidgetItem)</dt>
<dd>
reference to the collapsed item
</dd>
</dl>
<a NAME="ConfigurationWidget.on_configList_itemExpanded" ID="ConfigurationWidget.on_configList_itemExpanded"></a>
<h4>ConfigurationWidget.on_configList_itemExpanded</h4>
<b>on_configList_itemExpanded</b>(<i>item</i>)
<p>
        Private slot handling a list entry being expanded.
</p>

<dl>

<dt><i>item</i> (QTreeWidgetItem)</dt>
<dd>
reference to the expanded item
</dd>
</dl>
<a NAME="ConfigurationWidget.on_resetButton_clicked" ID="ConfigurationWidget.on_resetButton_clicked"></a>
<h4>ConfigurationWidget.on_resetButton_clicked</h4>
<b>on_resetButton_clicked</b>(<i></i>)
<p>
        Private slot called to reset the settings of the current page.
</p>

<a NAME="ConfigurationWidget.resizeEvent" ID="ConfigurationWidget.resizeEvent"></a>
<h4>ConfigurationWidget.resizeEvent</h4>
<b>resizeEvent</b>(<i>_evt</i>)
<p>
        Protected method to handle the resizing of the widget.
</p>

<dl>

<dt><i>_evt</i> (QResizeEvent)</dt>
<dd>
reference to the event object (unused)
</dd>
</dl>
<a NAME="ConfigurationWidget.setPreferences" ID="ConfigurationWidget.setPreferences"></a>
<h4>ConfigurationWidget.setPreferences</h4>
<b>setPreferences</b>(<i></i>)
<p>
        Public method called to store the selected values into the preferences
        storage.
</p>

<a NAME="ConfigurationWidget.showConfigurationPageByName" ID="ConfigurationWidget.showConfigurationPageByName"></a>
<h4>ConfigurationWidget.showConfigurationPageByName</h4>
<b>showConfigurationPageByName</b>(<i>pageName, setCurrent=True</i>)
<p>
        Public slot to show a named configuration page.
</p>

<dl>

<dt><i>pageName</i> (str)</dt>
<dd>
name of the configuration page to show
</dd>
<dt><i>setCurrent</i> (bool)</dt>
<dd>
flag indicating to set the current item
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="ConfigurationWindow" ID="ConfigurationWindow"></a>
<h2>ConfigurationWindow</h2>
<p>
    Main window class for the standalone dialog.
</p>

<h3>Derived from</h3>
EricMainWindow
<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="#ConfigurationWindow.__init__">ConfigurationWindow</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#ConfigurationWindow.accept">accept</a></td>
<td>Public slot called by the Ok button.</td>
</tr>
<tr>
<td><a href="#ConfigurationWindow.showConfigurationPageByName">showConfigurationPageByName</a></td>
<td>Public slot to show a named configuration page.</td>
</tr>
</table>

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


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

<dl>

<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="ConfigurationWindow.accept" ID="ConfigurationWindow.accept"></a>
<h4>ConfigurationWindow.accept</h4>
<b>accept</b>(<i></i>)
<p>
        Public slot called by the Ok button.
</p>

<a NAME="ConfigurationWindow.showConfigurationPageByName" ID="ConfigurationWindow.showConfigurationPageByName"></a>
<h4>ConfigurationWindow.showConfigurationPageByName</h4>
<b>showConfigurationPageByName</b>(<i>pageName</i>)
<p>
        Public slot to show a named configuration page.
</p>

<dl>

<dt><i>pageName</i> (str)</dt>
<dd>
name of the configuration page to show
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial