UIKeyType Class Reference

#include <uitypes.h>

Inheritance diagram for UIKeyType:
UIType

List of all members.

Public Slots

void push ()
void unPush ()
void activate ()

Signals

void pushed ()

Public Member Functions

 UIKeyType (const QString &)
 ~UIKeyType ()
QPoint GetPosition ()
void SetArea (QRect &area)
void SetPosition (QPoint pos)
void SetImages (QPixmap *normal, QPixmap *focused, QPixmap *down, QPixmap *downFocused)
void SetDefaultImages (QPixmap *normal, QPixmap *focused, QPixmap *down, QPixmap *downFocused)
void SetFonts (fontProp *normal, fontProp *focused, fontProp *down, fontProp *downFocused)
void SetDefaultFonts (fontProp *normal, fontProp *focused, fontProp *down, fontProp *downFocused)
void SetType (QString type)
QString GetType (void) const
void SetChars (QString normal, QString shift, QString alt, QString shiftAlt)
QString GetChar ()
void SetMoves (QString moveLeft, QString moveRight, QString moveUp, QString moveDown)
QString GetMove (QString direction)
void SetShiftState (bool sh, bool ag)
void SetOn (bool bOn)
bool IsOn (void)
void SetToggleKey (bool bOn)
bool IsToggleKey (void)
virtual void Draw (QPainter *, int, int)
virtual void calculateScreenArea ()

Private Member Functions

QString decodeChar (QString c)

Private Attributes

QRect m_area
QString m_type
QPixmap * m_normalImg
QPixmap * m_focusedImg
QPixmap * m_downImg
QPixmap * m_downFocusedImg
fontPropm_normalFont
fontPropm_focusedFont
fontPropm_downFont
fontPropm_downFocusedFont
QPoint m_pos
QString m_normalChar
QString m_shiftChar
QString m_altChar
QString m_shiftAltChar
QString m_moveLeft
QString m_moveRight
QString m_moveUp
QString m_moveDown
bool m_bShift
bool m_bAlt
bool m_bDown
bool m_bToggle
bool m_bPushed
QTimer m_pushTimer

Detailed Description

Definition at line 150 of file uitypes.h.


Constructor & Destructor Documentation

UIKeyType::UIKeyType ( const QString &  name  ) 

Definition at line 291 of file uitypes.cpp.

UIKeyType::~UIKeyType (  ) 

Definition at line 308 of file uitypes.cpp.


Member Function Documentation

QPoint UIKeyType::GetPosition (  )  [inline]

Definition at line 158 of file uitypes.h.

void UIKeyType::SetArea ( QRect &  area  )  [inline]

Definition at line 160 of file uitypes.h.

void UIKeyType::SetPosition ( QPoint  pos  )  [inline]

Definition at line 161 of file uitypes.h.

Referenced by XMLParse::parseKey().

void UIKeyType::SetImages ( QPixmap *  normal,
QPixmap *  focused,
QPixmap *  down,
QPixmap *  downFocused 
)

Definition at line 388 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

void UIKeyType::SetDefaultImages ( QPixmap *  normal,
QPixmap *  focused,
QPixmap *  down,
QPixmap *  downFocused 
)

Definition at line 397 of file uitypes.cpp.

void UIKeyType::SetFonts ( fontProp normal,
fontProp focused,
fontProp down,
fontProp downFocused 
)

Definition at line 406 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

void UIKeyType::SetDefaultFonts ( fontProp normal,
fontProp focused,
fontProp down,
fontProp downFocused 
)

Definition at line 415 of file uitypes.cpp.

void UIKeyType::SetType ( QString  type  )  [inline]

Definition at line 172 of file uitypes.h.

Referenced by XMLParse::parseKey().

QString UIKeyType::GetType ( void   )  const [inline]
void UIKeyType::SetChars ( QString  normal,
QString  shift,
QString  alt,
QString  shiftAlt 
)

Definition at line 424 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

QString UIKeyType::GetChar (  ) 

Definition at line 433 of file uitypes.cpp.

Referenced by UIKeyboardType::charKey().

void UIKeyType::SetMoves ( QString  moveLeft,
QString  moveRight,
QString  moveUp,
QString  moveDown 
)

Definition at line 481 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

QString UIKeyType::GetMove ( QString  direction  ) 
void UIKeyType::SetShiftState ( bool  sh,
bool  ag 
)

Definition at line 518 of file uitypes.cpp.

void UIKeyType::SetOn ( bool  bOn  )  [inline]
bool UIKeyType::IsOn ( void   )  [inline]
void UIKeyType::SetToggleKey ( bool  bOn  )  [inline]

Definition at line 186 of file uitypes.h.

Referenced by UIKeyboardType::init().

bool UIKeyType::IsToggleKey ( void   )  [inline]

Definition at line 187 of file uitypes.h.

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

Reimplemented from UIType.

Definition at line 312 of file uitypes.cpp.

void UIKeyType::calculateScreenArea (  )  [virtual]

Reimplemented from UIType.

Definition at line 504 of file uitypes.cpp.

void UIKeyType::push (  )  [slot]

Definition at line 525 of file uitypes.cpp.

void UIKeyType::unPush (  )  [slot]

Definition at line 546 of file uitypes.cpp.

Referenced by UIKeyType().

void UIKeyType::activate (  )  [inline, virtual, slot]

Reimplemented from UIType.

Definition at line 195 of file uitypes.h.

Referenced by UIKeyboardType::keyPressEvent().

void UIKeyType::pushed (  )  [signal]

Referenced by push().

QString UIKeyType::decodeChar ( QString  c  )  [private]

Definition at line 447 of file uitypes.cpp.

Referenced by SetChars().


Member Data Documentation

QRect UIKeyType::m_area [private]

Definition at line 203 of file uitypes.h.

Referenced by calculateScreenArea(), and Draw().

QString UIKeyType::m_type [private]

Definition at line 204 of file uitypes.h.

QPixmap* UIKeyType::m_normalImg [private]

Definition at line 206 of file uitypes.h.

Referenced by calculateScreenArea(), Draw(), SetDefaultImages(), SetImages(), and UIKeyType().

QPixmap* UIKeyType::m_focusedImg [private]

Definition at line 207 of file uitypes.h.

Referenced by Draw(), SetDefaultImages(), SetImages(), and UIKeyType().

QPixmap* UIKeyType::m_downImg [private]

Definition at line 208 of file uitypes.h.

Referenced by Draw(), SetDefaultImages(), SetImages(), and UIKeyType().

QPixmap* UIKeyType::m_downFocusedImg [private]

Definition at line 209 of file uitypes.h.

Referenced by Draw(), SetDefaultImages(), SetImages(), and UIKeyType().

Definition at line 211 of file uitypes.h.

Referenced by Draw(), SetDefaultFonts(), SetFonts(), and UIKeyType().

Definition at line 212 of file uitypes.h.

Referenced by Draw(), SetDefaultFonts(), SetFonts(), and UIKeyType().

Definition at line 213 of file uitypes.h.

Referenced by Draw(), SetDefaultFonts(), SetFonts(), and UIKeyType().

Definition at line 214 of file uitypes.h.

Referenced by Draw(), SetDefaultFonts(), SetFonts(), and UIKeyType().

QPoint UIKeyType::m_pos [private]

Definition at line 216 of file uitypes.h.

Referenced by calculateScreenArea(), Draw(), and UIKeyType().

QString UIKeyType::m_normalChar [private]

Definition at line 218 of file uitypes.h.

Referenced by Draw(), GetChar(), and SetChars().

QString UIKeyType::m_shiftChar [private]

Definition at line 219 of file uitypes.h.

Referenced by Draw(), GetChar(), and SetChars().

QString UIKeyType::m_altChar [private]

Definition at line 220 of file uitypes.h.

Referenced by Draw(), GetChar(), and SetChars().

QString UIKeyType::m_shiftAltChar [private]

Definition at line 221 of file uitypes.h.

Referenced by Draw(), GetChar(), and SetChars().

QString UIKeyType::m_moveLeft [private]

Definition at line 223 of file uitypes.h.

Referenced by GetMove(), and SetMoves().

QString UIKeyType::m_moveRight [private]

Definition at line 224 of file uitypes.h.

Referenced by GetMove(), and SetMoves().

QString UIKeyType::m_moveUp [private]

Definition at line 225 of file uitypes.h.

Referenced by GetMove(), and SetMoves().

QString UIKeyType::m_moveDown [private]

Definition at line 226 of file uitypes.h.

Referenced by GetMove(), and SetMoves().

Definition at line 228 of file uitypes.h.

Referenced by Draw(), GetChar(), SetShiftState(), and UIKeyType().

Definition at line 229 of file uitypes.h.

Referenced by Draw(), GetChar(), SetShiftState(), and UIKeyType().

Definition at line 230 of file uitypes.h.

Referenced by Draw(), push(), UIKeyType(), and unPush().

Definition at line 231 of file uitypes.h.

Referenced by push(), UIKeyType(), and unPush().

Definition at line 233 of file uitypes.h.

QTimer UIKeyType::m_pushTimer [private]

Definition at line 234 of file uitypes.h.

Referenced by push(), and UIKeyType().


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