equal
deleted
inserted
replaced
27 #define HBPIXMAPICONPROCESSOR_P_H |
27 #define HBPIXMAPICONPROCESSOR_P_H |
28 |
28 |
29 #include "hbiconprocessor_p.h" |
29 #include "hbiconprocessor_p.h" |
30 #include <QPixmap> |
30 #include <QPixmap> |
31 |
31 |
32 #if defined (Q_OS_SYMBIAN) |
32 #if defined (HB_NVG_CS_ICON) |
33 #include <nvg.h> |
33 #include <nvg.h> |
34 #endif //Q_OS_SYMBIAN |
34 |
|
35 // Note: Cases of the following two directory names intentionally differ to |
|
36 // match the cases of the corresponding directories in Symbian 4. |
|
37 #include <VG/openvg.h> |
|
38 #include <vg/vgcontext_symbian.h> |
|
39 #endif //HB_NVG_CS_ICON |
35 |
40 |
36 QT_BEGIN_NAMESPACE |
41 QT_BEGIN_NAMESPACE |
37 class QSvgRenderer; |
42 class QSvgRenderer; |
38 class QPicture; |
43 class QPicture; |
39 class QPixmap; |
44 class QPixmap; |
40 QT_END_NAMESPACE |
45 QT_END_NAMESPACE |
41 |
46 |
42 class HbThemeServerSymbian; |
47 class HbThemeServerSymbian; |
43 |
48 |
44 #if defined (Q_OS_SYMBIAN) |
49 #if defined (HB_NVG_CS_ICON) |
45 struct HbNvgAspectRatioSettings |
50 struct HbNvgAspectRatioSettings |
46 { |
51 { |
47 TNvgAlignStatusType nvgAlignStatusAndAspectRatio; |
52 TNvgAlignStatusType nvgAlignStatusAndAspectRatio; |
48 TNvgMeetOrSliceType type; |
53 TNvgMeetOrSliceType type; |
49 }; |
54 }; |
50 #endif //Q_OS_SYMBIAN |
55 #endif //HB_NVG_CS_ICON |
51 |
56 |
52 class HbPixmapIconProcessor : public HbIconProcessor |
57 class HbPixmapIconProcessor : public HbIconProcessor |
53 { |
58 { |
54 public : |
59 public : |
55 HbPixmapIconProcessor( |
60 HbPixmapIconProcessor( |
69 private : |
74 private : |
70 bool renderSvgToPixmap(const QString& iconPath); |
75 bool renderSvgToPixmap(const QString& iconPath); |
71 bool renderPicToPixmap(const QString& iconPath); |
76 bool renderPicToPixmap(const QString& iconPath); |
72 bool renderOtherFormatsToPixmap(const QString& iconPath); |
77 bool renderOtherFormatsToPixmap(const QString& iconPath); |
73 |
78 |
74 #if defined (Q_OS_SYMBIAN) |
79 #if defined (HB_NVG_CS_ICON) |
|
80 VGIColorBufferFormat mapToVgiDisplayFormat(QImage::Format imageFormat) const; |
75 bool renderNvgToPixmap(const QString& iconPath); |
81 bool renderNvgToPixmap(const QString& iconPath); |
76 HbNvgAspectRatioSettings mapKeyAspectRatioToNvgAspectRatio( |
82 HbNvgAspectRatioSettings mapKeyAspectRatioToNvgAspectRatio( |
77 Qt::AspectRatioMode aspectRatio) const; |
83 Qt::AspectRatioMode aspectRatio) const; |
78 #endif //Q_OS_SYMBIAN |
84 #endif //HB_NVG_CS_ICON |
79 private: |
85 private: |
80 QPixmap pixmap; |
86 QPixmap pixmap; |
81 }; |
87 }; |
82 |
88 |
83 #endif // end of HBPIXMAPICONPROCESSOR_P_H |
89 #endif // end of HBPIXMAPICONPROCESSOR_P_H |