eric4.Preferences.ConfigurationDialog

Module implementing a dialog for the configuration of eric4.

Classes

ConfigurationDialog Class implementing a dialog for the configuration of eric4.
ConfigurationPageItem Class implementing a QTreeWidgetItem holding the configuration page data.

Functions

None


ConfigurationDialog

Class implementing a dialog for the configuration of eric4.

Derived from

QDialog, Ui_ConfigurationDialog

Methods

ConfigurationDialog Constructor
__importConfigurationPage Private method to import a configuration page module.
__initLexers Private method to initialize the dictionary of preferences lexers.
__initPage Private method to initialize a configuration page.
__showConfigurationPage Private slot to show a selected configuration page.
accept Protected slot called by the Ok button.
calledFromEric Public method to check, if invoked from within eric.
getLexers Public method to get a reference to the lexers dictionary.
getPage Public method to get a reference to the named page.
on_applyButton_clicked Private slot called to apply the settings of the current page.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
on_resetButton_clicked Private slot called to reset the settings of the current page.
setPreferences Public method called to store the selected values into the preferences storage.
showConfigurationPageByName Public slot to show a named configuration page.

ConfigurationDialog (Constructor)

ConfigurationDialog(parent = None, name = None, modal = False, fromEric = True)

Constructor

parent
The parent widget of this dialog. (QWidget)
name
The name of this dialog. (QString)
modal
Flag indicating a modal dialog. (boolean)
fromEric
flag indicating a dialog generation from within the eric4 ide (boolean)

ConfigurationDialog.__importConfigurationPage

__importConfigurationPage(name)

Private method to import a configuration page module.

name
name of the configuration page module (string)
Returns:
reference to the configuration page module

ConfigurationDialog.__initLexers

__initLexers()

Private method to initialize the dictionary of preferences lexers.

ConfigurationDialog.__initPage

__initPage(pageData)

Private method to initialize a configuration page.

pageData
data structure for the page to initialize
Returns:
reference to the initialized page

ConfigurationDialog.__showConfigurationPage

__showConfigurationPage(itm, column)

Private slot to show a selected configuration page.

itm
reference to the selected item (QTreeWidgetItem)
column
column that was selected (integer) (ignored)

ConfigurationDialog.accept

accept()

Protected slot called by the Ok button.

ConfigurationDialog.calledFromEric

calledFromEric()

Public method to check, if invoked from within eric.

Returns:
flag indicating invocation from within eric (boolean)

ConfigurationDialog.getLexers

getLexers()

Public method to get a reference to the lexers dictionary.

Returns:
reference to the lexers dictionary

ConfigurationDialog.getPage

getPage(pageName)

Public method to get a reference to the named page.

pageName
name of the configuration page (string)
Returns:
reference to the page or None, indicating page was not loaded yet

ConfigurationDialog.on_applyButton_clicked

on_applyButton_clicked()

Private slot called to apply the settings of the current page.

ConfigurationDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button
button that was clicked (QAbstractButton)

ConfigurationDialog.on_resetButton_clicked

on_resetButton_clicked()

Private slot called to reset the settings of the current page.

ConfigurationDialog.setPreferences

setPreferences()

Public method called to store the selected values into the preferences storage.

ConfigurationDialog.showConfigurationPageByName

showConfigurationPageByName(pageName)

Public slot to show a named configuration page.

pageName
name of the configuration page to show (string or QString)

Up


ConfigurationPageItem

Class implementing a QTreeWidgetItem holding the configuration page data.

Derived from

QTreeWidgetItem

Methods

ConfigurationPageItem Constructor
getPageName Public method to get the name of the associated configuration page.

ConfigurationPageItem (Constructor)

ConfigurationPageItem(parent, text, pageName, iconFile)

Constructor

parent
parent widget of the item (QTreeWidget or QTreeWidgetItem)
text
text to be displayed (string or QString)
pageName
name of the configuration page (string or QString)
iconFile
file name of the icon to be shown (string)

ConfigurationPageItem.getPageName

getPageName()

Public method to get the name of the associated configuration page.

Returns:
name of the configuration page (string)

Up