From 22471b148d8877c3fd721c443792ad1e721d00f9 Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 30 Oct 2011 23:04:42 +0000 Subject: added first idea of wizard git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@591 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- wizard.h | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 wizard.h (limited to 'wizard.h') 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 + * + * 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 + */ + +#include "keygendialog.h" + +#ifndef WIZARD_H +#define WIZARD_H + +#include + +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 -- cgit v1.2.3