42 #ifndef QBBINPUTCONTEXT_H 43 #define QBBINPUTCONTEXT_H 45 #include "imf/imf_client.h" 46 #include "imf/input_control.h" 48 #include <QtGui/QPlatformIntegration> 95 int32_t
onCommitText(input_session_t* ic, spannable_string_t*
text, int32_t new_cursor_position);
101 extracted_text_t*
onGetExtractedText(input_session_t* ic, extracted_text_request_t* request, int32_t flags);
107 int32_t
onSendEvent(input_session_t* ic, event_t * event);
110 int32_t
onSetComposingText(input_session_t* ic, spannable_string_t* text, int32_t new_cursor_position);
111 int32_t
onSetSelection(input_session_t* ic, int32_t start, int32_t end);
122 #endif // QBBINPUTCONTEXT_H extracted_text_t * onGetExtractedText(input_session_t *ic, extracted_text_request_t *request, int32_t flags)
virtual void widgetDestroyed(QWidget *widget)
This virtual function is called when the specified widget is destroyed.
virtual void update()
This virtual function is called when a state in the focus widget has changed.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual void mouseHandler(int x, QMouseEvent *event)
This function can be reimplemented in a subclass to handle mouse press, release, double-click, and move events within the preedit text.
int32_t onFinishComposingText(input_session_t *ic)
int32_t onSetSelection(input_session_t *ic, int32_t start, int32_t end)
int32_t onSendAsyncEvent(input_session_t *ic, event_t *event)
int32_t onPerformEditorAction(input_session_t *ic, int32_t editor_action)
int32_t onSetComposingText(input_session_t *ic, spannable_string_t *text, int32_t new_cursor_position)
int32_t onGetCursorCapsMode(input_session_t *ic, int32_t req_modes)
bool dispatchFocusEvent(FocusEventId id, int hints=Qt::ImhNone)
virtual void reset()
This function can be reimplemented in a subclass to reset the state of the input method.
spannable_string_t * onGetTextBeforeCursor(input_session_t *ic, int32_t n, int32_t flags)
The QString class provides a Unicode character string.
virtual QString identifierName()
This function must be implemented in any subclasses to return the identifier name of the input method...
The QObject class is the base class of all Qt objects.
QBBAbstractVirtualKeyboard & mVirtualKeyboard
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
int32_t onGetCursorPosition(input_session_t *ic)
bool eventFilter(QObject *obj, QEvent *event)
Filters events if this object has been installed as an event filter for the watched object...
bool handleKeyboardEvent(int flags, int sym, int mod, int scan, int cap)
int32_t processEvent(event_t *event)
QBBInputContext(QBBAbstractVirtualKeyboard &keyboard, QObject *parent=0)
int32_t onBeginBatchEdit(input_session_t *ic)
#define QT_BEGIN_NAMESPACE
This macro expands to.
int32_t onEndBatchEdit(input_session_t *ic)
virtual QFont font() const
Returns the font of the current input widget.
int32_t onReportFullscreenMode(input_session_t *ic, int32_t enabled)
int32_t onSendEvent(input_session_t *ic, event_t *event)
bool dispatchCloseSoftwareInputPanel()
The QMouseEvent class contains parameters that describe a mouse event.
virtual bool filterEvent(const QEvent *event)
This function can be reimplemented in a subclass to filter input events.
virtual QString language()
This function must be implemented in any subclasses to return a language code (e. ...
int32_t onDeleteSurroundingText(input_session_t *ic, int32_t left_length, int32_t right_length)
void setComposingText(QString const &composingText)
virtual void setFocusWidget(QWidget *widget)
Sets the widget that has an input focus for this input context.
int32_t onClearMetaKeyStates(input_session_t *ic, int32_t states)
The QFont class specifies a font used for drawing text.
virtual QList< QAction * > actions()
This is a preliminary interface for Qt 4.
virtual bool isComposing() const
This function indicates whether InputMethodStart event had been sent to the current focus widget...
QObject * parent() const
Returns a pointer to the parent object.
int32_t onCommitText(input_session_t *ic, spannable_string_t *text, int32_t new_cursor_position)
int32_t onSetComposingRegion(input_session_t *ic, int32_t start, int32_t end)
spannable_string_t * onGetTextAfterCursor(input_session_t *ic, int32_t n, int32_t flags)
The QInputContext class abstracts the input method dependent data and composing state.
static const KeyPair *const end
The QEvent class is the base class of all event classes.
spannable_string_t * onGetSelectedText(input_session_t *ic, int32_t flags)
bool dispatchRequestSoftwareInputPanel()
The QList class is a template class that provides lists.