| 1 | #pragma once |
| 2 | |
| 3 | #include "pch.h" |
| 4 | #include "ui_progress_dialog.h" |
| 5 | |
| 6 | class ProgressDialog : public QDialog { |
| 7 | Q_OBJECT |
| 8 | |
| 9 | public: |
| 10 | ProgressDialog(const QString &title, const QString &operation, |
| 11 | const QString &message, QProcess *process, |
| 12 | QWidget *parent = nullptr, bool close = true, |
| 13 | bool trim = false); |
| 14 | ~ProgressDialog(); |
| 15 | |
| 16 | void expand(); |
| 17 | void allowToClose(); |
| 18 | |
| 19 | signals: |
| 20 | void outputAvailable(const QString &output) const; |
| 21 | |
| 22 | private: |
| 23 | Ui::ProgressDialog ui; |
| 24 | }; |