1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef BINARYTOOLSDIALOG_H |
6 | #define BINARYTOOLSDIALOG_H |
7 | |
8 | #include "common/widget/outputpane.h" |
9 | |
10 | #include <QDialog> |
11 | |
12 | class BinaryToolsDialogPrivate; |
13 | class BinaryToolsDialog : public QDialog |
14 | { |
15 | Q_OBJECT |
16 | public: |
17 | explicit BinaryToolsDialog(QDialog *parent = nullptr); |
18 | ~BinaryToolsDialog(); |
19 | |
20 | signals: |
21 | void sigOutputMsg(const QString &content, OutputPane::OutputFormat format = OutputPane::OutputFormat::NormalMessage); |
22 | |
23 | public slots: |
24 | void printOutput(const QString &content, OutputPane::OutputFormat format); |
25 | void saveClicked(); |
26 | void useClicked(); |
27 | |
28 | private: |
29 | void outputMsg(const QString &content, OutputPane::OutputFormat format); |
30 | |
31 | BinaryToolsDialogPrivate *const d = nullptr; |
32 | }; |
33 | |
34 | #endif // BINARYTOOLSDIALOG_H |
35 |