#include <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) 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 |
| fontProp * | m_normalFont |
| fontProp * | m_focusedFont |
| fontProp * | m_downFont |
| fontProp * | m_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 |
Definition at line 150 of file uitypes.h.
| UIKeyType::UIKeyType | ( | const QString & | name | ) |
Definition at line 291 of file uitypes.cpp.
| UIKeyType::~UIKeyType | ( | ) |
Definition at line 308 of file uitypes.cpp.
| 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] |
Definition at line 173 of file uitypes.h.
Referenced by UIKeyboardType::AddKey(), UIKeyboardType::charKey(), and UIKeyboardType::init().
| 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 | ) |
Definition at line 490 of file uitypes.cpp.
Referenced by UIKeyboardType::moveDown(), UIKeyboardType::moveLeft(), UIKeyboardType::moveRight(), and UIKeyboardType::moveUp().
Definition at line 518 of file uitypes.cpp.
| void UIKeyType::SetOn | ( | bool | bOn | ) | [inline] |
Definition at line 183 of file uitypes.h.
Referenced by UIKeyboardType::altGrOnOff(), UIKeyboardType::lockOnOff(), UIKeyboardType::shiftLOnOff(), UIKeyboardType::shiftOff(), and UIKeyboardType::shiftROnOff().
| bool UIKeyType::IsOn | ( | void | ) | [inline] |
Definition at line 184 of file uitypes.h.
Referenced by UIKeyboardType::altGrOnOff(), UIKeyboardType::leftCursor(), UIKeyboardType::lockOnOff(), UIKeyboardType::rightCursor(), UIKeyboardType::shiftLOnOff(), UIKeyboardType::shiftOff(), UIKeyboardType::shiftROnOff(), and UIKeyboardType::updateButtons().
| void UIKeyType::SetToggleKey | ( | bool | bOn | ) | [inline] |
Definition at line 186 of file uitypes.h.
Referenced by UIKeyboardType::init().
| 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().
QRect UIKeyType::m_area [private] |
Definition at line 203 of file uitypes.h.
Referenced by calculateScreenArea(), and Draw().
QString UIKeyType::m_type [private] |
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().
fontProp* UIKeyType::m_normalFont [private] |
Definition at line 211 of file uitypes.h.
Referenced by Draw(), SetDefaultFonts(), SetFonts(), and UIKeyType().
fontProp* UIKeyType::m_focusedFont [private] |
Definition at line 212 of file uitypes.h.
Referenced by Draw(), SetDefaultFonts(), SetFonts(), and UIKeyType().
fontProp* UIKeyType::m_downFont [private] |
Definition at line 213 of file uitypes.h.
Referenced by Draw(), SetDefaultFonts(), SetFonts(), and UIKeyType().
fontProp* UIKeyType::m_downFocusedFont [private] |
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().
bool UIKeyType::m_bShift [private] |
Definition at line 228 of file uitypes.h.
Referenced by Draw(), GetChar(), SetShiftState(), and UIKeyType().
bool UIKeyType::m_bAlt [private] |
Definition at line 229 of file uitypes.h.
Referenced by Draw(), GetChar(), SetShiftState(), and UIKeyType().
bool UIKeyType::m_bDown [private] |
bool UIKeyType::m_bToggle [private] |
Definition at line 231 of file uitypes.h.
Referenced by push(), UIKeyType(), and unPush().
bool UIKeyType::m_bPushed [private] |
QTimer UIKeyType::m_pushTimer [private] |
Definition at line 234 of file uitypes.h.
Referenced by push(), and UIKeyType().
1.6.3