aboutsummaryrefslogtreecommitdiff
path: root/application/setupwizard/LanguageWizardPage.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-01-05 04:05:08 +0100
committerPetr Mrázek <peterix@gmail.com>2017-01-05 04:05:08 +0100
commite1bd1c614519974d7bfc0efc8dcbfafa9418e2fa (patch)
tree2592a85455ff45925eaa19e8023061a5089be89a /application/setupwizard/LanguageWizardPage.h
parent4c0db2b99decf407b1f5cf0afc6f29db87ac03ca (diff)
downloadPrismLauncher-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar.gz
PrismLauncher-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar.bz2
PrismLauncher-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.zip
NOISSUE feature complete setup wizard
Diffstat (limited to 'application/setupwizard/LanguageWizardPage.h')
-rw-r--r--application/setupwizard/LanguageWizardPage.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/application/setupwizard/LanguageWizardPage.h b/application/setupwizard/LanguageWizardPage.h
new file mode 100644
index 00000000..9c24b29d
--- /dev/null
+++ b/application/setupwizard/LanguageWizardPage.h
@@ -0,0 +1,33 @@
+#pragma once
+
+#include "BaseWizardPage.h"
+
+class QVBoxLayout;
+class QListView;
+
+class LanguageWizardPage : public BaseWizardPage
+{
+ Q_OBJECT;
+public:
+ explicit LanguageWizardPage(QWidget *parent = Q_NULLPTR);
+
+ virtual ~LanguageWizardPage();
+
+ bool wantsRefreshButton() override;
+
+ void refresh() override;
+
+ bool validatePage() override;
+
+ static bool isRequired();
+
+protected:
+ void retranslate() override;
+
+protected slots:
+ void languageRowChanged(const QModelIndex &current, const QModelIndex &previous);
+
+private:
+ QVBoxLayout *verticalLayout = nullptr;
+ QListView *languageView = nullptr;
+};