1#ifndef MYTHUI_PROGRESSBAR_H_
2#define MYTHUI_PROGRESSBAR_H_
19 void Reset(
void)
override;
21 enum LayoutType : std::uint8_t { LayoutVertical, LayoutHorizontal };
22 enum EffectType : std::uint8_t { EffectReveal, EffectSlide, EffectAnimate };
24 void Set(
int start,
int total,
int used);
25 void SetStart(
int value);
26 void SetUsed(
int value);
27 void SetTotal(
int value);
28 int GetUsed(
void)
const {
return m_current; }
33 bool showWarnings)
override;
44 bool m_firstdepend {
true};
46 void CalculatePosition(
void);
MythUIProgressBar(MythUIType *parent, const QString &name)
~MythUIProgressBar() override=default
The base class on which all widgets and screens are based.
virtual void SetVisible(bool visible)
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
virtual void Finalize(void)
Perform any post-xml parsing initialisation tasks.
virtual void CreateCopy(MythUIType *parent)
Copy the state of this widget to the one given, it must be of the same type.
virtual void Reset(void)
Reset the widget to it's original state, should not reset changes made by the theme.
virtual bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings)
Parse the xml definition of this widget setting the state of the object accordingly.