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

A wizard to setup all needed settings and stuff like databases. More...

#include <esetupwizard.h>

+ Inheritance diagram for ESetupWizard:
+ Collaboration diagram for ESetupWizard:

Public Slots

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

Public Member Functions

 ESetupWizard (QWidget *parent=0, Qt::WindowFlags fl=0)
 
 ~ESetupWizard ()
 
bool isNeeded ()
 
void reload ()
 
void loadObjects (EngSaS::SetupWizardObjects objects)
 Function to setup all needed ESetupWizardObjects. More...
 
void setLogo (QIcon logo)
 Sets the logo of the application. More...
 
void setApplicationName (QString name)
 Sets the application name into name. More...
 
- 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 setProgress ()
 
void next ()
 
void back ()
 
void markReload ()
 

Private Member Functions

void loadObjects ()
 
void addObjectsWidgets (ESetupWizardObject *object)
 
void unloadObject (ESetupWizardObject *object)
 

Private Attributes

QString firstTitle
 
QString shortName
 
bool needed
 
bool doReload
 
EngSaS::SetupWizardObjects objects
 
EngSaS::SetupWizardObjects autoAddedObjects
 
Ui::ESetupWizard * 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...
 
- Protected Member Functions inherited from EDialog
QString helpPage ()
 
void closeEvent (QCloseEvent *event)
 

Detailed Description

A wizard to setup all needed settings and stuff like databases.

Please be aware, that you do not need to add an ESetupWizardDBDump object, because this wizard adds one automatically before the first ESetupWizardDB object.

Use this sequence to start the wizard:

ESetupWizardObjects objects;
// append your ESetupWizardObjects to the list
...
// setup and show the wizard if needed
ESetupWizard wizard;
connectByPass(&wizard);
wizard.loadObjects(objects);
if(wizard.isNeeded())
wizard.exec();
Todo:

Reload is not working like it does in meganizer, because we can not recreate the ESetupWizardObjects.

Catch all errors, warnings and information and create an setup report, which can be exported by the user.

Constructor & Destructor Documentation

ESetupWizard::ESetupWizard ( QWidget *  parent = 0,
Qt::WindowFlags  fl = 0 
)

+ Here is the call graph for this function:

ESetupWizard::~ESetupWizard ( )

+ Here is the call graph for this function:

Member Function Documentation

void ESetupWizard::addObjectsWidgets ( ESetupWizardObject object)
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESetupWizard::back ( )
privateslot

+ Here is the caller graph for this function:

int ESetupWizard::exec ( )
slot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ESetupWizard::isNeeded ( )

+ Here is the caller graph for this function:

void ESetupWizard::loadObjects ( EngSaS::SetupWizardObjects  objects)

Function to setup all needed ESetupWizardObjects.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESetupWizard::loadObjects ( )
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESetupWizard::markReload ( )
privateslot

+ Here is the caller graph for this function:

void ESetupWizard::next ( )
privateslot
Todo:
handling of reloads and related with it the error handling of finish()

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESetupWizard::reload ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESetupWizard::setApplicationName ( QString  name)

Sets the application name into name.

If not set, QApplication::name() is used.

+ Here is the caller graph for this function:

void ESetupWizard::setLogo ( QIcon  logo)

Sets the logo of the application.

If not set, QApplication::windowIcon() is used.

+ Here is the caller graph for this function:

void ESetupWizard::setProgress ( )
privateslot

+ Here is the caller graph for this function:

void ESetupWizard::unloadObject ( ESetupWizardObject object)
private

+ Here is the caller graph for this function:

Member Data Documentation

EngSaS::SetupWizardObjects ESetupWizard::autoAddedObjects
private

A list of objects, which are automatically added. (E.g.: ESetupWizardDB). But they must be unloaded at the destructor.

bool ESetupWizard::doReload
private
QString ESetupWizard::firstTitle
private
bool ESetupWizard::needed
private
EngSaS::SetupWizardObjects ESetupWizard::objects
private
QString ESetupWizard::shortName
private
Ui::ESetupWizard* ESetupWizard::ui
private

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