MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
MythUIAnimation Class Reference

#include <mythuianimation.h>

Inheritance diagram for MythUIAnimation:
Inheritance graph
[legend]
Collaboration diagram for MythUIAnimation:
Collaboration graph
[legend]

Public Types

enum  Type {
  Alpha, Position, Zoom, HorizontalZoom,
  VerticalZoom, Angle
}
 
enum  Trigger { AboutToHide, AboutToShow }
 

Public Member Functions

 MythUIAnimation (MythUIType *parent=nullptr, Trigger trigger=AboutToShow, Type type=Alpha)
 
void Activate (void)
 
void CopyFrom (const MythUIAnimation *animation)
 
Trigger GetTrigger (void) const
 
QVariant Value () const
 
bool IsActive () const
 
void updateCurrentValue (const QVariant &value) override
 
void IncrementCurrentTime (void)
 
void SetEasingCurve (const QString &curve)
 
void SetCentre (const QString &centre)
 
void SetLooped (bool looped)
 
void SetReversible (bool rev)
 

Static Public Member Functions

static void ParseElement (const QDomElement &element, MythUIType *parent)
 

Static Private Member Functions

static void ParseSection (const QDomElement &element, MythUIType *parent, Trigger trigger)
 
static void parseAlpha (const QDomElement &element, QVariant &startValue, QVariant &endValue)
 
static void parsePosition (const QDomElement &element, QVariant &startValue, QVariant &endValue, MythUIType *parent)
 
static void parseZoom (const QDomElement &element, QVariant &startValue, QVariant &endValue)
 
static void parseAngle (const QDomElement &element, QVariant &startValue, QVariant &endValue)
 
- Static Private Member Functions inherited from XMLParseBase
static QString getFirstText (QDomElement &element)
 
static bool parseBool (const QString &text)
 
static bool parseBool (QDomElement &element)
 
static MythPoint parsePoint (const QString &text, bool normalize=true)
 
static MythPoint parsePoint (QDomElement &element, bool normalize=true)
 
static QSize parseSize (const QString &text, bool normalize=true)
 
static QSize parseSize (QDomElement &element, bool normalize=true)
 
static MythRect parseRect (const QString &text, bool normalize=true)
 
static MythRect parseRect (QDomElement &element, bool normalize=true)
 
static int parseAlignment (const QString &text)
 
static int parseAlignment (QDomElement &element)
 
static QBrush parseGradient (const QDomElement &element)
 
static QString parseText (QDomElement &element)
 
static MythUITypeGetGlobalObjectStore (void)
 
static void ClearGlobalObjectStore (void)
 
static void ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings)
 
static MythUITypeParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap)
 
static bool WindowExists (const QString &xmlfile, const QString &windowname)
 
static bool LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent)
 
static bool LoadBaseTheme (void)
 
static bool LoadBaseTheme (const QString &baseTheme)
 
static bool CopyWindowFromBase (const QString &windowname, MythScreenType *win)
 

Private Attributes

MythUITypem_parent {nullptr}
 
Type m_type {Alpha}
 
Trigger m_trigger {AboutToShow}
 
UIEffects::Centre m_centre {UIEffects::Middle}
 
QVariant m_value
 
bool m_active {false}
 
bool m_looped {false}
 
bool m_reversible {false}
 
std::chrono::milliseconds m_lastUpdate { MythDate::currentMSecsSinceEpochAsDuration() }
 

Detailed Description

Definition at line 46 of file mythuianimation.h.

Member Enumeration Documentation

◆ Type

Enumerator
Alpha 
Position 
Zoom 
HorizontalZoom 
VerticalZoom 
Angle 

Definition at line 49 of file mythuianimation.h.

◆ Trigger

Enumerator
AboutToHide 
AboutToShow 

Definition at line 50 of file mythuianimation.h.

Constructor & Destructor Documentation

◆ MythUIAnimation()

MythUIAnimation::MythUIAnimation ( MythUIType parent = nullptr,
Trigger  trigger = AboutToShow,
Type  type = Alpha 
)
inlineexplicit

Definition at line 52 of file mythuianimation.h.

Referenced by ParseSection().

Member Function Documentation

◆ Activate()

void MythUIAnimation::Activate ( void  )

Definition at line 50 of file mythuianimation.cpp.

Referenced by MythUIWebBrowser::Scroll().

◆ CopyFrom()

void MythUIAnimation::CopyFrom ( const MythUIAnimation animation)

Definition at line 82 of file mythuianimation.cpp.

◆ GetTrigger()

Trigger MythUIAnimation::GetTrigger ( void  ) const
inline

Definition at line 57 of file mythuianimation.h.

◆ Value()

QVariant MythUIAnimation::Value ( ) const
inline

Definition at line 58 of file mythuianimation.h.

◆ IsActive()

bool MythUIAnimation::IsActive ( ) const
inline

Definition at line 59 of file mythuianimation.h.

Referenced by MythUIWebBrowser::Pulse().

◆ updateCurrentValue()

void MythUIAnimation::updateCurrentValue ( const QVariant &  value)
override

Definition at line 57 of file mythuianimation.cpp.

◆ IncrementCurrentTime()

void MythUIAnimation::IncrementCurrentTime ( void  )

Definition at line 99 of file mythuianimation.cpp.

Referenced by MythUIWebBrowser::Pulse().

◆ SetEasingCurve()

void MythUIAnimation::SetEasingCurve ( const QString &  curve)

Definition at line 133 of file mythuianimation.cpp.

◆ SetCentre()

void MythUIAnimation::SetCentre ( const QString &  centre)

Definition at line 182 of file mythuianimation.cpp.

◆ SetLooped()

void MythUIAnimation::SetLooped ( bool  looped)
inline

Definition at line 66 of file mythuianimation.h.

◆ SetReversible()

void MythUIAnimation::SetReversible ( bool  rev)
inline

Definition at line 67 of file mythuianimation.h.

◆ ParseElement()

void MythUIAnimation::ParseElement ( const QDomElement &  element,
MythUIType parent 
)
static

Definition at line 195 of file mythuianimation.cpp.

Referenced by MythUIType::ParseElement().

◆ ParseSection()

void MythUIAnimation::ParseSection ( const QDomElement &  element,
MythUIType parent,
Trigger  trigger 
)
staticprivate

Definition at line 214 of file mythuianimation.cpp.

Referenced by ParseElement().

◆ parseAlpha()

void MythUIAnimation::parseAlpha ( const QDomElement &  element,
QVariant &  startValue,
QVariant &  endValue 
)
staticprivate

Definition at line 287 of file mythuianimation.cpp.

Referenced by ParseSection().

◆ parsePosition()

void MythUIAnimation::parsePosition ( const QDomElement &  element,
QVariant &  startValue,
QVariant &  endValue,
MythUIType parent 
)
staticprivate

Definition at line 294 of file mythuianimation.cpp.

Referenced by ParseSection().

◆ parseZoom()

void MythUIAnimation::parseZoom ( const QDomElement &  element,
QVariant &  startValue,
QVariant &  endValue 
)
staticprivate

Definition at line 322 of file mythuianimation.cpp.

Referenced by ParseSection().

◆ parseAngle()

void MythUIAnimation::parseAngle ( const QDomElement &  element,
QVariant &  startValue,
QVariant &  endValue 
)
staticprivate

Definition at line 329 of file mythuianimation.cpp.

Referenced by ParseSection().

Member Data Documentation

◆ m_parent

MythUIType* MythUIAnimation::m_parent {nullptr}
private

Definition at line 83 of file mythuianimation.h.

Referenced by updateCurrentValue().

◆ m_type

Type MythUIAnimation::m_type {Alpha}
private

Definition at line 84 of file mythuianimation.h.

Referenced by CopyFrom(), and updateCurrentValue().

◆ m_trigger

Trigger MythUIAnimation::m_trigger {AboutToShow}
private

Definition at line 85 of file mythuianimation.h.

Referenced by CopyFrom(), and GetTrigger().

◆ m_centre

UIEffects::Centre MythUIAnimation::m_centre {UIEffects::Middle}
private

Definition at line 86 of file mythuianimation.h.

Referenced by CopyFrom(), SetCentre(), and updateCurrentValue().

◆ m_value

QVariant MythUIAnimation::m_value
private

Definition at line 87 of file mythuianimation.h.

Referenced by CopyFrom(), updateCurrentValue(), and Value().

◆ m_active

bool MythUIAnimation::m_active {false}
private

Definition at line 88 of file mythuianimation.h.

Referenced by Activate(), IncrementCurrentTime(), IsActive(), and updateCurrentValue().

◆ m_looped

bool MythUIAnimation::m_looped {false}
private

Definition at line 89 of file mythuianimation.h.

Referenced by CopyFrom(), IncrementCurrentTime(), and SetLooped().

◆ m_reversible

bool MythUIAnimation::m_reversible {false}
private

Definition at line 90 of file mythuianimation.h.

Referenced by CopyFrom(), IncrementCurrentTime(), and SetReversible().

◆ m_lastUpdate

std::chrono::milliseconds MythUIAnimation::m_lastUpdate { MythDate::currentMSecsSinceEpochAsDuration() }
private

Definition at line 91 of file mythuianimation.h.

Referenced by IncrementCurrentTime().


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