13 m_mainWindow(MainWindow),
54 for (
int i = 0; i < 100 ; i++)
64 for (
auto * child : std::as_const(*children))
82 bool extendtimeout =
true;
94 for (
int i = 0; i < actions.size() && !handled; i++)
96 const QString&
action = actions[i];
101 extendtimeout =
false;
123 QCoreApplication::postEvent(
m_tv, dce);
178 QString name =
current->objectName();
180 int hashPos = name.indexOf(
'#');
182 name.truncate(hashPos);
185 if (name ==
"unmute")
200 if (group !=
nullptr)
208 if (group !=
nullptr)
An action (for this plugin) consists of a description, and a set of key sequences.
Event dispatched from MythUI modal dialogs to a listening class containing a result of some form.
A simple wrapper around audio state used to signal changes in the current state.
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
MythAudioState m_audioState
MythMainWindow * m_mainWindow
void SendResult(int Result, const QString &Action)
bool keyPressEvent(QKeyEvent *Event) override
Key event handler.
void PauseChanged(bool Paused)
MythNavigationOverlay(MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, const QString &Name, OSD *Osd)
MythUIButton * m_muteButton
void AudioStateChanged(const MythAudioState &AudioState)
MythUIButton * m_pauseButton
MythUIButton * m_unMuteButton
MythUIButton * m_playButton
void AudioStateChanged(MythAudioState State)
bool IsPaused(void) const
void PauseChanged(bool Paused)
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
MythUIType * GetFocusWidget(void) const
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool SetFocusWidget(MythUIType *widget=nullptr)
Create a group of widgets.
The base class on which all widgets and screens are based.
QList< MythUIType * > * GetAllChildren(void)
Return a list of all child widgets.
virtual void SetVisible(bool visible)
void SetExpiry(const QString &Window, enum OSDTimeout Timeout, std::chrono::milliseconds CustomTimeout=0ms)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
static constexpr const char * OSD_DLG_NAVIGATE
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)