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

Abstract base class for widgets which are used in user preferences dialog. More...

#include <abstractwidget.hpp>

List of all members.

Public Slots

void slotUpdateWidget (const QString &value)
 receives inbound updates
void slotUpdateItem (const QString &value)
 Overloads for outbound updates from derived widget signal.
void slotUpdateItem (bool value)
void slotUpdateItem (int value)
void slotUpdateItem (QListWidgetItem *current, QListWidgetItem *previous)

Signals

void signalUpdateItem (const QString &value)
 outbound update signal

Public Member Functions

 AbstractWidget (QLayout *layout=0, QWidget *parent=0)
QLayout * getLayout ()
 retrieve layout for insertion into itemblock
void build (QWidget *widget, WidgetDef &def, bool noLabel=false)
 create the derived widget instance
virtual QWidget * widget ()=0
 reference to the derived widget instance

Protected Member Functions

virtual void updateWidget (const QString &value)=0
 Callback called by receiving slot for widget udpates.
QFlags< Qt::AlignmentFlag > getAlignment (Alignment flag)
 Converts user-defined enum to Qt equivalents.

Private Member Functions

void createLayout (Orientation direction, bool isZeroMargin)
 Creates layout and assigns label and widget as appropriate.
void buildLabelAndWidget (QWidget *widget, WidgetDef &def, bool noLabel)
 Creates label and widget according to passed definition.

Private Attributes

QLayout * mLayout

Detailed Description

Abstract base class for widgets which are used in user preferences dialog.


Constructor & Destructor Documentation

CSVSettings::AbstractWidget::AbstractWidget ( QLayout *  layout = 0,
QWidget *  parent = 0 
) [inline, explicit]

Passed layout is assigned the constructed widget. if no layout is passed, one is created.


Member Function Documentation

void CSVSettings::AbstractWidget::build ( QWidget *  widget,
WidgetDef def,
bool  noLabel = false 
)

create the derived widget instance

void CSVSettings::AbstractWidget::buildLabelAndWidget ( QWidget *  widget,
WidgetDef def,
bool  noLabel 
) [private]

Creates label and widget according to passed definition.

void CSVSettings::AbstractWidget::createLayout ( Orientation  direction,
bool  isZeroMargin 
) [private]

Creates layout and assigns label and widget as appropriate.

QFlags< Qt::AlignmentFlag > CSVSettings::AbstractWidget::getAlignment ( CSVSettings::Alignment  flag) [protected]

Converts user-defined enum to Qt equivalents.

retrieve layout for insertion into itemblock

void CSVSettings::AbstractWidget::signalUpdateItem ( const QString &  value) [signal]

outbound update signal

void CSVSettings::AbstractWidget::slotUpdateItem ( const QString &  value) [slot]

Overloads for outbound updates from derived widget signal.

void CSVSettings::AbstractWidget::slotUpdateItem ( bool  value) [slot]
void CSVSettings::AbstractWidget::slotUpdateItem ( int  value) [slot]
void CSVSettings::AbstractWidget::slotUpdateItem ( QListWidgetItem *  current,
QListWidgetItem *  previous 
) [slot]
void CSVSettings::AbstractWidget::slotUpdateWidget ( const QString &  value) [slot]

receives inbound updates

virtual void CSVSettings::AbstractWidget::updateWidget ( const QString &  value) [protected, pure virtual]
virtual QWidget* CSVSettings::AbstractWidget::widget ( ) [pure virtual]

Member Data Documentation


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