|
LibEngsas
|
An item in the ESettingsModel, which represents one Settingspage. More...
#include <esettingsmodelitem.h>
Inheritance diagram for ESettingsModelItem:
Collaboration diagram for ESettingsModelItem: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) |
Public Member Functions inherited from EObject | |
| 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 | |
Public Slots inherited from EObject | |
| virtual void | reloadSettings () |
| Used to reload the settings. More... | |
Signals inherited from EObject | |
| 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 Public Member Functions inherited from EObject | |
| static void | connectByPass (QObject *parent, QObject *child) |
Protected Slots inherited from EObject | |
| 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 () |
Protected Member Functions inherited from EObject | |
| 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.
Here is the call graph for this function:| ESettingsModelItem::ESettingsModelItem | ( | ESettingsWidget * | widget, |
| ESettingsModelItem * | parent = 0 |
||
| ) |
Creates a new item from widget.
Here is the call graph for this function:| ESettingsModelItem::~ESettingsModelItem | ( | ) |
| void ESettingsModelItem::addChild | ( | ESettingsModelItem * | item | ) |
Adds child item to the list of childs.
Set's also the parent of item to this.
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| int ESettingsModelItem::childRow | ( | ESettingsModelItem * | child | ) | const |
Returns the row of the item child.
Here is the call graph for this function:
Here is the caller graph for this function:| QString ESettingsModelItem::name | ( | ) | const |
Returns the name of the item.
Here is the caller graph for this function:| ESettingsModelItem * ESettingsModelItem::parent | ( | ) | const |
Returns a pointer to the parent item.
If NULL-Pointer is returned, it is the root item.
Here is the caller graph for this function:
|
inlineprivateslot |
| int ESettingsModelItem::rowCount | ( | ) | const |
Returns the number of childrens of this item.
Here is the caller graph for this function:| bool ESettingsModelItem::save | ( | QString & | error | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void ESettingsModelItem::setName | ( | QString | name | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void ESettingsModelItem::setParent | ( | ESettingsModelItem * | parent | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void ESettingsModelItem::setWidget | ( | ESettingsWidget * | widget | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| 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)
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
1.8.15