8#include <QCoreApplication>
22 m_clickTimer(new QTimer())
47 LOG(VB_GENERAL, LOG_ERR, QString(
"Button %1 is missing required "
48 "elements").arg(objectName()));
127 bool handled =
false;
130 for (
int i = 0; i < actions.size() && !handled; i++)
132 const QString&
action = actions[i];
260 const QString &
filename, QDomElement &element,
bool showWarnings)
262 if (element.tagName() ==
"value")
264 m_valueText = QCoreApplication::translate(
"ThemeUI",
281 button->CopyFrom(
this);
292 LOG(VB_GENERAL, LOG_ERR,
"Dynamic cast of base failed");
A custom event that represents a mouse gesture.
Gesture GetGesture() const
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
Create a group of widgets.
This widget is used for grouping other widgets for display when a particular named state is called.
MythUIType * GetCurrentState()
bool DisplayState(const QString &name)
All purpose text widget, displays a text string.
void SetFontState(const QString &state)
QString GetDefaultText(void) const
virtual void SetText(const QString &text)
The base class on which all widgets and screens are based.
bool IsEnabled(void) const
void SetCanTakeFocus(bool set=true)
Set whether this widget can take focus.
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
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.
static QString parseText(QDomElement &element)
A C++ ripoff of the stroke library for MythTV.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)