LibEngsas
Public Slots | Public Member Functions | Protected Attributes | Properties | List of all members
ESettingsWidget Class Reference

The base class of the all widgets used to display settings at the ESettingsDialog. More...

#include <esettingswidget.h>

+ Inheritance diagram for ESettingsWidget:
+ Collaboration diagram for ESettingsWidget:

Public Slots

virtual bool saveSettings (QString &error)
 Called to save all presented settings.
- Public Slots inherited from EWidget
virtual EngSaS::AvailableActions enableActions ()
 Will be called by EMainWindow::setCentralWidget() to enable and disable standard actions.
virtual QString fileFilters (EngSaS::FileFilter reason)
virtual bool load (QFile *file, QString &error)
virtual bool save (QFile *file, QString &error)
virtual bool fileNew (QString &error)
virtual bool print (QString &error)
virtual bool undo (QString &error)
virtual bool redo (QString &error)
virtual bool cut (QString &error)
virtual bool copy (QString &error)
virtual bool paste (QString &error)
virtual bool reload (QString &error)
virtual void reloadSettings ()
 Used to reload settings the settings.

Public Member Functions

 ESettingsWidget (QWidget *parent=0, Qt::WindowFlags flags=0)
 ESettingsWidget (QString name, QWidget *parent=0, Qt::WindowFlags flags=0)
QString name () const
void setName (QString newName)
ESettingsModelItemtoModelItem ()
 Converts the ESettingsWidget into an ESettingsModelItem.
- Public Member Functions inherited from EWidget
 EWidget (QWidget *parent=0, Qt::WindowFlags flags=0)
virtual ~EWidget ()
void setWindowTitle (const QString &title)
void connectByPass (QObject *object)
 Connects all standard signals.

Protected Attributes

QString myName

Properties

QString name

Additional Inherited Members

- Signals inherited from EWidget
void error (const QString &message)
void warning (const QString &message)
void information (const QString &message)
void reloadEnableActions ()
 Request reloading of enabled actions in EMainWindow.
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)
 To add managed dock widgets, use addManagedDockWidget() instead.
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.
void doReloadSettings ()
 Emitted to bring the reload request back to the farest child.
- Protected Slots inherited from EWidget
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 EWidget
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.

Detailed Description

The base class of the all widgets used to display settings at the ESettingsDialog.

Constructor & Destructor Documentation

ESettingsWidget::ESettingsWidget ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)
inline
ESettingsWidget::ESettingsWidget ( QString  name,
QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

+ Here is the call graph for this function:

Member Function Documentation

QString ESettingsWidget::name ( ) const

Used to display the name of the tab

+ Here is the caller graph for this function:

bool ESettingsWidget::saveSettings ( QString &  error)
virtualslot

Called to save all presented settings.

Possible error message should be stored into error.

Returns
true on success and false if settings could not be saved.

Reimplemented in EMimeTypeSettingsWidget, and ESettingsGeneral.

+ Here is the caller graph for this function:

void ESettingsWidget::setName ( QString  newName)

+ Here is the caller graph for this function:

ESettingsModelItem * ESettingsWidget::toModelItem ( )

Converts the ESettingsWidget into an ESettingsModelItem.

The name of the ESettingsModelItem will be set to name().

Note
Do not delete the ESettingsWidget afterwards, because the ESettingsModelItem will be deleted also.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

QString ESettingsWidget::myName
protected

Property Documentation

QString ESettingsWidget::name
readwrite

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