00001 #ifndef __PIXMAP_H__
00002 #define __PIXMAP_H__
00003
00004
00005 #include <tqpixmap.h>
00006 #include <tqdict.h>
00007 #include <tqstring.h>
00008
00009
00010 class LayoutIcon {
00011
00012 private:
00013 static LayoutIcon* instance;
00014 static const TQString flagTemplate;
00015
00016 TQDict<TQPixmap> m_pixmapCache;
00017 TQFont m_labelFont;
00018
00019 LayoutIcon();
00020 TQPixmap* createErrorPixmap();
00021 void dimPixmap(TQPixmap& pixmap);
00022 TQString getCountryFromLayoutName(const TQString& layoutName);
00023
00024 public:
00025 static const TQString& ERROR_CODE;
00026
00027 static LayoutIcon& getInstance();
00028 const TQPixmap& findPixmap(const TQString& code, bool showFlag, const TQString& displayName="");
00029 };
00030
00031 #endif