30 LOG(VB_GENERAL, LOG_ERR,
31 QString(
"Checkbox %1 is missing required elements")
169 bool handled =
false;
172 for (
int i = 0; i < actions.size() && !handled; i++)
174 const QString&
action = actions[i];
192 checkbox->CopyFrom(
this);
204 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.
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
void SetCheckState(MythUIStateType::StateType state)
void toggleCheckState(void)
MythUIStateType * m_backgroundState
bool gestureEvent(MythGestureEvent *event) override
Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.
MythUIStateType::StateType GetCheckState() const
void CreateCopy(MythUIType *parent) override
Copy the state of this widget to the one given, it must be of the same type.
void Finalize(void) override
Perform any post-xml parsing initialisation tasks.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void CopyFrom(MythUIType *base) override
Copy this widgets state from another.
MythUIStateType * m_checkState
bool GetBooleanCheckState(void) const
MythUIStateType::StateType m_currentCheckState
MythUICheckBox(MythUIType *parent, const QString &name)
void SetInitialStates(void)
This widget is used for grouping other widgets for display when a particular named state is called.
bool DisplayState(const QString &name)
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.
void DependChanged(bool isDefault)
A C++ ripoff of the stroke library for MythTV.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)