UIKeyType Class Reference

#include <uitypes.h>

Inheritance diagram for UIKeyType:

UIType

List of all members.


Detailed Description

Definition at line 1388 of file uitypes.h.


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 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

Constructor & Destructor Documentation

UIKeyType::UIKeyType ( const QString &  name  ) 

Definition at line 5333 of file uitypes.cpp.

UIKeyType::~UIKeyType (  ) 

Definition at line 5350 of file uitypes.cpp.


Member Function Documentation

QPoint UIKeyType::GetPosition (  )  [inline]

Definition at line 1396 of file uitypes.h.

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

Definition at line 1398 of file uitypes.h.

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

Definition at line 1399 of file uitypes.h.

Referenced by XMLParse::parseKey().

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

Definition at line 5431 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

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

Definition at line 5440 of file uitypes.cpp.

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

Definition at line 5449 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

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

Definition at line 5458 of file uitypes.cpp.

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

Definition at line 1410 of file uitypes.h.

Referenced by XMLParse::parseKey().

QString UIKeyType::GetType (  )  [inline]

void UIKeyType::SetChars ( QString  normal,
QString  shift,
QString  alt,
QString  shiftAlt 
)

Definition at line 5467 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

QString UIKeyType::GetChar (  ) 

Definition at line 5476 of file uitypes.cpp.

Referenced by UIKeyboardType::charKey().

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

Definition at line 5523 of file uitypes.cpp.

Referenced by XMLParse::parseKey().

QString UIKeyType::GetMove ( QString  direction  ) 

void UIKeyType::SetShiftState ( bool  sh,
bool  ag 
)

Definition at line 5561 of file uitypes.cpp.

Referenced by UIKeyboardType::updateButtons().

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

bool UIKeyType::IsOn ( void   )  [inline]

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

Definition at line 1424 of file uitypes.h.

Referenced by UIKeyboardType::init().

bool UIKeyType::IsToggleKey ( void   )  [inline]

Definition at line 1425 of file uitypes.h.

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

Reimplemented from UIType.

Definition at line 5354 of file uitypes.cpp.

void UIKeyType::calculateScreenArea ( void   )  [virtual]

Reimplemented from UIType.

Definition at line 5546 of file uitypes.cpp.

void UIKeyType::push (  )  [slot]

Definition at line 5568 of file uitypes.cpp.

void UIKeyType::unPush (  )  [slot]

Definition at line 5588 of file uitypes.cpp.

Referenced by UIKeyType().

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

Reimplemented from UIType.

Definition at line 1433 of file uitypes.h.

Referenced by UIKeyboardType::keyPressEvent().

void UIKeyType::pushed (  )  [signal]

Referenced by push().

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

Definition at line 5490 of file uitypes.cpp.

Referenced by SetChars().


Member Data Documentation

QRect UIKeyType::m_area [private]

Definition at line 1441 of file uitypes.h.

Referenced by calculateScreenArea(), and Draw().

QString UIKeyType::m_type [private]

Definition at line 1442 of file uitypes.h.

QPixmap* UIKeyType::m_normalImg [private]

Definition at line 1444 of file uitypes.h.

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

QPixmap* UIKeyType::m_focusedImg [private]

Definition at line 1445 of file uitypes.h.

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

QPixmap* UIKeyType::m_downImg [private]

Definition at line 1446 of file uitypes.h.

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

QPixmap* UIKeyType::m_downFocusedImg [private]

Definition at line 1447 of file uitypes.h.

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

Definition at line 1449 of file uitypes.h.

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

Definition at line 1450 of file uitypes.h.

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

Definition at line 1451 of file uitypes.h.

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

Definition at line 1452 of file uitypes.h.

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

QPoint UIKeyType::m_pos [private]

Definition at line 1454 of file uitypes.h.

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

QString UIKeyType::m_normalChar [private]

Definition at line 1456 of file uitypes.h.

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

QString UIKeyType::m_shiftChar [private]

Definition at line 1457 of file uitypes.h.

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

QString UIKeyType::m_altChar [private]

Definition at line 1458 of file uitypes.h.

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

QString UIKeyType::m_shiftAltChar [private]

Definition at line 1459 of file uitypes.h.

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

QString UIKeyType::m_moveLeft [private]

Definition at line 1461 of file uitypes.h.

Referenced by GetMove(), and SetMoves().

QString UIKeyType::m_moveRight [private]

Definition at line 1462 of file uitypes.h.

Referenced by GetMove(), and SetMoves().

QString UIKeyType::m_moveUp [private]

Definition at line 1463 of file uitypes.h.

Referenced by GetMove(), and SetMoves().

QString UIKeyType::m_moveDown [private]

Definition at line 1464 of file uitypes.h.

Referenced by GetMove(), and SetMoves().

Definition at line 1466 of file uitypes.h.

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

Definition at line 1467 of file uitypes.h.

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

Definition at line 1468 of file uitypes.h.

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

Definition at line 1469 of file uitypes.h.

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

Definition at line 1471 of file uitypes.h.

QTimer UIKeyType::m_pushTimer [private]

Definition at line 1472 of file uitypes.h.

Referenced by push(), and UIKeyType().


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

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