From 2d70ed139a5c5c32966070127a5e07f89136b96f Mon Sep 17 00:00:00 2001 From: nils Date: Sat, 4 Feb 2012 16:47:31 +0000 Subject: rearange wizard pages git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@786 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- wizard.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'wizard.h') diff --git a/wizard.h b/wizard.h index 8f1d9e4..16bd58b 100644 --- a/wizard.h +++ b/wizard.h @@ -37,9 +37,10 @@ class QRadioButton; class Wizard : public QWizard { Q_OBJECT + Q_ENUMS(WizardPages) public: - enum { Page_Intro, Page_ImportFromGpg4usb, Page_ImportFromGnupg, Page_GenKey, + enum WizardPages { Page_Intro, Page_Choose, Page_ImportFromGpg4usb, Page_ImportFromGnupg, Page_GenKey, Page_Conclusion }; Wizard(GpgME::GpgContext *ctx, KeyMgmt *keyMgmt, QWidget *parent = 0); @@ -72,6 +73,21 @@ private slots: void langChange(QString lang); }; +class ChoosePage : public QWizardPage +{ + Q_OBJECT + +public: + ChoosePage(QWidget *parent = 0); + +private slots: + void jumpPage(const QString& page); + +private: + int nextId() const; + int nextPage; +}; + class ImportFromGpg4usbPage : public QWizardPage { Q_OBJECT -- cgit v1.2.3