summaryrefslogtreecommitdiffstats
path: root/krusader/kicons.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:58:28 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:58:28 +0000
commit83b9bf0e3bfb1d842b10b80bbe749095b2c661a1 (patch)
treeb05b1793361693ae88106648c2a953bed988f423 /krusader/kicons.h
downloadkrusader-83b9bf0e3bfb1d842b10b80bbe749095b2c661a1.tar.gz
krusader-83b9bf0e3bfb1d842b10b80bbe749095b2c661a1.zip
Added old KDE3 version of Krusader
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krusader@1094427 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krusader/kicons.h')
-rw-r--r--krusader/kicons.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/krusader/kicons.h b/krusader/kicons.h
new file mode 100644
index 0000000..ae200db
--- /dev/null
+++ b/krusader/kicons.h
@@ -0,0 +1,29 @@
+#ifndef KICONS_H
+#define KICONS_H
+
+#include <qiconset.h>
+#include <qpixmap.h>
+#include <kiconloader.h>
+#include <kicontheme.h>
+
+// can be used everywhere - EXCEPT in KFileList related calls, loads the icon according to
+// KIcon::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) QIconSet(krLoader->loadIcon(X,KIcon::Desktop)).pixmap(QIconSet::Small,true)
+
+// used only for calls within the kfilelist framework, handles icon sizes
+QPixmap FL_LOADICON(QString 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