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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPTHEMEPREVIEW_H |
|
19 #define CPTHEMEPREVIEW_H |
|
20 |
|
21 #include <hbview.h> |
|
22 #include <QObject> |
|
23 #include <hbicon.h> |
|
24 #include "cpthemechanger.h" |
|
25 #include "cpthemeinfo.h" |
|
26 |
|
27 |
|
28 QT_BEGIN_NAMESPACE |
|
29 class QString; |
|
30 QT_END_NAMESPACE |
|
31 |
|
32 class HbAction; |
|
33 class HbMainWindow; |
|
34 class HbIconItem; |
|
35 |
|
36 class CpThemePreview : public HbView |
|
37 { |
|
38 Q_OBJECT |
|
39 |
|
40 public: |
|
41 explicit CpThemePreview(const CpThemeInfo &theme, QGraphicsItem *parent = 0); |
|
42 ~CpThemePreview(); |
|
43 void setThemeInfo(const CpThemeInfo& theme); |
|
44 const QString themeName() const; |
|
45 const HbIcon themeIcon() const; |
|
46 |
|
47 signals: |
|
48 void applyTheme(const CpThemeInfo&); |
|
49 void aboutToClose(); |
|
50 |
|
51 private slots: |
|
52 void themeSelected(); |
|
53 void previewOrientationChanged(Qt::Orientation orientation); |
|
54 |
|
55 private: |
|
56 CpThemeInfo mTheme; |
|
57 HbAction* mSoftKeyBackAction; |
|
58 HbIconItem* mPreviewIcon; |
|
59 |
|
60 }; |
|
61 |
|
62 #endif //CPTHEMEPREVIEW_H |