diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-05-01 15:14:43 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-05-16 16:02:45 +0300 |
commit | 63b5e825b82b0f6936a97865d1907c5998f302af (patch) | |
tree | 6396d5da047f12b3575700d041f8dc8ccf06e173 /kxkb/pixmap.h | |
parent | 3419424baa9c910ba9b9ef7dbc7017451867fcdc (diff) | |
download | tdebase-63b5e825.tar.gz tdebase-63b5e825.zip |
Added customization options for Kxkb
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kxkb/pixmap.h')
-rw-r--r-- | kxkb/pixmap.h | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/kxkb/pixmap.h b/kxkb/pixmap.h index 7070d91b2..2fd6c2a3c 100644 --- a/kxkb/pixmap.h +++ b/kxkb/pixmap.h @@ -6,26 +6,42 @@ #include <tqdict.h> #include <tqstring.h> +#include "kxkbconfig.h" + +enum PixmapStyle { + PIXMAP_STYLE_NORMAL = 0, + PIXMAP_STYLE_INDICATOR = 1, + PIXMAP_STYLE_CONTEXTMENU = 2 +}; 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=""); + static LayoutIcon* instance; + static const TQString flagTemplate; + + KxkbConfig m_kxkbConfig; + bool m_showFlag; + bool m_showLabel; + TQColor m_bgColor; + TQColor m_fgColor; + TQFont m_labelFont; + bool m_labelShadow; + TQColor m_shColor; + bool m_fitToBox; + + TQDict<TQPixmap> m_pixmapCache; + + 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, int pixmapStyle, const TQString& displayName=""); }; #endif |