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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HGMEDIAWALL_H |
|
19 #define HGMEDIAWALL_H |
|
20 |
|
21 #include <hgwidgets/hgwidgets.h> |
|
22 |
|
23 class HgMediawallPrivate; |
|
24 |
|
25 class HG_WIDGETS_EXPORT HgMediawall : public HgWidget |
|
26 { |
|
27 Q_OBJECT |
|
28 Q_PROPERTY(HbFontSpec titleFontSpec READ titleFontSpec WRITE setTitleFontSpec) |
|
29 Q_PROPERTY(HbFontSpec descriptionFontSpec READ descriptionFontSpec WRITE setDescriptionFontSpec) |
|
30 Q_PROPERTY(QPointF frontItemPositionDelta READ frontItemPositionDelta WRITE setFrontItemPositionDelta) |
|
31 Q_PROPERTY(bool reflectionsEnabled READ reflectionsEnabled WRITE enableReflections) |
|
32 |
|
33 public: |
|
34 |
|
35 explicit HgMediawall(QGraphicsItem *parent = 0 ); |
|
36 virtual ~HgMediawall(); |
|
37 |
|
38 void setTitleFontSpec(const HbFontSpec &fontSpec); |
|
39 HbFontSpec titleFontSpec() const; |
|
40 void setDescriptionFontSpec(const HbFontSpec &fontSpec); |
|
41 HbFontSpec descriptionFontSpec() const; |
|
42 |
|
43 void setFrontItemPositionDelta(const QPointF& position); |
|
44 QPointF frontItemPositionDelta() const; |
|
45 |
|
46 void enableReflections(bool enabled); |
|
47 bool reflectionsEnabled() const; |
|
48 |
|
49 signals: |
|
50 |
|
51 void animationAboutToEnd(const QModelIndex& targetIndex); |
|
52 |
|
53 protected: |
|
54 HgMediawall(HgMediawallPrivate &dd, QGraphicsItem *parent); |
|
55 void polish(HbStyleParameters& params); |
|
56 |
|
57 private: |
|
58 Q_DECLARE_PRIVATE_D(p_ptr, HgMediawall) |
|
59 Q_DISABLE_COPY(HgMediawall) |
|
60 }; |
|
61 |
|
62 #endif //HGMEDIAWALL_H |
|
63 |
|