90 void closeKeypad(); |
90 void closeKeypad(); |
91 void selectSpecialCharacterTableMode(); |
91 void selectSpecialCharacterTableMode(); |
92 void launchAutoCompletionPopup(const QStringList &candidates); |
92 void launchAutoCompletionPopup(const QStringList &candidates); |
93 void closeAutoCompletionPopup(); |
93 void closeAutoCompletionPopup(); |
94 void switchMode(int keyCode); |
94 void switchMode(int keyCode); |
95 void showThaiSpecialCharacters(uint buttonId); |
95 void showThaiSpecialCharacters(uint buttonId); |
96 void starKeySelected(); |
96 void starKeySelected(); |
97 uint previousChar(); |
97 uint previousChar(); |
98 |
98 HbKeyboardType currentKeyboardType() const; |
99 protected: |
|
100 void predictiveInputStatusChanged(int newStatus); |
|
101 private: |
99 private: |
102 void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false); |
100 void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false); |
103 void switchToAlphaMode(bool openAlphaInMinimizedMode = false); |
101 void switchToAlphaMode(bool openAlphaInMinimizedMode = false); |
104 void setSpecialCharacters(); |
102 void setSpecialCharacters(); |
105 void loadKeymap(const HbInputLanguage &newLanguage); |
103 void loadKeymap(const HbInputLanguage &newLanguage); |
106 Hb12KeyTouchKeypad * construct12Keypad(); |
104 Hb12KeyTouchKeyboard *construct12Keyboard(); |
107 HbInputSctPortrait * constructSctKeypad(); |
|
108 bool usePrediction() const; |
105 bool usePrediction() const; |
109 |
106 |
110 public slots: |
107 public slots: |
111 void keypadClosed(); |
108 void keypadClosed(); |
112 void keypadOpened(); |
109 void keypadOpened(); |
113 void keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod); |
110 void keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod); |
114 void rockerDirection(int direction, HbInputVirtualRocker::RockerSelectionMode selectionMode); |
111 void rockerDirection(int direction, HbInputVirtualRocker::RockerSelectionMode selectionMode); |
115 void sctCharacterSelected(QString character); |
|
116 void orientationAboutToChange(); |
112 void orientationAboutToChange(); |
117 void candidatePopupClosed(int closingKey); |
113 void candidatePopupClosed(int closingKey, const QString &candidate); |
118 void flickEvent(HbInputVkbWidget::HbFlickDirection direction); |
114 void flickEvent(HbInputVkbWidget::HbFlickDirection direction); |
119 void mouseMovedOutOfButton(); |
115 void mouseMovedOutOfButton(); |
120 void smileySelected(QString smiley); |
116 void smileySelected(QString smiley); |
121 void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState); |
117 void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState); |
122 void thaiSctCharacterSelected(QString sctChar); |
118 void thaiSctCharacterSelected(QString sctChar); |
123 |
119 |
124 private: |
120 private: |
125 // mCurrentKeypad contains currently active keypad, we dont need to have |
121 // mCurrentKeypad contains currently active keypad, we dont need to have |
126 // anyother variables to tell us which is current keypad |
122 // anyother variables to tell us which is current keypad |
127 QPointer<HbInputVkbWidget> mCurrentKeypad; |
123 QPointer<HbInputVkbWidget> mCurrentKeypad; |
128 // contains itut keypad |
124 // contains itut keypad |
129 QPointer<Hb12KeyTouchKeypad> mItutKeypad; |
125 QPointer<Hb12KeyTouchKeyboard> mItutKeypad; |
130 // contains sct keypad |
126 // contains sct keypad |
131 QPointer<HbInputSctPortrait> mSctKeypad; |
127 QPointer<HbSctKeyboard> mSctKeypad; |
132 // contains Thai special characters |
128 // contains Thai special characters |
133 QPointer<HbInputThaiSpecialPopup> mThaiSpecialChar; |
129 QPointer<HbInputThaiSpecialPopup> mThaiSpecialChar; |
134 |
130 |
135 //Owned by the keymap factory |
131 //Owned by the keymap factory |
136 const HbKeymap* mKeymap; |
132 const HbKeymap* mKeymap; |
137 HbInputVkbWidget::HbSctView mSctMode; |
|
138 bool mOrientationAboutToChange; |
133 bool mOrientationAboutToChange; |
139 |
134 |
140 // Owned |
135 // Owned |
141 HbCandidateList* mCandidatePopup; |
136 HbCandidateList* mCandidatePopup; |
142 HbInputFocusObject* mCurrentlyFocused; |
137 HbInputFocusObject* mCurrentlyFocused; |
144 // input mode handlers. |
139 // input mode handlers. |
145 HbInputModeHandler *mActiveModeHandler; |
140 HbInputModeHandler *mActiveModeHandler; |
146 HbInputPrediction12KeyHandler *mPredictionModeHandler; |
141 HbInputPrediction12KeyHandler *mPredictionModeHandler; |
147 HbInputBasic12KeyHandler *mBasicModeHandler; |
142 HbInputBasic12KeyHandler *mBasicModeHandler; |
148 HbInputNumeric12KeyHandler *mNumericModeHandler; |
143 HbInputNumeric12KeyHandler *mNumericModeHandler; |
149 HbInputBasic12KeyThaiHandler *mBasic12keyThaiHandler; |
144 HbInputBasic12KeyThaiHandler *mBasic12keyThaiHandler; |
150 HbInputPrediction12KeyThaiHandler *mPrediction12keyThaiHandler; |
145 HbInputPrediction12KeyThaiHandler *mPrediction12keyThaiHandler; |
151 |
146 |
152 QPointer<HbVkbHost> mVkbHost; |
147 QPointer<HbVkbHost> mVkbHost; |
153 bool mKeyboardChangeAlreadyInprogress; |
148 bool mKeyboardChangeAlreadyInprogress; |
154 }; |
149 }; |
155 |
150 |