summaryrefslogtreecommitdiffstats
path: root/application/setupwizard/LanguageWizardPage.h
blob: bfc02c95212d15fc266c213c262163e4d6dc0fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once

#include "BaseWizardPage.h"

class QVBoxLayout;
class QTreeView;
class QLabel;

class LanguageWizardPage : public BaseWizardPage
{
    Q_OBJECT
public:
    explicit LanguageWizardPage(QWidget *parent = Q_NULLPTR);

    virtual ~LanguageWizardPage();

    bool wantsRefreshButton() override;

    void refresh() override;

    bool validatePage() override;

protected:
    void retranslate() override;

protected slots:
    void languageRowChanged(const QModelIndex &current, const QModelIndex &previous);

private:
    QVBoxLayout *verticalLayout = nullptr;
    QTreeView *languageView = nullptr;
    QLabel *helpUsLabel = nullptr;
};