equal
deleted
inserted
replaced
21 #include <hbwidget.h> |
21 #include <hbwidget.h> |
22 |
22 |
23 #include "unidatamodelplugininterface.h" |
23 #include "unidatamodelplugininterface.h" |
24 |
24 |
25 class UniViewerTextItem; |
25 class UniViewerTextItem; |
26 class HbIconItem; |
26 class UniViewerPixmapWidget; |
27 class HbTextItem; |
27 class HbTextItem; |
28 class HbPushButton; |
28 class HbPushButton; |
29 class HbGestureSceneFilter; |
29 //class HbGestureSceneFilter; |
30 class QSignalMapper; |
30 class QSignalMapper; |
31 |
31 |
32 /** |
32 /** |
33 * This widget displays the body of the viewer |
33 * This widget displays the body of the viewer |
34 */ |
34 */ |
55 |
55 |
56 /** |
56 /** |
57 * Called to insert image content in viewer. |
57 * Called to insert image content in viewer. |
58 * @param medialist list of absolute paths of media. |
58 * @param medialist list of absolute paths of media. |
59 */ |
59 */ |
60 void setImage(QString imagefile); |
60 void setPixmap(QString pixmapFile); |
61 |
61 |
62 /** |
62 /** |
63 * Called to insert audio content in viewer. |
63 * Called to insert audio content in viewer. |
64 * @param medialist list of absolute paths of media. |
64 * @param medialist list of absolute paths of media. |
65 */ |
65 */ |
118 * Clears the content on the widget |
118 * Clears the content on the widget |
119 */ |
119 */ |
120 void clearContent(); |
120 void clearContent(); |
121 |
121 |
122 protected: |
122 protected: |
123 // from HbWidget |
123 |
124 |
124 /** |
125 /** |
125 * Reimplemented from base class to provide proper geometry for scrolling. |
126 * reimplemented from base class to provide proper geometry for scrolling. |
|
127 * @see HbWidget |
126 * @see HbWidget |
128 */ |
127 */ |
129 void resizeEvent(QGraphicsSceneResizeEvent* event); |
128 QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const; |
130 |
129 |
131 private slots: |
130 private slots: |
132 |
131 |
133 /** |
132 /** |
134 * called on long press on the media objects |
133 * called on long press on the media objects |
146 void openMedia(const QString& fileName); |
145 void openMedia(const QString& fileName); |
147 |
146 |
148 /** |
147 /** |
149 * called from the media object's item specific menu |
148 * called from the media object's item specific menu |
150 */ |
149 */ |
151 void viewDetails(); |
150 void saveMedia(); |
152 |
151 |
153 /** |
152 /** |
154 * Service launch complete. |
153 * Service launch complete. |
155 */ |
154 */ |
156 void handleOk(const QVariant& result); |
155 void handleOk(const QVariant& result); |
190 HbTextItem *mSlideCounter; |
189 HbTextItem *mSlideCounter; |
191 |
190 |
192 /** |
191 /** |
193 * Icon item to preview images. |
192 * Icon item to preview images. |
194 */ |
193 */ |
195 HbIconItem* mIconItem; |
194 UniViewerPixmapWidget *mPixmapItem; |
196 |
195 |
197 /** |
196 /** |
198 * Media widget for embedded audio content. |
197 * Media widget for embedded audio content. |
199 */ |
198 */ |
200 HbPushButton *mAudioItem; |
199 HbPushButton *mAudioItem; |
201 |
200 |
202 /** |
201 /** |
203 * To setup longpress gesture on media objects |
202 * To setup longpress gesture on media objects |
204 */ |
203 */ |
205 HbGestureSceneFilter* gestureFilter; |
204 // HbGestureSceneFilter* gestureFilter; |
206 |
205 |
207 /** |
206 /** |
208 * File mapper for opening media |
207 * File mapper for opening media |
209 */ |
208 */ |
210 QSignalMapper* mSignalMapper; |
209 QSignalMapper* mSignalMapper; |