1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef AMENDSWIDGET_H |
6 | #define AMENDSWIDGET_H |
7 | |
8 | #include "common/common.h" |
9 | |
10 | #include <QSplitter> |
11 | #include <QLineEdit> |
12 | #include <QTextEdit> |
13 | |
14 | class QVBoxLayout; |
15 | class QStackedWidget; |
16 | class QPushButton; |
17 | class QLineEdit; |
18 | class QHBoxLayout; |
19 | class QVBoxLayout; |
20 | class FileModifyView; |
21 | class FileSourceView; |
22 | |
23 | class AmendsWidget : public QSplitter |
24 | { |
25 | Q_OBJECT |
26 | public: |
27 | explicit AmendsWidget(QWidget* parent = nullptr); |
28 | virtual ~AmendsWidget(); |
29 | QString description(); |
30 | FileModifyView *modView(); |
31 | |
32 | signals: |
33 | void commitClicked(); |
34 | void revertAllClicked(); |
35 | |
36 | private: |
37 | FileModifyView *modifyView{nullptr}; |
38 | QHBoxLayout *hLayPbt{nullptr}; |
39 | QPushButton *pbtCommit{nullptr}; |
40 | QPushButton *pbtRevertAll{nullptr}; |
41 | QTextEdit *descEdit{nullptr}; |
42 | QFrame *pbtWidget{nullptr}; |
43 | }; |
44 | |
45 | #endif // AMENDSWIDGET_H |
46 |