MythTV  0.26-pre
Public Member Functions | Protected Member Functions | Protected Attributes
MythUISimpleText Class Reference

Simplified text widget, displays a text string. More...

#include <mythuisimpletext.h>

Inheritance diagram for MythUISimpleText:
MythUIType XMLParseBase

List of all members.

Public Member Functions

 MythUISimpleText (MythUIType *parent, const QString &name)
 MythUISimpleText (const QString &text, const MythFontProperties &font, const QRect &rect, Qt::Alignment align, MythUIType *parent, const QString &name)
 ~MythUISimpleText ()

Protected Member Functions

virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
virtual void CopyFrom (MythUIType *base)
 Copy this widgets state from another.
virtual void CreateCopy (MythUIType *parent)
 Copy the state of this widget to the one given, it must be of the same type.

Protected Attributes

Qt::Alignment m_Justification
MythFontProperties m_Font
QString m_Message

Detailed Description

Simplified text widget, displays a text string.

Font and alignment may be applied to the text in this widget.

Definition at line 25 of file mythuisimpletext.h.


Constructor & Destructor Documentation

MythUISimpleText::MythUISimpleText ( MythUIType parent,
const QString &  name 
)

Definition at line 20 of file mythuisimpletext.cpp.

Referenced by CreateCopy().

MythUISimpleText::MythUISimpleText ( const QString &  text,
const MythFontProperties font,
const QRect &  rect,
Qt::Alignment  align,
MythUIType parent,
const QString &  name 
)

Definition at line 26 of file mythuisimpletext.cpp.

Definition at line 39 of file mythuisimpletext.cpp.


Member Function Documentation

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

Reimplemented from MythUIType.

Definition at line 43 of file mythuisimpletext.cpp.

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

Copy this widgets state from another.

Reimplemented from MythUIType.

Definition at line 54 of file mythuisimpletext.cpp.

Referenced by CreateCopy().

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

Copy the state of this widget to the one given, it must be of the same type.

Reimplemented from MythUIType.

Definition at line 71 of file mythuisimpletext.cpp.


Member Data Documentation

Qt::Alignment MythUISimpleText::m_Justification [protected]

Definition at line 41 of file mythuisimpletext.h.

Referenced by CopyFrom(), and DrawSelf().

Definition at line 42 of file mythuisimpletext.h.

Referenced by CopyFrom(), DrawSelf(), and MythUISimpleText().

QString MythUISimpleText::m_Message [protected]

Definition at line 43 of file mythuisimpletext.h.

Referenced by CopyFrom(), and DrawSelf().


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