diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-28 22:44:34 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-31 23:30:34 +0900 |
commit | f9abd9d505434c9244c03eac708e29a0ca042f6b (patch) | |
tree | 30a197ab4c413849188bc131ff859212e636c821 /src/app/kicons.h | |
parent | 14d42d284de233f9937becf3fc9ee0dabede3b21 (diff) | |
download | krusader-r14.1.x.tar.gz krusader-r14.1.x.zip |
Restructure source foldersr14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 086012dcad8a976a0dabbb7cbc20c9cb612cdfa9)
Diffstat (limited to 'src/app/kicons.h')
-rw-r--r-- | src/app/kicons.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/app/kicons.h b/src/app/kicons.h new file mode 100644 index 0000000..fd5eb7b --- /dev/null +++ b/src/app/kicons.h @@ -0,0 +1,29 @@ +#ifndef KICONS_H +#define KICONS_H + +#include <tqiconset.h> +#include <tqpixmap.h> +#include <kiconloader.h> +#include <kicontheme.h> + +// can be used everywhere - EXCEPT in KFileList related calls, loads the icon according to +// TDEIcon::Desktop settings and resizes it to a smaller size. If this is used to toolbuttons, +// the the icon is resized again to fit into the toolbutton or menu. +// IMPORTANT: this SHOULD NOT BE USED for actions. If creating an action, just state the file-name +// of the icon to allow automatic resizing when needed. +#define LOADICON(X) TQIconSet(krLoader->loadIcon(X,TDEIcon::Desktop)).pixmap(TQIconSet::Small,true) + +// used only for calls within the tdefilelist framework, handles icon sizes +TQPixmap FL_LOADICON(TQString name); + +extern const char * no_xpm[]; +extern const char * yes_xpm[]; +extern const char * link_xpm[]; +extern const char * black_xpm[]; +extern const char * yellow_xpm[]; +extern const char * green_xpm[]; +extern const char * red_xpm[]; +extern const char * white_xpm[]; +extern const char * blue_xpm[]; + +#endif |