Home · API Reference · Modules |
Public Slots | |
virtual void | sendPreeditString (const QString &string, const QList< Maliit::PreeditTextFormat > &preeditFormats, int replacementStart=0, int replacementLength=0, int cursorPos=-1)=0 |
virtual void | sendCommitString (const QString &string, int replaceStart=0, int replaceLength=0, int cursorPos=-1)=0 |
virtual void | sendKeyEvent (const QKeyEvent &keyEvent, Maliit::EventRequestType requestType=Maliit::EventRequestBoth)=0 |
virtual void | notifyImInitiatedHiding ()=0 |
virtual void | invokeAction (const QString &action, const QKeySequence &sequence)=0 |
virtual void | setRedirectKeys (bool enabled)=0 |
virtual void | setDetectableAutoRepeat (bool enabled)=0 |
virtual void | setGlobalCorrectionEnabled (bool enabled)=0 |
virtual void | setInputModeIndicator (Maliit::InputModeIndicator mode)=0 |
virtual void | switchPlugin (Maliit::SwitchDirection direction)=0 |
virtual void | switchPlugin (const QString &pluginName)=0 |
virtual void | setScreenRegion (const QRegion ®ion)=0 |
virtual void | setInputMethodArea (const QRegion ®ion)=0 |
virtual void | setSelection (int start, int length)=0 |
virtual void | setOrientationAngleLocked (bool lock)=0 |
Signals | |
void | pluginsChanged () |
Public Member Functions | |
MAbstractInputMethodHost (QObject *parent=0) | |
virtual | ~MAbstractInputMethodHost () |
virtual int | contentType (bool &valid)=0 |
virtual bool | correctionEnabled (bool &valid)=0 |
virtual bool | predictionEnabled (bool &valid)=0 |
virtual bool | autoCapitalizationEnabled (bool &valid)=0 |
virtual bool | surroundingText (QString &text, int &cursorPosition)=0 |
virtual bool | hasSelection (bool &valid)=0 |
virtual int | inputMethodMode (bool &valid)=0 |
virtual QRect | preeditRectangle (bool &valid)=0 |
virtual QRect | cursorRectangle (bool &valid)=0 |
virtual int | anchorPosition (bool &valid)=0 |
virtual bool | hiddenText (bool &valid) |
virtual QString | selection (bool &valid)=0 |
QPixmap | background () const |
virtual QList< MImPluginDescription > | pluginDescriptions (Maliit::HandlerState state) const =0 |
virtual int | preeditClickPos (bool &valid) const |
virtual QList< MImSubViewDescription > | surroundingSubViewDescriptions (Maliit::HandlerState state) const |
virtual void | setLanguage (const QString &language) |
virtual Maliit::Plugins::AbstractSurfaceFactory * | surfaceFactory ()=0 |
virtual Maliit::Plugins::AbstractPluginSetting * | registerPluginSetting (const QString &key, const QString &description, Maliit::SettingEntryType type, const QVariantMap &attributes)=0 |
Provides an interface for input method instances to connect to the environment.
MAbstractInputMethodHost provides methods MAbstractInputMethod instances can use for interacting with the application that is using input method services and the input method framework state itself.
|
explicit |
|
virtual |
|
pure virtual |
returns the position of the selection anchor.
This may be less or greater than cursor position, depending on which side of selection the cursor is. If there is no selection, it returns the same as cursor position.
|
pure virtual |
returns input method auto-capitalization hint if output parameter valid is true.
QPixmap MAbstractInputMethodHost::background | ( | ) | const |
returns a pixmap that needs to be drawn as the background of the input method. Pixmap contains the application's window contents.
|
pure virtual |
returns content type for focused widget if output parameter valid is true, value matches enum M::TextContentType
|
pure virtual |
returns input method correction hint if output parameter valid is true.
|
pure virtual |
get cursor rectangle
|
pure virtual |
returns true if there is selecting text
|
virtual |
true if text input is being made hidden, e.g. with password fields
|
pure virtual |
get input method mode
|
pure virtualslot |
calls actions like "copy" or "paste" on the focused text entry.
action | The action to call |
sequence | The fall-back key sequence when action is not available |
|
pure virtualslot |
Notifies about hiding initiated by the input method.
|
pure virtual |
Return information about loaded input method plugins which could work in specified state.
|
signal |
This signal is emitted when input method plugins are loaded or unloaded.
|
pure virtual |
returns input method word prediction hint if output parameter valid is true.
|
inlinevirtual |
returns the current cursor position within the preedit region
|
pure virtual |
get preedit rectangle
|
pure virtual |
Register a new plugin setting.
key | name for the entry |
type | value type |
attributes | attribute map, the same used in SettingsEntry |
Returns an object (owned by the plugin) that can be used to manipulate the setting entry.
|
pure virtual |
returns the selecting text
|
pure virtualslot |
Updates commit string in the application widget, and set cursor position.
string | The string to be committed |
replaceStart | The position at which characters are to be replaced relative from the start of the preedit string. |
replaceLength | The number of characters to be replaced in the preedit string. |
cursorPos | The cursor position to be set. the cursorPos is the position relative to commit string start. Negative values are used as commit string end position. Cursor position is applied AFTER committing text. This means the position might be different than intended because of active validators etc. |
|
pure virtualslot |
Sends key event to the application.
This method is used to deliver the key event to active widget. A MInputMethodState::keyPress or MInputMethodState::keyRelease event is also emitted. Depending on the value of requestType parameter, a Qt::KeyEvent and/or a signal is emitted.
keyEvent | The event to send |
signalOnly | only the signal should be emitted. |
|
pure virtualslot |
Updates pre-edit string in the application widget.
string | The new pre-edit string |
preeditFormats | Selects visual stylings for each part of preedit |
replacementStart | The position at which characters are to be replaced relative from the start of the preedit string. |
replacementLength | The number of characters to be replaced in the preedit string. |
cursorPos | The cursur position inside preedit |
|
pure virtualslot |
Set detectable autorepeat for X on/off.
Detectable autorepeat means that instead of press, release, press, release, press, release... sequence of key events you get press, press, press, release key events when a key is repeated. The setting is X client specific. This is intended to be used when key event redirection is enabled with setRedirectKeys.
|
pure virtualslot |
set global correction option enable/disable
|
pure virtualslot |
Sets part of the screen area covered by the input method that should be avoided by the application receiving input in order not to be obscured.
For now this region must be so simple that its bounding box can be effectively used as the avoidance area.
region | the new region |
|
pure virtualslot |
Sets input mode indicator state.
mode | Input mode indicator state. |
|
virtual |
Sets current input method language.
language | ICU format locale ID string |
This can be used as a hint to determine text direction in input fields, for example.
|
pure virtualslot |
Locks application orientation.
|
pure virtualslot |
Set if the input method wants to process all raw key events from hardware keyboard (via processKeyEvent calls).
|
pure virtualslot |
Reserves screen area for input method. Mouse events on top of this area do not fall through to the application
region | the new region |
|
pure virtualslot |
Sets selection text from start with length in the application widget.
|
pure virtual |
|
virtual |
Return information about enabled subviews which are neighbors (previous and next) of current active subview.
Previous subview is described by first list item, next subview is defined by last list item. Returned list is empty if there is exactly one enabled subview.
|
pure virtual |
get surrounding text and cursor position information
|
pure virtualslot |
Asks environment to change active plugin according to direction.
|
pure virtualslot |
Asks environment to change active plugin to specified one.
pluginName | Name for plugin which will be activated |
Copyright © 2011 Nokia Corporation | Maliit |