src/hbcore/decorators/hbtitlepane_p_p.h
changeset 28 b7da29130b0e
parent 21 4633027730f5
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
    26 #ifndef HBTITLEPANE_P_P_H
    26 #ifndef HBTITLEPANE_P_P_H
    27 #define HBTITLEPANE_P_P_H
    27 #define HBTITLEPANE_P_P_H
    28 
    28 
    29 #include <hbwidget_p.h>
    29 #include <hbwidget_p.h>
    30 
    30 
       
    31 class HbTapGesture;
       
    32 class HbSwipeGesture;
       
    33 
    31 class HbTitlePanePrivate : public HbWidgetPrivate
    34 class HbTitlePanePrivate : public HbWidgetPrivate
    32 {
    35 {
    33     Q_DECLARE_PUBLIC(HbTitlePane)
    36     Q_DECLARE_PUBLIC(HbTitlePane)
    34 
    37 
    35 public:
    38 public:
    36     HbTitlePanePrivate();
    39     HbTitlePanePrivate();
    37     void delayedConstruction();
    40     void delayedConstruction();
    38 
    41 
       
    42     void init();
       
    43 
    39     void createPrimitives();
    44     void createPrimitives();
    40     void updatePrimitives();
    45     void updatePrimitives();
    41 
    46 
    42     void init();
    47     void handleTap(HbTapGesture *tap);
    43     void toggle(bool on);
    48     void handleSwipe(HbSwipeGesture *swipe);
       
    49     void cancelTap();
    44 
    50 
    45     QString mText;
    51     QString mText;
    46     QGraphicsItem *mTextItem;
    52     QGraphicsItem *mTextItem;
    47     bool mToggled;
       
    48     QGraphicsItem *mIcon;
    53     QGraphicsItem *mIcon;
    49 
    54 
    50     QIcon::Mode mMode;
    55     QIcon::Mode mMode;
    51     QGraphicsItem *mTouchArea;
    56     QGraphicsItem *mTouchArea;
    52     bool mMargueeAnimation;
    57     bool mMargueeAnimation;
       
    58 
       
    59     bool mTapStarted;
       
    60     bool mSwipeStarted;
    53 };
    61 };
    54 
    62 
    55 
    63 
    56 #endif // HBTITLEPANE_P_P_H
    64 #endif // HBTITLEPANE_P_P_H