MythUIText Class Reference

#include <mythuitext.h>

Inheritance diagram for MythUIText:

MythUIType XMLParseBase MythUIClock

List of all members.


Detailed Description

Definition at line 13 of file mythuitext.h.


Public Member Functions

 MythUIText (MythUIType *parent, const char *name)
 MythUIText (const QString &text, const MythFontProperties &font, QRect displayRect, QRect altDisplayRect, MythUIType *parent, const char *name)
 ~MythUIText ()
void SetText (const QString &text)
QString GetText (void)
QString GetDefaultText (void)
void SetFontProperties (const MythFontProperties &fontProps)
void UseAlternateArea (bool useAlt)
void SetJustification (int just)
int GetJustification (void)
void SetCutDown (bool cut)
void SetArea (const QRect &rect)
virtual void Pulse (void)
void CycleColor (QColor startColor, QColor endColor, int numSteps)
void StopCycling ()

Protected Member Functions

virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
virtual bool ParseElement (QDomElement &element)
virtual void CopyFrom (MythUIType *base)
virtual void CreateCopy (MythUIType *parent)
virtual void Finalize (void)

Protected Attributes

int m_Justification
QRect m_OrigDisplayRect
QRect m_AltDisplayRect
QString m_Message
QString m_CutMessage
QString m_DefaultMessage
bool m_Cutdown
MythFontPropertiesm_Font
bool m_colorCycling
QColor m_startColor
QColor m_endColor
int m_numSteps
int m_curStep
float curR
float curG
float curB
float incR
float incG
float incB

Constructor & Destructor Documentation

MythUIText::MythUIText ( MythUIType parent,
const char *  name 
)

Definition at line 11 of file mythuitext.cpp.

Referenced by CreateCopy().

MythUIText::MythUIText ( const QString &  text,
const MythFontProperties font,
QRect  displayRect,
QRect  altDisplayRect,
MythUIType parent,
const char *  name 
)

Definition at line 28 of file mythuitext.cpp.

MythUIText::~MythUIText (  ) 

Definition at line 49 of file mythuitext.cpp.


Member Function Documentation

void MythUIText::SetText ( const QString &  text  ) 

QString MythUIText::GetText ( void   ) 

Definition at line 68 of file mythuitext.cpp.

Referenced by MythUIButton::GetText().

QString MythUIText::GetDefaultText ( void   ) 

Definition at line 73 of file mythuitext.cpp.

void MythUIText::SetFontProperties ( const MythFontProperties fontProps  ) 

Definition at line 78 of file mythuitext.cpp.

Referenced by MythUIButton::SelectState(), and MythUIButton::SetFont().

void MythUIText::UseAlternateArea ( bool  useAlt  ) 

Definition at line 84 of file mythuitext.cpp.

void MythUIText::SetJustification ( int  just  ) 

int MythUIText::GetJustification ( void   ) 

Definition at line 104 of file mythuitext.cpp.

void MythUIText::SetCutDown ( bool  cut  ) 

Definition at line 109 of file mythuitext.cpp.

void MythUIText::SetArea ( const QRect &  rect  )  [virtual]

Reimplemented from MythUIType.

Definition at line 116 of file mythuitext.cpp.

Referenced by MythUIButton::SetTextRect().

void MythUIText::Pulse ( void   )  [virtual]

Reimplemented from MythUIType.

Reimplemented in MythUIClock.

Definition at line 146 of file mythuitext.cpp.

Referenced by MythUIClock::Pulse().

void MythUIText::CycleColor ( QColor  startColor,
QColor  endColor,
int  numSteps 
)

Definition at line 179 of file mythuitext.cpp.

Referenced by ParseElement().

void MythUIText::StopCycling ( void   ) 

Definition at line 200 of file mythuitext.cpp.

void MythUIText::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRect 
) [protected, virtual]

Reimplemented from MythUIType.

Definition at line 122 of file mythuitext.cpp.

bool MythUIText::ParseElement ( QDomElement &  element  )  [protected, virtual]

Reimplemented from MythUIType.

Reimplemented in MythUIClock.

Definition at line 210 of file mythuitext.cpp.

Referenced by MythUIClock::ParseElement().

void MythUIText::CopyFrom ( MythUIType base  )  [protected, virtual]

Reimplemented from MythUIType.

Reimplemented in MythUIClock.

Definition at line 302 of file mythuitext.cpp.

Referenced by MythUIClock::CopyFrom(), and CreateCopy().

void MythUIText::CreateCopy ( MythUIType parent  )  [protected, virtual]

Reimplemented from MythUIType.

Reimplemented in MythUIClock.

Definition at line 338 of file mythuitext.cpp.

void MythUIText::Finalize ( void   )  [protected, virtual]

Reimplemented from MythUIType.

Definition at line 344 of file mythuitext.cpp.


Member Data Documentation

int MythUIText::m_Justification [protected]

QRect MythUIText::m_OrigDisplayRect [protected]

Definition at line 51 of file mythuitext.h.

Referenced by CopyFrom(), MythUIText(), ParseElement(), and UseAlternateArea().

QRect MythUIText::m_AltDisplayRect [protected]

Definition at line 52 of file mythuitext.h.

Referenced by CopyFrom(), MythUIText(), ParseElement(), and UseAlternateArea().

QString MythUIText::m_Message [protected]

QString MythUIText::m_CutMessage [protected]

QString MythUIText::m_DefaultMessage [protected]

Definition at line 56 of file mythuitext.h.

Referenced by CopyFrom(), GetDefaultText(), and MythUIText().

Definition at line 58 of file mythuitext.h.

Referenced by CopyFrom(), DrawSelf(), MythUIText(), ParseElement(), and SetCutDown().

Definition at line 62 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), MythUIText(), ParseElement(), Pulse(), and StopCycling().

QColor MythUIText::m_startColor [protected]

Definition at line 63 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), ParseElement(), and StopCycling().

QColor MythUIText::m_endColor [protected]

Definition at line 63 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), and ParseElement().

int MythUIText::m_numSteps [protected]

Definition at line 64 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), ParseElement(), and Pulse().

int MythUIText::m_curStep [protected]

Definition at line 64 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), and Pulse().

float MythUIText::curR [protected]

Definition at line 65 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), and Pulse().

float MythUIText::curG [protected]

Definition at line 65 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), and Pulse().

float MythUIText::curB [protected]

Definition at line 65 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), and Pulse().

float MythUIText::incR [protected]

Definition at line 66 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), and Pulse().

float MythUIText::incG [protected]

Definition at line 66 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), and Pulse().

float MythUIText::incB [protected]

Definition at line 66 of file mythuitext.h.

Referenced by CopyFrom(), CycleColor(), and Pulse().


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

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