OSDSet Class Reference

#include <osdtypes.h>

List of all members.


Detailed Description

Definition at line 43 of file osdtypes.h.


Signals

void OSDClosed (int)

Public Member Functions

 OSDSet (const QString &name, bool cache, int screenwidth, int screenheight, float wmult, float hmult, int frint, int xoff=0, int yoff=0)
 OSDSet (const OSDSet &other)
 ~OSDSet ()
void Clear (void)
void ClearAllText (void)
void AddType (OSDType *type)
void Draw (OSDSurface *surface, bool actuallydraw)
void Display (bool onoff=true, int osdFunctionalType=0)
void DisplayFor (int time, int osdFunctionalType=0)
void Hide (void)
bool HandleKey (const QKeyEvent *e, bool *focus_change=NULL, QString *button_pressed=NULL)
QString HandleHotKey (const QKeyEvent *e)
void Reinit (int screenwidth, int screenheight, int xoff, int yoff, int displaywidth, int displayheight, float wmult, float hmult, int frint)
bool NeedsUpdate (void)
QString GetName (void) const
bool GetCache (void) const
bool GetAllowFade (void) const
int GetPriority (void) const
bool Displaying (void) const
bool HasDisplayed (void) const
int GetFadeTime (void) const
bool IsFading (void) const
int GetTimeLeft (void) const
int GetFrameInterval (void) const
void GetText (InfoMap &infoMap) const
bool CanShowWith (const QString &name) const
const OSDTypeGetType (const QString &name) const
const OSDTypeTextGetSelected (void) const
OSDTypeGetType (const QString &name)
OSDTypeTextGetSelected (void)
void SetFadeTime (int time)
void SetCache (bool cache)
void SetName (const QString &name)
void SetAllowFade (bool allow)
void SetPriority (int priority)
void SetFadeMovement (int x, int y)
void SetFrameInterval (int frint)
void SetWantsUpdates (bool updates)
void SetDrawEveryFrame (bool draw)
void SetShowWith (const QString &re)
bool SetSelected (int index)
void SetText (const InfoMap &infoMap)

Protected Attributes

int m_screenwidth
int m_screenheight
int m_frameint
float m_wmult
float m_hmult
bool m_cache
QString m_name
bool m_notimeout
bool m_hasdisplayed
int m_timeleft
bool m_displaying
int m_fadetime
int m_maxfade
int m_priority
int m_xmove
int m_ymove
int m_xoff
int m_yoff
int m_xoffsetbase
int m_yoffsetbase
bool m_allowfade
QMap< QString, OSDType * > typeList
vector< OSDType * > * allTypes
bool m_wantsupdates
bool m_needsupdate
int m_lastupdate
int currentOSDFunctionalType
bool m_draweveryframe
QRegExp m_showwith

Constructor & Destructor Documentation

OSDSet::OSDSet ( const QString &  name,
bool  cache,
int  screenwidth,
int  screenheight,
float  wmult,
float  hmult,
int  frint,
int  xoff = 0,
int  yoff = 0 
)

Definition at line 29 of file osdtypes.cpp.

OSDSet::OSDSet ( const OSDSet other  ) 

Definition at line 75 of file osdtypes.cpp.

OSDSet::~OSDSet (  ) 

Definition at line 153 of file osdtypes.cpp.


Member Function Documentation

void OSDSet::Clear ( void   ) 

Definition at line 159 of file osdtypes.cpp.

Referenced by OSD::ClearAll(), MHIContext::UpdateOSD(), and ~OSDSet().

void OSDSet::ClearAllText ( void   ) 

Definition at line 246 of file osdtypes.cpp.

Referenced by OSD::ClearAllText(), and OSD::ClearNotify().

void OSDSet::AddType ( OSDType type  ) 

void OSDSet::Draw ( OSDSurface surface,
bool  actuallydraw 
)

Definition at line 585 of file osdtypes.cpp.

Referenced by OSD::Display().

void OSDSet::Display ( bool  onoff = true,
int  osdFunctionalType = 0 
)

void OSDSet::DisplayFor ( int  time,
int  osdFunctionalType = 0 
)

void OSDSet::Hide ( void   ) 

bool OSDSet::HandleKey ( const QKeyEvent *  e,
bool focus_change = NULL,
QString *  button_pressed = NULL 
)

Definition at line 365 of file osdtypes.cpp.

Referenced by TV::ChannelEditKey().

QString OSDSet::HandleHotKey ( const QKeyEvent *  e  ) 

Definition at line 496 of file osdtypes.cpp.

Referenced by HandleKey().

void OSDSet::Reinit ( int  screenwidth,
int  screenheight,
int  xoff,
int  yoff,
int  displaywidth,
int  displayheight,
float  wmult,
float  hmult,
int  frint 
)

Definition at line 178 of file osdtypes.cpp.

bool OSDSet::NeedsUpdate ( void   )  [inline]

Definition at line 69 of file osdtypes.h.

Referenced by OSD::Display().

QString OSDSet::GetName ( void   )  const [inline]

Definition at line 72 of file osdtypes.h.

bool OSDSet::GetCache ( void   )  const [inline]

Definition at line 73 of file osdtypes.h.

Referenced by OSD::Display().

bool OSDSet::GetAllowFade ( void   )  const [inline]

Definition at line 74 of file osdtypes.h.

int OSDSet::GetPriority ( void   )  const [inline]

Definition at line 75 of file osdtypes.h.

Referenced by comp::operator()(), and OSD::ShowEditArrow().

bool OSDSet::Displaying ( void   )  const [inline]

Definition at line 76 of file osdtypes.h.

Referenced by TV::ChannelEditKey(), OSD::Display(), OSD::IsSetDisplaying(), and TV::RunTV().

bool OSDSet::HasDisplayed ( void   )  const [inline]

Definition at line 77 of file osdtypes.h.

Referenced by OSD::Display(), and OSD::NewDialogBox().

int OSDSet::GetFadeTime ( void   )  const [inline]

Definition at line 78 of file osdtypes.h.

Referenced by OSD::Display().

bool OSDSet::IsFading ( void   )  const [inline]

Definition at line 79 of file osdtypes.h.

Referenced by OSD::Display(), and Draw().

int OSDSet::GetTimeLeft ( void   )  const [inline]

Definition at line 81 of file osdtypes.h.

Referenced by OSDTypeText::Draw().

int OSDSet::GetFrameInterval ( void   )  const [inline]

Definition at line 82 of file osdtypes.h.

void OSDSet::GetText ( InfoMap infoMap  )  const

Definition at line 312 of file osdtypes.cpp.

Referenced by TV::ChannelEditKey().

bool OSDSet::CanShowWith ( const QString &  name  )  const

Definition at line 650 of file osdtypes.cpp.

Referenced by OSD::HideAllExcept().

const OSDType * OSDSet::GetType ( const QString &  name  )  const

const OSDTypeText * OSDSet::GetSelected ( void   )  const

Definition at line 220 of file osdtypes.cpp.

Referenced by HandleKey().

OSDType * OSDSet::GetType ( const QString &  name  ) 

Definition at line 212 of file osdtypes.cpp.

OSDTypeText * OSDSet::GetSelected ( void   ) 

Definition at line 233 of file osdtypes.cpp.

void OSDSet::SetFadeTime ( int  time  )  [inline]

Definition at line 94 of file osdtypes.h.

Referenced by OSD::Display().

void OSDSet::SetCache ( bool  cache  )  [inline]

Definition at line 95 of file osdtypes.h.

Referenced by OSD::NewDialogBox().

void OSDSet::SetName ( const QString &  name  )  [inline]

Definition at line 96 of file osdtypes.h.

Referenced by OSD::NewDialogBox().

void OSDSet::SetAllowFade ( bool  allow  )  [inline]

Definition at line 97 of file osdtypes.h.

Referenced by OSD::InitTeletext(), and OSD::NewDialogBox().

void OSDSet::SetPriority ( int  priority  )  [inline]

void OSDSet::SetFadeMovement ( int  x,
int  y 
) [inline]

Definition at line 99 of file osdtypes.h.

Referenced by OSD::parseContainer().

void OSDSet::SetFrameInterval ( int  frint  )  [inline]

Definition at line 100 of file osdtypes.h.

void OSDSet::SetWantsUpdates ( bool  updates  )  [inline]

Definition at line 101 of file osdtypes.h.

Referenced by OSDTypeText::Draw(), and OSD::InitTeletext().

void OSDSet::SetDrawEveryFrame ( bool  draw  )  [inline]

Definition at line 102 of file osdtypes.h.

Referenced by OSDTypeText::Draw().

void OSDSet::SetShowWith ( const QString &  re  )  [inline]

Definition at line 103 of file osdtypes.h.

Referenced by OSD::parseContainer().

bool OSDSet::SetSelected ( int  index  ) 

Definition at line 323 of file osdtypes.cpp.

Referenced by HandleKey().

void OSDSet::SetText ( const InfoMap infoMap  ) 

Definition at line 262 of file osdtypes.cpp.

Referenced by TV::ChannelEditKey(), OSD::SetInfoText(), and OSD::SetText().

void OSDSet::OSDClosed ( int   )  [signal]

Referenced by Display(), DisplayFor(), Draw(), and Hide().


Member Data Documentation

int OSDSet::m_screenwidth [protected]

Definition at line 111 of file osdtypes.h.

Referenced by OSDSet(), and Reinit().

int OSDSet::m_screenheight [protected]

Definition at line 112 of file osdtypes.h.

Referenced by OSDSet(), and Reinit().

int OSDSet::m_frameint [protected]

Definition at line 113 of file osdtypes.h.

Referenced by Draw(), GetFrameInterval(), OSDSet(), Reinit(), and SetFrameInterval().

float OSDSet::m_wmult [protected]

Definition at line 114 of file osdtypes.h.

Referenced by OSDSet(), and Reinit().

float OSDSet::m_hmult [protected]

Definition at line 115 of file osdtypes.h.

Referenced by OSDSet(), and Reinit().

bool OSDSet::m_cache [protected]

Definition at line 117 of file osdtypes.h.

Referenced by GetCache(), OSDSet(), and SetCache().

QString OSDSet::m_name [protected]

Definition at line 118 of file osdtypes.h.

Referenced by GetName(), OSDSet(), and SetName().

Definition at line 120 of file osdtypes.h.

Referenced by Display(), DisplayFor(), Draw(), Hide(), and OSDSet().

Definition at line 122 of file osdtypes.h.

Referenced by Draw(), HasDisplayed(), and OSDSet().

int OSDSet::m_timeleft [protected]

Definition at line 123 of file osdtypes.h.

Referenced by Display(), DisplayFor(), Draw(), GetTimeLeft(), Hide(), IsFading(), and OSDSet().

Definition at line 124 of file osdtypes.h.

Referenced by Display(), DisplayFor(), Displaying(), Draw(), Hide(), and OSDSet().

int OSDSet::m_fadetime [protected]

Definition at line 125 of file osdtypes.h.

Referenced by Display(), DisplayFor(), Draw(), GetFadeTime(), Hide(), IsFading(), OSDSet(), and SetFadeTime().

int OSDSet::m_maxfade [protected]

Definition at line 126 of file osdtypes.h.

Referenced by Draw(), OSDSet(), and SetFadeTime().

int OSDSet::m_priority [protected]

Definition at line 128 of file osdtypes.h.

Referenced by GetPriority(), OSDSet(), and SetPriority().

int OSDSet::m_xmove [protected]

Definition at line 130 of file osdtypes.h.

Referenced by Draw(), OSDSet(), and SetFadeMovement().

int OSDSet::m_ymove [protected]

Definition at line 131 of file osdtypes.h.

Referenced by Draw(), OSDSet(), and SetFadeMovement().

int OSDSet::m_xoff [protected]

Definition at line 133 of file osdtypes.h.

Referenced by Display(), DisplayFor(), Draw(), and OSDSet().

int OSDSet::m_yoff [protected]

Definition at line 134 of file osdtypes.h.

Referenced by Display(), DisplayFor(), Draw(), and OSDSet().

int OSDSet::m_xoffsetbase [protected]

Definition at line 136 of file osdtypes.h.

Referenced by Draw(), OSDSet(), and Reinit().

int OSDSet::m_yoffsetbase [protected]

Definition at line 137 of file osdtypes.h.

Referenced by Draw(), OSDSet(), and Reinit().

Definition at line 139 of file osdtypes.h.

Referenced by GetAllowFade(), OSDSet(), and SetAllowFade().

QMap<QString, OSDType *> OSDSet::typeList [protected]

Definition at line 141 of file osdtypes.h.

Referenced by AddType(), and GetType().

vector<OSDType *>* OSDSet::allTypes [protected]

Definition at line 144 of file osdtypes.h.

Referenced by Draw(), OSDSet(), and SetWantsUpdates().

Definition at line 145 of file osdtypes.h.

Referenced by Draw(), HandleKey(), NeedsUpdate(), OSDSet(), SetSelected(), and SetText().

int OSDSet::m_lastupdate [protected]

Definition at line 146 of file osdtypes.h.

Referenced by Draw(), and OSDSet().

Definition at line 148 of file osdtypes.h.

Referenced by Display(), DisplayFor(), Draw(), Hide(), and OSDSet().

Definition at line 150 of file osdtypes.h.

Referenced by Draw(), OSDSet(), and SetDrawEveryFrame().

QRegExp OSDSet::m_showwith [protected]

Definition at line 152 of file osdtypes.h.

Referenced by CanShowWith(), OSDSet(), and SetShowWith().


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

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