Documents > BPS V2 C++ API
BpsKeyboard Class Reference

Base class for all virtual keyboards. More...

#include <bpskeyboard.h>

+ Inheritance diagram for BpsKeyboard:

List of all members.

Signals

void altChanged (bool aEnable)
 Emitted when the alt state got changed.
void ctrlChanged (bool aEnable)
 Emitted when the ctrl state got changed.
void shiftChanged (bool aEnable)
 Emitted when the shift state got changed.

Public Member Functions

 BpsKeyboard (QWidget *aParent=0)
bool isAlt () const
bool isCtrl () const
bool isShift () const
Qt::KeyboardModifiers modifiers () const
void setAlt (bool aEnable)
 Set the new alt state.
void setCtrl (bool aEnable)
 Set the new ctrl state.
void setShift (bool aEnable)
 Set the new shift state.

Detailed Description

Base class for all virtual keyboards.

Normally an application would not directly create a virtual keyboard, but use the functions of BpsApplication.


Constructor & Destructor Documentation

BpsKeyboard::BpsKeyboard ( QWidget *  aParent = 0)
Parameters:
[in]aParentThe parent widget.

Member Function Documentation

void BpsKeyboard::altChanged ( bool  aEnable) [signal]

Emitted when the alt state got changed.

Parameters:
[in]aEnableThe new alt state.
void BpsKeyboard::ctrlChanged ( bool  aEnable) [signal]

Emitted when the ctrl state got changed.

Parameters:
[in]aEnableThe new ctrl state.
bool BpsKeyboard::isAlt ( ) const
Returns:
True if the current modifiers include alt state.
bool BpsKeyboard::isCtrl ( ) const
Returns:
True if the current modifiers include ctrl state.
bool BpsKeyboard::isShift ( ) const
Returns:
True if the current modifiers include shift state.
Qt::KeyboardModifiers BpsKeyboard::modifiers ( ) const
Returns:
The current shift, ctrl and alt status encoded as Qt::KeyboardModifiers
void BpsKeyboard::setAlt ( bool  aEnable)

Set the new alt state.

The new state is also emitted as keyboard press or release event respectively.

Parameters:
[in]aEnableThe new alt state to set.
void BpsKeyboard::setCtrl ( bool  aEnable)

Set the new ctrl state.

The new state is also emitted as keyboard press or release event respectively.

Parameters:
[in]aEnableThe new ctrl state to set.
void BpsKeyboard::setShift ( bool  aEnable)

Set the new shift state.

The new state is also emitted as keyboard press or release event respectively.

Parameters:
[in]aEnableThe new shift state to set.
void BpsKeyboard::shiftChanged ( bool  aEnable) [signal]

Emitted when the shift state got changed.

Parameters:
[in]aEnableThe new shift state.

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