svgui  1.9
ProgressDialog Class Reference

#include <ProgressDialog.h>

Inheritance diagram for ProgressDialog:
Collaboration diagram for ProgressDialog:

Public Slots

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

Signals

void showing ()
 
void cancelled ()
 

Public Member Functions

 ProgressDialog (QString message, bool cancellable, int timeBeforeShow=0, QWidget *parent=0)
 
virtual ~ProgressDialog ()
 
virtual bool isDefinite () const
 
virtual void setDefinite (bool definite)
 
virtual bool wasCancelled () const
 

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::ProgressDialog ( QString  message,
bool  cancellable,
int  timeBeforeShow = 0,
QWidget *  parent = 0 
)

Definition at line 22 of file ProgressDialog.cpp.

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

◆ ~ProgressDialog()

ProgressDialog::~ProgressDialog ( )
virtual

Definition at line 47 of file ProgressDialog.cpp.

References m_dialog, and m_showTimer.

Member Function Documentation

◆ isDefinite()

bool ProgressDialog::isDefinite ( ) const
virtual

Definition at line 54 of file ProgressDialog.cpp.

References m_dialog.

Referenced by setProgress().

◆ setDefinite()

void ProgressDialog::setDefinite ( bool  definite)
virtual

Definition at line 60 of file ProgressDialog.cpp.

References m_dialog.

◆ wasCancelled()

bool ProgressDialog::wasCancelled ( ) const
virtual

Definition at line 80 of file ProgressDialog.cpp.

References m_cancelled.

◆ showing

void ProgressDialog::showing ( )
signal

Referenced by setProgress(), and showTimerElapsed().

◆ cancelled

void ProgressDialog::cancelled ( )
signal

Referenced by canceled().

◆ setMessage

void ProgressDialog::setMessage ( QString  text)
virtualslot

Definition at line 67 of file ProgressDialog.cpp.

References m_dialog.

◆ setProgress

void ProgressDialog::setProgress ( int  percentage)
virtualslot

Definition at line 97 of file ProgressDialog.cpp.

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

◆ showTimerElapsed

void ProgressDialog::showTimerElapsed ( )
protectedvirtualslot

Definition at line 86 of file ProgressDialog.cpp.

References m_dialog, m_timerElapsed, and showing().

Referenced by ProgressDialog().

◆ canceled

void ProgressDialog::canceled ( )
protectedslot

Definition at line 73 of file ProgressDialog.cpp.

References cancelled(), and m_cancelled.

Referenced by ProgressDialog().

Member Data Documentation

◆ m_dialog

QProgressDialog* ProgressDialog::m_dialog
protected

◆ m_showTimer

QTimer* ProgressDialog::m_showTimer
protected

Definition at line 51 of file ProgressDialog.h.

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

◆ m_timerElapsed

bool ProgressDialog::m_timerElapsed
protected

Definition at line 52 of file ProgressDialog.h.

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

◆ m_cancelled

bool ProgressDialog::m_cancelled
protected

Definition at line 53 of file ProgressDialog.h.

Referenced by canceled(), and wasCancelled().


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