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