|
MythTV
0.26-pre
|
Progress bar widget. More...
#include <mythuiprogressbar.h>
Public Types | |
| enum | LayoutType { LayoutVertical, LayoutHorizontal } |
| enum | EffectType { EffectReveal, EffectSlide, EffectAnimate } |
Public Member Functions | |
| MythUIProgressBar (MythUIType *parent, const QString &name) | |
| ~MythUIProgressBar () | |
| void | Reset (void) |
| Reset the widget to it's original state, should not reset changes made by the theme. | |
| void | SetStart (int) |
| void | SetUsed (int) |
| void | SetTotal (int) |
| int | GetUsed (void) |
Protected Member Functions | |
| virtual bool | ParseElement (const QString &filename, QDomElement &element, bool showWarnings) |
| Parse the xml definition of this widget setting the state of the object accordingly. | |
| virtual void | CopyFrom (MythUIType *base) |
| Copy this widgets state from another. | |
| virtual void | CreateCopy (MythUIType *parent) |
| Copy the state of this widget to the one given, it must be of the same type. | |
| virtual void | Finalize (void) |
| Perform any post-xml parsing initialisation tasks. | |
| void | CalculatePosition (void) |
Protected Attributes | |
| LayoutType | m_layout |
| EffectType | m_effect |
| int | m_total |
| int | m_start |
| int | m_current |
Progress bar widget.
Definition at line 14 of file mythuiprogressbar.h.
Definition at line 22 of file mythuiprogressbar.h.
Definition at line 23 of file mythuiprogressbar.h.
| MythUIProgressBar::MythUIProgressBar | ( | MythUIType * | parent, |
| const QString & | name | ||
| ) |
Definition at line 15 of file mythuiprogressbar.cpp.
Referenced by CreateCopy().
| MythUIProgressBar::~MythUIProgressBar | ( | ) | [inline] |
Definition at line 18 of file mythuiprogressbar.h.
| void MythUIProgressBar::Reset | ( | void | ) | [virtual] |
Reset the widget to it's original state, should not reset changes made by the theme.
Reimplemented from MythUIType.
Definition at line 23 of file mythuiprogressbar.cpp.
| void MythUIProgressBar::SetStart | ( | int | value | ) |
Definition at line 59 of file mythuiprogressbar.cpp.
Referenced by TvPlayWindow::Create(), OSD::SetText(), and OSD::SetValues().
| void MythUIProgressBar::SetUsed | ( | int | value | ) |
Definition at line 65 of file mythuiprogressbar.cpp.
Referenced by TvPlayWindow::Create(), MusicCommon::CreateCommon(), MusicCommon::customEvent(), RipStatus::customEvent(), OSD::SetText(), OSD::SetValues(), NetSearch::slotDoProgress(), MythBrowser::slotLoadFinished(), MythBrowser::slotLoadProgress(), MythMusicVolumeDialog::updateDisplay(), MusicCommon::updatePlaylistStats(), TvPlayWindow::UpdateProgress(), MythUIProgressDialog::UpdateProgress(), ThemeChooser::updateProgressBar(), MusicCommon::updateProgressBar(), ExportNative::updateSizeBar(), MythBurn::updateSizeBar(), MusicCommon::updateTrackInfo(), and PlaybackBox::UpdateUsageUI().
| void MythUIProgressBar::SetTotal | ( | int | value | ) |
Definition at line 77 of file mythuiprogressbar.cpp.
Referenced by TvPlayWindow::Create(), MythBrowser::Create(), MythMusicVolumeDialog::Create(), MusicCommon::CreateCommon(), MusicCommon::customEvent(), RipStatus::customEvent(), OSD::SetText(), OSD::SetValues(), NetSearch::slotDoProgress(), MythUIProgressDialog::UpdateProgress(), ThemeChooser::updateProgressBar(), MusicCommon::updateProgressBar(), ExportNative::updateSizeBar(), MythBurn::updateSizeBar(), and PlaybackBox::UpdateUsageUI().
| int MythUIProgressBar::GetUsed | ( | void | ) | [inline] |
Definition at line 28 of file mythuiprogressbar.h.
| bool MythUIProgressBar::ParseElement | ( | const QString & | filename, |
| QDomElement & | element, | ||
| bool | showWarnings | ||
| ) | [protected, virtual] |
Parse the xml definition of this widget setting the state of the object accordingly.
Reimplemented from MythUIType.
Definition at line 30 of file mythuiprogressbar.cpp.
| void MythUIProgressBar::CopyFrom | ( | MythUIType * | base | ) | [protected, virtual] |
Copy this widgets state from another.
Reimplemented from MythUIType.
Definition at line 169 of file mythuiprogressbar.cpp.
Referenced by CreateCopy().
| void MythUIProgressBar::CreateCopy | ( | MythUIType * | parent | ) | [protected, virtual] |
Copy the state of this widget to the one given, it must be of the same type.
Reimplemented from MythUIType.
Definition at line 186 of file mythuiprogressbar.cpp.
| void MythUIProgressBar::Finalize | ( | void | ) | [protected, virtual] |
Perform any post-xml parsing initialisation tasks.
This is called after the widget has been created and it's state established by ParseElement() or CopyFrom(). A derived class should use this to perform any initialisation tasks which should occur after this point.
Reimplemented from MythUIType.
Definition at line 164 of file mythuiprogressbar.cpp.
| void MythUIProgressBar::CalculatePosition | ( | void | ) | [protected] |
Definition at line 83 of file mythuiprogressbar.cpp.
Referenced by Finalize(), Reset(), SetStart(), SetTotal(), and SetUsed().
LayoutType MythUIProgressBar::m_layout [protected] |
Definition at line 37 of file mythuiprogressbar.h.
Referenced by CalculatePosition(), CopyFrom(), and ParseElement().
EffectType MythUIProgressBar::m_effect [protected] |
Definition at line 38 of file mythuiprogressbar.h.
Referenced by CalculatePosition(), CopyFrom(), and ParseElement().
int MythUIProgressBar::m_total [protected] |
Definition at line 40 of file mythuiprogressbar.h.
Referenced by CalculatePosition(), CopyFrom(), Reset(), SetTotal(), and SetUsed().
int MythUIProgressBar::m_start [protected] |
Definition at line 41 of file mythuiprogressbar.h.
Referenced by CalculatePosition(), CopyFrom(), Reset(), SetStart(), and SetUsed().
int MythUIProgressBar::m_current [protected] |
Definition at line 42 of file mythuiprogressbar.h.
Referenced by CalculatePosition(), CopyFrom(), Reset(), and SetUsed().
1.7.6.1