2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2015-08-21 16:44:33 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac <teo@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2015-08-21 16:44:33 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2015-08-21 16:44:33 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INTERACTIVETERMINALPAGE_H
|
|
|
|
#define INTERACTIVETERMINALPAGE_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QLabel;
|
|
|
|
class QVBoxLayout;
|
|
|
|
|
|
|
|
class InteractiveTerminalPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit InteractiveTerminalPage( QWidget* parent = nullptr );
|
|
|
|
|
|
|
|
void onActivate();
|
|
|
|
|
|
|
|
void setCommand( const QString& command );
|
|
|
|
|
|
|
|
private:
|
|
|
|
QVBoxLayout* m_layout;
|
|
|
|
QWidget* m_termHostWidget;
|
|
|
|
QString m_command;
|
|
|
|
QLabel* m_headerLabel;
|
2017-11-28 12:45:56 +01:00
|
|
|
|
|
|
|
void errorKonsoleNotInstalled();
|
2015-08-21 16:44:33 +02:00
|
|
|
};
|
|
|
|
|
2020-08-22 01:19:58 +02:00
|
|
|
#endif // INTERACTIVETERMINALPAGE_H
|