MythTV
master
|
#include <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) |
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, int CustomTimeout=0) |
void | ResetWindow (const QString &Window) |
void | Draw (QRect Rect) |
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, int64_t 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="", int UpdateFor=0) |
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, int CustomTimeout) |
Private Attributes | |
int | m_fadeTime { kOSDFadeTime } |
MythScreenType * | m_dialog { nullptr } |
QString | m_pulsedDialogText { } |
QDateTime | m_nextPulseUpdate { } |
std::array< int, 4 > | m_timeouts { -1, 3000, 5000, 13000 } |
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 204 of file osd.cpp.
Referenced by OSD(), MythPlayerOverlayUI::SetOSDStatus(), DeleteMap::UpdateOSD(), MythPlayerUI::UpdateOSDDebug(), MythPlayerOverlayUI::UpdateOSDMessage(), MythPlayerOverlayUI::UpdateOSDPosition(), and MythPlayerOverlayUI::UpdateOSDStatus().
|
slot |
Definition at line 704 of file osd.cpp.
Referenced by CheckExpiry(), DialogShow(), MythPlayerUI::EnableEdit(), and MythPlayerOverlayUI::MythPlayerOverlayUI().
|
slot |
Definition at line 89 of file osd.cpp.
Referenced by DialogShow(), MythPlayerUI::EnableEdit(), Init(), and 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 721 of file osd.cpp.
Referenced by OSD().
|
protectedslot |
|
overridevirtual |
Reimplemented from MythMediaOverlay.
Definition at line 50 of file osd.cpp.
Referenced by MythPlayerVideoUI::ReinitOSD(), and MythPlayerUI::VideoStart().
|
overridevirtual |
Reimplemented from MythMediaOverlay.
Definition at line 659 of file osd.cpp.
Referenced by TVBrowseHelper::BrowseEnd(), MythPlayerUI::ChangeOSDDebug(), CheckExpiry(), HideAll(), MythPlayerUI::MythPlayerUI(), RemoveWindow(), and DeleteMap::SetEditing().
void OSD::SetFunctionalWindow | ( | const QString & | Window, |
enum OSDFunctionalType | Type | ||
) |
Definition at line 651 of file osd.cpp.
Referenced by MythPlayerOverlayUI::UpdateOSDStatus(), and TV::UpdateOSDStatus().
void OSD::SetExpiry | ( | const QString & | Window, |
enum OSDTimeout | Timeout, | ||
int | CustomTimeout = 0 |
||
) |
Definition at line 579 of file osd.cpp.
Referenced by DialogShow(), HideWindow(), MythNavigationOverlay::keyPressEvent(), SetText(), and SetValues().
void OSD::ResetWindow | ( | const QString & | Window | ) |
Definition at line 620 of file osd.cpp.
Referenced by MythPlayerUI::UpdateOSDDebug(), MythPlayerOverlayUI::UpdateOSDStatus(), and TV::UpdateOSDStatus().
void OSD::Draw | ( | QRect | Rect | ) |
Definition at line 450 of file osd.cpp.
Referenced by VideoOutputD3D::RenderFrame(), and MythVideoOutputGPU::RenderOverlays().
void OSD::SetValues | ( | const QString & | Window, |
const QHash< QString, int > & | Map, | ||
OSDTimeout | Timeout | ||
) |
Definition at line 146 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 369 of file osd.cpp.
Referenced by DeleteMap::UpdateOSD().
void OSD::SetGraph | ( | const QString & | Window, |
const QString & | Graph, | ||
int64_t | Timecode | ||
) |
Definition at line 435 of file osd.cpp.
Referenced by DeleteMap::UpdateOSD().
bool OSD::IsWindowVisible | ( | const QString & | Window | ) |
Definition at line 612 of file osd.cpp.
Referenced by SetExpiry(), TV::timerEvent(), TV::ToggleOSD(), and MythPlayerOverlayUI::UpdateOSDPosition().
bool OSD::DialogVisible | ( | const QString & | Window = QString() | ) |
Definition at line 683 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 690 of file osd.cpp.
Referenced by TV::ProcessKeypressOrGesture().
bool OSD::DialogHandleGesture | ( | MythGestureEvent * | Event | ) |
Definition at line 697 of file osd.cpp.
Referenced by TV::ProcessKeypressOrGesture().
void OSD::DialogGetText | ( | InfoMap & | Map | ) |
Definition at line 820 of file osd.cpp.
Referenced by TV::HandleOSDChannelEdit().
|
private |
Definition at line 630 of file osd.cpp.
Referenced by DialogShow(), and LoadWindows().
|
private |
Definition at line 640 of file osd.cpp.
Referenced by DialogQuit().
|
private |
Definition at line 730 of file osd.cpp.
Referenced by ShowDialog().
|
private |
Definition at line 802 of file osd.cpp.
Referenced by DialogShow(), and ShowDialog().
|
overrideprivatevirtual |
Reimplemented from MythMediaOverlay.
|
private |
Definition at line 593 of file osd.cpp.
Referenced by SetExpiry().
|
private |
|
private |
Definition at line 146 of file osd.h.
Referenced by CheckExpiry(), DialogAddButton(), DialogBack(), DialogGetText(), DialogHandleGesture(), DialogHandleKeypress(), DialogQuit(), DialogShow(), DialogVisible(), SetText(), and TearDown().
|
private |
Definition at line 147 of file osd.h.
Referenced by CheckExpiry(), DialogQuit(), and DialogShow().
|
private |
Definition at line 148 of file osd.h.
Referenced by CheckExpiry(), and DialogShow().
|
private |
Definition at line 149 of file osd.h.
Referenced by SetExpiryPriv().
|
private |
Definition at line 151 of file osd.h.
Referenced by HideWindow(), and SetFunctionalWindow().
|
private |
Definition at line 152 of file osd.h.
Referenced by CheckExpiry(), Draw(), and SetExpiryPriv().