summaryrefslogtreecommitdiffabout
path: root/microkde/kiconloader.h
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /microkde/kiconloader.h
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
Diffstat (limited to 'microkde/kiconloader.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kiconloader.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/microkde/kiconloader.h b/microkde/kiconloader.h
new file mode 100644
index 0000000..68fec4e
--- a/dev/null
+++ b/microkde/kiconloader.h
@@ -0,0 +1,52 @@
1#ifndef MINIKDE_KICONLOADER_H
2#define MINIKDE_KICONLOADER_H
3
4#include <qpixmap.h>
5#include <qstring.h>
6//US
7#include <qiconset.h>
8
9class KIcon
10{
11 public:
12 enum Group { NoGroup=-1, Desktop=0, Toolbar, MainToolbar, Small,
13 Panel, LastGroup, User };
14 enum StdSizes { SizeSmall=16, SizeMedium=32, SizeLarge=48 };
15 enum States { DefaultState, ActiveState, DisabledState, LastState };
16};
17
18class KIconLoader
19{
20 public:
21 KIconLoader()
22 : mIconpath(0) {}
23
24 KIconLoader( const QString &iconpath )
25 : mIconpath(iconpath) {}
26
27//US QPixmap loadIcon( const QString &name, int );
28
29 QPixmap loadIcon(const QString& name, KIcon::Group group, int size=0,
30 int state=KIcon::DefaultState, QString *path_store=0,
31 bool canReturnNull=false) const;
32
33//US
34 QString setIconPath( const QString &);
35 QString iconPath( /*US const QString &, int */) const;
36 QString iconPath( const QString &, int ) const;
37 QIconSet loadIconSet( const QString &name) const;
38
39//US to make this class usable for different applications, we have to add a iconpathvariable
40 private:
41 QString mIconpath;
42};
43
44QPixmap BarIcon(const QString& name);
45
46QPixmap DesktopIcon(const QString& name, int);
47
48QPixmap SmallIcon(const QString& name);
49
50QPixmap SmallIconSet( const QString &name );
51
52#endif