4#ifndef QQNXINPUTCONTEXT_H
5#define QQNXINPUTCONTEXT_H
7#include <qpa/qplatforminputcontext.h>
10#include <QtCore/QLocale>
11#include <QtCore/QMetaType>
12#include <QtCore/QList>
13#include <qpa/qplatformintegration.h>
15#include "imf/imf_client.h"
16#include "imf/input_control.h"
42 void reset()
override;
44 void update(Qt::InputMethodQueries)
override;
60 void keyboardVisibilityChanged(
bool visible);
66 bool dispatchFocusGainEvent(
int inputHints);
67 void dispatchFocusLossEvent();
68 bool dispatchRequestSoftwareInputPanel();
69 bool dispatchCloseSoftwareInputPanel();
70 int handleSpellCheck(spell_check_event_t *
event);
71 int32_t processEvent(event_t *
event);
76 void updateCursorPosition();
77 void endComposition();
78 void finishComposingText();
79 bool hasSelectedText();
80 void updateComposition(spannable_string_t *
text, int32_t new_cursor_position);
83 int32_t onCommitText(spannable_string_t *
text, int32_t new_cursor_position);
84 int32_t onDeleteSurroundingText(int32_t left_length, int32_t right_length);
85 int32_t onGetCursorCapsMode(int32_t req_modes);
86 int32_t onFinishComposingText();
87 int32_t onGetCursorPosition();
88 spannable_string_t *onGetTextAfterCursor(int32_t
n, int32_t
flags);
89 spannable_string_t *onGetTextBeforeCursor(int32_t
n, int32_t
flags);
90 int32_t onSendEvent(event_t *
event);
91 int32_t onSetComposingRegion(int32_t
start, int32_t
end);
92 int32_t onSetComposingText(spannable_string_t *
text, int32_t new_cursor_position);
93 int32_t onIsTextSelected(int32_t* pIsSelected);
94 int32_t onIsAllTextSelected(int32_t* pIsSelected);
95 int32_t onForceUpdate();
100 bool m_isUpdatingText;
101 bool m_inputPanelVisible;
106 QColor m_highlightColor[3];
The QColor class provides colors based on RGB, HSV or CMYK values.
The QPlatformInputContext class abstracts the input method dependent data and composing state.
bool handleKeyboardEvent(int flags, int sym, int mod, int scan, int cap, int sequenceId) override
void update(Qt::InputMethodQueries) override
Notification on editor updates.
bool isInputPanelVisible() const override
Returns input panel visibility status.
void reset() override
Method to be called when input method needs to be reset.
void hideInputPanel() override
Request to hide input panel.
static bool checkSpelling(const QString &text, void *context, void(*spellCheckDone)(void *context, const QString &text, const QList< int > &indices))
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
QLocale locale() const override
bool isValid() const override
Returns input context validity.
bool filterEvent(const QEvent *event) override
This function can be reimplemented to filter input events.
QRectF keyboardRect() const override
This function can be reimplemented to return virtual keyboard rectangle in currently active window co...
void showInputPanel() override
Request to show input panel.
static void setHighlightColor(int index, const QColor &color)
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLsizei GLenum const void * indices