diff options
Diffstat (limited to 'kxkb/pixmap.h')
-rw-r--r-- | kxkb/pixmap.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kxkb/pixmap.h b/kxkb/pixmap.h new file mode 100644 index 000000000..7070d91b2 --- /dev/null +++ b/kxkb/pixmap.h @@ -0,0 +1,31 @@ +#ifndef __PIXMAP_H__ +#define __PIXMAP_H__ + + +#include <tqpixmap.h> +#include <tqdict.h> +#include <tqstring.h> + + +class LayoutIcon { + +private: + static LayoutIcon* instance; + static const TQString flagTemplate; + + TQDict<TQPixmap> m_pixmapCache; + TQFont m_labelFont; + + LayoutIcon(); + TQPixmap* createErrorPixmap(); + void dimPixmap(TQPixmap& pixmap); + TQString getCountryFromLayoutName(const TQString& layoutName); + + public: + static const TQString& ERROR_CODE; + + static LayoutIcon& getInstance(); + const TQPixmap& findPixmap(const TQString& code, bool showFlag, const TQString& displayName=""); +}; + +#endif |