OSD Class Reference

#include <osd.h>

List of all members.


Detailed Description

Definition at line 58 of file osd.h.


Public Member Functions

 OSD ()
 ~OSD (void)
void Init (const QRect &totalBounds, int frameRate, const QRect &visibleBounds, float visibleAspect, float fontScaling)
OSDSurfaceDisplay (void)
OSDSurfaceGetDisplaySurface (void)
void ClearAll (const QString &name)
void ClearAllText (const QString &name)
void SetText (const QString &name, QMap< QString, QString > &infoMap, int length)
void SetInfoText (QMap< QString, QString > infoMap, int length)
void SetInfoText (const QString &text, const QString &subtitle, const QString &desc, const QString &category, const QString &start, const QString &end, const QString &callsign, const QString &iconpath, int length)
void SetChannumText (const QString &text, int length)
void AddCCText (const QString &text, int x, int y, int color, bool teletextmode=false)
void ClearAllCCText ()
void UpdateCCText (vector< ccText * > *ccbuf, int replace=0, int scroll=0, bool scroll_prsv=false, int scroll_yoff=0, int scroll_ymax=15)
void SetCC708Service (const CC708Service *service)
void CC708Updated (void)
TeletextViewerGetTeletextViewer (void)
void SetSettingsText (const QString &text, int length)
void NewDialogBox (const QString &name, const QString &message, QStringList &options, int length, int sel=0)
void DialogUp (const QString &name)
void DialogDown (const QString &name)
bool DialogShowing (const QString &name)
void TurnDialogOff (const QString &name)
void DialogAbort (const QString &name)
int GetDialogResponse (const QString &name)
void SetUpOSDClosedHandler (TV *tv)
void ShowStatus (int pos, bool fill, QString msgtext, QString desc, int displaytime, int osdFunctionalType=kOSDFunctionalType_Default)
void ShowStatus (struct StatusPosInfo posInfo, bool fill, QString msgtext, int displaytime, int osdFunctionalType=kOSDFunctionalType_Default)
void UpdateStatus (struct StatusPosInfo posInfo)
void EndStatus (void)
bool Visible (void)
bool HideAll (void)
bool HideAllExcept (const QString &name)
bool HideSet (const QString &name)
bool HideSets (QStringList &name)
void AddSet (OSDSet *set, QString name, bool withlock=true)
void SetVisible (OSDSet *set, int length)
OSDSetGetSet (const QString &text)
TTFFontGetFont (const QString &text)
void ShowEditArrow (long long number, long long totalframes, int type)
void HideEditArrow (long long number, int type)
void UpdateEditText (const QString &seek_amount, const QString &deletemarker, const QString &edittime, const QString &framecnt)
void DoEditSlider (QMap< long long, int > deleteMap, long long curFrame, long long totalFrames)
int getTimeType (void)
void Reinit (const QRect &totalBounds, int frameRate, const QRect &visibleBounds, float visibleAspect, float fontScaling)
void SetFrameInterval (int frint)
void StartNotify (UDPNotifyOSDSet *notifySet, int displaytime=5)
void ClearNotify (UDPNotifyOSDSet *notifySet)
bool IsRunningTreeMenu (void)
bool TreeMenuHandleKeypress (QKeyEvent *e)
OSDListTreeTypeShowTreeMenu (const QString &name, OSDGenericTree *treeToShow)
void DisableFade (void)
bool IsSetDisplaying (const QString &name)
bool HasSet (const QString &name)
QRect GetSubtitleBounds ()
void SetTextSubtitles (const QStringList &)
void ClearTextSubtitles (void)
void UpdateTeletext (void)
float GetThemeAspect (void)
bool HasChanged (void) const

Private Member Functions

bool InitDefaults (void)
bool InitCC608 (void)
bool InitCC708 (void)
bool InitTeletext (void)
bool InitSubtitles (void)
bool InitMenu (void)
bool InitInteractiveTV (void)
TTFFontLoadFont (QString name, int size)
QString FindTheme (QString name)
void HighlightDialogSelection (OSDSet *container, int num)
bool LoadTheme ()
void normalizeRect (QRect &rect)
QPoint parsePoint (QString text)
QColor parseColor (QString text)
QRect parseRect (QString text)
void RemoveSet (OSDSet *set)
QString getFirstText (QDomElement &element)
void parseFont (QDomElement &element)
void parseContainer (QDomElement &element)
void parseImage (OSDSet *container, QDomElement &element)
void parseTextArea (OSDSet *container, QDomElement &element)
void parseSlider (OSDSet *container, QDomElement &element)
void parseBox (OSDSet *container, QDomElement &element)
void parseEditArrow (OSDSet *container, QDomElement &element)
void parsePositionRects (OSDSet *container, QDomElement &element)
void parsePositionImage (OSDSet *container, QDomElement &element)
void parseListTree (OSDSet *container, QDomElement &element)

Private Attributes

QRect osdBounds
int frameint
bool needPillarBox
QString themepath
float wscale
float fscale
ThemeInfom_themeinfo
float m_themeaspect
float hmult
float wmult
int xoffset
int yoffset
int displaywidth
int displayheight
QMutex osdlock
bool m_setsvisible
int totalfadetime
int timeType
QString timeFormat
QMap< QString, OSDSet * > setMap
vector< OSDSet * > * setList
QMap< QString, TTFFont * > fontMap
QMap< QString, int > dialogResponseList
OSDTypeImageeditarrowleft
OSDTypeImageeditarrowright
QRect editarrowRect
OSDSurfacedrawSurface
bool changed
OSDListTreeTyperunningTreeMenu
QString treeMenuContainer
QString fontname
QString ccfontname
QString cc708fontnames [16]
QString fontSizeType
QRegExp removeHTML

Constructor & Destructor Documentation

OSD::OSD (  ) 

Definition at line 44 of file osd.cpp.

OSD::~OSD ( void   ) 

Definition at line 63 of file osd.cpp.


Member Function Documentation

void OSD::Init ( const QRect &  totalBounds,
int  frameRate,
const QRect &  visibleBounds,
float  visibleAspect,
float  fontScaling 
)

Definition at line 120 of file osd.cpp.

Referenced by NuppelVideoPlayer::StartPlaying().

OSDSurface * OSD::Display ( void   ) 

OSDSurface * OSD::GetDisplaySurface ( void   ) 

Definition at line 2549 of file osd.cpp.

Referenced by VideoOutputXv::ProcessFrameXvMC().

void OSD::ClearAll ( const QString &  name  ) 

void OSD::ClearAllText ( const QString &  name  ) 

void OSD::SetText ( const QString &  name,
QMap< QString, QString > &  infoMap,
int  length 
)

void OSD::SetInfoText ( QMap< QString, QString >  infoMap,
int  length 
)

Definition at line 1692 of file osd.cpp.

void OSD::SetInfoText ( const QString &  text,
const QString &  subtitle,
const QString &  desc,
const QString &  category,
const QString &  start,
const QString &  end,
const QString &  callsign,
const QString &  iconpath,
int  length 
)

Definition at line 1716 of file osd.cpp.

void OSD::SetChannumText ( const QString &  text,
int  length 
)

Definition at line 1942 of file osd.cpp.

void OSD::AddCCText ( const QString &  text,
int  x,
int  y,
int  color,
bool  teletextmode = false 
)

Definition at line 1960 of file osd.cpp.

Referenced by NuppelVideoPlayer::ShowText().

void OSD::ClearAllCCText (  ) 

void OSD::UpdateCCText ( vector< ccText * > *  ccbuf,
int  replace = 0,
int  scroll = 0,
bool  scroll_prsv = false,
int  scroll_yoff = 0,
int  scroll_ymax = 15 
)

Definition at line 1997 of file osd.cpp.

Referenced by NuppelVideoPlayer::UpdateCC().

void OSD::SetCC708Service ( const CC708Service service  ) 

Definition at line 2020 of file osd.cpp.

Referenced by NuppelVideoPlayer::SetTrack(), and NuppelVideoPlayer::StartPlaying().

void OSD::CC708Updated ( void   ) 

Definition at line 2039 of file osd.cpp.

Referenced by NuppelVideoPlayer::TextWrite().

TeletextViewer * OSD::GetTeletextViewer ( void   ) 

void OSD::SetSettingsText ( const QString &  text,
int  length 
)

void OSD::NewDialogBox ( const QString &  name,
const QString &  message,
QStringList &  options,
int  length,
int  sel = 0 
)

void OSD::DialogUp ( const QString &  name  ) 

Definition at line 2226 of file osd.cpp.

Referenced by NuppelVideoPlayer::DoKeypress(), and TV::ProcessKeypress().

void OSD::DialogDown ( const QString &  name  ) 

Definition at line 2248 of file osd.cpp.

Referenced by NuppelVideoPlayer::DoKeypress(), and TV::ProcessKeypress().

bool OSD::DialogShowing ( const QString &  name  ) 

Definition at line 2270 of file osd.cpp.

Referenced by TV::ProcessKeypress(), and TV::UpdateOSDTimeoutMessage().

void OSD::TurnDialogOff ( const QString &  name  ) 

void OSD::DialogAbort ( const QString &  name  ) 

Definition at line 2282 of file osd.cpp.

Referenced by NuppelVideoPlayer::DoKeypress(), TV::ProcessKeypress(), and TV::RunTV().

int OSD::GetDialogResponse ( const QString &  name  ) 

void OSD::SetUpOSDClosedHandler ( TV tv  ) 

Definition at line 1769 of file osd.cpp.

Referenced by TV::StartOSD().

void OSD::ShowStatus ( int  pos,
bool  fill,
QString  msgtext,
QString  desc,
int  displaytime,
int  osdFunctionalType = kOSDFunctionalType_Default 
)

void OSD::ShowStatus ( struct StatusPosInfo  posInfo,
bool  fill,
QString  msgtext,
int  displaytime,
int  osdFunctionalType = kOSDFunctionalType_Default 
)

Definition at line 1792 of file osd.cpp.

void OSD::UpdateStatus ( struct StatusPosInfo  posInfo  ) 

Definition at line 1846 of file osd.cpp.

Referenced by TV::RunTV().

void OSD::EndStatus ( void   ) 

Definition at line 1929 of file osd.cpp.

Referenced by TV::ChangeChannel(), NuppelVideoPlayer::EnableEdit(), and TV::ToggleInputs().

bool OSD::Visible ( void   ) 

Definition at line 2631 of file osd.cpp.

Referenced by IsSetDisplaying(), and VideoOutputQuartz::ProcessFrame().

bool OSD::HideAll ( void   )  [inline]

Definition at line 124 of file osd.h.

Referenced by TV::ToggleOSD(), and TV::UpdateOSDProgInfo().

bool OSD::HideAllExcept ( const QString &  name  ) 

Definition at line 2361 of file osd.cpp.

Referenced by HideAll(), SetSettingsText(), SetText(), and ShowStatus().

bool OSD::HideSet ( const QString &  name  ) 

bool OSD::HideSets ( QStringList &  name  ) 

Definition at line 2408 of file osd.cpp.

void OSD::AddSet ( OSDSet set,
QString  name,
bool  withlock = true 
)

void OSD::SetVisible ( OSDSet set,
int  length 
)

OSDSet * OSD::GetSet ( const QString &  text  ) 

TTFFont * OSD::GetFont ( const QString &  text  ) 

void OSD::ShowEditArrow ( long long  number,
long long  totalframes,
int  type 
)

Definition at line 2299 of file osd.cpp.

Referenced by NuppelVideoPlayer::AddMark(), and NuppelVideoPlayer::ReverseMark().

void OSD::HideEditArrow ( long long  number,
int  type 
)

void OSD::UpdateEditText ( const QString &  seek_amount,
const QString &  deletemarker,
const QString &  edittime,
const QString &  framecnt 
)

Definition at line 2431 of file osd.cpp.

void OSD::DoEditSlider ( QMap< long long, int >  deleteMap,
long long  curFrame,
long long  totalFrames 
)

Definition at line 2461 of file osd.cpp.

Referenced by NuppelVideoPlayer::UpdateEditSlider().

int OSD::getTimeType ( void   )  [inline]

Definition at line 143 of file osd.h.

void OSD::Reinit ( const QRect &  totalBounds,
int  frameRate,
const QRect &  visibleBounds,
float  visibleAspect,
float  fontScaling 
)

Definition at line 547 of file osd.cpp.

Referenced by Init(), and NuppelVideoPlayer::ReinitOSD().

void OSD::SetFrameInterval ( int  frint  ) 

void OSD::StartNotify ( UDPNotifyOSDSet notifySet,
int  displaytime = 5 
)

Definition at line 2692 of file osd.cpp.

Referenced by UDPNotify::incomingData().

void OSD::ClearNotify ( UDPNotifyOSDSet notifySet  ) 

Definition at line 2730 of file osd.cpp.

Referenced by UDPNotify::ClearContainer().

bool OSD::IsRunningTreeMenu ( void   ) 

Definition at line 2780 of file osd.cpp.

Referenced by TV::ToggleAdjustFill(), and TV::ToggleAspectOverride().

bool OSD::TreeMenuHandleKeypress ( QKeyEvent *  e  ) 

Definition at line 2787 of file osd.cpp.

Referenced by TV::ProcessKeypress().

OSDListTreeType * OSD::ShowTreeMenu ( const QString &  name,
OSDGenericTree treeToShow 
)

Definition at line 2749 of file osd.cpp.

Referenced by TV::DoDisplayJumpMenu(), and TV::ShowOSDTreeMenu().

void OSD::DisableFade ( void   ) 

Definition at line 2544 of file osd.cpp.

Referenced by VideoOutput::InitOSD().

bool OSD::IsSetDisplaying ( const QString &  name  ) 

bool OSD::HasSet ( const QString &  name  ) 

Definition at line 2818 of file osd.cpp.

Referenced by TV::ToggleOSD().

QRect OSD::GetSubtitleBounds (  ) 

void OSD::SetTextSubtitles ( const QStringList &  lines  ) 

Definition at line 350 of file osd.cpp.

Referenced by NuppelVideoPlayer::DisplayTextSubtitles().

void OSD::ClearTextSubtitles ( void   ) 

Definition at line 452 of file osd.cpp.

Referenced by NuppelVideoPlayer::DisplayTextSubtitles().

void OSD::UpdateTeletext ( void   ) 

Definition at line 332 of file osd.cpp.

Referenced by OSDUpdateLocker::~OSDUpdateLocker().

float OSD::GetThemeAspect ( void   )  [inline]

Definition at line 169 of file osd.h.

Referenced by NuppelVideoPlayer::ReinitOSD(), and NuppelVideoPlayer::StartPlaying().

bool OSD::HasChanged ( void   )  const [inline]

Definition at line 171 of file osd.h.

Referenced by AvFormatDecoder::GetFrame().

bool OSD::InitDefaults ( void   )  [private]

Definition at line 182 of file osd.cpp.

Referenced by Init().

bool OSD::InitCC608 ( void   )  [private]

Definition at line 195 of file osd.cpp.

Referenced by InitDefaults().

bool OSD::InitCC708 ( void   )  [private]

Definition at line 244 of file osd.cpp.

Referenced by InitDefaults().

bool OSD::InitTeletext ( void   )  [private]

Definition at line 298 of file osd.cpp.

Referenced by InitDefaults().

bool OSD::InitSubtitles ( void   )  [private]

Definition at line 514 of file osd.cpp.

Referenced by InitDefaults().

bool OSD::InitMenu ( void   )  [private]

Definition at line 458 of file osd.cpp.

Referenced by InitDefaults().

bool OSD::InitInteractiveTV ( void   )  [private]

Definition at line 531 of file osd.cpp.

Referenced by InitDefaults().

TTFFont * OSD::LoadFont ( QString  name,
int  size 
) [private]

Definition at line 635 of file osd.cpp.

Referenced by InitCC608(), InitCC708(), InitMenu(), InitTeletext(), parseFont(), and SetTextSubtitles().

QString OSD::FindTheme ( QString  name  )  [private]

Definition at line 614 of file osd.cpp.

void OSD::HighlightDialogSelection ( OSDSet container,
int  num 
) [private]

Definition at line 2185 of file osd.cpp.

Referenced by DialogDown(), DialogUp(), and NewDialogBox().

bool OSD::LoadTheme ( void   )  [private]

Definition at line 1522 of file osd.cpp.

Referenced by Init().

void OSD::normalizeRect ( QRect &  rect  )  [private]

QPoint OSD::parsePoint ( QString  text  )  [private]

Definition at line 1604 of file osd.cpp.

Referenced by parseContainer(), parseFont(), parseImage(), parsePositionImage(), and parseTextArea().

QColor OSD::parseColor ( QString  text  )  [private]

Definition at line 1613 of file osd.cpp.

Referenced by parseFont().

QRect OSD::parseRect ( QString  text  )  [private]

void OSD::RemoveSet ( OSDSet set  )  [private]

Definition at line 2677 of file osd.cpp.

Referenced by Display().

QString OSD::getFirstText ( QDomElement &  element  )  [private]

void OSD::parseFont ( QDomElement &  element  )  [private]

Definition at line 693 of file osd.cpp.

Referenced by LoadTheme().

void OSD::parseContainer ( QDomElement &  element  )  [private]

Definition at line 1434 of file osd.cpp.

Referenced by LoadTheme().

void OSD::parseImage ( OSDSet container,
QDomElement &  element 
) [private]

Definition at line 850 of file osd.cpp.

Referenced by parseContainer().

void OSD::parseTextArea ( OSDSet container,
QDomElement &  element 
) [private]

Definition at line 901 of file osd.cpp.

Referenced by parseContainer().

void OSD::parseSlider ( OSDSet container,
QDomElement &  element 
) [private]

Definition at line 1044 of file osd.cpp.

Referenced by parseContainer().

void OSD::parseBox ( OSDSet container,
QDomElement &  element 
) [private]

Definition at line 816 of file osd.cpp.

Referenced by parseContainer().

void OSD::parseEditArrow ( OSDSet container,
QDomElement &  element 
) [private]

Definition at line 1128 of file osd.cpp.

Referenced by parseContainer().

void OSD::parsePositionRects ( OSDSet container,
QDomElement &  element 
) [private]

Definition at line 1194 of file osd.cpp.

Referenced by parseContainer().

void OSD::parsePositionImage ( OSDSet container,
QDomElement &  element 
) [private]

Definition at line 1230 of file osd.cpp.

Referenced by parseContainer().

void OSD::parseListTree ( OSDSet container,
QDomElement &  element 
) [private]

Definition at line 1284 of file osd.cpp.

Referenced by parseContainer().


Member Data Documentation

QRect OSD::osdBounds [private]

int OSD::frameint [private]

Definition at line 209 of file osd.h.

Referenced by Init(), InitCC608(), and Reinit().

QString OSD::themepath [private]

float OSD::wscale [private]

Definition at line 213 of file osd.h.

Referenced by Init(), InitCC608(), LoadFont(), and Reinit().

float OSD::fscale [private]

Definition at line 213 of file osd.h.

Referenced by Init(), LoadFont(), and Reinit().

Definition at line 215 of file osd.h.

Referenced by Init(), InitCC608(), InitCC708(), LoadTheme(), OSD(), Reinit(), and ~OSD().

float OSD::m_themeaspect [private]

Definition at line 216 of file osd.h.

Referenced by GetThemeAspect(), Init(), and OSD().

float OSD::hmult [private]

float OSD::wmult [private]

int OSD::xoffset [private]

int OSD::yoffset [private]

int OSD::displaywidth [private]

Definition at line 219 of file osd.h.

Referenced by GetSubtitleBounds(), Init(), InitCC608(), InitCC708(), LoadTheme(), Reinit(), and SetTextSubtitles().

int OSD::displayheight [private]

Definition at line 219 of file osd.h.

Referenced by GetSubtitleBounds(), Init(), InitCC608(), InitCC708(), LoadTheme(), Reinit(), and SetTextSubtitles().

QMutex OSD::osdlock [private]

int OSD::totalfadetime [private]

Definition at line 225 of file osd.h.

Referenced by DisableFade(), Display(), and LoadTheme().

int OSD::timeType [private]

Definition at line 226 of file osd.h.

Referenced by getTimeType().

QString OSD::timeFormat [private]

Definition at line 228 of file osd.h.

Referenced by Display(), and LoadTheme().

QMap<QString, OSDSet *> OSD::setMap [private]

Definition at line 230 of file osd.h.

Referenced by AddSet(), GetSet(), HasSet(), Reinit(), RemoveSet(), SetFrameInterval(), and ~OSD().

vector<OSDSet *>* OSD::setList [private]

Definition at line 231 of file osd.h.

Referenced by AddSet(), Display(), HideAllExcept(), RemoveSet(), and ~OSD().

QMap<QString, TTFFont *> OSD::fontMap [private]

QMap<QString, int> OSD::dialogResponseList [private]

Definition at line 235 of file osd.h.

Referenced by DialogAbort(), DialogDown(), DialogUp(), GetDialogResponse(), and NewDialogBox().

Definition at line 237 of file osd.h.

Referenced by parseEditArrow(), ShowEditArrow(), and ~OSD().

Definition at line 238 of file osd.h.

Referenced by parseEditArrow(), ShowEditArrow(), and ~OSD().

QRect OSD::editarrowRect [private]

Definition at line 239 of file osd.h.

Referenced by parseEditArrow(), and ShowEditArrow().

Definition at line 241 of file osd.h.

Referenced by Display(), GetDisplaySurface(), Init(), Reinit(), and ~OSD().

bool OSD::changed [private]

Definition at line 244 of file osd.h.

Referenced by IsRunningTreeMenu(), ShowTreeMenu(), and TreeMenuHandleKeypress().

QString OSD::treeMenuContainer [private]

Definition at line 245 of file osd.h.

Referenced by ShowTreeMenu(), and TreeMenuHandleKeypress().

QString OSD::fontname [private]

Definition at line 248 of file osd.h.

Referenced by InitTeletext(), and SetTextSubtitles().

QString OSD::ccfontname [private]

Definition at line 249 of file osd.h.

QString OSD::cc708fontnames[16] [private]

Definition at line 250 of file osd.h.

Referenced by Init(), and InitCC708().

QString OSD::fontSizeType [private]

Definition at line 251 of file osd.h.

Referenced by parseFont().

QRegExp OSD::removeHTML [private]

Definition at line 254 of file osd.h.

Referenced by Init(), and SetTextSubtitles().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:08 2010 for MythTV by  doxygen 1.5.5