diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-30 23:04:42 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-30 23:04:42 +0000 |
commit | 22471b148d8877c3fd721c443792ad1e721d00f9 (patch) | |
tree | 62c683edf0e9f9b900d7a27bc6f66e4af3ae1596 /wizard.h | |
parent | cleaned up (diff) | |
download | gpg4usb-22471b148d8877c3fd721c443792ad1e721d00f9.tar.gz gpg4usb-22471b148d8877c3fd721c443792ad1e721d00f9.zip |
added first idea of wizard
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@591 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'wizard.h')
-rw-r--r-- | wizard.h | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/wizard.h b/wizard.h new file mode 100644 index 0000000..beccd78 --- /dev/null +++ b/wizard.h @@ -0,0 +1,88 @@ +/* + * wizard.h + * + * Copyright 2008 gpg4usb-team <[email protected]> + * + * This file is part of gpg4usb. + * + * Gpg4usb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Gpg4usb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gpg4usb. If not, see <http://www.gnu.org/licenses/> + */ + +#include "keygendialog.h" + +#ifndef WIZARD_H +#define WIZARD_H + +#include <QWizard> + +class QCheckBox; +class QLabel; +class QLineEdit; +class QRadioButton; + +class Wizard : public QWizard +{ + Q_OBJECT + +public: + Wizard(GpgME::GpgContext *ctx, QWidget *parent = 0); + +private: + GpgME::GpgContext *mCtx; +}; + +class IntroPage : public QWizardPage +{ + Q_OBJECT + +public: + IntroPage(QWidget *parent = 0); + QLabel *topLabel; + + int nextId() const; +}; + +class KeyGenPage : public QWizardPage +{ + Q_OBJECT + +public: + KeyGenPage(GpgME::GpgContext *ctx, QWidget *parent = 0); + int nextId() const; + +private slots: + void generateKeyDialog(); + void showKeyGeneratedMessage(); + +private: + QLabel *topLabel; + QPushButton *createKeyButton; + GpgME::GpgContext *mCtx; + QVBoxLayout *layout; +}; + +class ConclusionPage : public QWizardPage +{ + Q_OBJECT + +public: + ConclusionPage(QWidget *parent = 0); + int nextId() const; + +private: + QLabel *bottomLabel; + QCheckBox *showWizardCheckBox; +}; + +#endif |