Go to the documentation of this file.
7 #include <QDomDocument>
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");
void SetFontState(const QString &state)
Gesture GetGesture() const
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
MythUIType * GetCurrentState()
void SetCanTakeFocus(bool set=true)
Set whether this widget can take focus.
Create a group of widgets.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
static QString parseText(QDomElement &element)
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
bool IsEnabled(void) const
QString GetDefaultText(void) const
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
A C++ ripoff of the stroke library for MythTV.
virtual void Reset(void)
Reset the widget to it's original state, should not reset changes made by the theme.
The base class on which all widgets and screens are based.
All purpose text widget, displays a text string.
virtual void SetText(const QString &text)
MythMainWindow * GetMythMainWindow(void)
A custom event that represents a mouse gesture.
virtual bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings)
Parse the xml definition of this widget setting the state of the object accordingly.
This widget is used for grouping other widgets for display when a particular named state is called....
bool DisplayState(const QString &name)