OpenMW
|
#include <itemblock.hpp>
Public Member Functions | |
ItemBlock (QWidget *parent=0) | |
bool | updateSettings (const CSMSettings::SettingMap &settings) |
pure virtual function not implemented | |
CSMSettings::SettingList * | getSettings () |
QString | getValue () const |
int | getSettingCount () |
item blocks encapsulate only one setting | |
bool | update (const QString &value) |
update setting value and corresponding widget | |
int | build (SettingsItemDef &iDef) |
virtual construction function | |
Private Member Functions | |
void | buildItemBlock (SettingsItemDef &iDef) |
custom construction function | |
void | buildItemBlockWidgets (SettingsItemDef &iDef) |
bool | updateItem (const QString &) |
update the setting value | |
bool | updateBySignal (const QString &name, const QString &value, bool &doEmit) |
callback function triggered when update to application level is signalled | |
Private Attributes | |
CSMSettings::SettingsItem * | mSetting |
WidgetList | mWidgetList |
CSVSettings::ItemBlock::ItemBlock | ( | QWidget * | parent = 0 | ) |
int CSVSettings::ItemBlock::build | ( | SettingsItemDef & | iDef | ) |
virtual construction function
void CSVSettings::ItemBlock::buildItemBlock | ( | SettingsItemDef & | iDef | ) | [private] |
custom construction function
void CSVSettings::ItemBlock::buildItemBlockWidgets | ( | SettingsItemDef & | iDef | ) | [private] |
item blocks encapsulate only one setting
CSMSettings::SettingList * CSVSettings::ItemBlock::getSettings | ( | ) | [virtual] |
Implements CSVSettings::AbstractBlock.
QString CSVSettings::ItemBlock::getValue | ( | ) | const |
bool CSVSettings::ItemBlock::update | ( | const QString & | value | ) |
update setting value and corresponding widget
bool CSVSettings::ItemBlock::updateBySignal | ( | const QString & | name, |
const QString & | value, | ||
bool & | doEmit | ||
) | [private, virtual] |
callback function triggered when update to application level is signalled
Reimplemented from CSVSettings::AbstractBlock.
bool CSVSettings::ItemBlock::updateItem | ( | const QString & | value | ) | [private] |
update the setting value
bool CSVSettings::ItemBlock::updateSettings | ( | const CSMSettings::SettingMap & | settings | ) | [inline, virtual] |
pure virtual function not implemented
Implements CSVSettings::AbstractBlock.