OSDTypeText Class Reference

#include <osdtypes.h>

Inheritance diagram for OSDTypeText:

OSDType

List of all members.


Detailed Description

Definition at line 194 of file osdtypes.h.


Public Member Functions

 OSDTypeText (const QString &name, TTFFont *font, const QString &text, QRect displayrect, float wmult, float hmult)
 OSDTypeText (const OSDTypeText &text)
void Reinit (float wmult, float hmult)
void SetAltFont (TTFFont *font)
void SetUseAlt (bool usealt)
void SetText (const QString &text)
QString GetText (void) const
void SetDefaultText (const QString &text)
QString GetDefaultText (void) const
void SetMultiLine (bool multi)
bool GetMultiLine (void) const
void SetCentered (bool docenter)
bool GetCentered (void) const
void SetRightJustified (bool right)
bool GetRightJustified (void) const
void SetScrolling (int x, int y)
void SetLineSpacing (float linespacing)
float GetLineSpacing (void) const
void Draw (OSDSurface *surface, int fade, int maxfade, int xoff, int yoff)
bool MoveCursor (int dir)
bool Delete (int dir)
void InsertCharacter (QChar)
bool IsSelected (void) const
bool IsButton (void) const
int GetEntryNum (void) const
bool IsEntry (void) const
QRect DisplayArea (void) const
void SetSelected (bool is_selected)
void SetButton (bool is_button)
void SetEntryNum (int entrynum)
QString ConvertFromRtoL (const QString &text) const

Static Public Member Functions

static QString BasicConvertFromRtoL (const QString &text)

Protected Member Functions

 ~OSDTypeText ()
void DrawString (OSDSurface *surface, QRect rect, const QString &text, int fade, int maxfade, int xoff, int yoff, bool double_size=false)
void DrawHiLiteString (OSDSurface *surface, QRect xrect, const QString &text, int fade, int maxfade, int xoff, int yoff, bool double_size=false)

Protected Attributes

QRect m_displaysize
QRect m_screensize
QRect m_unbiasedsize
QString m_message
QString m_default_msg
TTFFontm_font
TTFFontm_altfont
bool m_centered
bool m_right
bool m_multiline
bool m_usingalt
bool m_selected
bool m_button
int m_entrynum
int m_cursorpos
bool m_scroller
int m_scrollx
int m_scrolly
int m_scrollstartx
int m_scrollendx
int m_scrollposx
int m_scrollstarty
int m_scrollendy
int m_scrollposy
bool m_scrollinit
float m_linespacing
QString m_draw_info_str
uint m_draw_info_len
vector< DrawInfom_draw_info
QMutex fribidi_lock
QTextCodec * codeci

Constructor & Destructor Documentation

OSDTypeText::OSDTypeText ( const QString &  name,
TTFFont font,
const QString &  text,
QRect  displayrect,
float  wmult,
float  hmult 
)

Definition at line 677 of file osdtypes.cpp.

OSDTypeText::OSDTypeText ( const OSDTypeText text  ) 

Definition at line 716 of file osdtypes.cpp.

OSDTypeText::~OSDTypeText (  )  [protected]

Definition at line 784 of file osdtypes.cpp.


Member Function Documentation

void OSDTypeText::Reinit ( float  wmult,
float  hmult 
) [virtual]

Implements OSDType.

Definition at line 941 of file osdtypes.cpp.

void OSDTypeText::SetAltFont ( TTFFont font  ) 

Definition at line 788 of file osdtypes.cpp.

Referenced by OSD::parseTextArea().

void OSDTypeText::SetUseAlt ( bool  usealt  )  [inline]

Definition at line 204 of file osdtypes.h.

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

void OSDTypeText::SetText ( const QString &  text  ) 

QString OSDTypeText::GetText ( void   )  const

void OSDTypeText::SetDefaultText ( const QString &  text  ) 

Definition at line 895 of file osdtypes.cpp.

Referenced by OSD::parseTextArea().

QString OSDTypeText::GetDefaultText ( void   )  const

Definition at line 903 of file osdtypes.cpp.

Referenced by OSDSet::SetText().

void OSDTypeText::SetMultiLine ( bool  multi  ) 

Definition at line 909 of file osdtypes.cpp.

Referenced by OSD::parseTextArea(), and OSD::SetTextSubtitles().

bool OSDTypeText::GetMultiLine ( void   )  const [inline]

Definition at line 213 of file osdtypes.h.

void OSDTypeText::SetCentered ( bool  docenter  ) 

Definition at line 915 of file osdtypes.cpp.

Referenced by OSD::parseTextArea(), and OSD::SetTextSubtitles().

bool OSDTypeText::GetCentered ( void   )  const [inline]

Definition at line 216 of file osdtypes.h.

void OSDTypeText::SetRightJustified ( bool  right  ) 

Definition at line 921 of file osdtypes.cpp.

Referenced by OSD::parseTextArea().

bool OSDTypeText::GetRightJustified ( void   )  const [inline]

Definition at line 219 of file osdtypes.h.

void OSDTypeText::SetScrolling ( int  x,
int  y 
)

Definition at line 927 of file osdtypes.cpp.

Referenced by OSD::parseTextArea().

void OSDTypeText::SetLineSpacing ( float  linespacing  ) 

Definition at line 935 of file osdtypes.cpp.

Referenced by OSD::parseTextArea(), and OSD::SetTextSubtitles().

float OSDTypeText::GetLineSpacing ( void   )  const [inline]

Definition at line 224 of file osdtypes.h.

void OSDTypeText::Draw ( OSDSurface surface,
int  fade,
int  maxfade,
int  xoff,
int  yoff 
) [virtual]

Implements OSDType.

Definition at line 947 of file osdtypes.cpp.

bool OSDTypeText::MoveCursor ( int  dir  ) 

Definition at line 1272 of file osdtypes.cpp.

Referenced by OSDSet::HandleKey(), and InsertCharacter().

bool OSDTypeText::Delete ( int  dir  ) 

Definition at line 1284 of file osdtypes.cpp.

Referenced by OSDSet::HandleKey().

void OSDTypeText::InsertCharacter ( QChar  ch  ) 

Definition at line 1308 of file osdtypes.cpp.

Referenced by OSDSet::HandleKey().

bool OSDTypeText::IsSelected ( void   )  const [inline]

Definition at line 231 of file osdtypes.h.

Referenced by DrawHiLiteString(), DrawString(), OSDSet::GetSelected(), and OSDSet::SetSelected().

bool OSDTypeText::IsButton ( void   )  const [inline]

int OSDTypeText::GetEntryNum ( void   )  const [inline]

Definition at line 233 of file osdtypes.h.

Referenced by OSDSet::HandleKey(), and OSDSet::SetSelected().

bool OSDTypeText::IsEntry ( void   )  const [inline]

QRect OSDTypeText::DisplayArea ( void   )  const [inline]

Definition at line 235 of file osdtypes.h.

void OSDTypeText::SetSelected ( bool  is_selected  )  [inline]

Definition at line 237 of file osdtypes.h.

Referenced by OSD::parseTextArea(), OSDSet::SetSelected(), and OSD::SetTextSubtitles().

void OSDTypeText::SetButton ( bool  is_button  )  [inline]

Definition at line 238 of file osdtypes.h.

Referenced by OSD::parseTextArea().

void OSDTypeText::SetEntryNum ( int  entrynum  )  [inline]

Definition at line 239 of file osdtypes.h.

Referenced by OSD::parseTextArea().

QString OSDTypeText::ConvertFromRtoL ( const QString &  text  )  const

Definition at line 839 of file osdtypes.cpp.

Referenced by SetDefaultText(), and SetText().

QString OSDTypeText::BasicConvertFromRtoL ( const QString &  text  )  [static]

Definition at line 794 of file osdtypes.cpp.

Referenced by ConvertFromRtoL().

void OSDTypeText::DrawString ( OSDSurface surface,
QRect  rect,
const QString &  text,
int  fade,
int  maxfade,
int  xoff,
int  yoff,
bool  double_size = false 
) [protected]

Definition at line 1216 of file osdtypes.cpp.

Referenced by Draw().

void OSDTypeText::DrawHiLiteString ( OSDSurface surface,
QRect  xrect,
const QString &  text,
int  fade,
int  maxfade,
int  xoff,
int  yoff,
bool  double_size = false 
) [protected]

Definition at line 1101 of file osdtypes.cpp.

Referenced by Draw().


Member Data Documentation

QRect OSDTypeText::m_displaysize [protected]

Definition at line 255 of file osdtypes.h.

Referenced by DisplayArea(), Draw(), OSDTypeText(), and Reinit().

QRect OSDTypeText::m_screensize [protected]

Definition at line 256 of file osdtypes.h.

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

QRect OSDTypeText::m_unbiasedsize [protected]

Definition at line 257 of file osdtypes.h.

Referenced by OSDTypeText(), and Reinit().

QString OSDTypeText::m_message [protected]

QString OSDTypeText::m_default_msg [protected]

Definition at line 259 of file osdtypes.h.

Referenced by GetDefaultText(), OSDTypeText(), and SetDefaultText().

Definition at line 261 of file osdtypes.h.

Referenced by Draw(), DrawHiLiteString(), DrawString(), and OSDTypeText().

Definition at line 262 of file osdtypes.h.

Referenced by DrawHiLiteString(), DrawString(), OSDTypeText(), and SetAltFont().

Definition at line 264 of file osdtypes.h.

Referenced by DrawHiLiteString(), DrawString(), GetCentered(), OSDTypeText(), and SetCentered().

Definition at line 267 of file osdtypes.h.

Referenced by Draw(), GetMultiLine(), OSDTypeText(), and SetMultiLine().

Definition at line 268 of file osdtypes.h.

Referenced by DrawString(), OSDTypeText(), and SetUseAlt().

Definition at line 270 of file osdtypes.h.

Referenced by DrawHiLiteString(), DrawString(), IsSelected(), OSDTypeText(), and SetSelected().

Definition at line 271 of file osdtypes.h.

Referenced by IsButton(), OSDTypeText(), and SetButton().

int OSDTypeText::m_entrynum [protected]

Definition at line 272 of file osdtypes.h.

Referenced by GetEntryNum(), IsEntry(), OSDTypeText(), and SetEntryNum().

int OSDTypeText::m_cursorpos [protected]

Definition at line 275 of file osdtypes.h.

Referenced by Draw(), OSDTypeText(), and SetScrolling().

int OSDTypeText::m_scrollx [protected]

Definition at line 276 of file osdtypes.h.

Referenced by Draw(), OSDTypeText(), and SetScrolling().

int OSDTypeText::m_scrolly [protected]

Definition at line 277 of file osdtypes.h.

Referenced by Draw(), OSDTypeText(), and SetScrolling().

int OSDTypeText::m_scrollstartx [protected]

Definition at line 279 of file osdtypes.h.

Referenced by Draw().

int OSDTypeText::m_scrollendx [protected]

Definition at line 280 of file osdtypes.h.

Referenced by Draw().

int OSDTypeText::m_scrollposx [protected]

Definition at line 281 of file osdtypes.h.

Referenced by Draw().

int OSDTypeText::m_scrollstarty [protected]

Definition at line 283 of file osdtypes.h.

Referenced by Draw().

int OSDTypeText::m_scrollendy [protected]

Definition at line 284 of file osdtypes.h.

Referenced by Draw().

int OSDTypeText::m_scrollposy [protected]

Definition at line 285 of file osdtypes.h.

Referenced by Draw().

Definition at line 287 of file osdtypes.h.

Referenced by Draw(), OSDTypeText(), SetDefaultText(), and SetText().

float OSDTypeText::m_linespacing [protected]

Definition at line 289 of file osdtypes.h.

Referenced by Draw(), GetLineSpacing(), OSDTypeText(), and SetLineSpacing().

QString OSDTypeText::m_draw_info_str [mutable, protected]

Definition at line 291 of file osdtypes.h.

Referenced by DrawHiLiteString().

uint OSDTypeText::m_draw_info_len [mutable, protected]

Definition at line 292 of file osdtypes.h.

Referenced by DrawHiLiteString().

vector<DrawInfo> OSDTypeText::m_draw_info [mutable, protected]

Definition at line 293 of file osdtypes.h.

Referenced by DrawHiLiteString().

QMutex OSDTypeText::fribidi_lock [mutable, protected]

Definition at line 295 of file osdtypes.h.

Referenced by ConvertFromRtoL().

QTextCodec* OSDTypeText::codeci [mutable, protected]

Definition at line 296 of file osdtypes.h.

Referenced by ConvertFromRtoL().


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