LibEngsas
Public Types | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
EModuleStateDialog Class Reference

Dialog to display EModuleStateWidgets. More...

#include <emodulestatedialog.h>

+ Inheritance diagram for EModuleStateDialog:
+ Collaboration diagram for EModuleStateDialog:

Public Types

enum  ActiveButton { Load = 0x01, Unload = 0x02 }
 Enum to identify which buttons should be enabled. More...
 

Signals

void reloadPlugins ()
 
void unload (EModuleListWidgetItem *item)
 
void loadPlugin (EModuleListWidgetItem *item, bool emitSetupWizard)
 
- 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...
 

Public Member Functions

 EModuleStateDialog (QWidget *parent=0, Qt::WindowFlags flags=0)
 
EModuleStateWidgetaddModuleState (EngSaS::ModuleListWidgetItems protocol, QString title, ActiveButtons enabledButtons=ActiveButtons())
 
- 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...
 

Private Slots

void tabChanged (int index)
 
void itemClicked (EModuleListWidgetItem *item)
 
void loadButton ()
 
void unloadButton ()
 
void reloadAllButton ()
 

Private Attributes

EModuleListWidgetItemactiveItem
 
Ui::EModuleStateDialog * ui
 
QMap< int, ActiveButtons > activeButtons
 

Additional Inherited Members

- Public Slots inherited from EDialog
virtual void reloadSettings ()
 Used to reload settings the settings. 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...
 
- Protected Member Functions inherited from EDialog
QString helpPage ()
 
void closeEvent (QCloseEvent *event)
 

Detailed Description

Dialog to display EModuleStateWidgets.

Use addModuleState() to add a new EModuleStateWidget to the tab widget. You may connect to the provided signals to reload, unload and load plugins, if the user click's on the provided buttons.

Member Enumeration Documentation

◆ ActiveButton

Enum to identify which buttons should be enabled.

If no button is specified, all buttons are off. If EModuleStateDialog::Load and EModuleStateDialog::Unload is chosen, reloadAll button is also activated.

Enumerator
Load 

Load buttun is enabled

Unload 

Unload button is enabled

Constructor & Destructor Documentation

◆ EModuleStateDialog()

EModuleStateDialog::EModuleStateDialog ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)
+ Here is the call graph for this function:

Member Function Documentation

◆ addModuleState()

EModuleStateWidget * EModuleStateDialog::addModuleState ( EngSaS::ModuleListWidgetItems  protocol,
QString  title,
ActiveButtons  enabledButtons = ActiveButtons() 
)
+ Here is the call graph for this function:

◆ itemClicked

void EModuleStateDialog::itemClicked ( EModuleListWidgetItem item)
privateslot
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadButton

void EModuleStateDialog::loadButton ( )
privateslot
+ Here is the caller graph for this function:

◆ loadPlugin

void EModuleStateDialog::loadPlugin ( EModuleListWidgetItem item,
bool  emitSetupWizard 
)
signal
+ Here is the caller graph for this function:

◆ reloadAllButton

void EModuleStateDialog::reloadAllButton ( )
privateslot
+ Here is the caller graph for this function:

◆ reloadPlugins

void EModuleStateDialog::reloadPlugins ( )
signal
+ Here is the caller graph for this function:

◆ tabChanged

void EModuleStateDialog::tabChanged ( int  index)
privateslot
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unload

void EModuleStateDialog::unload ( EModuleListWidgetItem item)
signal
+ Here is the caller graph for this function:

◆ unloadButton

void EModuleStateDialog::unloadButton ( )
privateslot
+ Here is the caller graph for this function:

Member Data Documentation

◆ activeButtons

QMap<int, ActiveButtons> EModuleStateDialog::activeButtons
private

◆ activeItem

EModuleListWidgetItem* EModuleStateDialog::activeItem
private

◆ ui

Ui::EModuleStateDialog* EModuleStateDialog::ui
private

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