author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /microkde/kiconloader.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | microkde/kiconloader.h | 4 |
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,19 +1,19 @@ | |||
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 | ||
9 | class KIcon | 9 | class 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 | ||
18 | class KIconLoader | 18 | class KIconLoader |
19 | { | 19 | { |
@@ -25,25 +25,25 @@ class KIconLoader | |||
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 | ||
44 | QPixmap BarIcon(const QString& name); | 44 | QPixmap BarIcon(const QString& name); |
45 | 45 | ||
46 | QPixmap DesktopIcon(const QString& name, int); | 46 | QPixmap DesktopIcon(const QString& name, int); |
47 | 47 | ||
48 | QPixmap SmallIcon(const QString& name); | 48 | QPixmap SmallIcon(const QString& name); |
49 | 49 | ||