#include <osdtypeteletext.h>

Definition at line 120 of file osdtypeteletext.h.
Public Member Functions | |
| OSDTypeTeletext (const QString &name, TTFFont *font, QRect displayrect, float wmult, float hmult, OSD *osd) | |
| OSDTypeTeletext (const OSDTypeTeletext &other) | |
| virtual | ~OSDTypeTeletext () |
| void | Reinit (float wmult, float hmult) |
| void | Draw (OSDSurface *surface, int fade, int maxfade, int xoff, int yoff) |
| void | KeyPress (uint key) |
| What to do if a key is pressed. | |
| void | SetPage (int page, int subpage) |
| void | SetDisplaying (bool display) |
| void | Reset (void) |
| Resets the teletext data cache. | |
| void | AddPageHeader (int page, int subpage, const uint8_t *buf, int vbimode, int lang, int flags) |
| void | AddTeletextData (int magazine, int row, const uint8_t *buf, int vbimode) |
Private Member Functions | |
| void | SetForegroundColor (int color) const |
| Set the font color to the given color. | |
| void | SetBackgroundColor (int color) const |
| void | DrawBackground (OSDSurface *surface, int x, int y) const |
| draws background in the color set in SetBackgroundColor(). | |
| void | DrawRect (OSDSurface *surface, const QRect) const |
| void | DrawCharacter (OSDSurface *surface, int x, int y, QChar ch, int doubleheight=0) const |
| Draws a character at posistion x, y. | |
| void | DrawMosaic (OSDSurface *surface, int x, int y, int code, int doubleheight) const |
| void | DrawLine (OSDSurface *surface, const uint8_t *page, uint row, int lang) const |
| void | DrawHeader (OSDSurface *surface, const uint8_t *page, int lang) const |
| void | DrawStatus (OSDSurface *surface) const |
| void | DrawPage (OSDSurface *surface) const |
| void | NewsFlash (void) |
| void | PageUpdated (int page, int subpage) |
| Updates the page, if given pagenumber is the same as the current shown page. | |
| void | HeaderUpdated (uint8_t *page, int lang) |
| const TeletextSubPage * | FindSubPage (int page, int subpage, int dir=0) const |
| TeletextSubPage * | FindSubPage (int page, int subpage, int dir=0) |
| const TeletextPage * | FindPage (int page, int dir=0) const |
| TeletextPage * | FindPage (int page, int dir=0) |
| const TeletextSubPage * | FindSubPageInternal (int, int, int) const |
| Finds the given page. | |
| const TeletextPage * | FindPageInternal (int, int) const |
Private Attributes | |
| QMutex | m_lock |
| QRect | m_displayrect |
| QRect | m_unbiasedrect |
| OSDTypeBox * | m_box |
| int | m_tt_colspace |
| int | m_tt_rowspace |
| int | m_fetchpage |
| int | m_fetchsubpage |
| TTFFont * | m_font |
| uint8_t | m_bgcolor_y |
| uint8_t | m_bgcolor_u |
| uint8_t | m_bgcolor_v |
| uint8_t | m_bgcolor_a |
| int | m_curpage |
| int | m_cursubpage |
| bool | m_curpage_showheader |
| bool | m_curpage_issubtitle |
| int | m_pageinput [3] |
| bool | m_transparent |
| bool | m_revealHidden |
| bool | m_displaying |
| OSD * | m_osd |
| uint8_t | m_header [40] |
| bool | m_header_changed |
| bool | m_page_changed |
| bool | m_osd_changed |
| TeletextMagazine | m_magazines [8] |
| unsigned char | m_bitswap [256] |
Static Private Attributes | |
| static const QColor | kColorBlack = QColor( 0, 0, 0) |
| static const QColor | kColorRed = QColor(255, 0, 0) |
| static const QColor | kColorGreen = QColor( 0,255, 0) |
| static const QColor | kColorYellow = QColor(255,255, 0) |
| static const QColor | kColorBlue = QColor( 0, 0,255) |
| static const QColor | kColorMagenta = QColor(255, 0,255) |
| static const QColor | kColorCyan = QColor( 0,255,255) |
| static const QColor | kColorWhite = QColor(255,255,255) |
| static const int | kTeletextColumns = 40 |
| static const int | kTeletextRows = 26 |
Friends | |
| class | OSDUpdateLocker |
| QColor | color_tt2qt (int ttcolor) |
| OSDTypeTeletext::OSDTypeTeletext | ( | const QString & | name, | |
| TTFFont * | font, | |||
| QRect | displayrect, | |||
| float | wmult, | |||
| float | hmult, | |||
| OSD * | osd | |||
| ) |
Definition at line 44 of file osdtypeteletext.cpp.
| OSDTypeTeletext::OSDTypeTeletext | ( | const OSDTypeTeletext & | other | ) | [inline] |
Definition at line 130 of file osdtypeteletext.h.
| virtual OSDTypeTeletext::~OSDTypeTeletext | ( | ) | [inline, virtual] |
Definition at line 132 of file osdtypeteletext.h.
| void OSDTypeTeletext::Reinit | ( | float | wmult, | |
| float | hmult | |||
| ) | [virtual] |
| void OSDTypeTeletext::Draw | ( | OSDSurface * | surface, | |
| int | fade, | |||
| int | maxfade, | |||
| int | xoff, | |||
| int | yoff | |||
| ) | [virtual] |
| void OSDTypeTeletext::KeyPress | ( | uint | key | ) | [virtual] |
What to do if a key is pressed.
| key | pressed key |
Reimplemented from TeletextViewer.
Definition at line 481 of file osdtypeteletext.cpp.
| void OSDTypeTeletext::SetPage | ( | int | page, | |
| int | subpage | |||
| ) | [virtual] |
| void OSDTypeTeletext::SetDisplaying | ( | bool | display | ) | [inline, virtual] |
| void OSDTypeTeletext::Reset | ( | void | ) | [virtual] |
Resets the teletext data cache.
Implements TeletextViewer.
Definition at line 91 of file osdtypeteletext.cpp.
Referenced by OSDTypeTeletext().
| void OSDTypeTeletext::AddPageHeader | ( | int | page, | |
| int | subpage, | |||
| const uint8_t * | buf, | |||
| int | vbimode, | |||
| int | lang, | |||
| int | flags | |||
| ) | [virtual] |
Implements TeletextViewer.
| void OSDTypeTeletext::AddTeletextData | ( | int | magazine, | |
| int | row, | |||
| const uint8_t * | buf, | |||
| int | vbimode | |||
| ) | [virtual] |
Implements TeletextViewer.
| void OSDTypeTeletext::SetForegroundColor | ( | int | color | ) | const [private] |
Set the font color to the given color.
NOTE: kTTColorTransparent does not do anything!
Definition at line 708 of file osdtypeteletext.cpp.
Referenced by DrawStatus().
| void OSDTypeTeletext::SetBackgroundColor | ( | int | color | ) | const [private] |
| void OSDTypeTeletext::DrawBackground | ( | OSDSurface * | surface, | |
| int | x, | |||
| int | y | |||
| ) | const [private] |
draws background in the color set in SetBackgroundColor().
| x | X position (40 cols) | |
| y | Y position (25 rows) |
Definition at line 744 of file osdtypeteletext.cpp.
Referenced by DrawStatus().
| void OSDTypeTeletext::DrawRect | ( | OSDSurface * | surface, | |
| const | QRect | |||
| ) | const [private] |
Definition at line 758 of file osdtypeteletext.cpp.
Referenced by DrawBackground(), and DrawMosaic().
| void OSDTypeTeletext::DrawCharacter | ( | OSDSurface * | surface, | |
| int | x, | |||
| int | y, | |||
| QChar | ch, | |||
| int | doubleheight = 0 | |||
| ) | const [private] |
Draws a character at posistion x, y.
| x | X position (40 cols) | |
| y | Y position (25 rows) | |
| ch | Character | |
| doubleheight | if different to 0, draw doubleheighted character |
Definition at line 807 of file osdtypeteletext.cpp.
Referenced by DrawStatus().
| void OSDTypeTeletext::DrawMosaic | ( | OSDSurface * | surface, | |
| int | x, | |||
| int | y, | |||
| int | code, | |||
| int | doubleheight | |||
| ) | const [private] |
Definition at line 835 of file osdtypeteletext.cpp.
| void OSDTypeTeletext::DrawLine | ( | OSDSurface * | surface, | |
| const uint8_t * | page, | |||
| uint | row, | |||
| int | lang | |||
| ) | const [private] |
Referenced by DrawPage().
| void OSDTypeTeletext::DrawHeader | ( | OSDSurface * | surface, | |
| const uint8_t * | page, | |||
| int | lang | |||
| ) | const [private] |
Referenced by DrawPage().
| void OSDTypeTeletext::DrawStatus | ( | OSDSurface * | surface | ) | const [private] |
Definition at line 1145 of file osdtypeteletext.cpp.
| void OSDTypeTeletext::DrawPage | ( | OSDSurface * | surface | ) | const [private] |
| void OSDTypeTeletext::NewsFlash | ( | void | ) | [inline, private] |
Definition at line 169 of file osdtypeteletext.h.
| void OSDTypeTeletext::PageUpdated | ( | int | page, | |
| int | subpage | |||
| ) | [private] |
Updates the page, if given pagenumber is the same as the current shown page.
Definition at line 314 of file osdtypeteletext.cpp.
Referenced by KeyPress(), and SetPage().
| void OSDTypeTeletext::HeaderUpdated | ( | uint8_t * | page, | |
| int | lang | |||
| ) | [private] |
| const TeletextSubPage* OSDTypeTeletext::FindSubPage | ( | int | page, | |
| int | subpage, | |||
| int | dir = 0 | |||
| ) | const [inline, private] |
Definition at line 173 of file osdtypeteletext.h.
Referenced by DrawPage(), DrawStatus(), and KeyPress().
| TeletextSubPage* OSDTypeTeletext::FindSubPage | ( | int | page, | |
| int | subpage, | |||
| int | dir = 0 | |||
| ) | [inline, private] |
Definition at line 175 of file osdtypeteletext.h.
| const TeletextPage* OSDTypeTeletext::FindPage | ( | int | page, | |
| int | dir = 0 | |||
| ) | const [inline, private] |
| TeletextPage* OSDTypeTeletext::FindPage | ( | int | page, | |
| int | dir = 0 | |||
| ) | [inline, private] |
Definition at line 180 of file osdtypeteletext.h.
| const TeletextSubPage * OSDTypeTeletext::FindSubPageInternal | ( | int | page, | |
| int | subpage, | |||
| int | direction | |||
| ) | const [private] |
Finds the given page.
| page | Page number | |
| subpage | Subpage number (if set to -1, find the first subpage) | |
| direction | find page before or after the given page (only if Subpage is not -1) |
Definition at line 418 of file osdtypeteletext.cpp.
Referenced by FindSubPage().
| const TeletextPage * OSDTypeTeletext::FindPageInternal | ( | int | page, | |
| int | direction | |||
| ) | const [private] |
friend class OSDUpdateLocker [friend] |
Definition at line 125 of file osdtypeteletext.h.
| QColor color_tt2qt | ( | int | ttcolor | ) | [friend] |
Definition at line 683 of file osdtypeteletext.cpp.
Referenced by SetBackgroundColor(), and SetForegroundColor().
QMutex OSDTypeTeletext::m_lock [private] |
Reimplemented from OSDType.
Definition at line 187 of file osdtypeteletext.h.
Referenced by Draw(), KeyPress(), Reinit(), Reset(), and SetPage().
QRect OSDTypeTeletext::m_displayrect [private] |
Definition at line 188 of file osdtypeteletext.h.
Referenced by DrawBackground(), DrawCharacter(), DrawMosaic(), OSDTypeTeletext(), and Reinit().
QRect OSDTypeTeletext::m_unbiasedrect [private] |
OSDTypeBox* OSDTypeTeletext::m_box [private] |
Definition at line 191 of file osdtypeteletext.h.
int OSDTypeTeletext::m_tt_colspace [private] |
Definition at line 193 of file osdtypeteletext.h.
Referenced by DrawBackground(), DrawCharacter(), DrawMosaic(), and Reinit().
int OSDTypeTeletext::m_tt_rowspace [private] |
Definition at line 194 of file osdtypeteletext.h.
Referenced by DrawBackground(), DrawCharacter(), DrawMosaic(), and Reinit().
int OSDTypeTeletext::m_fetchpage [private] |
Definition at line 197 of file osdtypeteletext.h.
int OSDTypeTeletext::m_fetchsubpage [private] |
Definition at line 198 of file osdtypeteletext.h.
TTFFont* OSDTypeTeletext::m_font [mutable, private] |
Definition at line 201 of file osdtypeteletext.h.
Referenced by DrawCharacter(), and SetForegroundColor().
uint8_t OSDTypeTeletext::m_bgcolor_y [mutable, private] |
Definition at line 204 of file osdtypeteletext.h.
Referenced by DrawRect(), and SetBackgroundColor().
uint8_t OSDTypeTeletext::m_bgcolor_u [mutable, private] |
Definition at line 205 of file osdtypeteletext.h.
Referenced by DrawRect(), and SetBackgroundColor().
uint8_t OSDTypeTeletext::m_bgcolor_v [mutable, private] |
Definition at line 206 of file osdtypeteletext.h.
Referenced by DrawRect(), and SetBackgroundColor().
uint8_t OSDTypeTeletext::m_bgcolor_a [mutable, private] |
Definition at line 207 of file osdtypeteletext.h.
Referenced by DrawRect(), and SetBackgroundColor().
int OSDTypeTeletext::m_curpage [mutable, private] |
Definition at line 210 of file osdtypeteletext.h.
Referenced by DrawPage(), DrawStatus(), KeyPress(), PageUpdated(), Reset(), and SetPage().
int OSDTypeTeletext::m_cursubpage [mutable, private] |
Definition at line 211 of file osdtypeteletext.h.
Referenced by DrawPage(), DrawStatus(), KeyPress(), PageUpdated(), Reset(), and SetPage().
bool OSDTypeTeletext::m_curpage_showheader [mutable, private] |
Definition at line 212 of file osdtypeteletext.h.
Referenced by DrawPage(), KeyPress(), and Reset().
bool OSDTypeTeletext::m_curpage_issubtitle [mutable, private] |
int OSDTypeTeletext::m_pageinput[3] [private] |
Definition at line 215 of file osdtypeteletext.h.
Referenced by DrawStatus(), KeyPress(), Reset(), and SetPage().
bool OSDTypeTeletext::m_transparent [private] |
bool OSDTypeTeletext::m_revealHidden [private] |
bool OSDTypeTeletext::m_displaying [private] |
Definition at line 220 of file osdtypeteletext.h.
Referenced by DrawPage(), PageUpdated(), and SetDisplaying().
OSD* OSDTypeTeletext::m_osd [private] |
Definition at line 222 of file osdtypeteletext.h.
Referenced by OSDUpdateLocker::~OSDUpdateLocker().
uint8_t OSDTypeTeletext::m_header[40] [private] |
bool OSDTypeTeletext::m_header_changed [mutable, private] |
bool OSDTypeTeletext::m_page_changed [mutable, private] |
bool OSDTypeTeletext::m_osd_changed [mutable, private] |
Definition at line 226 of file osdtypeteletext.h.
Referenced by PageUpdated(), and OSDUpdateLocker::~OSDUpdateLocker().
TeletextMagazine OSDTypeTeletext::m_magazines[8] [private] |
Definition at line 228 of file osdtypeteletext.h.
Referenced by FindPageInternal(), FindSubPageInternal(), and Reset().
unsigned char OSDTypeTeletext::m_bitswap[256] [private] |
const QColor OSDTypeTeletext::kColorBlack = QColor( 0, 0, 0) [static, private] |
const QColor OSDTypeTeletext::kColorRed = QColor(255, 0, 0) [static, private] |
const QColor OSDTypeTeletext::kColorGreen = QColor( 0,255, 0) [static, private] |
const QColor OSDTypeTeletext::kColorYellow = QColor(255,255, 0) [static, private] |
const QColor OSDTypeTeletext::kColorBlue = QColor( 0, 0,255) [static, private] |
const QColor OSDTypeTeletext::kColorMagenta = QColor(255, 0,255) [static, private] |
const QColor OSDTypeTeletext::kColorCyan = QColor( 0,255,255) [static, private] |
const QColor OSDTypeTeletext::kColorWhite = QColor(255,255,255) [static, private] |
const int OSDTypeTeletext::kTeletextColumns = 40 [static, private] |
const int OSDTypeTeletext::kTeletextRows = 26 [static, private] |
Definition at line 240 of file osdtypeteletext.h.
1.5.5