MythProgressDialog Class Reference

#include <mythdialogs.h>

Inheritance diagram for MythProgressDialog:

MythDialog MythBusyDialog MythNewsBusyDialog

List of all members.


Detailed Description

The MythTV progress bar dialog.

This dialog is responsible for displaying a progress bar box on the screen. This is used when you have a known set of steps to perform and the possibility of calling the setProgress call at the end of each step.

If you do not know the number of steps, use MythBusyDialog instead.

The dialog widget also updates the LCD display if present.

Definition at line 234 of file mythdialogs.h.


Signals

void pressed ()

Public Member Functions

 MythProgressDialog (const QString &message, int totalSteps=0, bool cancelButton=false, const QObject *target=NULL, const char *slot=NULL)
 Create a progress bar dialog.
void Close (void)
void setProgress (int curprogress)
void setLabel (QString newlabel)
void keyPressEvent (QKeyEvent *)
virtual void deleteLater (void)

Protected Member Functions

void Teardown (void)
 ~MythProgressDialog ()

Protected Attributes

QProgressBar * progress
QLabel * msglabel

Private Member Functions

void setTotalSteps (int totalSteps)

Private Attributes

int steps
int m_totalSteps
QPtrList< class LCDTextItem > * textItems

Constructor & Destructor Documentation

MythProgressDialog::MythProgressDialog ( const QString &  message,
int  totalSteps = 0,
bool  cancelButton = false,
const QObject *  target = NULL,
const char *  slot = NULL 
)

Create a progress bar dialog.

Parameters:
message the title string to appear in the progress dialog.
totalSteps the total number of steps
cancelButton display cancel button
target target for cancel signal
slot slot for cancel signal

Definition at line 771 of file mythdialogs.cpp.

MythProgressDialog::~MythProgressDialog (  )  [protected]

Definition at line 838 of file mythdialogs.cpp.


Member Function Documentation

void MythProgressDialog::Close ( void   ) 

void MythProgressDialog::setProgress ( int  curprogress  ) 

void MythProgressDialog::setLabel ( QString  newlabel  ) 

Definition at line 885 of file mythdialogs.cpp.

Referenced by ImportIconsWizard::initialLoad().

void MythProgressDialog::keyPressEvent ( QKeyEvent *  e  ) 

Reimplemented from MythDialog.

Reimplemented in MythNewsBusyDialog.

Definition at line 890 of file mythdialogs.cpp.

void MythProgressDialog::deleteLater ( void   )  [virtual]

void MythProgressDialog::pressed (  )  [signal]

Referenced by MythProgressDialog().

void MythProgressDialog::Teardown ( void   )  [protected]

Reimplemented in MythBusyDialog.

Definition at line 850 of file mythdialogs.cpp.

Referenced by deleteLater(), and ~MythProgressDialog().

void MythProgressDialog::setTotalSteps ( int  totalSteps  )  [private]

Definition at line 908 of file mythdialogs.cpp.

Referenced by MythProgressDialog().


Member Data Documentation

QProgressBar* MythProgressDialog::progress [protected]

QLabel* MythProgressDialog::msglabel [protected]

Definition at line 279 of file mythdialogs.h.

Referenced by MythProgressDialog(), and setLabel().

Definition at line 283 of file mythdialogs.h.

Referenced by setProgress(), and setTotalSteps().

Definition at line 284 of file mythdialogs.h.

Referenced by setProgress(), and setTotalSteps().

QPtrList<class LCDTextItem>* MythProgressDialog::textItems [private]

Definition at line 285 of file mythdialogs.h.

Referenced by MythProgressDialog(), and Teardown().


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

Generated on Sat Dec 18 05:16:08 2010 for MythTV by  doxygen 1.5.5