76 bool filterEvent(const QEvent* event); |
75 bool filterEvent(const QEvent* event); |
77 void secondaryInputLanguageChanged(const HbInputLanguage &newLanguage); |
76 void secondaryInputLanguageChanged(const HbInputLanguage &newLanguage); |
78 |
77 |
79 public: |
78 public: |
80 void initializePredictiveMode(); |
79 void initializePredictiveMode(); |
81 void closeCandidatePopup(); |
|
82 void showAutoCompletionFieldCandidates(); |
80 void showAutoCompletionFieldCandidates(); |
83 void initializeModeHandlers(); |
81 void initializeModeHandlers(); |
84 bool isSctModeActive() const; |
82 bool isSctModeActive() const; |
85 void launchCandidatePopup(const QStringList& candidates); |
83 void launchCandidatePopup(const QStringList& candidates); |
86 void closeKeypad(); |
84 void closeKeypad(); |
87 void selectSpecialCharacterTableMode(); |
85 void selectSpecialCharacterTableMode(); |
88 void launchAutoCompletionPopup(const QStringList &candidates); |
86 void launchAutoCompletionPopup(const QStringList &candidates); |
89 void closeAutoCompletionPopup(); |
87 void closeAutoCompletionPopup(); |
|
88 void closeCandidatePopup(); |
90 void switchMode(int keyCode); |
89 void switchMode(int keyCode); |
91 void starKeySelected(); |
90 void starKeySelected(); |
92 HbKeyboardType currentKeyboardType() const; |
91 HbKeyboardType currentKeyboardType() const; |
93 private: |
92 private: |
94 void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false); |
93 void openKeypad(HbInputVkbWidget *keypadToOpen); |
95 void switchToAlphaMode(bool openAlphaInMinimizedMode = false); |
94 void switchToAlphaMode(); |
96 void setSpecialCharacters(); |
95 void setSpecialCharacters(); |
97 void loadKeymap(const HbInputLanguage &newLanguage); |
96 void loadKeymap(const HbInputLanguage &newLanguage); |
98 Hb12KeyTouchKeyboard *construct12Keyboard(); |
97 Hb12KeyTouchKeyboard *construct12Keyboard(); |
99 bool usePrediction() const; |
98 bool usePrediction() const; |
100 |
99 |
101 public slots: |
100 public slots: |
102 void keypadClosed(); |
101 void keypadClosed(); |
103 void keypadOpened(); |
102 void keypadOpened(); |
104 void keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod); |
103 void keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod); |
105 void rockerDirection(int direction, HbInputVirtualRocker::RockerSelectionMode selectionMode); |
104 void orientationChanged(); |
106 void orientationAboutToChange(); |
|
107 void candidatePopupClosed(int closingKey, const QString &candidate); |
105 void candidatePopupClosed(int closingKey, const QString &candidate); |
108 void flickEvent(HbInputVkbWidget::HbFlickDirection direction); |
106 void flickEvent(HbInputVkbWidget::HbFlickDirection direction); |
109 void mouseMovedOutOfButton(); |
107 void mouseMovedOutOfButton(); |
110 void smileySelected(QString smiley); |
108 void smileySelected(QString smiley); |
111 void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState); |
109 void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState); |
112 void aboutToActivateCustomAction(HbAction *custAction); |
110 void aboutToActivateCustomAction(HbAction *custAction); |
113 void autocompletionStateChanged(HbKeyboardSettingFlags keyboardType, bool newState); |
111 void autocompletionStateChanged(HbKeyboardSettingFlags keyboardType, bool newState); |
|
112 void restorePreviousState(); |
114 |
113 |
115 private: |
114 private: |
116 // mCurrentKeypad contains currently active keypad, we don't need to have |
115 // mCurrentKeypad contains currently active keypad, we don't need to have |
117 // anyother variables to tell us which is current keypad |
116 // anyother variables to tell us which is current keypad |
118 QPointer<HbInputVkbWidget> mCurrentKeypad; |
117 QPointer<HbInputVkbWidget> mCurrentKeypad; |
121 // contains sct keypad |
120 // contains sct keypad |
122 QPointer<HbSctKeyboard> mSctKeypad; |
121 QPointer<HbSctKeyboard> mSctKeypad; |
123 |
122 |
124 //Owned by the keymap factory |
123 //Owned by the keymap factory |
125 const HbKeymap* mKeymap; |
124 const HbKeymap* mKeymap; |
126 bool mOrientationAboutToChange; |
|
127 |
125 |
128 // Owned |
126 // Owned |
129 HbCandidateList* mCandidatePopup; |
127 HbCandidateList* mCandidatePopup; |
130 HbInputFocusObject* mCurrentlyFocused; |
128 HbInputFocusObject* mCurrentlyFocused; |
131 |
129 |
132 // input mode handlers. |
130 // input mode handlers. |
133 HbInputModeHandler *mActiveModeHandler; |
131 HbInputModeHandler *mActiveModeHandler; |
134 HbInputPrediction12KeyHandler *mPredictionModeHandler; |
132 HbInputPrediction12KeyHandler *mPredictionModeHandler; |
135 HbInputBasic12KeyHandler *mBasicModeHandler; |
133 HbInputBasic12KeyHandler *mBasicModeHandler; |
136 HbInputNumeric12KeyHandler *mNumericModeHandler; |
134 HbInputNumeric12KeyHandler *mNumericModeHandler; |
137 |
135 |
138 QPointer<HbVkbHost> mVkbHost; |
136 QPointer<HbVkbHost> mVkbHost; |
139 bool mKeyboardChangeAlreadyInprogress; |
|
140 }; |
137 }; |
141 |
138 |
142 #endif // _Virtual12Key_H |
139 #endif // _Virtual12Key_H |
143 |
140 |
144 // End of file |
141 // End of file |