2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2014-07-02 17:59:24 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2014-2016 Teo Mrnjavac <teo@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2018 Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2014-07-02 17:59:24 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2014-07-02 17:59:24 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LOCALEVIEWSTEP_H
|
|
|
|
#define LOCALEVIEWSTEP_H
|
|
|
|
|
2020-07-20 12:37:27 +02:00
|
|
|
#include "Config.h"
|
|
|
|
|
|
|
|
#include "DllMacro.h"
|
2019-05-02 19:48:19 +02:00
|
|
|
#include "utils/PluginFactory.h"
|
|
|
|
#include "viewpages/ViewStep.h"
|
2015-09-09 18:52:47 +02:00
|
|
|
|
2019-09-10 11:26:47 +02:00
|
|
|
#include <memory>
|
|
|
|
|
2014-07-02 17:59:24 +02:00
|
|
|
class LocalePage;
|
|
|
|
|
|
|
|
class PLUGINDLLEXPORT LocaleViewStep : public Calamares::ViewStep
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit LocaleViewStep( QObject* parent = nullptr );
|
2020-09-22 22:49:30 +02:00
|
|
|
~LocaleViewStep() override;
|
2014-07-02 17:59:24 +02:00
|
|
|
|
|
|
|
QString prettyName() const override;
|
2014-07-08 18:25:54 +02:00
|
|
|
QString prettyStatus() const override;
|
2014-07-02 17:59:24 +02:00
|
|
|
|
|
|
|
QWidget* widget() override;
|
|
|
|
|
|
|
|
bool isNextEnabled() const override;
|
2015-01-29 20:24:09 +01:00
|
|
|
bool isBackEnabled() const override;
|
2014-07-02 17:59:24 +02:00
|
|
|
|
|
|
|
bool isAtBeginning() const override;
|
|
|
|
bool isAtEnd() const override;
|
|
|
|
|
2019-11-25 10:52:22 +01:00
|
|
|
Calamares::JobList jobs() const override;
|
2014-07-08 14:02:21 +02:00
|
|
|
|
2014-11-26 18:52:44 +01:00
|
|
|
void onActivate() override;
|
2014-07-08 18:25:54 +02:00
|
|
|
void onLeave() override;
|
|
|
|
|
2014-07-15 11:35:05 +02:00
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
2016-08-18 15:38:41 +02:00
|
|
|
private slots:
|
|
|
|
void setUpPage();
|
|
|
|
|
2014-07-02 17:59:24 +02:00
|
|
|
private:
|
2014-07-03 13:13:38 +02:00
|
|
|
QWidget* m_widget;
|
|
|
|
|
|
|
|
LocalePage* m_actualWidget;
|
2014-07-03 13:19:32 +02:00
|
|
|
bool m_nextEnabled;
|
2014-07-15 11:35:05 +02:00
|
|
|
|
2020-07-20 12:37:27 +02:00
|
|
|
std::unique_ptr< Config > m_config;
|
2014-07-02 17:59:24 +02:00
|
|
|
};
|
|
|
|
|
2015-09-09 18:52:47 +02:00
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( LocaleViewStepFactory )
|
|
|
|
|
2019-09-07 16:58:37 +02:00
|
|
|
#endif // LOCALEVIEWSTEP_H
|