27 QGuiApplication::setOverrideCursor(QCursor(Qt::BlankCursor));
35 QGuiApplication::restoreOverrideCursor();
60 m_url.replace(
"mythflash://",
"http://");
61 LOG(VB_GENERAL, LOG_INFO, QString(
"Opening %1").arg(
m_url));
78 for (
int i = 0; i < actions.size() && !handled; i++)
80 const QString&
action = actions[i];
87 else if (
action ==
"SEEKFFWD")
89 else if (
action ==
"SEEKRWND")
91 else if (
action ==
"CHANNELUP")
93 else if (
action ==
"CHANNELDOWN")
95 else if (
action ==
"VOLUMEUP")
97 else if (
action ==
"VOLUMEDOWN")
~MythFlashPlayer() override
MythFlashPlayer(MythScreenStack *parent, QStringList &urlList)
MythUIWebBrowser * m_browser
void runJavaScript(const QString &source)
bool Create(void) override
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
static void DisableScreensaver()
void PauseIdleTimer(bool Pause)
Pause the idle timeout timer.
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
static void RestoreScreensaver()
Wrapper around QRect allowing us to handle percentage and other relative values for areas in mythui.
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool SetFocusWidget(MythUIType *widget=nullptr)
virtual void SetArea(const MythRect &rect)
void DeleteChild(const QString &name)
Delete a named child of this UIType.
virtual bool keyPressEvent(QKeyEvent *event)
Key event handler.
void LoadPage(const QUrl &url)
Loads the specified url and displays it.
void Init(void)
Initializes the widget ready for use.
void RunJavaScript(const QString &scriptSource)
void SetActive(bool active)
Toggles the active state of the widget.
static int GetSetting(const QString &name, const QString &field, int defval)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)