src/hbplugins/inputmethods/touchinput/virtualqwerty.h
changeset 34 ed14f46c0e55
parent 6 c3690ec91ef8
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    27 #define _VirtualQwerty_H
    27 #define _VirtualQwerty_H
    28 
    28 
    29 #include <QPointer>
    29 #include <QPointer>
    30 #include <hbinputabstractbase.h>
    30 #include <hbinputabstractbase.h>
    31 #include <hbinputpredictioncallback.h>
    31 #include <hbinputpredictioncallback.h>
    32 #include <hbinputvirtualrocker.h>
       
    33 #include <hbinputvkbwidget.h>
    32 #include <hbinputvkbwidget.h>
    34 
    33 
    35 class QTimer;
    34 class QTimer;
    36 class HbQwertyNumericKeyboard;
    35 class HbQwertyNumericKeyboard;
    37 class HbQwerty10x4Keyboard;
    36 class HbQwerty10x4Keyboard;
    63     void reset();
    62     void reset();
    64     void mouseHandler(int x, QMouseEvent* aEvent);
    63     void mouseHandler(int x, QMouseEvent* aEvent);
    65     bool filterEvent(const QEvent* event);
    64     bool filterEvent(const QEvent* event);
    66 
    65 
    67 public slots:
    66 public slots:
    68     void orientationAboutToChange();
    67     void orientationAboutToChange();  
    69     void rockerDirection(int aDirection, HbInputVirtualRocker::RockerSelectionMode aSelectionMode);
       
    70     // keypad related slots
    68     // keypad related slots
    71     void keypadClosed();
    69     void keypadClosed();
    72     void keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod);
    70     void keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod);
    73     void flickEvent(HbInputVkbWidget::HbFlickDirection direction);
    71     void flickEvent(HbInputVkbWidget::HbFlickDirection direction);
    74     void mouseMovedOutOfButton();
    72     void mouseMovedOutOfButton();
   100     void switchSpecialCharacterTable();
    98     void switchSpecialCharacterTable();
   101     void selectSpecialCharacterTableMode();
    99     void selectSpecialCharacterTableMode();
   102     void closeExactWordPopup();
   100     void closeExactWordPopup();
   103     void launchExactWordPopup(QString exactWord);
   101     void launchExactWordPopup(QString exactWord);
   104     void closeAutoCompletionPopup();
   102     void closeAutoCompletionPopup();
       
   103     void closeCandidatePopup();
   105     void launchAutoCompletionPopup(const QStringList &candidates);
   104     void launchAutoCompletionPopup(const QStringList &candidates);
   106     HbKeyboardType currentKeyboardType() const;
   105     HbKeyboardType currentKeyboardType() const;
   107 
   106 
   108 private slots:
   107 private slots:
   109     void candidatePopupCancelled();
   108     void primaryCandidateModeChanged(HbPrimaryCandidateMode mode);
   110 	void primaryCandidateModeChanged(HbPrimaryCandidateMode mode);
   109     void restorePreviousState();
   111 
   110 
   112 private:
   111 private:
   113     void initializePredictiveMode();
   112     void initializePredictiveMode();
   114     void updateEditor();
   113     void updateEditor();
   115     bool selectWord(bool selectFromLeft = true);
   114     bool selectWord(bool selectFromLeft = true);
   116     void launchCandidatePopup();
   115     void launchCandidatePopup();
   117     QPointF getCursorCoordinatePosition();
   116     QPointF getCursorCoordinatePosition();
   118     void loadKeymap(const HbInputLanguage &newLanguage);
   117     void loadKeymap(const HbInputLanguage &newLanguage);
       
   118     void createSctKeypad();
   119 
   119 
   120 private:
   120 private:
   121     void openKeypad(HbInputVkbWidget * keypadToOpen, bool inMinimizedMode = false);
   121     void openKeypad(HbInputVkbWidget *keypadToOpen);
   122     HbInputVkbWidget *constructKeyboard(HbKeypadMode currentInputType);
   122     HbInputVkbWidget *constructKeyboard(HbKeypadMode currentInputType);
   123 
   123 
   124 private:
   124 private:
   125     // mCurrentKeypad contains currently active keypad, we don't need to have
   125     // mCurrentKeypad contains currently active keypad, we don't need to have
   126     // anyother variables to tell us which is current keypad
   126     // anyother variables to tell us which is current keypad
   138     HbFnState mFnState;
   138     HbFnState mFnState;
   139     HbInputState mPreviousInputState;
   139     HbInputState mPreviousInputState;
   140 
   140 
   141     HbExactWordPopup *mExactWordPopup;
   141     HbExactWordPopup *mExactWordPopup;
   142     HbCandidateList *mCandidatePopup;
   142     HbCandidateList *mCandidatePopup;
   143     bool mOrientationAboutToChange;
       
   144     int mShiftKeyState;
   143     int mShiftKeyState;
   145     // mode handlers
   144     // mode handlers
   146     HbInputModeHandler *mActiveModeHandler;
   145     HbInputModeHandler *mActiveModeHandler;
   147     HbInputBasicQwertyHandler *mBasicModeHandler;
   146     HbInputBasicQwertyHandler *mBasicModeHandler;
   148     HbInputPredictionQwertyHandler *mPredictionModeHandler;
   147     HbInputPredictionQwertyHandler *mPredictionModeHandler;