OpenMW
|
Abstract base class for all blocks. More...
#include <abstractblock.hpp>
Public Slots | |
void | slotSetEnabled (bool value) |
void | slotUpdateSetting (const QString &settingName, const QString &settingValue) |
receives updates to applicaion-level settings in the Editor | |
Signals | |
void | signalUpdateSetting (const QString &propertyName, const QString &propertyValue) |
signal to UserSettings instance | |
void | signalUpdateWidget (const QString &value) |
signal to widget for updating widget value | |
void | signalUpdateProxySetting (const QString &propertyName, const QString &propertyValue) |
Public Member Functions | |
AbstractBlock (QWidget *parent=0) | |
AbstractBlock (bool isVisible, QWidget *parent=0) | |
QGroupBox * | getGroupBox () |
void | setVisible (bool isVisible) |
bool | isVisible () const |
virtual CSMSettings::SettingList * | getSettings ()=0 |
virtual bool | updateSettings (const CSMSettings::SettingMap &settings)=0 |
update settings found in the passed map and are encapsulated by the block | |
virtual bool | updateBySignal (const QString &name, const QString &value, bool &doEmit) |
Protected Types | |
typedef QMap< QString, CSMSettings::SettingsItem * > | SettingsItemMap |
Protected Member Functions | |
QLayout * | createLayout (Orientation direction, bool isZeroMargin, QWidget *parent=0) |
Creates the layout for the block's QGroupBox. | |
AbstractWidget * | buildWidget (const QString &widgetName, WidgetDef &wDef, QLayout *layout=0, bool isConnected=true) const |
Creates widgets that exist as direct children of the block. | |
QWidget * | getParent () const |
Protected Attributes | |
GroupBox * | mBox |
QWidget * | mWidgetParent |
Private Slots | |
void | slotUpdate (const QString &value) |
receives updates to a setting in the block pushed from the application level |
Abstract base class for all blocks.
typedef QMap<QString, CSMSettings::SettingsItem*> CSVSettings::AbstractBlock::SettingsItemMap [protected] |
CSVSettings::AbstractBlock::AbstractBlock | ( | QWidget * | parent = 0 | ) | [explicit] |
CSVSettings::AbstractBlock::AbstractBlock | ( | bool | isVisible, |
QWidget * | parent = 0 |
||
) | [explicit] |
CSVSettings::AbstractWidget * CSVSettings::AbstractBlock::buildWidget | ( | const QString & | widgetName, |
WidgetDef & | wDef, | ||
QLayout * | layout = 0 , |
||
bool | isConnected = true |
||
) | const [protected] |
Creates widgets that exist as direct children of the block.
QLayout * CSVSettings::AbstractBlock::createLayout | ( | Orientation | direction, |
bool | isZeroMargin, | ||
QWidget * | parent = 0 |
||
) | [protected] |
Creates the layout for the block's QGroupBox.
QGroupBox * CSVSettings::AbstractBlock::getGroupBox | ( | ) |
QWidget * CSVSettings::AbstractBlock::getParent | ( | ) | const [protected] |
virtual CSMSettings::SettingList* CSVSettings::AbstractBlock::getSettings | ( | ) | [pure virtual] |
Implemented in CSVSettings::CustomBlock, CSVSettings::GroupBlock, CSVSettings::ProxyBlock, and CSVSettings::ItemBlock.
bool CSVSettings::AbstractBlock::isVisible | ( | ) | const |
void CSVSettings::AbstractBlock::setVisible | ( | bool | isVisible | ) |
void CSVSettings::AbstractBlock::signalUpdateProxySetting | ( | const QString & | propertyName, |
const QString & | propertyValue | ||
) | [signal] |
ProxyBlock use only. Name and value correspond to settings for which the block is a proxy.
void CSVSettings::AbstractBlock::signalUpdateSetting | ( | const QString & | propertyName, |
const QString & | propertyValue | ||
) | [signal] |
signal to UserSettings instance
void CSVSettings::AbstractBlock::signalUpdateWidget | ( | const QString & | value | ) | [signal] |
signal to widget for updating widget value
void CSVSettings::AbstractBlock::slotSetEnabled | ( | bool | value | ) | [slot] |
enables / disables block-level widgets based on signals from other widgets used in ToggleBlock
void CSVSettings::AbstractBlock::slotUpdate | ( | const QString & | value | ) | [private, slot] |
receives updates to a setting in the block pushed from the application level
void CSVSettings::AbstractBlock::slotUpdateSetting | ( | const QString & | settingName, |
const QString & | settingValue | ||
) | [slot] |
receives updates to applicaion-level settings in the Editor
virtual bool CSVSettings::AbstractBlock::updateBySignal | ( | const QString & | name, |
const QString & | value, | ||
bool & | doEmit | ||
) | [inline, virtual] |
update callback function called from update slot used for updating application-level settings in the editor
Reimplemented in CSVSettings::ItemBlock, and CSVSettings::ProxyBlock.
virtual bool CSVSettings::AbstractBlock::updateSettings | ( | const CSMSettings::SettingMap & | settings | ) | [pure virtual] |
update settings found in the passed map and are encapsulated by the block
Implemented in CSVSettings::ProxyBlock, CSVSettings::CustomBlock, CSVSettings::GroupBlock, and CSVSettings::ItemBlock.
GroupBox* CSVSettings::AbstractBlock::mBox [protected] |
QWidget* CSVSettings::AbstractBlock::mWidgetParent [protected] |