MythTV  0.26-pre
Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
TeletextScreen Class Reference

#include <teletextscreen.h>

Inheritance diagram for TeletextScreen:
MythScreenType MythUIType XMLParseBase

List of all members.

Public Member Functions

 TeletextScreen (MythPlayer *player, const char *name, int fontStretch)
virtual ~TeletextScreen ()
virtual bool Create (void)
virtual void Pulse (void)
 Pulse is called 70 times a second to trigger a single frame of an animation.
bool KeyPress (const QString &key)
void SetPage (int page, int subpage)
void SetDisplaying (bool display)
void Reset (void)
 Reset the widget to it's original state, should not reset changes made by the theme.
void ClearScreen (void)

Static Public Attributes

static const QColor kColorBlack = QColor( 0, 0, 0,255)
static const QColor kColorRed = QColor(255, 0, 0,255)
static const QColor kColorGreen = QColor( 0,255, 0,255)
static const QColor kColorYellow = QColor(255,255, 0,255)
static const QColor kColorBlue = QColor( 0, 0,255,255)
static const QColor kColorMagenta = QColor(255, 0,255,255)
static const QColor kColorCyan = QColor( 0,255,255,255)
static const QColor kColorWhite = QColor(255,255,255,255)
static const QColor kColorTransp
static const int kTeletextColumns = 40
static const int kTeletextRows = 26

Private Member Functions

void OptimiseDisplayedArea (void)
QImage * GetRowImage (int row, QRect &rect)
void SetForegroundColor (int color)
void SetBackgroundColor (int color)
void DrawBackground (int x, int y)
void DrawRect (int row, const QRect)
void DrawCharacter (int x, int y, QChar ch, int doubleheight=0)
void DrawMosaic (int x, int y, int code, int doubleheight)
void DrawLine (const uint8_t *page, uint row, int lang)
void DrawHeader (const uint8_t *page, int lang)
void DrawStatus (void)
void DrawPage (void)

Static Private Member Functions

static bool InitialiseFont (void)

Private Attributes

MythPlayerm_player
TeletextReaderm_teletextReader
QRect m_safeArea
int m_colWidth
int m_rowHeight
QColor m_bgColor
bool m_displaying
QHash< int, QImage * > m_rowImages
int m_fontStretch
int m_fontHeight

Detailed Description

Definition at line 10 of file teletextscreen.h.


Constructor & Destructor Documentation

TeletextScreen::TeletextScreen ( MythPlayer player,
const char *  name,
int  fontStretch 
)

Definition at line 42 of file teletextscreen.cpp.

Definition at line 54 of file teletextscreen.cpp.


Member Function Documentation

bool TeletextScreen::InitialiseFont ( void  ) [static, private]

Definition at line 679 of file teletextscreen.cpp.

Referenced by Pulse().

bool TeletextScreen::Create ( void  ) [virtual]

Reimplemented from MythScreenType.

Definition at line 59 of file teletextscreen.cpp.

Referenced by OSD::InitTeletext().

void TeletextScreen::Pulse ( void  ) [virtual]

Pulse is called 70 times a second to trigger a single frame of an animation.

This changes the alpha value of the widget

Reimplemented from MythUIType.

Definition at line 153 of file teletextscreen.cpp.

bool TeletextScreen::KeyPress ( const QString &  key)

Definition at line 238 of file teletextscreen.cpp.

Referenced by OSD::TeletextAction().

void TeletextScreen::SetPage ( int  page,
int  subpage 
)

Definition at line 245 of file teletextscreen.cpp.

Referenced by OSD::EnableTeletext().

Definition at line 251 of file teletextscreen.cpp.

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

void TeletextScreen::Reset ( void  ) [virtual]

Reset the widget to it's original state, should not reset changes made by the theme.

Reimplemented from MythUIType.

Definition at line 258 of file teletextscreen.cpp.

Referenced by OSD::TeletextReset().

Definition at line 66 of file teletextscreen.cpp.

Referenced by Pulse(), SetDisplaying(), OSD::TeletextClear(), and ~TeletextScreen().

Definition at line 98 of file teletextscreen.cpp.

Referenced by Pulse().

QImage * TeletextScreen::GetRowImage ( int  row,
QRect &  rect 
) [private]

Definition at line 79 of file teletextscreen.cpp.

Referenced by DrawCharacter(), and DrawRect().

Definition at line 310 of file teletextscreen.cpp.

Referenced by DrawLine(), and DrawStatus().

Definition at line 318 of file teletextscreen.cpp.

Referenced by DrawLine(), and DrawStatus().

void TeletextScreen::DrawBackground ( int  x,
int  y 
) [private]

Definition at line 578 of file teletextscreen.cpp.

Referenced by DrawLine(), and DrawStatus().

void TeletextScreen::DrawRect ( int  row,
const QRect  rect 
) [private]

Definition at line 586 of file teletextscreen.cpp.

Referenced by DrawBackground(), and DrawMosaic().

void TeletextScreen::DrawCharacter ( int  x,
int  y,
QChar  ch,
int  doubleheight = 0 
) [private]

Definition at line 527 of file teletextscreen.cpp.

Referenced by DrawLine(), and DrawStatus().

void TeletextScreen::DrawMosaic ( int  x,
int  y,
int  code,
int  doubleheight 
) [private]

Definition at line 600 of file teletextscreen.cpp.

Referenced by DrawLine().

void TeletextScreen::DrawLine ( const uint8_t page,
uint  row,
int  lang 
) [private]

Definition at line 327 of file teletextscreen.cpp.

Referenced by DrawHeader(), and Pulse().

void TeletextScreen::DrawHeader ( const uint8_t page,
int  lang 
) [private]

Definition at line 264 of file teletextscreen.cpp.

Referenced by Pulse().

Definition at line 624 of file teletextscreen.cpp.

Referenced by DrawHeader().


Member Data Documentation

Definition at line 43 of file teletextscreen.h.

Referenced by Create(), OptimiseDisplayedArea(), and Pulse().

Definition at line 44 of file teletextscreen.h.

Referenced by Create(), DrawLine(), DrawStatus(), KeyPress(), Pulse(), Reset(), and SetPage().

QRect TeletextScreen::m_safeArea [private]

Definition at line 45 of file teletextscreen.h.

Referenced by GetRowImage(), OptimiseDisplayedArea(), and Pulse().

Definition at line 46 of file teletextscreen.h.

Referenced by DrawBackground(), DrawCharacter(), DrawMosaic(), and Pulse().

QColor TeletextScreen::m_bgColor [private]

Definition at line 48 of file teletextscreen.h.

Referenced by DrawRect(), and SetBackgroundColor().

Definition at line 49 of file teletextscreen.h.

Referenced by DrawHeader(), Pulse(), and SetDisplaying().

QHash<int, QImage*> TeletextScreen::m_rowImages [private]

Definition at line 50 of file teletextscreen.h.

Referenced by ClearScreen(), GetRowImage(), and OptimiseDisplayedArea().

Definition at line 51 of file teletextscreen.h.

Referenced by DrawCharacter(), and Pulse().

Definition at line 52 of file teletextscreen.h.

Referenced by DrawCharacter(), and Pulse().

const QColor TeletextScreen::kColorBlack = QColor( 0, 0, 0,255) [static]

Definition at line 55 of file teletextscreen.h.

Referenced by ttcolortoqcolor().

const QColor TeletextScreen::kColorRed = QColor(255, 0, 0,255) [static]

Definition at line 56 of file teletextscreen.h.

Referenced by ttcolortoqcolor().

const QColor TeletextScreen::kColorGreen = QColor( 0,255, 0,255) [static]

Definition at line 57 of file teletextscreen.h.

Referenced by ttcolortoqcolor().

const QColor TeletextScreen::kColorYellow = QColor(255,255, 0,255) [static]

Definition at line 58 of file teletextscreen.h.

Referenced by ttcolortoqcolor().

const QColor TeletextScreen::kColorBlue = QColor( 0, 0,255,255) [static]

Definition at line 59 of file teletextscreen.h.

Referenced by ttcolortoqcolor().

const QColor TeletextScreen::kColorMagenta = QColor(255, 0,255,255) [static]

Definition at line 60 of file teletextscreen.h.

Referenced by ttcolortoqcolor().

const QColor TeletextScreen::kColorCyan = QColor( 0,255,255,255) [static]

Definition at line 61 of file teletextscreen.h.

Referenced by ttcolortoqcolor().

const QColor TeletextScreen::kColorWhite = QColor(255,255,255,255) [static]

Definition at line 62 of file teletextscreen.h.

Referenced by ttcolortoqcolor().

const QColor TeletextScreen::kColorTransp [static]

Definition at line 63 of file teletextscreen.h.

Definition at line 64 of file teletextscreen.h.

Referenced by DrawLine(), and Pulse().

const int TeletextScreen::kTeletextRows = 26 [static]

Definition at line 65 of file teletextscreen.h.

Referenced by DrawLine(), and Pulse().


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