blob: 83c926459d5f4b6719578eeb84a3f80702e7ec57 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#pragma once
#include <QObject>
#include <QWidget>
#include <QStringList>
#include <utils/PluginFactory.h>
#include <viewpages/ViewStep.h>
#include <Job.h>
class QComboBox;
class QLabel;
class PLUGINDLLEXPORT RaveWelcomeViewStep : public Calamares::ViewStep
{
Q_OBJECT
public:
explicit RaveWelcomeViewStep(QObject* parent = nullptr);
~RaveWelcomeViewStep() override;
QString prettyName() const override;
QWidget* widget() override;
bool isNextEnabled() const override;
bool isBackEnabled() const override;
bool isAtBeginning() const override;
bool isAtEnd() const override;
Calamares::JobList jobs() const override;
void setConfigurationMap(const QVariantMap& configurationMap) override;
private slots:
void onLanguageChanged(int index);
private:
void buildWidget();
QString brandingTranslationsPrefix() const;
QWidget* m_widget = nullptr;
QLabel* m_bgLabel = nullptr;
QComboBox* m_langCombo = nullptr;
QStringList m_localeIds;
int m_currentLocaleIndex = 0;
};
CALAMARES_PLUGIN_FACTORY_DECLARATION(RaveWelcomeViewStepFactory)
|