telutils/dialpad/inc/dialpadkeypad.h
changeset 19 e44a8c097b15
parent 13 e32024264ebb
child 31 a2467631ae02
equal deleted inserted replaced
15:d7fc66ccd6fb 19:e44a8c097b15
    19 #define DIALPADKEYPAD_H
    19 #define DIALPADKEYPAD_H
    20 
    20 
    21 #include <hbwidget.h>
    21 #include <hbwidget.h>
    22 
    22 
    23 class DialpadButton;
    23 class DialpadButton;
    24 class DialpadButtonStyle;
       
    25 class DialpadInputField;
    24 class DialpadInputField;
    26 class DialpadButton;
    25 class DialpadButton;
    27 class QSignalMapper;
    26 class QSignalMapper;
    28 class QGraphicsGridLayout;
    27 class QGraphicsGridLayout;
    29 
    28 
    45     void setLongPressDuration(int duration);
    44     void setLongPressDuration(int duration);
    46 
    45 
    47     void setCallButtonEnabled(bool enabled);
    46     void setCallButtonEnabled(bool enabled);
    48 
    47 
    49     void createButtonGrid();
    48     void createButtonGrid();
       
    49     
       
    50     void resetButtons();
    50 
    51 
    51 protected slots:
    52 protected slots:
    52     void setButtonTexts();
    53     void setButtonTexts();
    53     void handleKeyPressed(int key);
    54     void handleKeyPressed(int key);
    54     void handleKeyClicked(int key);
    55     void handleKeyClicked(int key);
    66 private:
    67 private:
    67     const HbMainWindow& mMainWindow;
    68     const HbMainWindow& mMainWindow;
    68     DialpadInputField& mInputField;
    69     DialpadInputField& mInputField;
    69     QGraphicsGridLayout* mGridLayout;
    70     QGraphicsGridLayout* mGridLayout;
    70     DialpadButton* mButtons[DialpadButtonCount];
    71     DialpadButton* mButtons[DialpadButtonCount];
    71     DialpadButtonStyle* mNormalButtonStyle;
       
    72     DialpadButtonStyle* mCallButtonStyle;
       
    73     QSignalMapper* mKeyPressedSignalMapper;
    72     QSignalMapper* mKeyPressedSignalMapper;
    74     QSignalMapper* mKeyReleasedSignalMapper;
    73     QSignalMapper* mKeyReleasedSignalMapper;
    75     QSignalMapper* mKeyClickedSignalMapper;
    74     QSignalMapper* mKeyClickedSignalMapper;
    76     QMap<int,QChar> mGeneratedChar;
    75     QMap<int,QChar> mGeneratedChar;
    77     int mPressedNumericKey;
    76     int mPressedNumericKey;