MythBusyDialog Class Reference

#include <mythdialogs.h>

Inheritance diagram for MythBusyDialog:

MythProgressDialog MythDialog MythNewsBusyDialog

List of all members.


Detailed Description

MythDialog box that displays a busy spinner-style dialog box to indicate the program is busy, but that the number of steps needed is unknown.

Ie. used by MythMusic when scanning the filesystem for musicfiles.

Definition at line 294 of file mythdialogs.h.


Public Slots

virtual void deleteLater (void)

Public Member Functions

 MythBusyDialog (const QString &title, bool cancelButton=false, const QObject *target=NULL, const char *slot=NULL)
 Create the busy indicator.
void start (int interval=100)
 Setup a timer to 'move' the spinner.
void Close ()
 Close the dialog.

Protected Slots

void setProgress ()
void timeout ()

Protected Member Functions

void Teardown (void)
 ~MythBusyDialog ()

Private Attributes

QTimer * timer

Constructor & Destructor Documentation

MythBusyDialog::MythBusyDialog ( const QString &  title,
bool  cancelButton = false,
const QObject *  target = NULL,
const char *  slot = NULL 
)

Create the busy indicator.

Creates the dialog widget and sets up the timer that causes the widget to indicate progress every 100msec;

Parameters:
title the title to appear in the progress bar dialog
cancelButton display cancel button
target target for cancel signal
slot slot for cancel signal

Definition at line 917 of file mythdialogs.cpp.

MythBusyDialog::~MythBusyDialog (  )  [protected]

Definition at line 925 of file mythdialogs.cpp.


Member Function Documentation

void MythBusyDialog::start ( int  interval = 100  ) 

Setup a timer to 'move' the spinner.

This will create a QTimer object that will update the spinner ever interval msecs.

Parameters:
interval msecs between movement, default is 100

Definition at line 946 of file mythdialogs.cpp.

Referenced by MythNews::createProgress(), RebuildMusicTree(), FileScanner::SearchDir(), PlaybackBoxMusic::showEditMetadataDialog(), Ripper::startEjectCD(), ImportMusicDialog::startScan(), Ripper::startScanCD(), and XMLTVConfig::XMLTVConfig().

void MythBusyDialog::Close ( void   ) 

Close the dialog.

This will close the dialog and stop the timer.

Reimplemented from MythProgressDialog.

Definition at line 957 of file mythdialogs.cpp.

Referenced by SourceManager::findScripts(), RebuildMusicTree(), FileScanner::SearchDir(), PlaybackBoxMusic::showEditMetadataDialog(), ZMEvents::showMenu(), and XMLTVConfig::XMLTVConfig().

void MythBusyDialog::deleteLater ( void   )  [virtual, slot]

void MythBusyDialog::setProgress ( void   )  [protected, slot]

Definition at line 969 of file mythdialogs.cpp.

Referenced by timeout().

void MythBusyDialog::timeout ( void   )  [protected, slot]

Definition at line 977 of file mythdialogs.cpp.

Referenced by start().

void MythBusyDialog::Teardown ( void   )  [protected]

Reimplemented from MythProgressDialog.

Definition at line 936 of file mythdialogs.cpp.

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


Member Data Documentation

QTimer* MythBusyDialog::timer [private]

Definition at line 340 of file mythdialogs.h.

Referenced by Close(), start(), and Teardown().


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

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