Public Types | Public Member Functions | Private Attributes

cmtk::QtProgress Class Reference
[cmtkQt Library]

Class for interface of progress meter to Qt. More...

#include <cmtkQtProgress.h>

Inheritance diagram for cmtk::QtProgress:
Inheritance graph
[legend]
Collaboration diagram for cmtk::QtProgress:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ProgressWidgetMode { PROGRESS_DIALOG, PROGRESS_BAR }
 

Progress indicator mode.

More...
typedef QtProgress Self
 This class.
typedef Progress Superclass
 Parent class.

Public Member Functions

 QtProgress (QWidget *const parentWindow)
 Constructor.
void SetProgressBar (QProgressBar *const progressBar)
 Set the embedded progress bar.
virtual void BeginVirtual (const double start, const double end, const double increment, const std::string &taskName=std::string(""))
 This member function initialises the Qt progress indicator.
virtual Progress::ResultEnum UpdateProgress ()
 This member function sets the Qt progress indicator.
virtual void DoneVirtual ()
 This member function deletes the Qt progress indicator.
void SetProgressWidgetMode (ProgressWidgetMode progressWidgetMode)
 Set progress indicator mode.

Private Attributes

QWidget * ParentWindow
 The progress window parent widget.
QProgressBar * ProgressBar
 The progress bar widget.
QProgressDialog * ProgressDialog
 Progress dialog widget.
ProgressWidgetMode m_ProgressWidgetMode
 Progress widget mode.

Detailed Description

Class for interface of progress meter to Qt.

Definition at line 53 of file cmtkQtProgress.h.


Member Typedef Documentation

This class.

Reimplemented from cmtk::Progress.

Definition at line 59 of file cmtkQtProgress.h.

Parent class.

Definition at line 62 of file cmtkQtProgress.h.


Member Enumeration Documentation

Progress indicator mode.

Enumerator:
PROGRESS_DIALOG 

Use a modal progress dialog.

PROGRESS_BAR 

Use a progress bar within another window.

Definition at line 83 of file cmtkQtProgress.h.


Member Function Documentation

void cmtk::QtProgress::SetProgressBar ( QProgressBar *const   progressBar ) [inline]

Set the embedded progress bar.

Definition at line 68 of file cmtkQtProgress.h.

void cmtk::QtProgress::SetProgressWidgetMode ( ProgressWidgetMode  progressWidgetMode ) [inline]

Set progress indicator mode.

Definition at line 92 of file cmtkQtProgress.h.


Member Data Documentation

Progress widget mode.

Definition at line 108 of file cmtkQtProgress.h.

QWidget* cmtk::QtProgress::ParentWindow [private]

The progress window parent widget.

Definition at line 99 of file cmtkQtProgress.h.

QProgressBar* cmtk::QtProgress::ProgressBar [private]

The progress bar widget.

Definition at line 102 of file cmtkQtProgress.h.

QProgressDialog* cmtk::QtProgress::ProgressDialog [private]

Progress dialog widget.

Definition at line 105 of file cmtkQtProgress.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines