equal
deleted
inserted
replaced
64 #include <fepbase.h> |
64 #include <fepbase.h> |
65 #include <aknedsts.h> |
65 #include <aknedsts.h> |
66 |
66 |
67 QT_BEGIN_NAMESPACE |
67 QT_BEGIN_NAMESPACE |
68 |
68 |
69 class QCoeFepInputContext : public QInputContext, |
69 class Q_AUTOTEST_EXPORT QCoeFepInputContext : public QInputContext, |
70 public MCoeFepAwareTextEditor, |
70 public MCoeFepAwareTextEditor, |
71 public MCoeFepAwareTextEditor_Extension1, |
71 public MCoeFepAwareTextEditor_Extension1, |
72 public MObjectProvider |
72 public MObjectProvider |
73 { |
73 { |
74 Q_OBJECT |
74 Q_OBJECT |
75 |
75 |
76 public: |
76 public: |
77 QCoeFepInputContext(QObject *parent = 0); |
77 QCoeFepInputContext(QObject *parent = 0); |
82 |
82 |
83 void reset(); |
83 void reset(); |
84 void update(); |
84 void update(); |
85 |
85 |
86 bool filterEvent(const QEvent *event); |
86 bool filterEvent(const QEvent *event); |
|
87 bool symbianFilterEvent(QWidget *keyWidget, const QSymbianEvent *event); |
87 void mouseHandler( int x, QMouseEvent *event); |
88 void mouseHandler( int x, QMouseEvent *event); |
88 bool isComposing() const { return !m_preeditString.isEmpty(); } |
89 bool isComposing() const { return !m_preeditString.isEmpty(); } |
89 |
90 |
90 void setFocusWidget(QWidget * w); |
91 void setFocusWidget(QWidget * w); |
91 void widgetDestroyed(QWidget *w); |
92 void widgetDestroyed(QWidget *w); |
149 bool m_pendingInputCapabilitiesChanged; |
150 bool m_pendingInputCapabilitiesChanged; |
150 int m_cursorVisibility; |
151 int m_cursorVisibility; |
151 int m_inlinePosition; |
152 int m_inlinePosition; |
152 MFepInlineTextFormatRetriever *m_formatRetriever; |
153 MFepInlineTextFormatRetriever *m_formatRetriever; |
153 MFepPointerEventHandlerDuringInlineEdit *m_pointerHandler; |
154 MFepPointerEventHandlerDuringInlineEdit *m_pointerHandler; |
154 int m_cursorPos; |
|
155 QBasicTimer m_tempPreeditStringTimeout; |
155 QBasicTimer m_tempPreeditStringTimeout; |
156 bool m_hasTempPreeditString; |
156 bool m_hasTempPreeditString; |
|
157 |
|
158 friend class tst_QInputContext; |
157 }; |
159 }; |
158 |
160 |
159 QT_END_NAMESPACE |
161 QT_END_NAMESPACE |
160 |
162 |
161 #endif // QT_NO_IM |
163 #endif // QT_NO_IM |