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