-
Notifications
You must be signed in to change notification settings - Fork 0
/
progdilg.h
46 lines (35 loc) · 818 Bytes
/
progdilg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef PROGDILG_H
#define PROGDILG_H
#include <QDialog>
#include <QProgressDialog>
namespace Ui {
class progdilg;
}
class progdilg : public QDialog
{
Q_OBJECT
public:
explicit progdilg(QWidget *parent = nullptr);
~progdilg();
void addText(QString text);
bool wasPaused() const;
bool wasCanceled() const;
int showtime = 5;
bool shownonce;
int maxValue = 100;
public Q_SLOTS:
void setRange(int minimum, int maximum);
void setValue(int progress);
protected Q_SLOTS:
void forceShow();
private slots:
void on_btn_cancel_clicked();
void on_btn_pause_clicked();
void on_prgbar_glo_valueChanged(int value);
private:
Ui::progdilg *ui;
QTimer *forceTimer;
bool wasCanceled_flag = false;
bool wasPaused_flag = false;
};
#endif // PROGDILG_H