Signals | |
void | CommitText (const QDBusVariant &text) |
void | CursorDownLookupTable () |
void | CursorUpLookupTable () |
void | ForwardKeyEvent (uint keyval, uint keycode, uint state) |
void | HideAuxiliaryText () |
void | HideLookupTable () |
void | HidePreeditText () |
void | PageDownLookupTable () |
void | PageUpLookupTable () |
void | RegisterProperties (const QDBusVariant &props) |
void | ShowAuxiliaryText () |
void | ShowLookupTable () |
void | ShowPreeditText () |
void | UpdateAuxiliaryText (const QDBusVariant &text, bool visible) |
void | UpdateLookupTable (const QDBusVariant &lookup_table, bool visible) |
void | UpdatePreeditText (const QDBusVariant &text, uint cursor_pos, bool visible, uint mode) |
void | UpdateProperty (const QDBusVariant &prop) |
Public Member Functions | |
Engine (const QString &engineName) | |
Constructor of Engine object. | |
virtual | ~Engine () |
Destructor of Engine object. | |
const QString & | engineName () const |
Gets name of the engine object. | |
void | updateLookupTableFast (const LookupTablePointer &lookupTable, bool visible) |
Updates the lookup table in fast mode, it only sends candidates in current page. | |
void | commitText (const TextPointer &text) |
Commits text to client application. | |
void | cursorDownLookupTable () |
Moves down the cursor of lookup table. | |
void | cursorUpLookupTable () |
Moves up the cursor of lookup table. | |
void | forwardKeyEvent (uint keyval, uint keycode, uint state) |
Forwards keyevents to client application. | |
void | hideAuxiliaryText () |
Hides the auxiliary text in UI. | |
void | hideLookupTable () |
Hides the lookup table in UI. | |
void | hidePreeditText () |
Hides the preedit text in UI. | |
void | pageDownLookupTable () |
Page down the lookup table. | |
void | pageUpLookupTable () |
Page up the lookup table. | |
void | registerProperties (const PropListPointer &props) |
Registers properties. | |
void | showAuxiliaryText () |
Shows the auxiliary text in UI. | |
void | showLookupTable () |
Shows the lookup table in UI. | |
void | showPreeditText () |
Shows the preedit text in UI. | |
void | updateAuxiliaryText (const TextPointer &text, bool visible) |
Updates the auxiliary text. | |
void | updateLookupTable (const LookupTablePointer &lookupTable, bool visible) |
Updates the lookup table. | |
void | updatePreeditText (const TextPointer &text, uint cursorPos, bool visible, uint mode=EnginePreeditClear) |
Updates the preedit text. | |
void | updateProperty (const PropertyPointer &prop) |
Updates the property. | |
virtual void | candidateClicked (uint index, uint button, uint state) |
Candidate is clicked. | |
virtual void | cursorDown () |
Cursor is moved down. | |
virtual void | cursorUp () |
Cursor is moved up. | |
virtual void | destroy () |
Destroy the object. | |
virtual void | disable () |
Disables the engine. | |
virtual void | enable () |
Enables the engine. | |
virtual void | focusIn () |
Sets the focus of the engine. | |
virtual void | focusOut () |
Unsets the focus of the engine. | |
virtual void | pageDown () |
Moves cursor of lookup table to next page. | |
virtual void | pageUp () |
Moves cursor of lookup tabele to previous page. | |
virtual bool | processKeyEvent (uint keyval, uint keycode, uint state) |
Moves cursor of lookup tabele to previous page. | |
virtual void | propertyActivate (const QString &prop_name, int prop_state) |
The property with given name is clicked. | |
virtual void | propertyHide (const QString &prop_name) |
Hides the property with given name. | |
virtual void | propertyShow (const QString &prop_name) |
Shows the property with given name. | |
virtual void | reset () |
Resets the engine. | |
virtual void | setCapabilities (uint cap) |
Sets the capabilities from client application. | |
virtual void | setCursorLocation (int x, int y, int w, int h) |
Sets the cursor location from client applicaion. |
IBus::Engine::Engine | ( | const QString & | engineName | ) |
Constructor of Engine object.
IBus::Engine::~Engine | ( | ) | [virtual] |
Destructor of Engine object.
void IBus::Engine::candidateClicked | ( | uint | index, | |
uint | button, | |||
uint | state | |||
) | [virtual] |
Candidate is clicked.
Implement this virtual function to handle candidate clicked event.
[in] | index | The index of candidate clicked |
[in] | button | The button of the clicked event. |
[in] | state | The current state of keyboard. |
void IBus::Engine::CommitText | ( | const QDBusVariant & | text | ) | [signal] |
FIXME need hide signals in doxygen
void IBus::Engine::commitText | ( | const TextPointer & | text | ) | [inline] |
Commits text to client application.
[in] | text | A text object. |
void IBus::Engine::cursorDown | ( | ) | [virtual] |
Cursor is moved down.
void IBus::Engine::cursorDownLookupTable | ( | ) | [inline] |
Moves down the cursor of lookup table.
void IBus::Engine::cursorUp | ( | ) | [virtual] |
Cursor is moved up.
void IBus::Engine::cursorUpLookupTable | ( | ) | [inline] |
Moves up the cursor of lookup table.
void IBus::Engine::destroy | ( | void | ) | [virtual] |
void IBus::Engine::disable | ( | ) | [virtual] |
Disables the engine.
void IBus::Engine::enable | ( | ) | [virtual] |
Enables the engine.
const QString & IBus::Engine::engineName | ( | ) | const |
Gets name of the engine object.
void IBus::Engine::focusIn | ( | ) | [virtual] |
Sets the focus of the engine.
void IBus::Engine::focusOut | ( | ) | [virtual] |
Unsets the focus of the engine.
void IBus::Engine::forwardKeyEvent | ( | uint | keyval, | |
uint | keycode, | |||
uint | state | |||
) | [inline] |
Forwards keyevents to client application.
[in] | keyval | |
[in] | keycode | |
[in] | state |
void IBus::Engine::hideAuxiliaryText | ( | ) | [inline] |
Hides the auxiliary text in UI.
void IBus::Engine::hideLookupTable | ( | ) | [inline] |
Hides the lookup table in UI.
void IBus::Engine::hidePreeditText | ( | ) | [inline] |
Hides the preedit text in UI.
void IBus::Engine::pageDown | ( | ) | [virtual] |
Moves cursor of lookup table to next page.
void IBus::Engine::pageDownLookupTable | ( | ) | [inline] |
Page down the lookup table.
void IBus::Engine::pageUp | ( | ) | [virtual] |
Moves cursor of lookup tabele to previous page.
void IBus::Engine::pageUpLookupTable | ( | ) | [inline] |
Page up the lookup table.
bool IBus::Engine::processKeyEvent | ( | uint | keyval, | |
uint | keycode, | |||
uint | state | |||
) | [virtual] |
Moves cursor of lookup tabele to previous page.
[in] | keyval | The keyval of the key event. |
[in] | keycode | The keycode of the key event. |
[in] | state | The modifiers of the key event. |
void IBus::Engine::propertyActivate | ( | const QString & | prop_name, | |
int | prop_state | |||
) | [virtual] |
The property with given name is clicked.
[in] | prop_name | The name of the property. |
[in] | prop_state | The state of the property. |
void IBus::Engine::propertyHide | ( | const QString & | prop_name | ) | [virtual] |
Hides the property with given name.
[in] | prop_name | The name of the property. |
void IBus::Engine::propertyShow | ( | const QString & | prop_name | ) | [virtual] |
Shows the property with given name.
[in] | prop_name | The name of the property. |
void IBus::Engine::registerProperties | ( | const PropListPointer & | props | ) | [inline] |
void IBus::Engine::reset | ( | void | ) | [virtual] |
Resets the engine.
void IBus::Engine::setCapabilities | ( | uint | cap | ) | [virtual] |
Sets the capabilities from client application.
[in] | cap | The capabilities of client application. |
void IBus::Engine::setCursorLocation | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | [virtual] |
Sets the cursor location from client applicaion.
[in] | x | |
[in] | y | |
[in] | w | |
[in] | h |
void IBus::Engine::showAuxiliaryText | ( | ) | [inline] |
Shows the auxiliary text in UI.
void IBus::Engine::showLookupTable | ( | ) | [inline] |
Shows the lookup table in UI.
void IBus::Engine::showPreeditText | ( | ) | [inline] |
Shows the preedit text in UI.
void IBus::Engine::updateAuxiliaryText | ( | const TextPointer & | text, | |
bool | visible | |||
) | [inline] |
Updates the auxiliary text.
[in] | text | A text object. |
[in] | visible | Whether the auxiliary text is visible. |
void IBus::Engine::updateLookupTable | ( | const LookupTablePointer & | lookupTable, | |
bool | visible | |||
) | [inline] |
Updates the lookup table.
[in] | lookupTable | A lookup table object. |
[in] | visible | Whether the lookup table is visible. |
void IBus::Engine::updateLookupTableFast | ( | const LookupTablePointer & | lookupTable, | |
bool | visible | |||
) |
Updates the lookup table in fast mode, it only sends candidates in current page.
[in] | lookupTable | A lookup table object. |
[in] | visible | Whether the lookup table is visible. |
void IBus::Engine::updatePreeditText | ( | const TextPointer & | text, | |
uint | cursorPos, | |||
bool | visible, | |||
uint | mode = EnginePreeditClear | |||
) | [inline] |
Updates the preedit text.
[in] | text | A text object. |
[in] | cursorPos | The cursor position in the given text. |
[in] | visible | Whether the preedit text is visible. |
[in] | mode | preedit focus mode. |
void IBus::Engine::updateProperty | ( | const PropertyPointer & | prop | ) | [inline] |
Updates the property.
[in] | prop | A propeerty object |