#include <ProgressDialog.h>

Inheritance diagram for ProgressDialog:
Inheritance graph
Collaboration diagram for ProgressDialog:
Collaboration graph

Public Slots

void setMessage (QString text) override
 
void setProgress (int percentage) override
 

Signals

void showing ()
 
void cancelled ()
 

Public Member Functions

 ProgressDialog (QString message, bool cancellable, int timeBeforeShow=0, QWidget *parent=0, Qt::WindowModality modality=Qt::NonModal)
 
virtual ~ProgressDialog ()
 
bool isDefinite () const override
 
void setDefinite (bool definite) override
 
bool wasCancelled () const override
 

Protected Slots

virtual void showTimerElapsed ()
 
void canceled ()
 

Protected Attributes

QProgressDialog * m_dialog
 
QTimer * m_showTimer
 
bool m_timerElapsed
 
bool m_cancelled
 

Detailed Description

Definition at line 23 of file ProgressDialog.h.

Constructor & Destructor Documentation

ProgressDialog::ProgressDialog ( QString  message,
bool  cancellable,
int  timeBeforeShow = 0,
QWidget *  parent = 0,
Qt::WindowModality  modality = Qt::NonModal 
)

Definition at line 22 of file ProgressDialog.cpp.

References canceled(), m_dialog, m_showTimer, m_timerElapsed, and showTimerElapsed().

ProgressDialog::~ProgressDialog ( )
virtual

Definition at line 52 of file ProgressDialog.cpp.

References m_dialog, and m_showTimer.

Member Function Documentation

bool ProgressDialog::isDefinite ( ) const
override

Definition at line 59 of file ProgressDialog.cpp.

References m_dialog.

Referenced by setProgress().

void ProgressDialog::setDefinite ( bool  definite)
override

Definition at line 65 of file ProgressDialog.cpp.

References m_dialog.

bool ProgressDialog::wasCancelled ( ) const
override

Definition at line 85 of file ProgressDialog.cpp.

References m_cancelled.

void ProgressDialog::showing ( )
signal

Referenced by setProgress(), and showTimerElapsed().

void ProgressDialog::cancelled ( )
signal

Referenced by canceled().

void ProgressDialog::setMessage ( QString  text)
overrideslot

Definition at line 72 of file ProgressDialog.cpp.

References m_dialog.

void ProgressDialog::setProgress ( int  percentage)
overrideslot

Definition at line 102 of file ProgressDialog.cpp.

References isDefinite(), m_dialog, m_timerElapsed, and showing().

void ProgressDialog::showTimerElapsed ( )
protectedvirtualslot

Definition at line 91 of file ProgressDialog.cpp.

References m_dialog, m_timerElapsed, and showing().

Referenced by ProgressDialog().

void ProgressDialog::canceled ( )
protectedslot

Definition at line 78 of file ProgressDialog.cpp.

References cancelled(), and m_cancelled.

Referenced by ProgressDialog().

Member Data Documentation

QProgressDialog* ProgressDialog::m_dialog
protected
QTimer* ProgressDialog::m_showTimer
protected

Definition at line 54 of file ProgressDialog.h.

Referenced by ProgressDialog(), and ~ProgressDialog().

bool ProgressDialog::m_timerElapsed
protected

Definition at line 55 of file ProgressDialog.h.

Referenced by ProgressDialog(), setProgress(), and showTimerElapsed().

bool ProgressDialog::m_cancelled
protected

Definition at line 56 of file ProgressDialog.h.

Referenced by canceled(), and wasCancelled().


The documentation for this class was generated from the following files: