LibEngsas
|
A wizard to setup all needed settings and stuff like databases. More...
#include <esetupwizard.h>
Public Slots | |
int | exec () |
![]() | |
virtual void | reloadSettings () |
Used to reload settings the settings. |
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. | |
void | setLogo (QIcon logo) |
Sets the logo of the application. | |
void | setApplicationName (QString name) |
Sets the application name into name . | |
![]() | |
EDialog (QString objName, QWidget *parent=0, Qt::WindowFlags flags=0) | |
Creates a EDialog instance with objectName() set to objName . | |
EDialog (QWidget *parent=0, Qt::WindowFlags flags=0) | |
virtual | ~EDialog () |
void | setWindowTitle (const QString &title) |
Sets the window title and prepends the QApplication::applicationName(). | |
void | setObjectName (const QString &name) |
Set's the objectname and calls loadGeometry() afterwards. | |
void | loadGeometry () |
Can be called to restore geometry of this object. | |
void | connectByPass (QObject *object) |
Connects all standard signals. |
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 | |
![]() | |
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) |
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. | |
![]() | |
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. | |
![]() | |
QString | helpPage () |
void | closeEvent (QCloseEvent *event) |
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:
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.
ESetupWizard::ESetupWizard | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | fl = 0 |
||
) |
ESetupWizard::~ESetupWizard | ( | ) |
|
private |
|
privateslot |
|
slot |
bool ESetupWizard::isNeeded | ( | ) |
void ESetupWizard::loadObjects | ( | EngSaS::SetupWizardObjects | objects | ) |
Function to setup all needed ESetupWizardObjects.
|
private |
|
privateslot |
|
privateslot |
void ESetupWizard::reload | ( | ) |
void ESetupWizard::setApplicationName | ( | QString | name | ) |
Sets the application name into name
.
If not set, QApplication::name() is used.
void ESetupWizard::setLogo | ( | QIcon | logo | ) |
Sets the logo of the application.
If not set, QApplication::windowIcon() is used.
|
privateslot |
|
private |
|
private |
A list of objects, which are automatically added. (E.g.: ESetupWizardDB). But they must be unloaded at the destructor.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |