LibEngsas
|
An item in the ESettingsModel, which represents one Settingspage. More...
#include <esettingsmodelitem.h>
Public Member Functions | |
ESettingsModelItem (QString name, ESettingsWidget *widget, ESettingsModelItem *parent=0) | |
Creates a new Item. More... | |
ESettingsModelItem (ESettingsWidget *widget, ESettingsModelItem *parent=0) | |
Creates a new item from widget . More... | |
~ESettingsModelItem () | |
void | setName (QString name) |
QString | name () const |
Returns the name of the item. More... | |
void | setWidget (ESettingsWidget *widget) |
ESettingsWidget * | widget () const |
Returns a pointer to the widget of this item. More... | |
void | setParent (ESettingsModelItem *parent) |
ESettingsModelItem * | parent () const |
Returns a pointer to the parent item. More... | |
void | addChild (ESettingsModelItem *item) |
Adds child item to the list of childs. More... | |
void | addChild (ESettingsWidget *widget) |
Overloaded function for addChild(ESettingsModelItem*). More... | |
ESettingsModelItem * | child (int row) const |
Returns a pointer to child at position row . More... | |
int | childRow (ESettingsModelItem *child) const |
Returns the row of the item child . More... | |
int | rowCount () const |
Returns the number of childrens of this item. More... | |
bool | save (QString &error) |
![]() | |
EObject (QObject *parent=0) | |
virtual | ~EObject () |
void | connectByPass (QObject *object) |
Private Slots | |
void | reloadSettingsRequestByPass () |
Private Attributes | |
ESettingsModelItem * | myParent |
QList< ESettingsModelItem * > | myChilds |
QString | myName |
ESettingsWidget * | myWidget |
Additional Inherited Members | |
![]() | |
virtual void | reloadSettings () |
Used to reload the settings. More... | |
![]() | |
void | error (const QString &message) |
void | warning (const QString &message) |
void | information (const QString &message) |
void | reloadEnableActions () |
Request reloading of enabled actions in EMainWindow. More... | |
void | addMenu (QMenu *newMenu, const QString &parent, QString before=QString()) |
void | addAction (QAction *newAction, const QString &parent, QString before=QString()) |
void | addToolBar (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea) |
void | addNewDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area) |
void | setCentralWidget (QWidget *centralWidget) |
void | showSettings () |
void | showHelp (const QString &page) |
void | showStatusWidget (QWidget *widget) |
void | reloadSettingsRequest () |
Indicates, that a reload of the settings is needed. More... | |
void | doReloadSettings () |
Emitted to bring the reload request back to the farest child. More... | |
![]() | |
static void | connectByPass (QObject *parent, QObject *child) |
![]() | |
virtual void | errorByPass (const QString &message) |
virtual void | warningByPass (const QString &message) |
virtual void | informationByPass (const QString &message) |
virtual void | reloadEnableActionsByPass () |
virtual void | addMenuByPass (QMenu *newMenu, const QString &parent, QString before=QString()) |
virtual void | addActionByPass (QAction *newAction, const QString &parent, QString before=QString()) |
virtual void | addToolBarByPass (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea) |
virtual void | addNewDockWidgetByPass (QDockWidget *widget, const Qt::DockWidgetArea &area) |
virtual void | setCentralWidgetByPass (QWidget *centralWidget) |
virtual void | showSettingsByPass () |
virtual void | showHelpByPass (const QString &page) |
virtual void | showStatusWidgetByPass (QWidget *widget) |
virtual void | reloadSettingsRequestByPass () |
![]() | |
void | addManagedDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area, QString actionLabel=QString(), QString actionParent=QString()) |
Adds an dock widget via addNewDockWidget() and adds widget to the list of managed dock widgets. More... | |
An item in the ESettingsModel, which represents one Settingspage.
ESettingsModelItem::ESettingsModelItem | ( | QString | name, |
ESettingsWidget * | widget, | ||
ESettingsModelItem * | parent = 0 |
||
) |
Creates a new Item.
The name of the new item is set to name
. The parent will be parent
and the related settings widget is widget
.
ESettingsModelItem::ESettingsModelItem | ( | ESettingsWidget * | widget, |
ESettingsModelItem * | parent = 0 |
||
) |
Creates a new item from widget
.
ESettingsModelItem::~ESettingsModelItem | ( | ) |
void ESettingsModelItem::addChild | ( | ESettingsModelItem * | item | ) |
Adds child item
to the list of childs.
Set's also the parent of item
to this.
void ESettingsModelItem::addChild | ( | ESettingsWidget * | widget | ) |
ESettingsModelItem * ESettingsModelItem::child | ( | int | row | ) | const |
Returns a pointer to child at position row
.
Can be NULL-Pointer, if row
is smaller than 0 or greater then rowCount().
int ESettingsModelItem::childRow | ( | ESettingsModelItem * | child | ) | const |
Returns the row of the item child
.
QString ESettingsModelItem::name | ( | ) | const |
Returns the name of the item.
ESettingsModelItem * ESettingsModelItem::parent | ( | ) | const |
Returns a pointer to the parent item.
If NULL-Pointer is returned, it is the root item.
|
inlineprivateslot |
int ESettingsModelItem::rowCount | ( | ) | const |
Returns the number of childrens of this item.
bool ESettingsModelItem::save | ( | QString & | error | ) |
void ESettingsModelItem::setName | ( | QString | name | ) |
void ESettingsModelItem::setParent | ( | ESettingsModelItem * | parent | ) |
void ESettingsModelItem::setWidget | ( | ESettingsWidget * | widget | ) |
ESettingsWidget * ESettingsModelItem::widget | ( | ) | const |
Returns a pointer to the widget of this item.
The pointer can be a NULL-Pointer, if no widget is related to this item (like Category only items)
|
private |
|
private |
|
private |
|
private |