#include <mythdialogs.h>

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 |
| MythProgressDialog::MythProgressDialog | ( | const QString & | message, | |
| int | totalSteps = 0, |
|||
| bool | cancelButton = false, |
|||
| const QObject * | target = NULL, |
|||
| const char * | slot = NULL | |||
| ) |
Create a progress bar dialog.
| 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.
| void MythProgressDialog::Close | ( | void | ) |
Reimplemented in MythBusyDialog.
Definition at line 859 of file mythdialogs.cpp.
Referenced by DatabaseBox::BlankCDRW(), MythContext::CacheThemeImagesDirectory(), PlaybackBoxMusic::checkForPlaylists(), FileScanner::cleanDB(), MythBusyDialog::Close(), IconView::CopyMarkedFiles(), Playlist::CreateCDMP3(), DataDirectLineupSelector::fillSelections(), ImportIconsWizard::initialLoad(), GameHandler::processGames(), XMLTV_generic_config::save(), FileScanner::ScanArtwork(), FileScanner::ScanMusic(), FileScanner::SearchDir(), VideoScannerImp::updateDB(), GameHandler::UpdateGameDB(), VideoScannerImp::verifyFiles(), GameHandler::VerifyGameDB(), and PlaybackBoxMusic::~PlaybackBoxMusic().
| void MythProgressDialog::setProgress | ( | int | curprogress | ) |
Definition at line 871 of file mythdialogs.cpp.
Referenced by DatabaseBox::BlankCDRW(), GameHandler::buildFileList(), MythContext::CacheThemeImagesDirectory(), PlaybackBoxMusic::checkForPlaylists(), FileScanner::cleanDB(), IconView::CopyMarkedFiles(), Playlist::CreateCDMP3(), VideoScannerImp::doScan(), DataDirectLineupSelector::fillSelections(), ImportIconsWizard::initialLoad(), GameHandler::processGames(), XMLTV_generic_config::save(), FileScanner::ScanArtwork(), FileScanner::ScanMusic(), FileScanner::SearchDir(), VideoScannerImp::updateDB(), GameHandler::UpdateGameDB(), VideoScannerImp::verifyFiles(), and GameHandler::VerifyGameDB().
| void MythProgressDialog::setLabel | ( | QString | newlabel | ) |
| void MythProgressDialog::keyPressEvent | ( | QKeyEvent * | e | ) |
Reimplemented from MythDialog.
Reimplemented in MythNewsBusyDialog.
Definition at line 890 of file mythdialogs.cpp.
| void MythProgressDialog::deleteLater | ( | void | ) | [virtual] |
Reimplemented from MythDialog.
Reimplemented in MythBusyDialog.
Definition at line 843 of file mythdialogs.cpp.
Referenced by DatabaseBox::BlankCDRW(), MythContext::CacheThemeImagesDirectory(), PlaybackBoxMusic::checkForPlaylists(), FileScanner::cleanDB(), IconView::CopyMarkedFiles(), Playlist::CreateCDMP3(), MythBusyDialog::deleteLater(), VideoScannerImp::doScan(), DataDirectLineupSelector::fillSelections(), ImportIconsWizard::initialLoad(), GameHandler::processGames(), XMLTV_generic_config::save(), FileScanner::ScanArtwork(), FileScanner::ScanMusic(), FileScanner::SearchDir(), VideoScannerImp::updateDB(), GameHandler::UpdateGameDB(), VideoScannerImp::verifyFiles(), GameHandler::VerifyGameDB(), and PlaybackBoxMusic::~PlaybackBoxMusic().
| 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] |
QProgressBar* MythProgressDialog::progress [protected] |
Definition at line 278 of file mythdialogs.h.
Referenced by MythProgressDialog(), MythBusyDialog::setProgress(), setProgress(), and setTotalSteps().
QLabel* MythProgressDialog::msglabel [protected] |
int MythProgressDialog::steps [private] |
int MythProgressDialog::m_totalSteps [private] |
QPtrList<class LCDTextItem>* MythProgressDialog::textItems [private] |
1.5.5