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>
25class QDialogButtonBox;
27class QGraphicsOpacityEffect;
28class QPropertyAnimation;
60#ifdef QWINTASKBARPROGRESS_H
65 void enableTaskbarUpdates(
bool enable =
true) { update_taskbar_ = enable; }
73 static void addToButtonBox(QDialogButtonBox *button_box, QObject *main_window);
90 struct progdlg *
showProgress(
const QString &title,
bool animate,
bool terminate_is_stop,
bool *stop_flag,
int value = 0);
99 struct progdlg *
showBusy(
bool animate,
bool terminate_is_stop,
bool *stop_flag);
152 Ui::ProgressFrame *ui;
155 struct progdlg progress_dialog_;
164 bool terminate_is_stop_;
173 QGraphicsOpacityEffect *effect_;
176 QPropertyAnimation *animation_;
178#ifdef QWINTASKBARPROGRESS_H
180 bool update_taskbar_;
183 QWinTaskbarProgress *taskbar_progress_;
190 void on_stopButton_clicked();
198 void show(
bool animate,
bool terminate_is_stop,
bool *stop_flag);
204 void setMaximumValue(
int value);
A frame for displaying progress indications and dialogs.
Definition progress_frame.h:45
static void addToButtonBox(QDialogButtonBox *button_box, QObject *main_window)
Adds the progress frame to a dialog button box.
Definition progress_frame.cpp:188
void stopLoading()
Signal emitted to request stopping the current loading operation.
struct progdlg * showBusy(bool animate, bool terminate_is_stop, bool *stop_flag)
Shows a busy/indeterminate progress indicator.
Definition progress_frame.cpp:181
void timerEvent(QTimerEvent *event)
Handles timer events.
Definition progress_frame.cpp:241
void setHidden()
Signal emitted to hide the progress frame.
void maximumValueChanged(int value)
Signal emitted when the maximum progress value changes.
void setValue(int value)
Sets the current progress value.
Definition progress_frame.cpp:235
~ProgressFrame()
Destroys the ProgressFrame object.
Definition progress_frame.cpp:160
void captureFileClosing()
Handles the event when the capture file is closing.
Definition progress_frame.cpp:223
void valueChanged(int value)
Signal emitted when the progress value changes.
void hide()
Hides the progress frame.
Definition progress_frame.cpp:261
void showRequested(bool animate, bool terminate_is_stop, bool *stop_flag)
Signal emitted to request showing the progress frame.
struct progdlg * showProgress(const QString &title, bool animate, bool terminate_is_stop, bool *stop_flag, int value=0)
Shows a progress indicator with a title.
Definition progress_frame.cpp:165
Define the structure describing a progress dialog.
Definition progress_frame.h:33
ProgressFrame * progress_frame
This progress frame.
Definition progress_frame.h:35
QWidget * top_level_window
Progress frame's main window.
Definition progress_frame.h:38