equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef HGGRIDCONTAINER_H |
18 #ifndef HGGRIDCONTAINER_H |
19 #define HGGRIDCONTAINER_H |
19 #define HGGRIDCONTAINER_H |
20 |
20 |
21 #include "HgContainer.h" |
21 #include "hgcontainer.h" |
22 |
22 |
23 class HbLabel; |
23 class HbLabel; |
24 class HgWidgetItem; |
24 class HgWidgetItem; |
25 class HgMediaWallRenderer; |
25 class HgMediaWallRenderer; |
26 |
26 |
32 public: |
32 public: |
33 explicit HgGridContainer(QGraphicsItem *parent = 0); |
33 explicit HgGridContainer(QGraphicsItem *parent = 0); |
34 |
34 |
35 virtual ~HgGridContainer(); |
35 virtual ~HgGridContainer(); |
36 |
36 |
|
37 void setEffect3dEnabled(bool effect3dEnabled); |
|
38 bool effect3dEnabled() const; |
|
39 |
37 protected: |
40 protected: |
38 |
41 |
39 // events |
42 // events |
40 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); |
43 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); |
41 |
44 |
44 virtual qreal getCameraDistance(qreal springVelocity); |
47 virtual qreal getCameraDistance(qreal springVelocity); |
45 virtual qreal getCameraRotationY(qreal springVelocity); |
48 virtual qreal getCameraRotationY(qreal springVelocity); |
46 virtual void handleTapAction(const QPointF& pos, HgWidgetItem* hitItem, int hitItemIndex); |
49 virtual void handleTapAction(const QPointF& pos, HgWidgetItem* hitItem, int hitItemIndex); |
47 virtual void handleLongTapAction(const QPointF& pos, HgWidgetItem* hitItem, int hitItemindex); |
50 virtual void handleLongTapAction(const QPointF& pos, HgWidgetItem* hitItem, int hitItemindex); |
48 virtual void onScrollPositionChanged(qreal pos); |
51 virtual void onScrollPositionChanged(qreal pos); |
49 |
52 |
|
53 private: |
|
54 |
|
55 bool mEffect3dEnabled; |
50 }; |
56 }; |
51 |
57 |
52 #endif |
58 #endif |