34 class HbKeymap; |
34 class HbKeymap; |
35 class QTimer; |
35 class QTimer; |
36 class HbInputVkbWidget; |
36 class HbInputVkbWidget; |
37 class Hb12KeyTouchKeypad; |
37 class Hb12KeyTouchKeypad; |
38 class HbInputSctPortrait; |
38 class HbInputSctPortrait; |
|
39 class HbInputThaiSpecialPopup; |
39 class HbCandidateList; |
40 class HbCandidateList; |
40 class HbPredictionEngine; |
41 class HbPredictionEngine; |
41 class HbAction; |
42 class HbAction; |
42 |
43 |
43 // input mode handlers. |
44 // input mode handlers. |
44 class HbInputModeHandler; |
45 class HbInputModeHandler; |
45 class HbInputPrediction12KeyHandler; |
46 class HbInputPrediction12KeyHandler; |
46 class HbInputBasic12KeyHandler; |
47 class HbInputBasic12KeyHandler; |
47 class HbInputNumeric12KeyHandler; |
48 class HbInputNumeric12KeyHandler; |
|
49 class HbInputBasic12KeyThaiHandler; |
|
50 class HbInputPrediction12KeyThaiHandler; |
48 |
51 |
49 class HbVirtual12Key : public HbInputAbstractMethod |
52 class HbVirtual12Key : public HbInputAbstractMethod |
50 { |
53 { |
51 Q_OBJECT |
54 Q_OBJECT |
52 |
55 |
87 void closeKeypad(); |
90 void closeKeypad(); |
88 void selectSpecialCharacterTableMode(); |
91 void selectSpecialCharacterTableMode(); |
89 void launchAutoCompletionPopup(const QStringList &candidates); |
92 void launchAutoCompletionPopup(const QStringList &candidates); |
90 void closeAutoCompletionPopup(); |
93 void closeAutoCompletionPopup(); |
91 void switchMode(int keyCode); |
94 void switchMode(int keyCode); |
|
95 void showThaiSpecialCharacters(uint buttonId); |
92 void starKeySelected(); |
96 void starKeySelected(); |
|
97 uint previousChar(); |
|
98 |
93 protected: |
99 protected: |
94 void predictiveInputStatusChanged(int newStatus); |
100 void predictiveInputStatusChanged(int newStatus); |
95 private: |
101 private: |
96 void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false); |
102 void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false); |
97 void switchToAlphaMode(bool openAlphaInMinimizedMode = false); |
103 void switchToAlphaMode(bool openAlphaInMinimizedMode = false); |
110 void orientationAboutToChange(); |
116 void orientationAboutToChange(); |
111 void candidatePopupClosed(int closingKey); |
117 void candidatePopupClosed(int closingKey); |
112 void flickEvent(HbInputVkbWidget::HbFlickDirection direction); |
118 void flickEvent(HbInputVkbWidget::HbFlickDirection direction); |
113 void mouseMovedOutOfButton(); |
119 void mouseMovedOutOfButton(); |
114 void smileySelected(QString smiley); |
120 void smileySelected(QString smiley); |
|
121 void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState); |
|
122 void thaiSctCharacterSelected(QString sctChar); |
115 |
123 |
116 private: |
124 private: |
117 // mCurrentKeypad contains currently active keypad, we dont need to have |
125 // mCurrentKeypad contains currently active keypad, we dont need to have |
118 // anyother variables to tell us which is current keypad |
126 // anyother variables to tell us which is current keypad |
119 QPointer<HbInputVkbWidget> mCurrentKeypad; |
127 QPointer<HbInputVkbWidget> mCurrentKeypad; |
120 // contains itut keypad |
128 // contains itut keypad |
121 QPointer<Hb12KeyTouchKeypad> mItutKeypad; |
129 QPointer<Hb12KeyTouchKeypad> mItutKeypad; |
122 // contains sct keypad |
130 // contains sct keypad |
123 QPointer<HbInputSctPortrait> mSctKeypad; |
131 QPointer<HbInputSctPortrait> mSctKeypad; |
|
132 // contains Thai special characters |
|
133 QPointer<HbInputThaiSpecialPopup> mThaiSpecialChar; |
124 |
134 |
125 //Owned by the keymap factory |
135 //Owned by the keymap factory |
126 const HbKeymap* mKeymap; |
136 const HbKeymap* mKeymap; |
127 HbInputVkbWidget::HbSctView mSctMode; |
137 HbInputVkbWidget::HbSctView mSctMode; |
128 bool mOrientationAboutToChange; |
138 bool mOrientationAboutToChange; |
134 // input mode handlers. |
144 // input mode handlers. |
135 HbInputModeHandler *mActiveModeHandler; |
145 HbInputModeHandler *mActiveModeHandler; |
136 HbInputPrediction12KeyHandler *mPredictionModeHandler; |
146 HbInputPrediction12KeyHandler *mPredictionModeHandler; |
137 HbInputBasic12KeyHandler *mBasicModeHandler; |
147 HbInputBasic12KeyHandler *mBasicModeHandler; |
138 HbInputNumeric12KeyHandler *mNumericModeHandler; |
148 HbInputNumeric12KeyHandler *mNumericModeHandler; |
|
149 HbInputBasic12KeyThaiHandler *mBasic12keyThaiHandler; |
|
150 HbInputPrediction12KeyThaiHandler *mPrediction12keyThaiHandler; |
139 |
151 |
140 QPointer<HbVkbHost> mVkbHost; |
152 QPointer<HbVkbHost> mVkbHost; |
141 bool mKeyboardChangeAlreadyInprogress; |
153 bool mKeyboardChangeAlreadyInprogress; |
142 }; |
154 }; |
143 |
155 |