13 (QEvent::Type) QEvent::registerEventType();
25 if (!message.isEmpty())
76 for (
int i = 0; i < actions.size() && !handled; i++)
78 const QString&
action = actions[i];
99 QString
LOC =
"ShowBusyPopup('" + message +
"') - ";
109 s_stk = win->
GetStack(
"popup stack");
112 LOG(VB_GENERAL, LOG_ERR,
LOC +
"no main window?");
118 LOG(VB_GENERAL, LOG_ERR,
LOC +
"no popup stack? "
119 "Is there a MythThemeBase?");
152 for (
int i = 0; i < actions.size() && !handled; i++)
154 const QString&
action = actions[i];
180 LOG(VB_GENERAL, LOG_ERR,
181 "Error, event claims to be a progress update but fails "
186 QString message = pue->GetMessage();
187 if (!message.isEmpty())
189 uint total = pue->GetTotal();
225 LOG(VB_GENERAL, LOG_ERR, QString(
"Progress count (%1) is higher "
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
MythScreenStack * GetStack(const QString &Stackname)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Screen in which all other widgets are contained and rendered.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIText * m_messageText
MythUIBusyDialog(const QString &message, MythScreenStack *parent, const char *name)
bool Create(void) override
void Pulse(void) override
Pulse is called 70 times a second to trigger a single frame of an animation.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void Reset(void) override
Reset the widget to it's original state, should not reset changes made by the theme.
void SetMessage(const QString &message)
MythUIText * m_progressText
MythUIText * m_messageText
void UpdateProgress(void)
void customEvent(QEvent *event) override
MythUIProgressBar * m_progressBar
bool Create(void) override
void SetProgress(uint count)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void SetMessage(const QString &message)
void SetTotal(uint total)
All purpose text widget, displays a text string.
virtual void SetText(const QString &text)
virtual void Pulse(void)
Pulse is called 70 times a second to trigger a single frame of an animation.
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
~ProgressUpdateEvent() override
static const Type kEventType
static bool CopyWindowFromBase(const QString &windowname, MythScreenType *win)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
MythUIBusyDialog * ShowBusyPopup(const QString &message)