LibEngsas
Public Slots | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
ESettingsDialog Class Reference

Used by EMainWindow::editSettings(ESettingsModel*) to display the settings. More...

#include <esettingsdialog.h>

+ Inheritance diagram for ESettingsDialog:
+ Collaboration diagram for ESettingsDialog:

Public Slots

int exec ()
 
- Public Slots inherited from EDialog
virtual void reloadSettings ()
 Used to reload settings the settings. More...
 

Public Member Functions

 ESettingsDialog (ESettingsModel *model, QWidget *parent=0, Qt::WindowFlags fl=0)
 
 ~ESettingsDialog ()
 
- Public Member Functions inherited from EDialog
 EDialog (QString objName, QWidget *parent=0, Qt::WindowFlags flags=0)
 Creates a EDialog instance with objectName() set to objName. More...
 
 EDialog (QWidget *parent=0, Qt::WindowFlags flags=0)
 
virtual ~EDialog ()
 
void setWindowTitle (const QString &title)
 Sets the window title and prepends the QApplication::applicationName(). More...
 
void setObjectName (const QString &name)
 Set's the objectname and calls loadGeometry() afterwards. More...
 
void loadGeometry ()
 Can be called to restore geometry of this object. More...
 
void connectByPass (QObject *object)
 Connects all standard signals. More...
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 
- Protected Member Functions inherited from EDialog
QString helpPage ()
 
void closeEvent (QCloseEvent *event)
 

Private Slots

void itemSelected (QModelIndex index)
 
bool saveSettings ()
 
void saveQuit ()
 
void cancel ()
 
void setError (QString msg)
 

Private Attributes

ESettingsModelmodel
 
QTreeView * view
 
QStackedWidget * stack
 
QLabel * errorLabel
 
Ui::ESettingsDialog * m_ui
 

Additional Inherited Members

- Signals inherited from EDialog
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...
 
- Protected Slots inherited from EDialog
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 setHelp (QString page, EPushButton *helpButton=0)
 Call this function to setup helpButton as a help button. More...
 

Detailed Description

Used by EMainWindow::editSettings(ESettingsModel*) to display the settings.

Deletes the given ESettingsModel on close. If the model contains only one item, the QTreeView is not shown.

Todo:
Improve default geometry.

Constructor & Destructor Documentation

ESettingsDialog::ESettingsDialog ( ESettingsModel model,
QWidget *  parent = 0,
Qt::WindowFlags  fl = 0 
)

+ Here is the call graph for this function:

ESettingsDialog::~ESettingsDialog ( )

+ Here is the call graph for this function:

Member Function Documentation

void ESettingsDialog::cancel ( )
privateslot

+ Here is the caller graph for this function:

void ESettingsDialog::closeEvent ( QCloseEvent *  event)
protected

+ Here is the call graph for this function:

int ESettingsDialog::exec ( )
slot

+ Here is the caller graph for this function:

void ESettingsDialog::itemSelected ( QModelIndex  index)
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESettingsDialog::saveQuit ( )
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ESettingsDialog::saveSettings ( )
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESettingsDialog::setError ( QString  msg)
privateslot

+ Here is the caller graph for this function:

Member Data Documentation

QLabel* ESettingsDialog::errorLabel
private
Ui::ESettingsDialog* ESettingsDialog::m_ui
private
ESettingsModel* ESettingsDialog::model
private
QStackedWidget* ESettingsDialog::stack
private
QTreeView* ESettingsDialog::view
private

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