MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Types | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
UIKeyboardType Class Reference

#include <uitypes.h>

Inheritance diagram for UIKeyboardType:
Inheritance graph
[legend]
Collaboration diagram for UIKeyboardType:
Collaboration graph
[legend]

Public Types

typedef QList< UIKeyType * > KeyList

Public Member Functions

 UIKeyboardType (const QString &, int)
 ~UIKeyboardType ()
void SetContainer (LayerSet *container)
void SetArea (QRect &area)
void SetEdit (QWidget *edit)
void SetParentDialog (MythThemedDialog *parentDialog)
KeyList GetKeys ()
void AddKey (UIKeyType *key)
virtual void Draw (QPainter *, int, int)
virtual void calculateScreenArea ()
virtual void keyPressEvent (QKeyEvent *e)
- Public Member Functions inherited from UIType
 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 DrawRegion (QPainter *, QRect &, int, int)
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 ()

Private Slots

void charKey ()
void lockOnOff ()
void shiftLOnOff ()
void shiftROnOff ()
void shiftOff ()
void altGrOnOff ()
void compOnOff ()
void updateButtons ()
void leftCursor ()
void rightCursor ()
void backspaceKey ()
void delKey ()
void close ()

Private Member Functions

void init ()
void insertChar (QString c)
void moveUp ()
void moveDown ()
void moveLeft ()
void moveRight ()
UIKeyTypefindKey (QString keyName)

Private Attributes

QRect m_area
bool m_bInitalized
bool m_bCompTrap
QString m_comp1
UIKeyTypem_altKey
UIKeyTypem_lockKey
UIKeyTypem_shiftLKey
UIKeyTypem_shiftRKey
UIKeyTypem_focusedKey
UIKeyTypem_doneKey
QWidget * m_parentEdit
MythThemedDialogm_parentDialog
LayerSetm_container
KeyList m_keyList

Additional Inherited Members

- Public Slots inherited from UIType
virtual bool takeFocus ()
virtual void looseFocus ()
virtual void activate ()
virtual void refresh ()
virtual void show ()
virtual void hide ()
virtual bool toggleShow ()
- Signals inherited from UIType
void requestUpdate ()
void requestUpdate (const QRect &)
void requestRegionUpdate (const QRect &)
void takingFocus ()
void loosingFocus ()
- Protected Attributes inherited from UIType
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 237 of file uitypes.h.

Member Typedef Documentation

Definition at line 245 of file uitypes.h.

Constructor & Destructor Documentation

UIKeyboardType::UIKeyboardType ( const QString &  name,
int  order 
)

Definition at line 610 of file uitypes.cpp.

UIKeyboardType::~UIKeyboardType ( )

Definition at line 626 of file uitypes.cpp.

Member Function Documentation

void UIKeyboardType::SetContainer ( LayerSet container)
inline

Definition at line 247 of file uitypes.h.

void UIKeyboardType::SetArea ( QRect &  area)
inline

Definition at line 248 of file uitypes.h.

Referenced by XMLParse::parseKeyboard().

void UIKeyboardType::SetEdit ( QWidget *  edit)
inline

Definition at line 249 of file uitypes.h.

Referenced by VirtualKeyboardQt::SwitchLayout().

void UIKeyboardType::SetParentDialog ( MythThemedDialog parentDialog)
inline

Definition at line 250 of file uitypes.h.

Referenced by VirtualKeyboardQt::SwitchLayout().

KeyList UIKeyboardType::GetKeys ( )
inline

Definition at line 253 of file uitypes.h.

void UIKeyboardType::AddKey ( UIKeyType key)

Definition at line 1110 of file uitypes.cpp.

Referenced by XMLParse::parseKeyboard().

void UIKeyboardType::Draw ( QPainter *  dr,
int  drawlayer,
int  context 
)
virtual

Reimplemented from UIType.

Definition at line 699 of file uitypes.cpp.

void UIKeyboardType::calculateScreenArea ( )
virtual

Reimplemented from UIType.

Definition at line 716 of file uitypes.cpp.

Referenced by XMLParse::parseKeyboard().

void UIKeyboardType::keyPressEvent ( QKeyEvent *  e)
virtual

Definition at line 984 of file uitypes.cpp.

Referenced by VirtualKeyboardQt::keyPressEvent().

void UIKeyboardType::charKey ( )
privateslot

Definition at line 836 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::lockOnOff ( )
privateslot

Definition at line 906 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::shiftLOnOff ( )
privateslot

Definition at line 954 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::shiftROnOff ( )
privateslot

Definition at line 968 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::shiftOff ( )
privateslot

Definition at line 925 of file uitypes.cpp.

Referenced by charKey().

void UIKeyboardType::altGrOnOff ( )
privateslot

Definition at line 818 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::compOnOff ( )
privateslot

Definition at line 830 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::updateButtons ( )
privateslot

Definition at line 944 of file uitypes.cpp.

Referenced by altGrOnOff(), lockOnOff(), shiftLOnOff(), shiftOff(), and shiftROnOff().

void UIKeyboardType::leftCursor ( )
privateslot

Definition at line 724 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::rightCursor ( )
privateslot

Definition at line 748 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::backspaceKey ( )
privateslot

Definition at line 772 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::delKey ( )
privateslot

Definition at line 795 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::close ( void  )
privateslot

Definition at line 936 of file uitypes.cpp.

Referenced by init().

void UIKeyboardType::init ( )
private

Definition at line 632 of file uitypes.cpp.

Referenced by Draw().

void UIKeyboardType::insertChar ( QString  c)
private

Definition at line 845 of file uitypes.cpp.

Referenced by charKey().

void UIKeyboardType::moveUp ( )
private

Definition at line 1027 of file uitypes.cpp.

Referenced by keyPressEvent().

void UIKeyboardType::moveDown ( )
private

Definition at line 1045 of file uitypes.cpp.

Referenced by keyPressEvent().

void UIKeyboardType::moveLeft ( )
private

Definition at line 1063 of file uitypes.cpp.

Referenced by keyPressEvent().

void UIKeyboardType::moveRight ( )
private

Definition at line 1081 of file uitypes.cpp.

Referenced by keyPressEvent().

UIKeyType * UIKeyboardType::findKey ( QString  keyName)
private

Definition at line 1099 of file uitypes.cpp.

Referenced by moveDown(), moveLeft(), moveRight(), and moveUp().

Member Data Documentation

QRect UIKeyboardType::m_area
private

Definition at line 284 of file uitypes.h.

Referenced by calculateScreenArea().

bool UIKeyboardType::m_bInitalized
private

Definition at line 286 of file uitypes.h.

Referenced by Draw(), init(), and UIKeyboardType().

bool UIKeyboardType::m_bCompTrap
private

Definition at line 288 of file uitypes.h.

Referenced by compOnOff(), insertChar(), and UIKeyboardType().

QString UIKeyboardType::m_comp1
private

Definition at line 289 of file uitypes.h.

Referenced by compOnOff(), insertChar(), and UIKeyboardType().

UIKeyType* UIKeyboardType::m_altKey
private
UIKeyType* UIKeyboardType::m_lockKey
private

Definition at line 292 of file uitypes.h.

Referenced by altGrOnOff(), init(), lockOnOff(), shiftLOnOff(), shiftOff(), shiftROnOff(), and UIKeyboardType().

UIKeyType* UIKeyboardType::m_shiftLKey
private
UIKeyType* UIKeyboardType::m_shiftRKey
private

Definition at line 294 of file uitypes.h.

Referenced by altGrOnOff(), init(), lockOnOff(), shiftLOnOff(), shiftOff(), shiftROnOff(), and UIKeyboardType().

UIKeyType* UIKeyboardType::m_focusedKey
private
UIKeyType* UIKeyboardType::m_doneKey
private

Definition at line 296 of file uitypes.h.

Referenced by init(), moveDown(), moveLeft(), moveRight(), moveUp(), and UIKeyboardType().

QWidget* UIKeyboardType::m_parentEdit
private
MythThemedDialog* UIKeyboardType::m_parentDialog
private

Definition at line 299 of file uitypes.h.

Referenced by close(), and UIKeyboardType().

LayerSet* UIKeyboardType::m_container
private

Definition at line 301 of file uitypes.h.

Referenced by UIKeyboardType(), and ~UIKeyboardType().

KeyList UIKeyboardType::m_keyList
private

Definition at line 302 of file uitypes.h.

Referenced by AddKey(), findKey(), init(), and updateButtons().


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