src/hbinput/inputwidgets/hbinputvkbwidget_p.h
changeset 6 c3690ec91ef8
parent 5 627c4a0fd0e7
child 7 923ff622b8b9
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
    66 class QGraphicsLinearLayout;
    66 class QGraphicsLinearLayout;
    67 class HbInputScreenshotWidget;
    67 class HbInputScreenshotWidget;
    68 class HbInputFocusObject;
    68 class HbInputFocusObject;
    69 class HbInputSettingList;
    69 class HbInputSettingList;
    70 class HbSelectionDialog;
    70 class HbSelectionDialog;
       
    71 class HbInputSettingWidget;
    71 
    72 
    72 const qreal VerticalSpacing = 0.0, HorizontalSpacing = 0.0; //vertical and horizontal spacing for buttons in layout
    73 const qreal VerticalSpacing = 0.0, HorizontalSpacing = 0.0; //vertical and horizontal spacing for buttons in layout
    73 
    74 
    74 class HB_INPUT_PRIVATE_EXPORT HbInputVkbWidgetPrivate : public HbWidgetPrivate
    75 class HB_INPUT_PRIVATE_EXPORT HbInputVkbWidgetPrivate : public HbWidgetPrivate
    75 {
    76 {
    76     Q_DECLARE_PUBLIC(HbInputVkbWidget)
    77     Q_DECLARE_PUBLIC(HbInputVkbWidget)
    77 
    78 
    78 public:
    79 public:
    79      enum HbQwertyKeyboardSize
    80     enum HbQwertyKeyboardSize {
    80      {
    81         HbQwerty4x10,
    81          HbQwerty4x10,
    82         HbQwerty4x11
    82          HbQwerty4x11
    83     };
    83      };
       
    84     HbInputVkbWidgetPrivate();
    84     HbInputVkbWidgetPrivate();
    85     virtual ~HbInputVkbWidgetPrivate();
    85     virtual ~HbInputVkbWidgetPrivate();
    86 
    86 
    87     virtual void initLayout();
    87     virtual void initLayout();
    88     virtual void init();
    88     virtual void init();
    91     virtual int keyCode(HbTouchKeypadButton *button);
    91     virtual int keyCode(HbTouchKeypadButton *button);
    92 
    92 
    93     virtual void handleStandardButtonPress(int aButtonId);
    93     virtual void handleStandardButtonPress(int aButtonId);
    94     virtual void handleStandardButtonRelease(int aButtonId);
    94     virtual void handleStandardButtonRelease(int aButtonId);
    95 
    95 
    96     virtual void addCustomButtonToLayout( HbTouchKeypadButton* button,
    96     virtual void addCustomButtonToLayout(HbTouchKeypadButton *button,
    97                                           int index);
    97                                          int index);
    98 
    98 
    99     void redirectMousePressEvent(QGraphicsSceneMouseEvent *aEvent);
    99     void redirectMousePressEvent(QGraphicsSceneMouseEvent *aEvent);
   100     void redirectMouseReleaseEvent(QGraphicsSceneMouseEvent *aEvent);
   100     void redirectMouseReleaseEvent(QGraphicsSceneMouseEvent *aEvent);
   101 
   101 
   102     virtual void applyEditorConstraints();
   102     virtual void applyEditorConstraints();
   110     void updateMouseHitItem(HbTouchKeypadButton *button, QPointF position);
   110     void updateMouseHitItem(HbTouchKeypadButton *button, QPointF position);
   111     void normalizeProbabilities(QList<HbKeyPressProbability> &allProbableKeys);
   111     void normalizeProbabilities(QList<HbKeyPressProbability> &allProbableKeys);
   112 
   112 
   113     bool isSmileysEnabled();
   113     bool isSmileysEnabled();
   114     bool isKeyboardDimmed();
   114     bool isKeyboardDimmed();
   115     
   115 
   116     void showInputMethodSelectionDialog();
   116     void showInputMethodSelectionDialog();
   117     void _q_inputMethodSelectionDialogFinished(HbAction *action);
   117     void _q_inputMethodSelectionDialogFinished(HbAction *action);
       
   118     void _q_handleRockerChange(int direction, HbInputVirtualRocker::RockerSelectionMode selectionMode);
       
   119     void _q_settingsClosed(HbAction *action);
   118 
   120 
   119     virtual QChar numberCharacterBoundToKey(int key);
   121     virtual QChar numberCharacterBoundToKey(int key);
   120     friend class HbTouchKeypadButton;
   122     friend class HbTouchKeypadButton;
   121     friend class HbInputUsedSymbolPane;
   123     friend class HbInputUsedSymbolPane;
   122 
   124 
   135     QPointer<HbTouchKeypadButton> mApplicationButton;
   137     QPointer<HbTouchKeypadButton> mApplicationButton;
   136     QPointer<HbAction> mApplicationButtonAction;
   138     QPointer<HbAction> mApplicationButtonAction;
   137     QPointer<HbTouchKeypadButton> mSettingsButton;
   139     QPointer<HbTouchKeypadButton> mSettingsButton;
   138     QPointer<HbInputSettingList> mSettingList;
   140     QPointer<HbInputSettingList> mSettingList;
   139 
   141 
   140     QGraphicsGridLayout* mButtonLayout;
   142     QGraphicsGridLayout *mButtonLayout;
   141 
   143 
   142     QSignalMapper *mPressMapper;
   144     QSignalMapper *mPressMapper;
   143     QSignalMapper *mReleaseMapper;
   145     QSignalMapper *mReleaseMapper;
   144     QSignalMapper *mActionMapper;
   146     QSignalMapper *mActionMapper;
   145 
   147 
   146     HbInputVirtualRocker *mRocker;
   148     QPointer<HbInputVirtualRocker> mRocker;
   147 
   149 
   148     HbFrameDrawer *mBackgroundDrawer;
   150     HbFrameDrawer *mBackgroundDrawer;
   149     HbFrameDrawer *mIconDrawer;
   151     HbFrameDrawer *mIconDrawer;
   150 
   152 
   151     bool mMainWinConnected;
   153     bool mMainWinConnected;
   156     QTime mMousePressTime;
   158     QTime mMousePressTime;
   157     bool mMouseButtonPressedDown;
   159     bool mMouseButtonPressedDown;
   158     HbInputVkbWidget::HbFlickDirection mFlickDirection;
   160     HbInputVkbWidget::HbFlickDirection mFlickDirection;
   159     HbInputSmileyPicker *mSmileyPicker;
   161     HbInputSmileyPicker *mSmileyPicker;
   160 
   162 
   161     HbInputScreenshotWidget* mScreenshotWidget;
   163     HbInputScreenshotWidget *mScreenshotWidget;
   162     QTimeLine mScreenshotTimeLine;
   164     QTimeLine mScreenshotTimeLine;
   163     HbTouchKeypadButton *mMostRecentlyAccessedButton;
   165     HbTouchKeypadButton *mMostRecentlyAccessedButton;
   164     QPointF mMostRecentlyClickedLocation;
   166     QPointF mMostRecentlyClickedLocation;
   165     HbInputFocusObject  *mFocusedObject;
   167     HbInputFocusObject  *mFocusedObject;
   166     bool mFlickAnimation;
   168     bool mFlickAnimation;
   172     QGraphicsWidget *mCloseHandle;
   174     QGraphicsWidget *mCloseHandle;
   173     HbView *mSettingView;
   175     HbView *mSettingView;
   174     HbView *mCurrentView;
   176     HbView *mCurrentView;
   175     bool mKeyboardDimmed;
   177     bool mKeyboardDimmed;
   176     HbSelectionDialog *mImSelectionDialog;
   178     HbSelectionDialog *mImSelectionDialog;
       
   179     HbInputSettingWidget *mSettingWidget;
   177 };
   180 };
   178 
   181 
   179 #endif //HB_INPUT_VKB_WIDGET_PRIVATE_H
   182 #endif //HB_INPUT_VKB_WIDGET_PRIVATE_H
   180 
   183 
   181 // End of file
   184 // End of file