MultiMC5/application/setupwizard/LanguageWizardPage.h

34 lines
649 B
C
Raw Normal View History

2017-01-05 03:05:08 +00:00
#pragma once
#include "BaseWizardPage.h"
class QVBoxLayout;
class QTreeView;
class QLabel;
2017-01-05 03:05:08 +00:00
class LanguageWizardPage : public BaseWizardPage
{
2018-07-15 12:51:05 +00:00
Q_OBJECT
2017-01-05 03:05:08 +00:00
public:
2018-07-15 12:51:05 +00:00
explicit LanguageWizardPage(QWidget *parent = Q_NULLPTR);
2017-01-05 03:05:08 +00:00
2018-07-15 12:51:05 +00:00
virtual ~LanguageWizardPage();
2017-01-05 03:05:08 +00:00
2018-07-15 12:51:05 +00:00
bool wantsRefreshButton() override;
2017-01-05 03:05:08 +00:00
2018-07-15 12:51:05 +00:00
void refresh() override;
2017-01-05 03:05:08 +00:00
2018-07-15 12:51:05 +00:00
bool validatePage() override;
2017-01-05 03:05:08 +00:00
protected:
2018-07-15 12:51:05 +00:00
void retranslate() override;
2017-01-05 03:05:08 +00:00
protected slots:
2018-07-15 12:51:05 +00:00
void languageRowChanged(const QModelIndex &current, const QModelIndex &previous);
2017-01-05 03:05:08 +00:00
private:
2018-07-15 12:51:05 +00:00
QVBoxLayout *verticalLayout = nullptr;
QTreeView *languageView = nullptr;
QLabel *helpUsLabel = nullptr;
2017-01-05 03:05:08 +00:00
};