MythTV  0.25-pre
Public Member Functions | Private Member Functions | Private Attributes
OSD Class Reference

#include <osd.h>

List of all members.

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)
MythScreenTypeGetWindow (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)
TeletextScreenInitTeletext (void)
void EnableTeletext (bool enable, int page)
bool TeletextAction (const QString &action)
void TeletextReset (void)
void TeletextClear (void)
SubtitleScreenInitSubtitles (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

MythPlayerm_parent
QObject * m_ParentObject
MythPainterm_CurrentPainter
QRect m_Rect
bool m_Effects
int m_FadeTime
MythScreenTypem_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

Detailed Description

Definition at line 121 of file osd.h.


Constructor & Destructor Documentation

OSD::OSD ( MythPlayer player,
QObject *  parent,
MythPainter painter 
)

Definition at line 152 of file osd.cpp.

OSD::~OSD ( )

Definition at line 164 of file osd.cpp.


Member Function Documentation

bool OSD::Init ( const QRect &  rect,
float  font_aspect 
)

Definition at line 177 of file osd.cpp.

Referenced by Reinit(), and MythPlayer::VideoStart().

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 
)

Definition at line 788 of file osd.cpp.

Referenced by OSD().

Definition at line 267 of file osd.cpp.

Referenced by TV::ActiveHandleAction().

void OSD::HideAll ( bool  keepsubs = true,
MythScreenType except = NULL 
)
MythScreenType * OSD::GetWindow ( const QString &  window)
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)
bool OSD::HasWindow ( const QString &  window)
void OSD::ResetWindow ( const QString &  window)

Definition at line 804 of file osd.cpp.

Referenced by TV::UpdateOSDDebug(), and TV::UpdateOSDStatus().

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 
)
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 
)
void OSD::SetValues ( const QString &  window,
QHash< QString, float > &  map,
OSDTimeout  timeout 
)

Definition at line 352 of file osd.cpp.

void OSD::SetText ( const QString &  window,
QHash< QString, QString > &  map,
OSDTimeout  timeout 
)
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())
bool OSD::DialogHandleKeypress ( QKeyEvent *  e)

Definition at line 925 of file osd.cpp.

Referenced by TV::ProcessKeypress().

void OSD::DialogShow ( const QString &  window,
const QString &  text = "",
int  updatefor = 0 
)
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 
)
void OSD::DialogAddButton ( QString  text,
QVariant  data,
bool  menu = false,
bool  current = false 
)
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().

void OSD::EnableSubtitles ( int  type,
bool  forced_only = false 
)

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().

Definition at line 1207 of file osd.cpp.

Referenced by MythBDPlayer::DisplayMenu().

void OSD::TearDown ( void  ) [private]

Definition at line 169 of file osd.cpp.

Referenced by Reinit(), and ~OSD().

void OSD::LoadWindows ( void  ) [private]

Definition at line 297 of file osd.cpp.

Referenced by Init().

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().


Member Data Documentation

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().

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().

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().

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().

Definition at line 214 of file osd.h.

Referenced by GetFontStretch(), Init(), InitSubtitles(), InitTeletext(), OverrideUIScale(), and Reinit().

Definition at line 215 of file osd.h.

Referenced by OverrideUIScale(), and RevertUIScale().

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]
QHash<MythScreenType*, QDateTime> OSD::m_ExpireTimes [private]

Definition at line 221 of file osd.h.

Referenced by CheckExpiry(), Draw(), DrawDirect(), and SetExpiry().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends