equal
deleted
inserted
replaced
19 |
19 |
20 #ifndef GLXSLIDESHOWWIDGET_H |
20 #ifndef GLXSLIDESHOWWIDGET_H |
21 #define GLXSLIDESHOWWIDGET_H |
21 #define GLXSLIDESHOWWIDGET_H |
22 |
22 |
23 //Includes |
23 //Includes |
24 #include <hbscrollarea.h> |
24 #include <hbwidget.h> |
25 #include <hbeffect.h> |
25 #include <hbeffect.h> |
26 |
26 |
27 //Qt/Orbit forward declarations |
27 //Qt/Orbit forward declarations |
28 class QTimer; |
28 class QTimer; |
|
29 class QGestureEvent; |
29 class HbIconItem; |
30 class HbIconItem; |
30 class HbMainWindow; |
31 class HbMainWindow; |
31 class HbPushButton; |
32 class HbPushButton; |
32 class HbMainWindow; |
33 class HbMainWindow; |
33 class QGraphicsItem; |
34 class QGraphicsItem; |
44 UI_ON_EVENT, //send the signal when user tap on screen ( on the UI ) |
45 UI_ON_EVENT, //send the signal when user tap on screen ( on the UI ) |
45 UI_OFF_EVENT, //send the signal when user press continous button ( off the UI) |
46 UI_OFF_EVENT, //send the signal when user press continous button ( off the UI) |
46 EMPTY_DATA_EVENT //send the signal when model have no data |
47 EMPTY_DATA_EVENT //send the signal when model have no data |
47 } GlxSlideShowEvent; |
48 } GlxSlideShowEvent; |
48 |
49 |
49 class GlxSlideShowWidget : public HbScrollArea |
50 class GlxSlideShowWidget : public HbWidget |
50 { |
51 { |
51 Q_OBJECT |
52 Q_OBJECT |
52 |
53 |
53 public : |
54 public : |
54 GlxSlideShowWidget (QGraphicsItem *parent = NULL); |
55 GlxSlideShowWidget (QGraphicsItem *parent = NULL); |
90 protected slots : |
91 protected slots : |
91 void leftGesture (int value); |
92 void leftGesture (int value); |
92 void rightGesture (int value); |
93 void rightGesture (int value); |
93 |
94 |
94 protected : |
95 protected : |
95 void mouseReleaseEvent( QGraphicsSceneMouseEvent *event); |
96 void gestureEvent(QGestureEvent *event); |
96 void mousePressEvent ( QGraphicsSceneMouseEvent * event ) ; |
|
97 |
97 |
98 private : |
98 private : |
99 //clear all the model connection |
99 //clear all the model connection |
100 void clearCurrentModel(); |
100 void clearCurrentModel(); |
101 //add the connection to the model |
101 //add the connection to the model |