2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2014-07-04 15:33:59 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac <teo@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2017 Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2014-07-04 15:33:59 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2014-07-04 15:33:59 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KEYBOARDVIEWSTEP_H
|
|
|
|
#define KEYBOARDVIEWSTEP_H
|
|
|
|
|
2020-03-26 11:08:55 +01:00
|
|
|
#include "DllMacro.h"
|
2020-03-10 02:45:40 +01:00
|
|
|
#include "utils/PluginFactory.h"
|
|
|
|
#include "viewpages/ViewStep.h"
|
2015-09-09 18:52:24 +02:00
|
|
|
|
2020-03-26 11:08:55 +01:00
|
|
|
#include <QObject>
|
2014-07-04 15:33:59 +02:00
|
|
|
|
2020-10-12 16:30:06 +02:00
|
|
|
class Config;
|
2014-07-04 15:33:59 +02:00
|
|
|
class KeyboardPage;
|
|
|
|
|
|
|
|
class PLUGINDLLEXPORT KeyboardViewStep : public Calamares::ViewStep
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit KeyboardViewStep( QObject* parent = nullptr );
|
2020-09-22 22:49:30 +02:00
|
|
|
~KeyboardViewStep() override;
|
2014-07-04 15:33:59 +02:00
|
|
|
|
|
|
|
QString prettyName() const override;
|
2014-07-08 18:25:39 +02:00
|
|
|
QString prettyStatus() const override;
|
2014-07-04 15:33:59 +02:00
|
|
|
|
|
|
|
QWidget* widget() override;
|
|
|
|
|
|
|
|
bool isNextEnabled() const override;
|
2015-01-29 20:24:09 +01:00
|
|
|
bool isBackEnabled() const override;
|
2014-07-04 15:33:59 +02:00
|
|
|
|
|
|
|
bool isAtBeginning() const override;
|
|
|
|
bool isAtEnd() const override;
|
|
|
|
|
2020-03-26 11:08:55 +01:00
|
|
|
Calamares::JobList jobs() const override;
|
2014-07-08 14:02:21 +02:00
|
|
|
|
2014-11-26 18:56:09 +01:00
|
|
|
void onActivate() override;
|
2014-07-08 18:25:39 +02:00
|
|
|
void onLeave() override;
|
|
|
|
|
2014-11-11 02:58:14 +01:00
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
2014-07-04 15:33:59 +02:00
|
|
|
private:
|
2020-10-12 16:30:06 +02:00
|
|
|
Config* m_config;
|
2014-07-04 15:33:59 +02:00
|
|
|
KeyboardPage* m_widget;
|
|
|
|
};
|
|
|
|
|
2015-09-09 18:52:24 +02:00
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( KeyboardViewStepFactory )
|
|
|
|
|
2020-03-26 11:08:55 +01:00
|
|
|
#endif // KEYBOARDVIEWSTEP_H
|