10 #ifndef PROGRESS_FRAME_H
11 #define PROGRESS_FRAME_H
21 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && defined(Q_OS_WIN)
22 #include <QWinTaskbarButton>
23 #include <QWinTaskbarProgress>
27 class QDialogButtonBox;
29 class QGraphicsOpacityEffect;
30 class QPropertyAnimation;
35 QWidget *top_level_window;
46 #ifdef QWINTASKBARPROGRESS_H
47 void enableTaskbarUpdates(
bool enable =
true) { update_taskbar_ = enable; }
49 static void addToButtonBox(QDialogButtonBox *button_box, QObject *main_window);
50 void captureFileClosing();
53 struct progdlg *showProgress(
const QString &title,
bool animate,
bool terminate_is_stop, gboolean *stop_flag,
int value = 0);
54 struct progdlg *showBusy(
bool animate,
bool terminate_is_stop, gboolean *stop_flag);
55 void setValue(
int value);
59 void showRequested(
bool animate,
bool terminate_is_stop, gboolean *stop_flag);
60 void valueChanged(
int value);
61 void maximumValueChanged(
int value);
66 void timerEvent(QTimerEvent *event);
69 Ui::ProgressFrame *ui;
71 struct progdlg progress_dialog_;
74 bool terminate_is_stop_;
77 QGraphicsOpacityEffect *effect_;
78 QPropertyAnimation *animation_;
79 #ifdef QWINTASKBARPROGRESS_H
81 QWinTaskbarProgress *taskbar_progress_;
85 void on_stopButton_clicked();
87 void show(
bool animate,
bool terminate_is_stop, gboolean *stop_flag);
88 void setMaximumValue(
int value);
Definition: progress_frame.h:39
Definition: progress_frame.h:33