telutils/dialpad/tsrc/dialpadtest/dialpadtestview.h
changeset 13 e32024264ebb
parent 12 ae8abd0db65c
child 46 2fa1fa551b0b
equal deleted inserted replaced
12:ae8abd0db65c 13:e32024264ebb
    21 #include <hbview.h>
    21 #include <hbview.h>
    22 
    22 
    23 class HbMainWindow;
    23 class HbMainWindow;
    24 class HbListWidget;
    24 class HbListWidget;
    25 class Dialpad;
    25 class Dialpad;
       
    26 class DialpadKeyHandler;
    26 
    27 
    27 class DialpadTestView : public HbView
    28 class DialpadTestView : public HbView
    28 {
    29 {
    29     Q_OBJECT
    30     Q_OBJECT
    30 
    31 
    32     DialpadTestView( HbMainWindow& mainWindow );
    33     DialpadTestView( HbMainWindow& mainWindow );
    33     ~DialpadTestView();
    34     ~DialpadTestView();
    34 
    35 
    35 protected:
    36 protected:
    36     bool eventFilter(QObject * watched, QEvent * event);
    37     bool eventFilter(QObject * watched, QEvent * event);
       
    38     bool event(QEvent * event);
    37 
    39 
    38 private:
    40 private:
    39     void createListWidget();
    41     void createListWidget();
    40     void setDialpadPosition();
    42     void setDialpadPosition();
    41     void handleDial();
    43     void handleDial();
    45     void onDialpadClosed();
    47     void onDialpadClosed();
    46     void switchOrientation();
    48     void switchOrientation();
    47     void onOrientationChange(Qt::Orientation orientation);
    49     void onOrientationChange(Qt::Orientation orientation);
    48     void onEditorContentChanged();
    50     void onEditorContentChanged();
    49     void handleLongKeyPress();
    51     void handleLongKeyPress();
       
    52     void setTapOutsideDismiss();
    50 
    53 
    51 private:
    54 private:
    52     HbMainWindow& mMainWindow;
    55     HbMainWindow& mMainWindow;
    53     HbListWidget* mListWidget;
    56     HbListWidget* mListWidget;
    54     Dialpad* mDialpad;
    57     Dialpad* mDialpad;
       
    58     DialpadKeyHandler *mKeyhandler;
    55     QTimer* mLongPressTimer;
    59     QTimer* mLongPressTimer;
    56     QString mPressedKey;
    60     QString mPressedKey;
       
    61     bool mTapOutsideDismiss;
    57 };
    62 };
    58 
    63 
    59 #endif // DIALPADTESTVIEW_H
    64 #endif // DIALPADTESTVIEW_H