MythProgressDialog Class Reference

#include <mythdialogs.h>

Inheritance diagram for MythProgressDialog:
MythDialog

List of all members.

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

 ~MythProgressDialog ()

Protected Attributes

QProgressBar * progress
QLabel * msglabel

Private Member Functions

void setTotalSteps (int totalSteps)

Private Attributes

int steps
int m_totalSteps

Detailed Description

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.

The dialog widget also updates the LCD display if present.

Deprecated:
Due for removal, use libmythui's MythUIProgressDialog instead

Definition at line 203 of file mythdialogs.h.


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
Deprecated:
Due for removal, use libmythui instead

Definition at line 787 of file mythdialogs.cpp.

MythProgressDialog::~MythProgressDialog (  )  [protected]

Definition at line 865 of file mythdialogs.cpp.


Member Function Documentation

void MythProgressDialog::Close ( void   ) 
void MythProgressDialog::setProgress ( int  curprogress  ) 
void MythProgressDialog::setLabel ( QString  newlabel  ) 

Definition at line 901 of file mythdialogs.cpp.

void MythProgressDialog::keyPressEvent ( QKeyEvent *  e  ) 

Reimplemented from MythDialog.

Definition at line 906 of file mythdialogs.cpp.

void MythProgressDialog::deleteLater ( void   )  [virtual]

Reimplemented from MythDialog.

Definition at line 869 of file mythdialogs.cpp.

Referenced by Playlist::CreateCDMP3(), and DataDirectLineupSelector::fillSelections().

void MythProgressDialog::pressed (  )  [signal]

Referenced by MythProgressDialog().

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

Definition at line 923 of file mythdialogs.cpp.

Referenced by MythProgressDialog().


Member Data Documentation

QProgressBar* MythProgressDialog::progress [protected]

Definition at line 248 of file mythdialogs.h.

Referenced by MythProgressDialog(), setProgress(), and setTotalSteps().

QLabel* MythProgressDialog::msglabel [protected]

Definition at line 249 of file mythdialogs.h.

Referenced by MythProgressDialog(), and setLabel().

Definition at line 253 of file mythdialogs.h.

Referenced by setProgress(), and setTotalSteps().

Definition at line 254 of file mythdialogs.h.

Referenced by setProgress(), and setTotalSteps().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:16 2012 for MythTV by  doxygen 1.6.3