1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef CONSOLEWIDGET_H
6#define CONSOLEWIDGET_H
7
8#include "qtermwidget.h" // 3drparty
9#include "ColorScheme.h"
10
11#include <QDir>
12
13class ConsoleWidgetPrivate;
14class ConsoleWidget : public QTermWidget
15{
16 Q_OBJECT
17public:
18 static ConsoleWidget *instance();
19 explicit ConsoleWidget(QWidget *parent = nullptr);
20 virtual ~ConsoleWidget();
21
22protected:
23 void contextMenuEvent(QContextMenuEvent *event);
24
25private:
26 ConsoleWidgetPrivate *const d;
27};
28
29#endif // CONSOLEWIDGET_H
30