|
MythTV
0.25-pre
|
#include <osd.h>
Public Member Functions | |
| OSD (MythPlayer *player, QObject *parent, MythPainter *painter) | |
| ~OSD () | |
| bool | Init (const QRect &rect, float font_aspect) |
| void | SetPainter (MythPainter *painter) |
| QRect | Bounds (void) const |
| int | GetFontStretch (void) const |
| void | OverrideUIScale (void) |
| void | RevertUIScale (void) |
| bool | Reinit (const QRect &rect, float font_aspect) |
| void | DisableFade (void) |
| void | SetFunctionalWindow (const QString window, enum OSDFunctionalType type) |
| void | SetTimeouts (int _short, int _medium, int _long) |
| bool | IsVisible (void) |
| void | HideAll (bool keepsubs=true, MythScreenType *except=NULL) |
| MythScreenType * | GetWindow (const QString &window) |
| void | SetExpiry (const QString &window, enum OSDTimeout timeout, int custom_timeout=0) |
| void | HideWindow (const QString &window) |
| bool | HasWindow (const QString &window) |
| void | ResetWindow (const QString &window) |
| void | PositionWindow (MythScreenType *window) |
| void | RemoveWindow (const QString &window) |
| bool | DrawDirect (MythPainter *painter, QSize size, bool repaint=false) |
| QRegion | Draw (MythPainter *painter, QPaintDevice *device, QSize size, QRegion &changed, int alignx=0, int aligny=0) |
| void | SetValues (const QString &window, QHash< QString, int > &map, OSDTimeout timeout) |
| void | SetValues (const QString &window, QHash< QString, float > &map, OSDTimeout timeout) |
| void | SetText (const QString &window, QHash< QString, QString > &map, OSDTimeout timeout) |
| void | SetRegions (const QString &window, frm_dir_map_t &map, long long total) |
| bool | IsWindowVisible (const QString &window) |
| bool | DialogVisible (QString window=QString()) |
| bool | DialogHandleKeypress (QKeyEvent *e) |
| void | DialogQuit (void) |
| void | DialogShow (const QString &window, const QString &text="", int updatefor=0) |
| void | DialogSetText (const QString &text) |
| void | DialogBack (QString text="", QVariant data=0, bool exit=false) |
| void | DialogAddButton (QString text, QVariant data, bool menu=false, bool current=false) |
| void | DialogGetText (QHash< QString, QString > &map) |
| TeletextScreen * | InitTeletext (void) |
| void | EnableTeletext (bool enable, int page) |
| bool | TeletextAction (const QString &action) |
| void | TeletextReset (void) |
| void | TeletextClear (void) |
| SubtitleScreen * | InitSubtitles (void) |
| void | EnableSubtitles (int type, bool forced_only=false) |
| void | DisableForcedSubtitles (void) |
| void | ClearSubtitles (void) |
| void | DisplayDVDButton (AVSubtitle *dvdButton, QRect &pos) |
| void | DisplayBDOverlay (BDOverlay *overlay) |
Private Member Functions | |
| void | TearDown (void) |
| void | LoadWindows (void) |
| void | CheckExpiry (void) |
| void | SendHideEvent (void) |
Private Attributes | |
| MythPlayer * | m_parent |
| QObject * | m_ParentObject |
| MythPainter * | m_CurrentPainter |
| QRect | m_Rect |
| bool | m_Effects |
| int | m_FadeTime |
| MythScreenType * | m_Dialog |
| QString | m_PulsedDialogText |
| QDateTime | m_NextPulseUpdate |
| bool | m_Refresh |
| int | m_Timeouts [4] |
| bool | m_UIScaleOverride |
| float | m_SavedWMult |
| float | m_SavedHMult |
| QRect | m_SavedUIRect |
| int | m_fontStretch |
| int | m_savedFontStretch |
| enum OSDFunctionalType | m_FunctionalType |
| QString | m_FunctionalWindow |
| QMap< QString, MythScreenType * > | m_Children |
| QHash< MythScreenType *, QDateTime > | m_ExpireTimes |
| OSD::OSD | ( | MythPlayer * | player, |
| QObject * | parent, | ||
| MythPainter * | painter | ||
| ) |
Definition at line 177 of file osd.cpp.
Referenced by Reinit(), and MythPlayer::VideoStart().
| void OSD::SetPainter | ( | MythPainter * | painter | ) |
Definition at line 199 of file osd.cpp.
Referenced by MythPlayer::ReinitOSD(), and MythPlayer::ReinitVideo().
| QRect OSD::Bounds | ( | void | ) | const [inline] |
Definition at line 129 of file osd.h.
Referenced by MythPlayer::ReinitOSD().
| int OSD::GetFontStretch | ( | void | ) | const [inline] |
Definition at line 130 of file osd.h.
Referenced by MythPlayer::ReinitOSD().
Definition at line 213 of file osd.cpp.
Referenced by DialogShow(), Init(), InitSubtitles(), and InitTeletext().
Definition at line 239 of file osd.cpp.
Referenced by DialogShow(), Init(), InitSubtitles(), and InitTeletext().
| bool OSD::Reinit | ( | const QRect & | rect, |
| float | font_aspect | ||
| ) |
Definition at line 250 of file osd.cpp.
Referenced by MythPlayer::ReinitOSD().
| void OSD::DisableFade | ( | void | ) | [inline] |
Definition at line 134 of file osd.h.
Referenced by VideoOutput::InitOSD().
| void OSD::SetFunctionalWindow | ( | const QString | window, |
| enum OSDFunctionalType | type | ||
| ) |
Definition at line 874 of file osd.cpp.
Referenced by TV::UpdateOSDStatus().
| void OSD::SetTimeouts | ( | int | _short, |
| int | _medium, | ||
| int | _long | ||
| ) |
| bool OSD::IsVisible | ( | void | ) |
Definition at line 267 of file osd.cpp.
Referenced by TV::ActiveHandleAction().
| void OSD::HideAll | ( | bool | keepsubs = true, |
| MythScreenType * | except = NULL |
||
| ) |
Definition at line 280 of file osd.cpp.
Referenced by TV::ClearOSD(), DialogShow(), MythPlayer::EnableEdit(), Init(), Reinit(), TV::timerEvent(), TV::ToggleOSD(), and TV::UpdateOSDProgInfo().
| MythScreenType * OSD::GetWindow | ( | const QString & | window | ) |
Definition at line 833 of file osd.cpp.
Referenced by DisplayBDOverlay(), MythPlayer::PreProcessNormalFrame(), SetExpiry(), SetRegions(), SetText(), and SetValues().
| void OSD::SetExpiry | ( | const QString & | window, |
| enum OSDTimeout | timeout, | ||
| int | custom_timeout = 0 |
||
| ) |
Definition at line 768 of file osd.cpp.
Referenced by TV::customEvent(), DialogShow(), HideWindow(), SetText(), and SetValues().
| void OSD::HideWindow | ( | const QString & | window | ) |
Definition at line 884 of file osd.cpp.
Referenced by TVBrowseHelper::BrowseEnd(), CheckExpiry(), HideAll(), InitTeletext(), RemoveWindow(), DeleteMap::SetEditing(), TV::ToggleOSDDebug(), and MythPlayer::WaitForSeek().
| bool OSD::HasWindow | ( | const QString & | window | ) |
Definition at line 912 of file osd.cpp.
Referenced by ClearSubtitles(), DisableForcedSubtitles(), TeletextAction(), TeletextClear(), TeletextReset(), and TV::ToggleOSD().
| void OSD::ResetWindow | ( | const QString & | window | ) |
Definition at line 804 of file osd.cpp.
Referenced by TV::UpdateOSDDebug(), and TV::UpdateOSDStatus().
| void OSD::PositionWindow | ( | MythScreenType * | window | ) |
Definition at line 812 of file osd.cpp.
Referenced by DialogShow(), and LoadWindows().
| void OSD::RemoveWindow | ( | const QString & | window | ) |
Definition at line 822 of file osd.cpp.
Referenced by DialogQuit().
| bool OSD::DrawDirect | ( | MythPainter * | painter, |
| QSize | size, | ||
| bool | repaint = false |
||
| ) |
Definition at line 576 of file osd.cpp.
Referenced by VideoOutputOpenGL::PrepareFrame(), VideoOutputD3D::PrepareFrame(), and VideoOutputVDPAU::PrepareFrame().
| QRegion OSD::Draw | ( | MythPainter * | painter, |
| QPaintDevice * | device, | ||
| QSize | size, | ||
| QRegion & | changed, | ||
| int | alignx = 0, |
||
| int | aligny = 0 |
||
| ) |
Definition at line 627 of file osd.cpp.
Referenced by VideoOutput::DisplayOSD(), and ChromaKeyOSD::ProcessOSD().
| void OSD::SetValues | ( | const QString & | window, |
| QHash< QString, int > & | map, | ||
| OSDTimeout | timeout | ||
| ) |
Definition at line 327 of file osd.cpp.
Referenced by MythPlayer::SetOSDStatus(), TV::timerEvent(), DeleteMap::UpdateOSD(), and TV::UpdateOSDStatus().
| void OSD::SetValues | ( | const QString & | window, |
| QHash< QString, float > & | map, | ||
| OSDTimeout | timeout | ||
| ) |
| void OSD::SetText | ( | const QString & | window, |
| QHash< QString, QString > & | map, | ||
| OSDTimeout | timeout | ||
| ) |
Definition at line 371 of file osd.cpp.
Referenced by TV::customEvent(), TV::HandleOSDChannelEdit(), TV::RunLoadDDMap(), MythPlayer::SetOSDMessage(), MythPlayer::SetOSDStatus(), TV::ShowOSDCutpoint(), TV::StartChannelEditMode(), TV::timerEvent(), TV::ToggleRecord(), DeleteMap::UpdateOSD(), TV::UpdateOSDDebug(), TV::UpdateOSDProgInfo(), TV::UpdateOSDSignal(), and TV::UpdateOSDStatus().
| void OSD::SetRegions | ( | const QString & | window, |
| frm_dir_map_t & | map, | ||
| long long | total | ||
| ) |
Definition at line 509 of file osd.cpp.
Referenced by DeleteMap::UpdateOSD().
| bool OSD::IsWindowVisible | ( | const QString & | window | ) |
Definition at line 796 of file osd.cpp.
Referenced by TV::customEvent(), TV::timerEvent(), TV::ToggleOSD(), and TV::ToggleOSDDebug().
| bool OSD::DialogVisible | ( | QString | window = QString() | ) |
Definition at line 917 of file osd.cpp.
Referenced by TV::DialogIsVisible(), TV::HandleEndOfRecordingExitPromptTimerEvent(), TV::HandleVideoExitDialogTimerEvent(), TV::ProcessKeypress(), TV::ProcessNetworkControlCommand(), TV::RunLoadDDMap(), TV::ShowOSDPromptDeleteRecording(), and TV::UpdateOSDTimeoutMessage().
| bool OSD::DialogHandleKeypress | ( | QKeyEvent * | e | ) |
Definition at line 925 of file osd.cpp.
Referenced by TV::ProcessKeypress().
| void OSD::DialogQuit | ( | void | ) |
Definition at line 932 of file osd.cpp.
Referenced by CheckExpiry(), TV::ClearOSD(), DialogShow(), MythPlayer::EnableEdit(), TV::HandleVideoExitDialogTimerEvent(), TV::OSDDialogEvent(), TV::ShowOSDAlreadyEditing(), TV::StartChannelEditMode(), TV::timerEvent(), and TV::UpdateOSDTimeoutMessage().
| void OSD::DialogShow | ( | const QString & | window, |
| const QString & | text = "", |
||
| int | updatefor = 0 |
||
| ) |
Definition at line 942 of file osd.cpp.
Referenced by TV::customEvent(), TV::FillOSDMenuJumpRec(), TV::ShowNoRecorderDialog(), TV::ShowOSDAlreadyEditing(), TV::ShowOSDAskAllow(), TV::ShowOSDCutpoint(), TV::ShowOSDIdle(), TV::ShowOSDMenu(), TV::ShowOSDPromptDeleteRecording(), TV::ShowOSDSleep(), TV::ShowOSDStopWatchingRecording(), TV::StartChannelEditMode(), and TV::UpdateOSDTimeoutMessage().
| void OSD::DialogSetText | ( | const QString & | text | ) |
Definition at line 1012 of file osd.cpp.
Referenced by DialogShow(), and TV::ShowOSDMenu().
| void OSD::DialogBack | ( | QString | text = "", |
| QVariant | data = 0, |
||
| bool | exit = false |
||
| ) |
Definition at line 1019 of file osd.cpp.
Referenced by DialogShow(), TV::FillOSDMenuJumpRec(), TV::ShowOSDAlreadyEditing(), TV::ShowOSDCutpoint(), TV::ShowOSDMenu(), TV::ShowOSDPromptDeleteRecording(), TV::ShowOSDStopWatchingRecording(), and TV::UpdateOSDTimeoutMessage().
Definition at line 1030 of file osd.cpp.
Referenced by TV::FillOSDMenuAudio(), TV::FillOSDMenuJobs(), TV::FillOSDMenuJumpRec(), TV::FillOSDMenuNavigate(), TV::FillOSDMenuPlayback(), TV::FillOSDMenuSchedule(), TV::FillOSDMenuSource(), TV::FillOSDMenuSubtitles(), TV::FillOSDMenuVideo(), TV::ShowNoRecorderDialog(), TV::ShowOSDAlreadyEditing(), TV::ShowOSDAskAllow(), TV::ShowOSDCutpoint(), TV::ShowOSDIdle(), TV::ShowOSDPromptDeleteRecording(), TV::ShowOSDSleep(), TV::ShowOSDStopWatchingRecording(), and TV::UpdateOSDTimeoutMessage().
| void OSD::DialogGetText | ( | QHash< QString, QString > & | map | ) |
Definition at line 1037 of file osd.cpp.
Referenced by TV::HandleOSDChannelEdit().
Definition at line 1044 of file osd.cpp.
Referenced by EnableTeletext(), and TeletextReset().
| void OSD::EnableTeletext | ( | bool | enable, |
| int | page | ||
| ) |
Definition at line 1083 of file osd.cpp.
Referenced by MythPlayer::DisableTeletext(), and MythPlayer::EnableTeletext().
| bool OSD::TeletextAction | ( | const QString & | action | ) |
Definition at line 1101 of file osd.cpp.
Referenced by MythPlayer::HandleTeletextAction().
Definition at line 1112 of file osd.cpp.
Referenced by MythPlayer::ResetTeletext().
Definition at line 1122 of file osd.cpp.
Referenced by MythPlayer::ResetCaptions().
Definition at line 1132 of file osd.cpp.
Referenced by ClearSubtitles(), DisableForcedSubtitles(), DisplayDVDButton(), and EnableSubtitles().
| void OSD::EnableSubtitles | ( | int | type, |
| bool | forced_only = false |
||
| ) |
Definition at line 1168 of file osd.cpp.
Referenced by MythPlayer::DisableCaptions(), DisplayDVDButton(), MythPlayer::DoEnableForcedSubtitles(), MythPlayer::EnableCaptions(), and MythPlayer::VideoStart().
Definition at line 1175 of file osd.cpp.
Referenced by MythPlayer::DoDisableForcedSubtitles().
Definition at line 1184 of file osd.cpp.
Referenced by MythDVDPlayer::DisplayDVDButton(), and MythPlayer::ResetCaptions().
| void OSD::DisplayDVDButton | ( | AVSubtitle * | dvdButton, |
| QRect & | pos | ||
| ) |
Definition at line 1194 of file osd.cpp.
Referenced by MythDVDPlayer::DisplayDVDButton().
| void OSD::DisplayBDOverlay | ( | BDOverlay * | overlay | ) |
Definition at line 1207 of file osd.cpp.
Referenced by MythBDPlayer::DisplayMenu().
| void OSD::TearDown | ( | void | ) | [private] |
| void OSD::LoadWindows | ( | void | ) | [private] |
| void OSD::CheckExpiry | ( | void | ) | [private] |
Definition at line 730 of file osd.cpp.
Referenced by Draw(), and DrawDirect().
| void OSD::SendHideEvent | ( | void | ) | [private] |
Definition at line 906 of file osd.cpp.
Referenced by HideWindow(), and SetFunctionalWindow().
MythPlayer* OSD::m_parent [private] |
Definition at line 198 of file osd.h.
Referenced by GetWindow(), InitSubtitles(), and InitTeletext().
QObject* OSD::m_ParentObject [private] |
Definition at line 199 of file osd.h.
Referenced by DialogShow(), and SendHideEvent().
MythPainter* OSD::m_CurrentPainter [private] |
Definition at line 200 of file osd.h.
Referenced by DialogShow(), GetWindow(), InitSubtitles(), InitTeletext(), LoadWindows(), and SetPainter().
QRect OSD::m_Rect [private] |
Definition at line 201 of file osd.h.
Referenced by Bounds(), Draw(), Init(), OverrideUIScale(), PositionWindow(), and Reinit().
bool OSD::m_Effects [private] |
Definition at line 202 of file osd.h.
Referenced by DisableFade(), Draw(), and DrawDirect().
int OSD::m_FadeTime [private] |
Definition at line 203 of file osd.h.
Referenced by Draw(), and DrawDirect().
MythScreenType* OSD::m_Dialog [private] |
Definition at line 204 of file osd.h.
Referenced by CheckExpiry(), DialogAddButton(), DialogBack(), DialogGetText(), DialogHandleKeypress(), DialogQuit(), DialogSetText(), DialogShow(), DialogVisible(), SetText(), and TearDown().
QString OSD::m_PulsedDialogText [private] |
Definition at line 205 of file osd.h.
Referenced by CheckExpiry(), DialogQuit(), and DialogShow().
QDateTime OSD::m_NextPulseUpdate [private] |
Definition at line 206 of file osd.h.
Referenced by CheckExpiry(), and DialogShow().
bool OSD::m_Refresh [private] |
Definition at line 207 of file osd.h.
Referenced by Draw(), DrawDirect(), HideWindow(), and Reinit().
int OSD::m_Timeouts[4] [private] |
Definition at line 208 of file osd.h.
Referenced by SetExpiry(), and SetTimeouts().
bool OSD::m_UIScaleOverride [private] |
Definition at line 210 of file osd.h.
Referenced by OverrideUIScale(), and RevertUIScale().
float OSD::m_SavedWMult [private] |
Definition at line 211 of file osd.h.
Referenced by OverrideUIScale(), and RevertUIScale().
float OSD::m_SavedHMult [private] |
Definition at line 212 of file osd.h.
Referenced by OverrideUIScale(), and RevertUIScale().
QRect OSD::m_SavedUIRect [private] |
Definition at line 213 of file osd.h.
Referenced by OverrideUIScale(), and RevertUIScale().
int OSD::m_fontStretch [private] |
Definition at line 214 of file osd.h.
Referenced by GetFontStretch(), Init(), InitSubtitles(), InitTeletext(), OverrideUIScale(), and Reinit().
int OSD::m_savedFontStretch [private] |
Definition at line 215 of file osd.h.
Referenced by OverrideUIScale(), and RevertUIScale().
enum OSDFunctionalType OSD::m_FunctionalType [private] |
Definition at line 217 of file osd.h.
Referenced by HideWindow(), SendHideEvent(), and SetFunctionalWindow().
QString OSD::m_FunctionalWindow [private] |
Definition at line 218 of file osd.h.
Referenced by HideWindow(), and SetFunctionalWindow().
QMap<QString, MythScreenType*> OSD::m_Children [private] |
Definition at line 220 of file osd.h.
Referenced by CheckExpiry(), DialogShow(), Draw(), DrawDirect(), GetWindow(), HasWindow(), HideAll(), HideWindow(), Init(), InitSubtitles(), InitTeletext(), IsVisible(), IsWindowVisible(), LoadWindows(), RemoveWindow(), ResetWindow(), SetPainter(), TearDown(), TeletextAction(), and TeletextClear().
QHash<MythScreenType*, QDateTime> OSD::m_ExpireTimes [private] |
Definition at line 221 of file osd.h.
Referenced by CheckExpiry(), Draw(), DrawDirect(), and SetExpiry().
1.7.6.1