changeset 28 | 3075d9b614e6 |
parent 19 | d9aefe59d544 |
child 39 | c5025ea871a1 |
child 43 | 0e652f8f1fbd |
19:d9aefe59d544 | 28:3075d9b614e6 |
---|---|
19 |
19 |
20 #include <QObject> |
20 #include <QObject> |
21 #include <QList> |
21 #include <QList> |
22 #include <QTimer> |
22 #include <QTimer> |
23 #include <hbview.h> |
23 #include <hbview.h> |
24 #include <xqappmgr.h> |
|
24 |
25 |
25 class QGraphicsRectItem; |
26 class QGraphicsRectItem; |
26 class HbMainWindow; |
27 class HbMainWindow; |
27 class HbAction; |
28 class HbAction; |
28 class HbLabel; |
29 class HbLabel; |
41 public: |
42 public: |
42 CxuiPostcaptureView(QGraphicsItem *parent = 0); |
43 CxuiPostcaptureView(QGraphicsItem *parent = 0); |
43 virtual ~CxuiPostcaptureView(); |
44 virtual ~CxuiPostcaptureView(); |
44 void construct(HbMainWindow *mainwindow, CxeEngine *engine, CxuiDocumentLoader *documentLoader); |
45 void construct(HbMainWindow *mainwindow, CxeEngine *engine, CxuiDocumentLoader *documentLoader); |
45 |
46 |
47 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); |
|
48 |
|
46 signals: |
49 signals: |
47 void changeToPrecaptureView(); |
50 void changeToPrecaptureView(); |
48 |
51 |
49 public slots: |
52 public slots: |
50 void handleCaptureKeyPressed(); |
53 void handleCaptureKeyPressed(); |
51 void handleAutofocusKeyPressed(); |
54 void handleAutofocusKeyPressed(); |
52 |
55 |
53 protected: |
56 protected: |
54 bool eventFilter(QObject *object, QEvent *event); |
57 bool eventFilter(QObject *object, QEvent *event); |
55 bool event(QEvent *event); |
|
56 void mousePressEvent(QGraphicsSceneMouseEvent *event); |
58 void mousePressEvent(QGraphicsSceneMouseEvent *event); |
57 void showEvent(QShowEvent *event); |
59 void showEvent(QShowEvent *event); |
58 void hideEvent(QHideEvent *event); |
60 void hideEvent(QHideEvent *event); |
59 void showToolbar(); |
61 void showToolbar(); |
60 void createBackground(); |
62 void createBackground(); |
76 void select(); |
78 void select(); |
77 void launchShare(); |
79 void launchShare(); |
78 void playVideo(); |
80 void playVideo(); |
79 void showDeleteNote(); |
81 void showDeleteNote(); |
80 void launchVideosApp(); |
82 void launchVideosApp(); |
83 |
|
84 void handleDeleteDialogClosed(HbAction *action); |
|
81 |
85 |
82 private: |
86 private: |
83 void launchNotSupportedNotification(); |
87 void launchNotSupportedNotification(); |
84 QString getCurrentFilename(); |
88 QString getCurrentFilename(); |
85 |
89 |
122 QTimer mPostcaptureTimer; |
126 QTimer mPostcaptureTimer; |
123 |
127 |
124 bool mControlsVisible; |
128 bool mControlsVisible; |
125 |
129 |
126 bool mTimersStarted; |
130 bool mTimersStarted; |
131 |
|
132 XQApplicationManager mAppManager; |
|
127 |
133 |
128 }; |
134 }; |
129 |
135 |
130 #endif // CXUIPOSTCAPTUREVIEW_H |
136 #endif // CXUIPOSTCAPTUREVIEW_H |