|
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) |
Public Member Functions inherited from MythMediaOverlay | |
| MythMediaOverlay (MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter) | |
| ~MythMediaOverlay () override | |
| void | SetPlayer (MythPlayerUI *Player) |
| virtual bool | Init (QRect Rect, float FontAspect) |
| QRect | Bounds () const |
| int | GetFontStretch () const |
| bool | HasWindow (const QString &Window) |
| virtual MythScreenType * | GetWindow (const QString &Window) |
| virtual void | HideWindow (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) |
| void | DoPulse (const QDateTime &now, const QDateTime &expire) |
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 | |
Protected Member Functions inherited from MythMediaOverlay | |
| virtual void | TearDown () |
| void | OverrideUIScale (bool Log=true) |
| void | RevertUIScale () |
| MythScreenType * | InitWindow (const QString &Window, MythScreenType *Screen) |
Protected Attributes inherited from MythMediaOverlay | |
| 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 | ||
| ) |
|
private |
Definition at line 832 of file osd.cpp.
Referenced by DialogShow(), and ShowDialog().
| void OSD::DialogGetText | ( | InfoMap & | Map | ) |
Definition at line 850 of file osd.cpp.
Referenced by TV::HandleOSDChannelEdit().
| bool OSD::DialogHandleGesture | ( | MythGestureEvent * | Event | ) |
Definition at line 727 of file osd.cpp.
Referenced by TV::ProcessKeypressOrGesture().
| bool OSD::DialogHandleKeypress | ( | QKeyEvent * | Event | ) |
Definition at line 720 of file osd.cpp.
Referenced by TV::ProcessKeypressOrGesture().
|
slot |
Definition at line 734 of file osd.cpp.
Referenced by CheckExpiry(), DialogShow(), MythPlayerEditorUI::EnableEdit(), and MythPlayerOverlayUI::MythPlayerOverlayUI().
|
private |
Definition at line 760 of file osd.cpp.
Referenced by ShowDialog().
| bool OSD::DialogVisible | ( | const QString & | Window = QString() | ) |
Definition at line 713 of file osd.cpp.
Referenced by TV::DialogIsVisible(), TV::HandleEndOfRecordingExitPromptTimerEvent(), TV::HandleVideoExitDialogTimerEvent(), TV::ProcessKeypressOrGesture(), TV::ProcessNetworkControlCommand(), TV::ShowOSDPromptDeleteRecording(), and TV::UpdateOSDTimeoutMessage().
|
private |
Definition at line 613 of file osd.cpp.
Referenced by CheckExpiry().
| void OSD::Draw | ( | void | ) |
Definition at line 453 of file osd.cpp.
Referenced by MythPlayerUI::RenderVideoFrame().
|
slot |
Definition at line 78 of file osd.cpp.
Referenced by MythPlayerOverlayUI::MythPlayerOverlayUI().
|
slot |
Definition at line 95 of file osd.cpp.
Referenced by DialogShow(), MythPlayerEditorUI::EnableEdit(), Init(), and MythPlayerOverlayUI::MythPlayerOverlayUI().
|
signal |
Referenced by HideWindow(), OSD(), and SetFunctionalWindow().
|
overridevirtual |
Reimplemented from MythMediaOverlay.
Definition at line 689 of file osd.cpp.
Referenced by TVBrowseHelper::BrowseEnd(), MythPlayerUI::ChangeOSDDebug(), CheckExpiry(), HideAll(), TV::HideOSDWindow(), MythPlayerUI::MythPlayerUI(), RemoveWindow(), and DeleteMap::SetEditing().
|
overridevirtual |
Reimplemented from MythMediaOverlay.
Definition at line 51 of file osd.cpp.
Referenced by MythPlayerVideoUI::ReinitOSD(), and MythPlayerUI::VideoStart().
|
protectedslot |
| bool OSD::IsWindowVisible | ( | const QString & | Window | ) |
Definition at line 642 of file osd.cpp.
Referenced by SetExpiry(), TV::timerEvent(), TV::ToggleOSD(), and MythPlayerOverlayUI::UpdateOSDPosition().
|
private |
Definition at line 660 of file osd.cpp.
Referenced by DialogShow(), and LoadWindows().
|
private |
Definition at line 670 of file osd.cpp.
Referenced by DialogQuit().
| void OSD::ResetWindow | ( | const QString & | Window | ) |
Definition at line 650 of file osd.cpp.
Referenced by MythPlayerUI::UpdateOSDDebug(), TV::UpdateOSDStatus(), and MythPlayerOverlayUI::UpdateOSDStatus().
| void OSD::SetExpiry | ( | const QString & | Window, |
| enum OSDTimeout | Timeout, | ||
| std::chrono::milliseconds | CustomTimeout = 0ms |
||
| ) |
Definition at line 575 of file osd.cpp.
Referenced by DialogShow(), HideWindow(), MythNavigationOverlay::keyPressEvent(), SetText(), and SetValues().
|
private |
Definition at line 589 of file osd.cpp.
Referenced by SetExpiry().
| void OSD::SetFunctionalWindow | ( | const QString & | Window, |
| enum OSDFunctionalType | Type | ||
| ) |
Definition at line 681 of file osd.cpp.
Referenced by TV::UpdateOSDStatus(), and MythPlayerOverlayUI::UpdateOSDStatus().
| void OSD::SetGraph | ( | const QString & | Window, |
| const QString & | Graph, | ||
| std::chrono::milliseconds | Timecode | ||
| ) |
Definition at line 438 of file osd.cpp.
Referenced by DeleteMap::UpdateOSD().
| void OSD::SetRegions | ( | const QString & | Window, |
| frm_dir_map_t & | Map, | ||
| long long | Total | ||
| ) |
Definition at line 374 of file osd.cpp.
Referenced by DeleteMap::UpdateOSD().
|
slot |
Definition at line 207 of file osd.cpp.
Referenced by OSD(), MythPlayerOverlayUI::SetOSDStatus(), DeleteMap::UpdateOSD(), MythPlayerUI::UpdateOSDDebug(), MythPlayerOverlayUI::UpdateOSDMessage(), MythPlayerOverlayUI::UpdateOSDPosition(), and MythPlayerOverlayUI::UpdateOSDStatus().
| void OSD::SetValues | ( | const QString & | Window, |
| const QHash< QString, float > & | Map, | ||
| OSDTimeout | Timeout | ||
| ) |
| void OSD::SetValues | ( | const QString & | Window, |
| const QHash< QString, int > & | Map, | ||
| OSDTimeout | Timeout | ||
| ) |
Definition at line 149 of file osd.cpp.
Referenced by MythPlayerOverlayUI::SetOSDStatus(), DeleteMap::UpdateOSD(), MythPlayerOverlayUI::UpdateOSDPosition(), TV::UpdateOSDStatus(), and MythPlayerOverlayUI::UpdateOSDStatus().
|
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 751 of file osd.cpp.
Referenced by OSD().
|
overrideprivatevirtual |
Reimplemented from MythMediaOverlay.
|
private |
Definition at line 148 of file osd.h.
Referenced by CheckExpiry(), DialogAddButton(), DialogBack(), DialogGetText(), DialogHandleGesture(), DialogHandleKeypress(), DialogQuit(), DialogShow(), DialogVisible(), DoPulse(), SetText(), and TearDown().
|
private |
Definition at line 154 of file osd.h.
Referenced by CheckExpiry(), Draw(), and SetExpiryPriv().
|
private |
|
private |
Definition at line 153 of file osd.h.
Referenced by HideWindow(), and SetFunctionalWindow().
|
private |
Definition at line 150 of file osd.h.
Referenced by DialogShow(), and DoPulse().
|
private |
Definition at line 149 of file osd.h.
Referenced by DialogQuit(), DialogShow(), and DoPulse().
|
private |
Definition at line 151 of file osd.h.
Referenced by SetExpiryPriv().