aboutsummaryrefslogtreecommitdiffstats
path: root/wizard.h
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-02-04 16:47:31 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-02-04 16:47:31 +0000
commit2d70ed139a5c5c32966070127a5e07f89136b96f (patch)
tree560bab81fe1a4a096c636cfd8b0dcebbcd854f1c /wizard.h
parentreplace show by exec for key import detail dialog (diff)
downloadgpg4usb-2d70ed139a5c5c32966070127a5e07f89136b96f.tar.gz
gpg4usb-2d70ed139a5c5c32966070127a5e07f89136b96f.zip
rearange wizard pages
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@786 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'wizard.h')
-rw-r--r--wizard.h18
1 files changed, 17 insertions, 1 deletions
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