summaryrefslogtreecommitdiffstats
path: root/kxkb/pixmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'kxkb/pixmap.h')
-rw-r--r--kxkb/pixmap.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/kxkb/pixmap.h b/kxkb/pixmap.h
new file mode 100644
index 000000000..42764c04f
--- /dev/null
+++ b/kxkb/pixmap.h
@@ -0,0 +1,31 @@
+#ifndef __PIXMAP_H__
+#define __PIXMAP_H__
+
+
+#include <qpixmap.h>
+#include <qdict.h>
+#include <qstring.h>
+
+
+class LayoutIcon {
+
+private:
+ static LayoutIcon* instance;
+ static const QString flagTemplate;
+
+ QDict<QPixmap> m_pixmapCache;
+ QFont m_labelFont;
+
+ LayoutIcon();
+ QPixmap* createErrorPixmap();
+ void dimPixmap(QPixmap& pixmap);
+ QString getCountryFromLayoutName(const QString& layoutName);
+
+ public:
+ static const QString& ERROR_CODE;
+
+ static LayoutIcon& getInstance();
+ const QPixmap& findPixmap(const QString& code, bool showFlag, const QString& displayName="");
+};
+
+#endif