10#ifndef PROGRESS_FRAME_H
11#define PROGRESS_FRAME_H
20class QDialogButtonBox;
22class QGraphicsOpacityEffect;
23class QPropertyAnimation;
55#ifdef QWINTASKBARPROGRESS_H
60 void enableTaskbarUpdates(
bool enable =
true) { update_taskbar_ = enable; }
68 static void addToButtonBox(QDialogButtonBox *button_box, QObject *main_window);
85 struct progdlg *
showProgress(
const QString &title,
bool animate,
bool terminate_is_stop,
bool *stop_flag,
int value = 0);
94 struct progdlg *
showBusy(
bool animate,
bool terminate_is_stop,
bool *stop_flag);
103 void setTitle(
const QString &title);
156 QString elideLabel(
const QString &title)
const;
159 Ui::ProgressFrame *ui;
162 struct progdlg progress_dialog_;
171 bool terminate_is_stop_;
180 QGraphicsOpacityEffect *effect_;
183 QPropertyAnimation *animation_;
185#ifdef QWINTASKBARPROGRESS_H
187 bool update_taskbar_;
190 QWinTaskbarProgress *taskbar_progress_;
197 void on_stopButton_clicked();
205 void show(
bool animate,
bool terminate_is_stop,
bool *stop_flag);
211 void setMaximumValue(
int value);
A frame for displaying progress indications and dialogs.
Definition progress_frame.h:40
static void addToButtonBox(QDialogButtonBox *button_box, QObject *main_window)
Adds the progress frame to a dialog button box.
Definition progress_frame.cpp:247
ProgressFrame(QWidget *parent=0)
Constructs a new ProgressFrame object.
Definition progress_frame.cpp:94
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:240
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:294
void setTitle(const QString &title)
Sets the current progress title.
Definition progress_frame.cpp:219
~ProgressFrame()
Destroys the ProgressFrame object.
Definition progress_frame.cpp:187
void captureFileClosing()
Handles the event when the capture file is closing.
Definition progress_frame.cpp:282
void valueChanged(int value)
Signal emitted when the progress value changes.
void timerEvent(QTimerEvent *event) override
Handles timer events.
Definition progress_frame.cpp:300
void hide()
Hides the progress frame.
Definition progress_frame.cpp:320
void showRequested(bool animate, bool terminate_is_stop, bool *stop_flag)
Signal emitted to request showing the progress frame.
void setStatus(const QString &status)
Sets the current progress status.
Definition progress_frame.cpp:225
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:231
Define the structure describing a progress dialog.
Definition progress_frame.h:28
ProgressFrame * progress_frame
This progress frame.
Definition progress_frame.h:30
QWidget * top_level_window
Progress frame's main window.
Definition progress_frame.h:33