42 #ifndef QCOEFEPINPUTCONTEXT_P_H 43 #define QCOEFEPINPUTCONTEXT_P_H 61 #include <private/qcore_symbian_p.h> 62 #include <private/qt_s60_p.h> 68 #include <aknedformaccessor.h> 70 class CAknExtendedInputCapabilities;
95 public MCoeFepAwareTextEditor,
96 public MCoeFepAwareTextEditor_Extension1,
97 public MObjectProvider,
114 bool symbianFilterEvent(
QWidget *keyWidget,
const QSymbianEvent *event);
118 void setFocusWidget(
QWidget * w);
119 void widgetDestroyed(
QWidget *w);
121 TCoeInputCapabilities inputCapabilities();
123 void resetSplitViewWidget(
bool keepInputWidget =
false);
130 void commitCurrentString(
bool cancelFepTransaction);
131 void updateHints(
bool mustUpdateInputCapabilities);
132 void applyHints(Qt::InputMethodHints hints);
134 void queueInputCapabilitiesChanged();
135 bool needsInputPanel();
136 void commitTemporaryPreeditString();
137 bool isWidgetVisible(
QWidget *widget,
int offset = 0);
138 bool isPartialKeyboardSupported();
139 bool vietCharConversion(
const QEvent *event);
142 void ensureInputCapabilitiesChanged();
143 void translateInputWidget();
144 void ensureWidgetVisibility();
148 void StartFepInlineEditL(
const TDesC& aInitialInlineText, TInt aPositionOfInsertionPointInInlineText,
149 TBool aCursorVisibility,
const MFormCustomDraw* aCustomDraw,
150 MFepInlineTextFormatRetriever& aInlineTextFormatRetriever,
151 MFepPointerEventHandlerDuringInlineEdit& aPointerEventHandlerDuringInlineEdit);
152 void UpdateFepInlineTextL(
const TDesC& aNewInlineText, TInt aPositionOfInsertionPointInInlineText);
153 void SetInlineEditingCursorVisibilityL(TBool aCursorVisibility);
154 void CancelFepInlineEdit();
155 TInt DocumentLengthForFep()
const;
156 TInt DocumentMaximumLengthForFep()
const;
157 void SetCursorSelectionForFepL(
const TCursorSelection& aCursorSelection);
158 void GetCursorSelectionForFep(TCursorSelection& aCursorSelection)
const;
159 void GetEditorContentForFep(TDes& aEditorContent, TInt aDocumentPosition, TInt aLengthToRetrieve)
const;
160 void GetFormatForFep(TCharFormat& aFormat, TInt aDocumentPosition)
const;
161 void GetScreenCoordinatesForFepL(TPoint& aLeftSideOfBaseLine, TInt& aHeight, TInt& aAscent,
162 TInt aDocumentPosition)
const;
164 void DoCommitFepInlineEditL();
165 MCoeFepAwareTextEditor_Extension1* Extension1(TBool& aSetToTrue);
166 void ReportAknEdStateEvent(MAknEdStateObserver::EAknEdwinStateEvent aEventType);
167 void enableSymbianCcpuSupport();
168 void changeCBA(
bool showCopyAndOrPaste);
169 void copyOrCutTextToClipboard(
const char *operation);
170 void getScreenCoordinatesForFepX(TPoint& aLeftSideOfBaseLine, TInt& aHeight, TInt& aAscent,
171 TInt aDocumentPosition)
const;
175 TBool CcpuIsFocused()
const;
176 TBool CcpuCanCut()
const;
178 TBool CcpuCanCopy()
const;
180 TBool CcpuCanPaste()
const;
182 TBool CcpuCanUndo()
const;
191 void SetStateTransferingOwnershipL(MCoeFepAwareTextEditor_Extension1::CState* aState, TUid aTypeSafetyUid);
192 MCoeFepAwareTextEditor_Extension1::CState*
State(TUid aTypeSafetyUid);
196 TTypeUid::Ptr MopSupplyObject(TTypeUid
id);
197 MObjectProvider *MopNext();
233 friend class tst_QInputContext;
244 #endif // QCOEFEPINPUTCONTEXT_P_H
QString identifierName()
This function must be implemented in any subclasses to return the identifier name of the input method...
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QScopedPointer< CEikEdwin > m_dummyEditor
Q_CORE_EXPORT QTextStream & reset(QTextStream &s)
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
Q_GUI_EXPORT void qt_s60_setPartialScreenInputMode(bool enable)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
CAknExtendedInputCapabilities * m_extendedInputCapabilities
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
The QChar class provides a 16-bit Unicode character.
CAknEdwinState * m_fepState
QLocale::Language language
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
Q_GUI_EXPORT void qt_s60_setEditorFlags(int flags)
Qt::InputMethodHints m_lastImHints
bool m_pendingInputCapabilitiesChanged
int m_cachedCursorAndAnchorPosition
MFepPointerEventHandlerDuringInlineEdit * m_pointerHandler
bool isComposing() const
This function indicates whether InputMethodStart event had been sent to the current focus widget...
bool m_pendingTransactionCancel
The QMouseEvent class contains parameters that describe a mouse event.
QGraphicsItem * m_splitViewPreviousFocusItem
QScopedPointer< CAknEdwinFormAccessor > m_formAccessor
QBasicTimer m_tempPreeditStringTimeout
QPointer< QWidget > m_lastFocusedEditor
The QTimerEvent class contains parameters that describe a timer event.
#define Q_AUTOTEST_EXPORT
Q_GUI_EXPORT void qt_s60_setPartialScreenAutomaticTranslation(bool enable)
The QBasicTimer class provides timer events for objects.
The QInputContext class abstracts the input method dependent data and composing state.
QString m_cachedPreeditString
Qt::WindowStates m_splitViewPreviousWindowStates
The QEvent class is the base class of all event classes.
bool m_hasTempPreeditString
QPointer< QObject > m_lastFocusedObject
The QAction class provides an abstract user interface action that can be inserted into widgets...
QSymbianControl * m_parent
MFepInlineTextFormatRetriever * m_formatRetriever