MythTV  0.26-pre
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
MythUIProgressBar Class Reference

Progress bar widget. More...

#include <mythuiprogressbar.h>

Inheritance diagram for MythUIProgressBar:
MythUIType XMLParseBase

List of all members.

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

Detailed Description

Progress bar widget.

Definition at line 14 of file mythuiprogressbar.h.


Member Enumeration Documentation

Enumerator:
LayoutVertical 
LayoutHorizontal 

Definition at line 22 of file mythuiprogressbar.h.

Enumerator:
EffectReveal 
EffectSlide 
EffectAnimate 

Definition at line 23 of file mythuiprogressbar.h.


Constructor & Destructor Documentation

MythUIProgressBar::MythUIProgressBar ( MythUIType parent,
const QString &  name 
)

Definition at line 15 of file mythuiprogressbar.cpp.

Referenced by CreateCopy().

Definition at line 18 of file mythuiprogressbar.h.


Member Function Documentation

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.

Definition at line 59 of file mythuiprogressbar.cpp.

Referenced by TvPlayWindow::Create(), OSD::SetText(), and OSD::SetValues().

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.

Definition at line 83 of file mythuiprogressbar.cpp.

Referenced by Finalize(), Reset(), SetStart(), SetTotal(), and SetUsed().


Member Data Documentation

Definition at line 37 of file mythuiprogressbar.h.

Referenced by CalculatePosition(), CopyFrom(), and ParseElement().

Definition at line 38 of file mythuiprogressbar.h.

Referenced by CalculatePosition(), CopyFrom(), and ParseElement().

Definition at line 40 of file mythuiprogressbar.h.

Referenced by CalculatePosition(), CopyFrom(), Reset(), SetTotal(), and SetUsed().

Definition at line 41 of file mythuiprogressbar.h.

Referenced by CalculatePosition(), CopyFrom(), Reset(), SetStart(), and SetUsed().

Definition at line 42 of file mythuiprogressbar.h.

Referenced by CalculatePosition(), CopyFrom(), Reset(), and SetUsed().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends