Home · API Reference · Modules

Maliit::InputMethod Class Reference
[Libmaliit]

Listen to device orientation, language and raw key events. More...

List of all members.

Public Slots

void startOrientationAngleChange (Maliit::OrientationAngle newOrientationAngle)
void setOrientationAngle (Maliit::OrientationAngle newOrientationAngle)
void setArea (const QRect &newRegion)

Signals

void areaChanged (const QRect &region)
void orientationAngleAboutToChange (Maliit::OrientationAngle orientationAngle)
void orientationAngleChanged (Maliit::OrientationAngle orientationAngle)
void keyPress (const QKeyEvent &)
void keyRelease (const QKeyEvent &)
void languageChanged (const QString &language)

Public Member Functions

QRect area () const
Maliit::OrientationAngle orientationAngle () const
const QString & language () const

Static Public Member Functions

static InputMethodinstance ()


Detailed Description

Listen to device orientation, language and raw key events.

Member Function Documentation

InputMethod * Maliit::InputMethod::instance (  )  [static]

Get singleton instance.

Example of using the singleton InputMethod instance: plainqt/mainwindow.cpp Get singleton InputMethod instance

Returns:
singleton instance

QRect Maliit::InputMethod::area (  )  const

Get current input method area.

Returns:
current input method area

OrientationAngle Maliit::InputMethod::orientationAngle (  )  const

Get the orientation of application's active window.

Returns:
orientation of application's active window

const QString & Maliit::InputMethod::language (  )  const

Current language of active input method.

void Maliit::InputMethod::startOrientationAngleChange ( Maliit::OrientationAngle  newOrientationAngle  )  [slot]

Application's active window start to rotate to newOrientationAngle.

Note:
This method should be called when active window start rotation animation.

void Maliit::InputMethod::setOrientationAngle ( Maliit::OrientationAngle  newOrientationAngle  )  [slot]

Set the orientation angle of application's active window to newOrientationAngle.

Note:
This method should be called when active window already finished the rotation animation.

void Maliit::InputMethod::setArea ( const QRect &  newRegion  )  [slot]

Set input method area to newRegion.

void Maliit::InputMethod::areaChanged ( const QRect &  region  )  [signal]

Emitted when input method area is changed.

Warning:
This signal is consumed by the input widget relocator inside libmeegotouch, and can be emitted at any time, so in order to avoid conflicts, an application that does any custom relayout must not use a queued connection (like Qt::QueuedConnection).
Parameters:
region new input method area

void Maliit::InputMethod::orientationAngleAboutToChange ( Maliit::OrientationAngle  orientationAngle  )  [signal]

This signal is emitted before the orientation angle of the application's active window is changed.

Parameters:
orientationAngle New orientation angle which is about to change.
Note:
It is emitted at the start of the rotation animation.

void Maliit::InputMethod::orientationAngleChanged ( Maliit::OrientationAngle  orientationAngle  )  [signal]

This signal is emitted when the orientation angle of application's active window is changed.

Parameters:
orientationAngle new orientation angle
Note:
It's emitted with every orientation angle change finished.

void Maliit::InputMethod::keyPress ( const QKeyEvent &   )  [signal]

Can be emitted by input method to notify about raw key press event it receives.

void Maliit::InputMethod::keyRelease ( const QKeyEvent &   )  [signal]

Can be emitted by input method to notify about raw key release event it receives.

void Maliit::InputMethod::languageChanged ( const QString &  language  )  [signal]

Emitted on input method language change.

See also:
language()


Copyright © 2011 Nokia Corporation
Maliit