MythTV
master
|
#include <libmythtv/osd.h>
Public Slots | |
void | SetText (const QString &Window, const InfoMap &Map, OSDTimeout Timeout) |
void | DialogQuit () |
void | HideAll (bool KeepSubs=true, MythScreenType *Except=nullptr, bool DropNotification=false) |
void | Embed (bool Embedding) |
Signals | |
void | HideOSD (OSDFunctionalType Type) |
Public Member Functions | |
OSD (MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter) | |
~OSD () override | |
bool | Init (QRect Rect, float FontAspect) override |
void | HideWindow (const QString &Window) override |
void | SetFunctionalWindow (const QString &Window, enum OSDFunctionalType Type) |
void | SetExpiry (const QString &Window, enum OSDTimeout Timeout, std::chrono::milliseconds CustomTimeout=0ms) |
void | ResetWindow (const QString &Window) |
void | Draw () |
void | SetValues (const QString &Window, const QHash< QString, int > &Map, OSDTimeout Timeout) |
void | SetValues (const QString &Window, const QHash< QString, float > &Map, OSDTimeout Timeout) |
void | SetRegions (const QString &Window, frm_dir_map_t &Map, long long Total) |
void | SetGraph (const QString &Window, const QString &Graph, std::chrono::milliseconds Timecode) |
bool | IsWindowVisible (const QString &Window) |
bool | DialogVisible (const QString &Window=QString()) |
bool | DialogHandleKeypress (QKeyEvent *Event) |
bool | DialogHandleGesture (MythGestureEvent *Event) |
void | DialogGetText (InfoMap &Map) |
![]() | |
MythMediaOverlay (MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter) | |
~MythMediaOverlay () override | |
void | SetPlayer (MythPlayerUI *Player) |
QRect | Bounds () const |
int | GetFontStretch () const |
bool | HasWindow (const QString &Window) |
virtual MythScreenType * | GetWindow (const QString &Window) |
Protected Slots | |
void | ShowDialog (const MythOSDDialogData &Data) |
Show a dialog menu, removing any existing dialog. More... | |
void | IsOSDVisible (bool &Visible) |
Private Member Functions | |
void | PositionWindow (MythScreenType *Window) |
void | RemoveWindow (const QString &Window) |
void | DialogShow (const QString &Window, const QString &Text="", std::chrono::milliseconds UpdateFor=0ms) |
void | DialogAddButton (const QString &Text, QVariant Data, bool Menu=false, bool Current=false) |
void | DialogBack (const QString &Text="", const QVariant &Data=0, bool Exit=false) |
void | TearDown () override |
void | LoadWindows () |
void | CheckExpiry () |
void | SetExpiryPriv (const QString &Window, enum OSDTimeout Timeout, std::chrono::milliseconds CustomTimeout) |
Private Attributes | |
bool | m_embedded { false } |
std::chrono::milliseconds | m_fadeTime { kOSDFadeTime } |
MythScreenType * | m_dialog { nullptr } |
QString | m_pulsedDialogText |
QDateTime | m_nextPulseUpdate |
std::array< std::chrono::milliseconds, 4 > | m_timeouts { -1ms, 3s, 5s, 13s } |
QString | m_functionalWindow |
QHash< MythScreenType *, QDateTime > | m_expireTimes |
Additional Inherited Members | |
![]() | |
void | OverrideUIScale (bool Log=true) |
void | RevertUIScale () |
MythScreenType * | InitWindow (const QString &Window, MythScreenType *Screen) |
![]() | |
MythMainWindow * | m_mainWindow { nullptr } |
TV * | m_tv { nullptr } |
MythPlayerUI * | m_player { nullptr } |
MythPainter * | m_painter { nullptr } |
QRect | m_rect |
bool | m_uiScaleOverride { false } |
float | m_savedWMult { 1.0F } |
float | m_savedHMult { 1.0F } |
QRect | m_savedUIRect |
int | m_fontStretch { 0 } |
int | m_savedFontStretch { 0 } |
QMap< QString, MythScreenType * > | m_children |
OSD::OSD | ( | MythMainWindow * | MainWindow, |
TV * | Tv, | ||
MythPlayerUI * | Player, | ||
MythPainter * | Painter | ||
) |
|
signal |
Referenced by HideWindow(), OSD(), and SetFunctionalWindow().
|
slot |
Definition at line 210 of file osd.cpp.
Referenced by OSD(), MythPlayerOverlayUI::SetOSDStatus(), DeleteMap::UpdateOSD(), MythPlayerUI::UpdateOSDDebug(), MythPlayerOverlayUI::UpdateOSDMessage(), MythPlayerOverlayUI::UpdateOSDPosition(), and MythPlayerOverlayUI::UpdateOSDStatus().
|
slot |
Definition at line 720 of file osd.cpp.
Referenced by CheckExpiry(), DialogShow(), MythPlayerEditorUI::EnableEdit(), and MythPlayerOverlayUI::MythPlayerOverlayUI().
|
slot |
Definition at line 95 of file osd.cpp.
Referenced by DialogShow(), MythPlayerEditorUI::EnableEdit(), Init(), and MythPlayerOverlayUI::MythPlayerOverlayUI().
|
slot |
Definition at line 78 of file osd.cpp.
Referenced by MythPlayerOverlayUI::MythPlayerOverlayUI().
|
protectedslot |
Show a dialog menu, removing any existing dialog.
This slot deliberately uses a const reference despite the minor performance penalty. This simplifies memory management (e.g. if the signal is not delivered when there is no OSD) and allows for possible future changes where the OSD and TV objects do not reside in the same thread.
Definition at line 737 of file osd.cpp.
Referenced by OSD().
|
protectedslot |
|
overridevirtual |
Reimplemented from MythMediaOverlay.
Definition at line 51 of file osd.cpp.
Referenced by MythPlayerVideoUI::ReinitOSD(), and MythPlayerUI::VideoStart().
|
overridevirtual |
Reimplemented from MythMediaOverlay.
Definition at line 675 of file osd.cpp.
Referenced by TVBrowseHelper::BrowseEnd(), MythPlayerUI::ChangeOSDDebug(), CheckExpiry(), HideAll(), TV::HideOSDWindow(), MythPlayerUI::MythPlayerUI(), RemoveWindow(), and DeleteMap::SetEditing().
void OSD::SetFunctionalWindow | ( | const QString & | Window, |
enum OSDFunctionalType | Type | ||
) |
Definition at line 667 of file osd.cpp.
Referenced by MythPlayerOverlayUI::UpdateOSDStatus(), and TV::UpdateOSDStatus().
void OSD::SetExpiry | ( | const QString & | Window, |
enum OSDTimeout | Timeout, | ||
std::chrono::milliseconds | CustomTimeout = 0ms |
||
) |
Definition at line 590 of file osd.cpp.
Referenced by DialogShow(), HideWindow(), MythNavigationOverlay::keyPressEvent(), SetText(), and SetValues().
void OSD::ResetWindow | ( | const QString & | Window | ) |
Definition at line 636 of file osd.cpp.
Referenced by MythPlayerUI::UpdateOSDDebug(), MythPlayerOverlayUI::UpdateOSDStatus(), and TV::UpdateOSDStatus().
void OSD::Draw | ( | ) |
Definition at line 458 of file osd.cpp.
Referenced by MythPlayerUI::RenderVideoFrame().
void OSD::SetValues | ( | const QString & | Window, |
const QHash< QString, int > & | Map, | ||
OSDTimeout | Timeout | ||
) |
Definition at line 152 of file osd.cpp.
Referenced by MythPlayerOverlayUI::SetOSDStatus(), DeleteMap::UpdateOSD(), MythPlayerOverlayUI::UpdateOSDPosition(), MythPlayerOverlayUI::UpdateOSDStatus(), and TV::UpdateOSDStatus().
void OSD::SetValues | ( | const QString & | Window, |
const QHash< QString, float > & | Map, | ||
OSDTimeout | Timeout | ||
) |
void OSD::SetRegions | ( | const QString & | Window, |
frm_dir_map_t & | Map, | ||
long long | Total | ||
) |
Definition at line 377 of file osd.cpp.
Referenced by DeleteMap::UpdateOSD().
void OSD::SetGraph | ( | const QString & | Window, |
const QString & | Graph, | ||
std::chrono::milliseconds | Timecode | ||
) |
Definition at line 443 of file osd.cpp.
Referenced by DeleteMap::UpdateOSD().
bool OSD::IsWindowVisible | ( | const QString & | Window | ) |
Definition at line 628 of file osd.cpp.
Referenced by SetExpiry(), TV::timerEvent(), TV::ToggleOSD(), and MythPlayerOverlayUI::UpdateOSDPosition().
bool OSD::DialogVisible | ( | const QString & | Window = QString() | ) |
Definition at line 699 of file osd.cpp.
Referenced by TV::DialogIsVisible(), TV::HandleEndOfRecordingExitPromptTimerEvent(), TV::HandleVideoExitDialogTimerEvent(), TV::ProcessKeypressOrGesture(), TV::ProcessNetworkControlCommand(), TV::ShowOSDPromptDeleteRecording(), and TV::UpdateOSDTimeoutMessage().
bool OSD::DialogHandleKeypress | ( | QKeyEvent * | Event | ) |
Definition at line 706 of file osd.cpp.
Referenced by TV::ProcessKeypressOrGesture().
bool OSD::DialogHandleGesture | ( | MythGestureEvent * | Event | ) |
Definition at line 713 of file osd.cpp.
Referenced by TV::ProcessKeypressOrGesture().
void OSD::DialogGetText | ( | InfoMap & | Map | ) |
Definition at line 836 of file osd.cpp.
Referenced by TV::HandleOSDChannelEdit().
|
private |
Definition at line 646 of file osd.cpp.
Referenced by DialogShow(), and LoadWindows().
|
private |
Definition at line 656 of file osd.cpp.
Referenced by DialogQuit().
|
private |
Definition at line 746 of file osd.cpp.
Referenced by ShowDialog().
|
private |
Definition at line 818 of file osd.cpp.
Referenced by DialogShow(), and ShowDialog().
|
overrideprivatevirtual |
Reimplemented from MythMediaOverlay.
|
private |
Definition at line 604 of file osd.cpp.
Referenced by SetExpiry().
|
private |
|
private |
Definition at line 147 of file osd.h.
Referenced by CheckExpiry(), DialogAddButton(), DialogBack(), DialogGetText(), DialogHandleGesture(), DialogHandleKeypress(), DialogQuit(), DialogShow(), DialogVisible(), SetText(), and TearDown().
|
private |
Definition at line 148 of file osd.h.
Referenced by CheckExpiry(), DialogQuit(), and DialogShow().
|
private |
Definition at line 149 of file osd.h.
Referenced by CheckExpiry(), and DialogShow().
|
private |
Definition at line 150 of file osd.h.
Referenced by SetExpiryPriv().
|
private |
Definition at line 152 of file osd.h.
Referenced by HideWindow(), and SetFunctionalWindow().
|
private |
Definition at line 153 of file osd.h.
Referenced by CheckExpiry(), Draw(), and SetExpiryPriv().