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 | |
13 | class ConsoleWidgetPrivate; |
14 | class ConsoleWidget : public QTermWidget |
15 | { |
16 | Q_OBJECT |
17 | public: |
18 | static ConsoleWidget *instance(); |
19 | explicit ConsoleWidget(QWidget *parent = nullptr); |
20 | virtual ~ConsoleWidget(); |
21 | |
22 | protected: |
23 | void (QContextMenuEvent *event); |
24 | |
25 | private: |
26 | ConsoleWidgetPrivate *const d; |
27 | }; |
28 | |
29 | #endif // CONSOLEWIDGET_H |
30 | |