iVS3D v2.0.9
Loading...
Searching...
No Matches
progresswidget.h
1#ifndef PROGRESSWIDGET_H
2#define PROGRESSWIDGET_H
3
4#include <QWidget>
5#include "progressdisplay.h"
6
7namespace Ui {
9}
21class ProgressWidget : public QWidget, ProgressDisplay
22{
23 Q_OBJECT
24
25public:
31 explicit ProgressWidget(QWidget *parent = nullptr, bool showAbort = true);
33
34signals:
38 void sig_abort();
39
40public slots:
46 void slot_displayProgress(int progress, QString currentOperation);
51 void slot_displayMessage(QString message);
52
57 void slot_displayWarning(QString warning);
58
62 void slot_clearWarnings();
63
64private slots:
65 void on_pushButton_abort_clicked();
66
67private:
68 void appendLogEntry(const QString& text, bool isWarning);
69
70 Ui::ProgressWidget *ui;
71};
72
73#endif // PROGRESSWIDGET_H
The ProgressDisplay class is an interface for classes that can display progression in any form....
Definition progressdisplay.h:19
The ProgressWidget class widget inside the ProgressDialog that holds the concrete progress bar and ab...
Definition progresswidget.h:22
void slot_displayWarning(QString warning)
slot_displayWarning appends a warning in the warning area
Definition progresswidget.cpp:46
void sig_abort()
sig_abort signals user pressing abort button
void slot_displayProgress(int progress, QString currentOperation)
slot_progress updates progress bar with new given data
Definition progresswidget.cpp:25
void slot_clearWarnings()
slot_clearWarnings removes all warning entries
Definition progresswidget.cpp:51
void slot_displayMessage(QString message)
slot_displayMessage can show a message without specific format
Definition progresswidget.cpp:41