summaryrefslogtreecommitdiffstats
path: root/kxkb/pixmap.h
blob: 661e74effb28dbe02f3225be0c0f3e78b5c928ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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& tqlayoutName);
	
  public:
	static const TQString& ERROR_CODE;
	
	static LayoutIcon& getInstance();
	const TQPixmap& findPixmap(const TQString& code, bool showFlag, const TQString& displayName="");
};

#endif