Go to the documentation of this file.
4 #include <QCoreApplication>
53 LOG(VB_GENERAL, LOG_ERR,
"ScreenWizard, Error: "
54 "Could not instantiate, please check appear-ui.xml for errors");
79 for (
int i = 0; i < actions.size() && !handled; i++)
81 QString
action = actions[i];
104 else if (
action ==
"LEFT")
111 else if (
action ==
"RIGHT")
118 else if (
action ==
"MENU")
120 else if (
action ==
"ESCAPE")
233 QString label = tr(
"Options");
266 QString label = tr(
"Exit Options");
306 LOG(VB_GENERAL, LOG_ERR,
"Updating screen size settings");
343 QString resultid = dce->GetId();
344 int buttonnum = dce->GetResult();
346 if (resultid ==
"save")
350 else if (buttonnum == 1)
352 else if (buttonnum == 2)
355 else if (resultid ==
"nosave")
362 else if (resultid ==
"quit")
void SetReturnEvent(QObject *retobject, const QString &resultid)
MythDialogBox * m_menuPopup
Image widget, displays a single image or multiple images in sequence.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
static constexpr int kMinHeight
bool anythingChanged() const
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
virtual void SetArea(const MythRect &rect)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
Wrapper around QRect allowing us to handle percentage and other relative values for areas in mythui.
ScreenWizard(MythScreenStack *parent, const char *name)
MythUIType * GetFocusWidget(void) const
static void slotResetSettings()
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
void AddButton(const QString &title)
Basic menu dialog, message and a list of options.
bool Create(void) override
bool Create(void) override
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
static constexpr int kMinWidth
void SetInitialSettings(int _x, int _y, int _w, int _h)
A widget for rendering primitive shapes and lines.
void slotChangeCoarseFine()
All purpose text widget, displays a text string.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
Event dispatched from MythUI modal dialogs to a listening class containing a result of some form.
virtual void SetText(const QString &text)
static const Type kEventType
MythMainWindow * GetMythMainWindow(void)
MythScreenStack * GetStack(const QString &Stackname)
void SaveSetting(const QString &key, int newValue)
void customEvent(QEvent *event) override
void slotSaveSettings() const
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
MythUIText * m_changeAmount