UIType Class Reference

#include <uitypes.h>

Inheritance diagram for UIType:
UIKeyboardType UIKeyType

List of all members.

Public Slots

virtual bool takeFocus ()
virtual void looseFocus ()
virtual void activate ()
virtual void refresh ()
virtual void show ()
virtual void hide ()
virtual bool toggleShow ()

Signals

void requestUpdate ()
void requestUpdate (const QRect &)
void requestRegionUpdate (const QRect &)
void takingFocus ()
void loosingFocus ()

Public Member Functions

 UIType (const QString &name)
virtual ~UIType ()
void SetOrder (int order)
void SetParent (LayerSet *)
void SetScreen (double wmult, double hmult)
void SetContext (int con)
int GetContext ()
void SetDebug (bool db)
void allowFocus (bool yes_or_no)
void SetDrawFontShadow (bool state)
QString Name ()
bool canTakeFocus ()
int getOrder ()
virtual void Draw (QPainter *, int, int)
virtual void DrawRegion (QPainter *, QRect &, int, int)
virtual void calculateScreenArea ()
QRect getScreenArea ()
QString cutDown (const QString &data, QFont *font, bool multiline=false, int overload_width=-1, int overload_height=-1)
QString getName ()
bool isShown ()
bool isHidden ()
bool isFocused ()

Protected Attributes

double m_wmult
double m_hmult
int m_context
int m_order
bool m_debug
QString m_name
LayerSetm_parent
bool has_focus
bool takes_focus
QRect screen_area
bool drawFontShadow
bool hidden

Detailed Description

Definition at line 78 of file uitypes.h.


Constructor & Destructor Documentation

UIType::UIType ( const QString &  name  ) 

Definition at line 121 of file uitypes.cpp.

UIType::~UIType (  )  [virtual]

Definition at line 146 of file uitypes.cpp.


Member Function Documentation

void UIType::SetOrder ( int  order  ) 

Definition at line 137 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

void UIType::SetParent ( LayerSet parent  ) 

Definition at line 165 of file uitypes.cpp.

Referenced by LayerSet::AddType(), XMLParse::parseKey(), and XMLParse::parseKeyboard().

void UIType::SetScreen ( double  wmult,
double  hmult 
) [inline]

Definition at line 88 of file uitypes.h.

Referenced by XMLParse::parseKey(), and XMLParse::parseKeyboard().

void UIType::SetContext ( int  con  )  [inline]

Definition at line 89 of file uitypes.h.

Referenced by XMLParse::parseKeyboard().

int UIType::GetContext ( void   )  [inline]

Definition at line 90 of file uitypes.h.

Referenced by MythThemedDialog::buildFocusList().

void UIType::SetDebug ( bool  db  )  [inline]

Definition at line 91 of file uitypes.h.

Referenced by LayerSet::AddType().

void UIType::allowFocus ( bool  yes_or_no  )  [inline]

Definition at line 92 of file uitypes.h.

void UIType::SetDrawFontShadow ( bool  state  )  [inline]

Definition at line 93 of file uitypes.h.

Referenced by LayerSet::SetDrawFontShadow().

QString UIType::Name (  ) 

Definition at line 170 of file uitypes.cpp.

Referenced by LayerSet::AddType().

bool UIType::canTakeFocus (  )  [inline]
int UIType::getOrder (  )  [inline]

Definition at line 98 of file uitypes.h.

Referenced by LayerSet::AddType().

void UIType::Draw ( QPainter *  dr,
int  drawlayer,
int  context 
) [virtual]

Reimplemented in UIKeyType, and UIKeyboardType.

Definition at line 150 of file uitypes.cpp.

Referenced by LayerSet::Draw().

void UIType::DrawRegion ( QPainter *  dr,
QRect &  area,
int  drawlayer,
int  context 
) [virtual]

Definition at line 157 of file uitypes.cpp.

Referenced by LayerSet::DrawRegion().

void UIType::calculateScreenArea (  )  [virtual]

Reimplemented in UIKeyType, and UIKeyboardType.

Definition at line 195 of file uitypes.cpp.

QRect UIType::getScreenArea (  )  [inline]

Definition at line 102 of file uitypes.h.

QString UIType::cutDown ( const QString &  data,
QFont *  font,
bool  multiline = false,
int  overload_width = -1,
int  overload_height = -1 
)

Definition at line 237 of file uitypes.cpp.

QString UIType::getName ( void   )  [inline]

Definition at line 105 of file uitypes.h.

bool UIType::isShown (  )  [inline]

Definition at line 107 of file uitypes.h.

bool UIType::isHidden (  )  [inline]

Definition at line 108 of file uitypes.h.

Referenced by MythThemedDialog::buildFocusList().

bool UIType::isFocused (  )  [inline]

Definition at line 109 of file uitypes.h.

bool UIType::takeFocus (  )  [virtual, slot]
void UIType::looseFocus (  )  [virtual, slot]
virtual void UIType::activate (  )  [inline, virtual, slot]

Reimplemented in UIKeyType.

Definition at line 115 of file uitypes.h.

Referenced by MythThemedDialog::activateCurrent().

void UIType::refresh (  )  [virtual, slot]
void UIType::show (  )  [virtual, slot]

Definition at line 205 of file uitypes.cpp.

Referenced by toggleShow().

void UIType::hide ( void   )  [virtual, slot]

Definition at line 217 of file uitypes.cpp.

Referenced by toggleShow().

bool UIType::toggleShow (  )  [virtual, slot]

Definition at line 223 of file uitypes.cpp.

void UIType::requestUpdate (  )  [signal]

Referenced by refresh().

void UIType::requestUpdate ( const QRect &   )  [signal]
void UIType::requestRegionUpdate ( const QRect &   )  [signal]
void UIType::takingFocus (  )  [signal]

Referenced by takeFocus().

void UIType::loosingFocus (  )  [signal]

Referenced by looseFocus().


Member Data Documentation

double UIType::m_wmult [protected]

Definition at line 136 of file uitypes.h.

Referenced by UIKeyType::Draw().

double UIType::m_hmult [protected]

Definition at line 137 of file uitypes.h.

int UIType::m_context [protected]

Definition at line 138 of file uitypes.h.

Referenced by UIKeyboardType::Draw(), UIKeyType::Draw(), and UIType().

int UIType::m_order [protected]
bool UIType::m_debug [protected]

Definition at line 140 of file uitypes.h.

Referenced by UIType().

QString UIType::m_name [protected]

Definition at line 141 of file uitypes.h.

Referenced by Name(), and UIType().

LayerSet* UIType::m_parent [protected]
bool UIType::has_focus [protected]

Definition at line 143 of file uitypes.h.

Referenced by UIKeyType::Draw(), looseFocus(), takeFocus(), and UIType().

Definition at line 144 of file uitypes.h.

Referenced by takeFocus(), UIKeyType::UIKeyType(), and UIType().

QRect UIType::screen_area [protected]

Definition at line 146 of file uitypes.h.

Referenced by UIKeyType::Draw(), and UIType().

bool UIType::hidden [protected]

Definition at line 147 of file uitypes.h.

Referenced by UIKeyboardType::Draw(), hide(), show(), toggleShow(), and UIType().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:30 2012 for MythTV by  doxygen 1.6.3