OpenMW
Public Slots | Signals | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Slots
CSVSettings::AbstractBlock Class Reference

Abstract base class for all blocks. More...

#include <abstractblock.hpp>

List of all members.

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::SettingListgetSettings ()=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.
AbstractWidgetbuildWidget (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

GroupBoxmBox
QWidget * mWidgetParent

Private Slots

void slotUpdate (const QString &value)
 receives updates to a setting in the block pushed from the application level

Detailed Description

Abstract base class for all blocks.


Member Typedef Documentation


Constructor & Destructor Documentation

CSVSettings::AbstractBlock::AbstractBlock ( QWidget *  parent = 0) [explicit]
CSVSettings::AbstractBlock::AbstractBlock ( bool  isVisible,
QWidget *  parent = 0 
) [explicit]

Member Function Documentation

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.

QWidget * CSVSettings::AbstractBlock::getParent ( ) const [protected]
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.


Member Data Documentation


The documentation for this class was generated from the following files: