MythTV
master
|
#include <mythuianimation.h>
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 ¢re) |
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 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 MythUIType * | GetGlobalObjectStore (void) |
static void | ClearGlobalObjectStore (void) |
static void | ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings) |
static MythUIType * | ParseUIType (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 | |
MythUIType * | m_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() } |
Definition at line 46 of file mythuianimation.h.
Enumerator | |
---|---|
Alpha | |
Position | |
Zoom | |
HorizontalZoom | |
VerticalZoom | |
Angle |
Definition at line 49 of file mythuianimation.h.
Enumerator | |
---|---|
AboutToHide | |
AboutToShow |
Definition at line 50 of file mythuianimation.h.
|
inlineexplicit |
Definition at line 52 of file mythuianimation.h.
Referenced by ParseSection().
void MythUIAnimation::Activate | ( | void | ) |
Definition at line 50 of file mythuianimation.cpp.
Referenced by MythUIWebBrowser::Scroll().
void MythUIAnimation::CopyFrom | ( | const MythUIAnimation * | animation | ) |
Definition at line 82 of file mythuianimation.cpp.
|
inline |
Definition at line 57 of file mythuianimation.h.
|
inline |
Definition at line 58 of file mythuianimation.h.
|
inline |
Definition at line 59 of file mythuianimation.h.
Referenced by MythUIWebBrowser::Pulse().
|
override |
Definition at line 57 of file mythuianimation.cpp.
void MythUIAnimation::IncrementCurrentTime | ( | void | ) |
Definition at line 99 of file mythuianimation.cpp.
Referenced by MythUIWebBrowser::Pulse().
void MythUIAnimation::SetEasingCurve | ( | const QString & | curve | ) |
Definition at line 133 of file mythuianimation.cpp.
void MythUIAnimation::SetCentre | ( | const QString & | centre | ) |
Definition at line 182 of file mythuianimation.cpp.
|
inline |
Definition at line 66 of file mythuianimation.h.
|
inline |
Definition at line 67 of file mythuianimation.h.
|
static |
Definition at line 195 of file mythuianimation.cpp.
Referenced by MythUIType::ParseElement().
|
staticprivate |
Definition at line 214 of file mythuianimation.cpp.
Referenced by ParseElement().
|
staticprivate |
Definition at line 287 of file mythuianimation.cpp.
Referenced by ParseSection().
|
staticprivate |
Definition at line 294 of file mythuianimation.cpp.
Referenced by ParseSection().
|
staticprivate |
Definition at line 322 of file mythuianimation.cpp.
Referenced by ParseSection().
|
staticprivate |
Definition at line 329 of file mythuianimation.cpp.
Referenced by ParseSection().
|
private |
Definition at line 83 of file mythuianimation.h.
Referenced by updateCurrentValue().
Definition at line 84 of file mythuianimation.h.
Referenced by CopyFrom(), and updateCurrentValue().
|
private |
Definition at line 85 of file mythuianimation.h.
Referenced by CopyFrom(), and GetTrigger().
|
private |
Definition at line 86 of file mythuianimation.h.
Referenced by CopyFrom(), SetCentre(), and updateCurrentValue().
|
private |
Definition at line 87 of file mythuianimation.h.
Referenced by CopyFrom(), updateCurrentValue(), and Value().
Definition at line 88 of file mythuianimation.h.
Referenced by Activate(), IncrementCurrentTime(), IsActive(), and updateCurrentValue().
Definition at line 89 of file mythuianimation.h.
Referenced by CopyFrom(), IncrementCurrentTime(), and SetLooped().
Definition at line 90 of file mythuianimation.h.
Referenced by CopyFrom(), IncrementCurrentTime(), and SetReversible().
|
private |
Definition at line 91 of file mythuianimation.h.
Referenced by IncrementCurrentTime().