2022-05-14 14:42:10 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWizard>
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QCheckBox;
|
|
|
|
class QLabel;
|
|
|
|
class QLineEdit;
|
|
|
|
class QRadioButton;
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
class CSetupWizard : public QWizard
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-06-06 18:46:03 +01:00
|
|
|
enum { Page_Intro, Page_Certificate, Page_UI, Page_Shell, Page_WFP, Page_Finish };
|
2022-05-14 14:42:10 +01:00
|
|
|
|
|
|
|
CSetupWizard(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
static bool ShowWizard();
|
|
|
|
|
2022-08-05 17:23:19 +01:00
|
|
|
static void ShellUninstall();
|
|
|
|
|
2022-05-14 14:42:10 +01:00
|
|
|
private slots:
|
|
|
|
void showHelp();
|
|
|
|
};
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CIntroPage
|
|
|
|
//
|
|
|
|
|
|
|
|
class CIntroPage : public QWizardPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CIntroPage(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
int nextId() const override;
|
|
|
|
bool isComplete() const override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel* m_pLabel;
|
2022-06-06 18:46:03 +01:00
|
|
|
QRadioButton *m_pPersonal;
|
|
|
|
QRadioButton *m_pBusiness;
|
2022-05-14 14:42:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CCertificatePage
|
|
|
|
//
|
|
|
|
|
|
|
|
class CCertificatePage : public QWizardPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CCertificatePage(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
void initializePage() override;
|
|
|
|
int nextId() const override;
|
|
|
|
bool isComplete() const override;
|
|
|
|
bool validatePage() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel* m_pTopLabel;
|
|
|
|
QPlainTextEdit* m_pCertificate;
|
|
|
|
QCheckBox* m_pEvaluate;
|
|
|
|
};
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
2022-06-06 18:46:03 +01:00
|
|
|
// CUIPage
|
|
|
|
//
|
|
|
|
|
|
|
|
class CUIPage : public QWizardPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CUIPage(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
void initializePage() override;
|
|
|
|
int nextId() const override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void UpdatePreview();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QRadioButton *m_pSimple;
|
|
|
|
QRadioButton *m_pAdvanced;
|
2022-07-09 10:46:07 +01:00
|
|
|
QRadioButton *m_pClassic;
|
2022-06-06 18:46:03 +01:00
|
|
|
QLabel* m_pPreview;
|
|
|
|
QRadioButton* m_pBrightMode;
|
|
|
|
QRadioButton* m_pDarkMode;
|
|
|
|
};
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
2022-05-14 14:42:10 +01:00
|
|
|
// CShellPage
|
|
|
|
//
|
|
|
|
|
|
|
|
class CShellPage : public QWizardPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CShellPage(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
int nextId() const override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QCheckBox *m_pAutoStart;
|
|
|
|
QCheckBox *m_pContecxtMenu;
|
|
|
|
QCheckBox *m_pBrowserIcon;
|
|
|
|
};
|
|
|
|
|
2022-06-05 10:01:10 +01:00
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CWFPPage
|
|
|
|
//
|
|
|
|
|
|
|
|
class CWFPPage : public QWizardPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CWFPPage(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
int nextId() const override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QCheckBox *m_pUseWFP;
|
|
|
|
};
|
|
|
|
|
2022-05-14 14:42:10 +01:00
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CFinishPage
|
|
|
|
//
|
|
|
|
|
|
|
|
class CFinishPage : public QWizardPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CFinishPage(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
void initializePage() override;
|
|
|
|
int nextId() const override;
|
|
|
|
//void setVisible(bool visible) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel *m_pLabel;
|
|
|
|
QCheckBox *m_pUpdate;
|
|
|
|
};
|
|
|
|
|