aboutsummaryrefslogtreecommitdiffstats
path: root/wizard.h
diff options
context:
space:
mode:
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