Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KeyboardImpl Class Reference

#include </home/clem/local/src/opie/development/keyview/keyboardimpl.h>

Inheritance diagram for KeyboardImpl:

Inheritance graph
[legend]
Collaboration diagram for KeyboardImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KeyboardImpl ()
virtual ~KeyboardImpl ()
QRESULT queryInterface (const QUuid &, QUnknownInterface **)
virtual Q_REFCOUNT QWidget * inputMethod (QWidget *parent, Qt::WFlags f)
 create a new widget which should be used as input
virtual void resetState ()
 Reset the state of the inputmethod.
virtual QPixmap * icon ()
 The icon of your Input method.
virtual QString name ()
virtual void onKeyPress (QObject *receiver, const char *slot)
 pass your key event through

Private Attributes

Keyviewinput
QPixmap * icn
ulong ref

Constructor & Destructor Documentation

KeyboardImpl::KeyboardImpl  ) 
 

Definition at line 126 of file keyboardimpl.cpp.

KeyboardImpl::~KeyboardImpl  )  [virtual]
 

Definition at line 131 of file keyboardimpl.cpp.

References icn, and input.


Member Function Documentation

QPixmap * KeyboardImpl::icon  )  [virtual]
 

The icon of your Input method.

Return a pointer to a QPixmap symboling your inputmethod You need to delete the pixmap later yourself.

Implements InputMethodInterface.

Definition at line 152 of file keyboardimpl.cpp.

References icn, and kb_xpm.

QWidget * KeyboardImpl::inputMethod QWidget *  parent,
Qt::WFlags  f
[virtual]
 

create a new widget which should be used as input

This method will be called if the inputmethod is to be shown. Make sure that your widget is not too large. As of Opie1.1 InputMethods can be floating as well.

Delete the Widget yourself.

Parameters:
parent The parent of the to be created Input widget.
f The Qt::WFlags for the widget

Implements InputMethodInterface.

Definition at line 137 of file keyboardimpl.cpp.

References input.

QString KeyboardImpl::name  )  [virtual]
 

Implements InputMethodInterface.

Definition at line 159 of file keyboardimpl.cpp.

void KeyboardImpl::onKeyPress QObject *  receiver,
const char *  slot
[virtual]
 

pass your key event through

In your actual Input Implementation you'll need a SIGNAL with this void key(ushort,ushort,ushort,bool,bool) signal. The host of your input method requests you to connect your signal with the signal out of receiver and slot.

ushort == unicode value ushort == keycode ushort == modifiers from Qt::ButtonState bool == true if the key is pressed and false if released bool == autorepeat on or off.

See the QWSServer for more information about emitting keys

Parameters:
receiver the receiver to QObject::connect to
slot the slot to QObject::connect to

Implements InputMethodInterface.

Definition at line 165 of file keyboardimpl.cpp.

QRESULT KeyboardImpl::queryInterface const QUuid ,
QUnknownInterface ** 
[virtual]
 

Implements QUnknownInterface.

Definition at line 174 of file keyboardimpl.cpp.

References IID_InputMethod, IID_QUnknown, QS_FALSE, and QS_OK.

void KeyboardImpl::resetState  )  [virtual]
 

Reset the state of the inputmethod.

If you're shown reset the state of the keyboard to the the default.

Implements InputMethodInterface.

Definition at line 144 of file keyboardimpl.cpp.


Member Data Documentation

QPixmap* KeyboardImpl::icn [private]
 

Definition at line 47 of file keyboardimpl.h.

Referenced by icon(), and ~KeyboardImpl().

Keyview* KeyboardImpl::input [private]
 

Definition at line 46 of file keyboardimpl.h.

Referenced by inputMethod(), and ~KeyboardImpl().

ulong KeyboardImpl::ref [private]
 

Definition at line 48 of file keyboardimpl.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:28 2005 for OPIE by  doxygen 1.4.2