src/hbplugins/inputmethods/touchinput/virtual12key.h
changeset 21 4633027730f5
parent 6 c3690ec91ef8
child 23 e6ad4ef83b23
equal deleted inserted replaced
7:923ff622b8b9 21:4633027730f5
    76     bool filterEvent(const QEvent* event);
    76     bool filterEvent(const QEvent* event);
    77     void secondaryInputLanguageChanged(const HbInputLanguage &newLanguage);
    77     void secondaryInputLanguageChanged(const HbInputLanguage &newLanguage);
    78 
    78 
    79 public:
    79 public:
    80     void initializePredictiveMode();
    80     void initializePredictiveMode();
    81     void closeCandidatePopup();
       
    82     void showAutoCompletionFieldCandidates();
    81     void showAutoCompletionFieldCandidates();
    83     void initializeModeHandlers();
    82     void initializeModeHandlers();
    84     bool isSctModeActive() const;
    83     bool isSctModeActive() const;
    85     void launchCandidatePopup(const QStringList& candidates);
    84     void launchCandidatePopup(const QStringList& candidates);
    86     void closeKeypad();
    85     void closeKeypad();
    87     void selectSpecialCharacterTableMode();
    86     void selectSpecialCharacterTableMode();
    88     void launchAutoCompletionPopup(const QStringList &candidates);
    87     void launchAutoCompletionPopup(const QStringList &candidates);
    89     void closeAutoCompletionPopup();
    88     void closeAutoCompletionPopup();
       
    89     void closeCandidatePopup();
    90     void switchMode(int keyCode);
    90     void switchMode(int keyCode);
    91     void starKeySelected();
    91     void starKeySelected();
    92     HbKeyboardType currentKeyboardType() const;
    92     HbKeyboardType currentKeyboardType() const;
    93 private:
    93 private:
    94     void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false);
    94     void openKeypad(HbInputVkbWidget * keypadToOpen,bool inMinimizedMode = false);
   101 public slots:
   101 public slots:
   102     void keypadClosed();
   102     void keypadClosed();
   103     void keypadOpened();
   103     void keypadOpened();
   104     void keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod);
   104     void keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod);
   105     void rockerDirection(int direction, HbInputVirtualRocker::RockerSelectionMode selectionMode);
   105     void rockerDirection(int direction, HbInputVirtualRocker::RockerSelectionMode selectionMode);
   106     void orientationAboutToChange();
   106     void orientationChanged();
   107     void candidatePopupClosed(int closingKey, const QString &candidate);
   107     void candidatePopupClosed(int closingKey, const QString &candidate);
   108     void flickEvent(HbInputVkbWidget::HbFlickDirection direction);
   108     void flickEvent(HbInputVkbWidget::HbFlickDirection direction);
   109     void mouseMovedOutOfButton();
   109     void mouseMovedOutOfButton();
   110     void smileySelected(QString smiley);
   110     void smileySelected(QString smiley);
   111     void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   111     void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   112     void aboutToActivateCustomAction(HbAction *custAction);
   112     void aboutToActivateCustomAction(HbAction *custAction);
   113     void autocompletionStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   113     void autocompletionStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
       
   114     void restorePreviousState();
   114 
   115 
   115 private:
   116 private:
   116     // mCurrentKeypad contains currently active keypad, we don't need to have
   117     // mCurrentKeypad contains currently active keypad, we don't need to have
   117     // anyother variables to tell us which is current keypad
   118     // anyother variables to tell us which is current keypad
   118     QPointer<HbInputVkbWidget> mCurrentKeypad;
   119     QPointer<HbInputVkbWidget> mCurrentKeypad;
   121     // contains sct keypad
   122     // contains sct keypad
   122     QPointer<HbSctKeyboard> mSctKeypad;
   123     QPointer<HbSctKeyboard> mSctKeypad;
   123 
   124 
   124     //Owned by the keymap factory
   125     //Owned by the keymap factory
   125     const HbKeymap* mKeymap;
   126     const HbKeymap* mKeymap;
   126     bool mOrientationAboutToChange;
       
   127 
   127 
   128     // Owned
   128     // Owned
   129     HbCandidateList* mCandidatePopup;
   129     HbCandidateList* mCandidatePopup;
   130     HbInputFocusObject* mCurrentlyFocused;
   130     HbInputFocusObject* mCurrentlyFocused;
   131 
   131