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
14class QVBoxLayout;
15class QStackedWidget;
16class QPushButton;
17class QLineEdit;
18class QHBoxLayout;
19class QVBoxLayout;
20class FileModifyView;
21class FileSourceView;
22
23class AmendsWidget : public QSplitter
24{
25 Q_OBJECT
26public:
27 explicit AmendsWidget(QWidget* parent = nullptr);
28 virtual ~AmendsWidget();
29 QString description();
30 FileModifyView *modView();
31
32signals:
33 void commitClicked();
34 void revertAllClicked();
35
36private:
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