equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This widget displays the pixmap content in viewer. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef UNI_VIEWER_PIXMAP_WIDGET_H |
|
19 #define UNI_VIEWER_PIXMAP_WIDGET_H |
|
20 |
|
21 #include <HbIconItem> |
|
22 |
|
23 /** |
|
24 * This widget displays the pixmap content in viewer. |
|
25 */ |
|
26 class UniViewerPixmapWidget: public HbIconItem |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 |
|
32 /** |
|
33 * Constructor |
|
34 */ |
|
35 UniViewerPixmapWidget(QGraphicsItem *parent = 0); |
|
36 |
|
37 /** |
|
38 * Destructor |
|
39 */ |
|
40 ~UniViewerPixmapWidget(); |
|
41 |
|
42 /** |
|
43 * Sets the pixmap content to be displayed. |
|
44 * @param pixmapPath File path of the pixmap. |
|
45 */ |
|
46 void setPixmap(const QString &pixmapPath); |
|
47 |
|
48 signals: |
|
49 |
|
50 /** |
|
51 * Signal emitted for short tap on pixmap. |
|
52 * @param pixmapPath File path of the pixmap being clicked. |
|
53 */ |
|
54 void shortTap(const QString &pixmapPath); |
|
55 |
|
56 protected: |
|
57 |
|
58 /** |
|
59 * Event handler for gesture events. |
|
60 * Reimplemented from HbWidgetBase. |
|
61 * @see HbWidgetBase |
|
62 */ |
|
63 virtual void gestureEvent(QGestureEvent *event); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * Pixmap file path being set. |
|
69 */ |
|
70 QString mPixmapFile; |
|
71 }; |
|
72 |
|
73 #endif /* UNI_VIEWER_PIXMAP_WIDGET_H */ |
|
74 |
|
75 // EOF |