LibEngsas
esetupwizard.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 
21 #ifndef ESETUPWIZARD_H
22 #define ESETUPWIZARD_H
23 
24 #include "eglobal.h"
25 #include "edialog.h"
26 
27 namespace Ui {
28  class ESetupWizard;
29 }
30 
31 #include "esetupwizardobject.h"
32 
57 {
58  Q_OBJECT
59  public:
60  ESetupWizard (QWidget *parent = 0, Qt::WindowFlags fl = 0);
61  ~ESetupWizard();
62  bool isNeeded();
63  void reload();
67  void loadObjects(EngSaS::SetupWizardObjects objects);
73  void setLogo(QIcon logo);
79  void setApplicationName(QString name);
80 
81  public slots:
82  int exec();
83 
84  private slots:
85  void setProgress();
89  void next();
90  void back();
91  void markReload();
92 
93  private:
94  void loadObjects();
95  void addObjectsWidgets(ESetupWizardObject *object);
96  void unloadObject(ESetupWizardObject* object);
97 
98  QString firstTitle;
99  QString shortName;
100  bool needed, doReload;
108  Ui::ESetupWizard *ui;
109 };
110 
111 #endif // SETUPWIZARD_H
QString firstTitle
Definition: esetupwizard.h:98
bool needed
Definition: esetupwizard.h:100
#define E_CORE_EXPORT
Definition: eglobal.h:107
A wizard to setup all needed settings and stuff like databases.
Definition: esetupwizard.h:56
QString shortName
Definition: esetupwizard.h:99
Mostly the same as EWidget but for QDialog as base class.
Definition: edialog.h:54
Ui::ESetupWizard * ui
Definition: esetupwizard.h:108
EngSaS::SetupWizardObjects objects
Definition: esetupwizard.h:101
EngSaS::SetupWizardObjects autoAddedObjects
Definition: esetupwizard.h:107
An object to group ESetupWizardWidgets.
Definition: esetupwizardobject.h:31
QList< ESetupWizardObject * > SetupWizardObjects
A type to replace QList<ESetupWizardObject*> with a shorter name.
Definition: eglobal.h:164