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