10 #ifndef PROGRESS_FRAME_H
11 #define PROGRESS_FRAME_H
19 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && defined(Q_OS_WIN)
20 #include <QWinTaskbarButton>
21 #include <QWinTaskbarProgress>
25 class QDialogButtonBox;
27 class QGraphicsOpacityEffect;
28 class QPropertyAnimation;
33 QWidget *top_level_window;
44 #ifdef QWINTASKBARPROGRESS_H
45 void enableTaskbarUpdates(
bool enable =
true) { update_taskbar_ = enable; }
47 static void addToButtonBox(QDialogButtonBox *button_box, QObject *main_window);
48 void captureFileClosing();
51 struct progdlg *showProgress(
const QString &title,
bool animate,
bool terminate_is_stop,
bool *stop_flag,
int value = 0);
52 struct progdlg *showBusy(
bool animate,
bool terminate_is_stop,
bool *stop_flag);
53 void setValue(
int value);
57 void showRequested(
bool animate,
bool terminate_is_stop,
bool *stop_flag);
58 void valueChanged(
int value);
59 void maximumValueChanged(
int value);
64 void timerEvent(QTimerEvent *event);
67 Ui::ProgressFrame *ui;
69 struct progdlg progress_dialog_;
72 bool terminate_is_stop_;
75 QGraphicsOpacityEffect *effect_;
76 QPropertyAnimation *animation_;
77 #ifdef QWINTASKBARPROGRESS_H
79 QWinTaskbarProgress *taskbar_progress_;
83 void on_stopButton_clicked();
85 void show(
bool animate,
bool terminate_is_stop,
bool *stop_flag);
86 void setMaximumValue(
int value);
Definition: progress_frame.h:37
Definition: progress_frame.h:31