summaryrefslogtreecommitdiff
path: root/raveos-calamares-module/welcome/RaveWelcomeViewStep.h
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-06-02 22:31:18 +0200
committerNippy <nippy@rp1.hu>2026-06-02 22:31:18 +0200
commitc1bf06c5729e88dc29c28b223ec89c6704143cd6 (patch)
tree9961e4cf3c943f6bba8aeb36d7a1742b888603e7 /raveos-calamares-module/welcome/RaveWelcomeViewStep.h
parentf8308bd4153927e7182d42f59b453fa26edb3d37 (diff)
downloadRaveOS-PKGBUILD-c1bf06c5729e88dc29c28b223ec89c6704143cd6.tar.gz
RaveOS-PKGBUILD-c1bf06c5729e88dc29c28b223ec89c6704143cd6.zip
calamares update
Diffstat (limited to 'raveos-calamares-module/welcome/RaveWelcomeViewStep.h')
-rw-r--r--raveos-calamares-module/welcome/RaveWelcomeViewStep.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/raveos-calamares-module/welcome/RaveWelcomeViewStep.h b/raveos-calamares-module/welcome/RaveWelcomeViewStep.h
new file mode 100644
index 0000000..83c9264
--- /dev/null
+++ b/raveos-calamares-module/welcome/RaveWelcomeViewStep.h
@@ -0,0 +1,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)