|
OpenMW
|
Abstract base class for widgets which are used in user preferences dialog. More...
#include <abstractwidget.hpp>
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 |
Abstract base class for widgets which are used in user preferences dialog.
| 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.
| 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.
| QLayout * CSVSettings::AbstractWidget::getLayout | ( | ) |
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] |
Callback called by receiving slot for widget udpates.
Implemented in CSVSettings::SettingWidget< QListWidget >, CSVSettings::SettingWidget< QLineEdit >, CSVSettings::SettingWidget< QComboBox >, CSVSettings::SettingWidget< QSpinBox >, and CSVSettings::SettingWidget< T1 >.
| virtual QWidget* CSVSettings::AbstractWidget::widget | ( | ) | [pure virtual] |
reference to the derived widget instance
Implemented in CSVSettings::SettingWidget< QListWidget >, CSVSettings::SettingWidget< QLineEdit >, CSVSettings::SettingWidget< QComboBox >, CSVSettings::SettingWidget< QSpinBox >, and CSVSettings::SettingWidget< T1 >.
QLayout* CSVSettings::AbstractWidget::mLayout [private] |
1.7.6.1