iVS3D v2.0.0
Loading...
Searching...
No Matches
progressdialog.h
1#ifndef PROGRESSDIALOG_H
2#define PROGRESSDIALOG_H
3
4#include <QDialog>
5#include "progressdisplay.h"
6
7namespace Ui {
9}
21class ProgressDialog : public QDialog, public ProgressDisplay
22{
23 Q_OBJECT
24
25public:
31 explicit ProgressDialog(QWidget *parent = nullptr, bool showAbort = true);
33
34signals:
38 void sig_abort();
39
40public slots:
46 void slot_displayProgress(int progress, QString currentOperation) override;
47 void slot_displayMessage(QString message) override;
48
49private slots:
50 void slot_btCancel();
51
52private:
53 Ui::ProgressDialog *ui;
54};
55
56#endif // PROGRESSDIALOG_H
The ProgressDialog class is the ui dialog holding the progress bar and abort/cancel button.
Definition progressdialog.h:22
void slot_displayProgress(int progress, QString currentOperation) override
slot_progress updates progress bar with new given data
Definition progressdialog.cpp:25
void sig_abort()
sig_abort signals that user pressed the abort button
The ProgressDisplay class is an interface for classes that can display progression in any form....
Definition progressdisplay.h:19