MythTV  master
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SubtitleFormat Class Reference

Public Member Functions

 SubtitleFormat (void)=default
 
 ~SubtitleFormat (void)
 
MythFontPropertiesGetFont (const QString &family, const CC708CharacterAttribute &attr, int pixelSize, int zoom, int stretch)
 
SubShapeGetBackground (MythUIType *parent, const QString &name, const QString &family, const CC708CharacterAttribute &attr, const MythRect &area, int whichImageCache, int start, int duration)
 
int GetBackgroundAlpha (const QString &family)
 

Static Public Member Functions

static QString MakePrefix (const QString &family, const CC708CharacterAttribute &attr)
 

Private Member Functions

void Load (const QString &family, const CC708CharacterAttribute &attr)
 
bool IsUnlocked (const QString &prefix, const QString &property) const
 

Static Private Member Functions

static void CreateProviderDefault (const QString &family, const CC708CharacterAttribute &attr, MythUIType *parent, bool isComplement, MythFontProperties **font, MythUIShape **bg)
 
static void Complement (MythFontProperties *font, MythUIShape *bg)
 
static QSet< QString > Diff (const QString &family, const CC708CharacterAttribute &attr, MythFontProperties *font1, MythFontProperties *font2, MythUIShape *bg1, MythUIShape *bg2)
 

Private Attributes

QHash< QString, MythFontProperties * > m_fontMap
 
QHash< QString, MythUIShape * > m_shapeMap
 
QHash< QString, QSet< QString > > m_changeMap
 
QHash< QString, int > m_pixelSizeMap
 
QHash< QString, int > m_outlineSizeMap
 
QHash< QString, QPoint > m_shadowOffsetMap
 
QVector< MythUIType * > m_cleanup
 

Detailed Description

Definition at line 130 of file subtitlescreen.cpp.

Constructor & Destructor Documentation

◆ SubtitleFormat()

SubtitleFormat::SubtitleFormat ( void  )
default

◆ ~SubtitleFormat()

SubtitleFormat::~SubtitleFormat ( void  )

Definition at line 346 of file subtitlescreen.cpp.

Member Function Documentation

◆ GetFont()

MythFontProperties * SubtitleFormat::GetFont ( const QString &  family,
const CC708CharacterAttribute attr,
int  pixelSize,
int  zoom,
int  stretch 
)

◆ GetBackground()

SubShape * SubtitleFormat::GetBackground ( MythUIType parent,
const QString &  name,
const QString &  family,
const CC708CharacterAttribute attr,
const MythRect area,
int  whichImageCache,
int  start,
int  duration 
)

Definition at line 590 of file subtitlescreen.cpp.

Referenced by GetBackgroundAlpha().

◆ GetBackgroundAlpha()

int SubtitleFormat::GetBackgroundAlpha ( const QString &  family)

Definition at line 628 of file subtitlescreen.cpp.

Referenced by SubtitleScreen::GetTeletextBackgroundAlpha().

◆ MakePrefix()

QString SubtitleFormat::MakePrefix ( const QString &  family,
const CC708CharacterAttribute attr 
)
static

Definition at line 356 of file subtitlescreen.cpp.

Referenced by Diff(), GetBackground(), GetFont(), and Load().

◆ Load()

void SubtitleFormat::Load ( const QString &  family,
const CC708CharacterAttribute attr 
)
private

Definition at line 453 of file subtitlescreen.cpp.

Referenced by GetBackground(), and GetFont().

◆ IsUnlocked()

bool SubtitleFormat::IsUnlocked ( const QString &  prefix,
const QString &  property 
) const
inlineprivate

Definition at line 150 of file subtitlescreen.cpp.

Referenced by GetBackground(), and GetFont().

◆ CreateProviderDefault()

void SubtitleFormat::CreateProviderDefault ( const QString &  family,
const CC708CharacterAttribute attr,
MythUIType parent,
bool  isComplement,
MythFontProperties **  font,
MythUIShape **  bg 
)
staticprivate

Definition at line 364 of file subtitlescreen.cpp.

Referenced by Load().

◆ Complement()

void SubtitleFormat::Complement ( MythFontProperties font,
MythUIShape bg 
)
staticprivate

Definition at line 427 of file subtitlescreen.cpp.

Referenced by CreateProviderDefault().

◆ Diff()

QSet< QString > SubtitleFormat::Diff ( const QString &  family,
const CC708CharacterAttribute attr,
MythFontProperties font1,
MythFontProperties font2,
MythUIShape bg1,
MythUIShape bg2 
)
staticprivate

Definition at line 524 of file subtitlescreen.cpp.

Referenced by Load().

Member Data Documentation

◆ m_fontMap

QHash<QString, MythFontProperties *> SubtitleFormat::m_fontMap
private

Definition at line 168 of file subtitlescreen.cpp.

Referenced by GetFont(), and Load().

◆ m_shapeMap

QHash<QString, MythUIShape *> SubtitleFormat::m_shapeMap
private

Definition at line 169 of file subtitlescreen.cpp.

Referenced by GetBackground(), and Load().

◆ m_changeMap

QHash<QString, QSet<QString> > SubtitleFormat::m_changeMap
private

Definition at line 170 of file subtitlescreen.cpp.

Referenced by IsUnlocked(), and Load().

◆ m_pixelSizeMap

QHash<QString, int> SubtitleFormat::m_pixelSizeMap
private

Definition at line 174 of file subtitlescreen.cpp.

Referenced by GetFont(), and Load().

◆ m_outlineSizeMap

QHash<QString, int> SubtitleFormat::m_outlineSizeMap
private

Definition at line 175 of file subtitlescreen.cpp.

Referenced by GetFont(), and Load().

◆ m_shadowOffsetMap

QHash<QString, QPoint> SubtitleFormat::m_shadowOffsetMap
private

Definition at line 176 of file subtitlescreen.cpp.

Referenced by GetFont(), and Load().

◆ m_cleanup

QVector<MythUIType *> SubtitleFormat::m_cleanup
private

Definition at line 177 of file subtitlescreen.cpp.

Referenced by Load(), and ~SubtitleFormat().


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