summaryrefslogtreecommitdiffstats
path: root/kdecore/kiconloader_p.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /kdecore/kiconloader_p.h
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kiconloader_p.h')
-rw-r--r--kdecore/kiconloader_p.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/kdecore/kiconloader_p.h b/kdecore/kiconloader_p.h
new file mode 100644
index 000000000..a3201137b
--- /dev/null
+++ b/kdecore/kiconloader_p.h
@@ -0,0 +1,60 @@
+/* vi: ts=8 sts=4 sw=4
+ *
+ * This file is part of the KDE project, module kdecore.
+ * Copyright (C) 2000 Geert Jansen <jansen@kde.org>
+ * Antonio Larrosa <larrosa@kde.org>
+ *
+ * This is free software; it comes under the GNU Library General
+ * Public License, version 2. See the file "COPYING.LIB" for the
+ * exact licensing terms.
+ */
+
+#ifndef __KIconLoader_p_h_Included__
+#define __KIconLoader_p_h_Included__
+
+#include <qobject.h>
+#include <qstringlist.h>
+#include <kicontheme.h>
+#include <kiconloader.h>
+#include <kiconeffect.h>
+#include <qdict.h>
+
+class KIconThemeNode
+{
+public:
+ KIconThemeNode(KIconTheme *_theme);
+ ~KIconThemeNode();
+
+ void queryIcons(QStringList *lst, int size, KIcon::Context context) const;
+ void queryIconsByContext(QStringList *lst, int size, KIcon::Context context) const;
+ KIcon findIcon(const QString& name, int size, KIcon::MatchType match) const;
+ void printTree(QString& dbgString) const;
+
+ KIconTheme *theme;
+};
+
+class KIconLoaderPrivate : public QObject
+{
+ Q_OBJECT
+public:
+ QStringList mThemesInTree;
+ KIconGroup *mpGroups;
+ KIconThemeNode *mpThemeRoot;
+ KStandardDirs *mpDirs;
+ KIconLoader *q;
+ KIconEffect mpEffect;
+ QDict<QImage> imgDict;
+ QImage lastImage; // last loaded image without effect applied
+ QString lastImageKey; // key for icon without effect
+ QString appname;
+ int lastIconType; // see KIcon::type
+ int lastIconThreshold; // see KIcon::threshold
+ QPtrList<KIconThemeNode> links;
+ bool extraDesktopIconsLoaded;
+ bool delayedLoading;
+
+public slots:
+ void reconfigure();
+};
+
+#endif // __KIconLoader_p_h_Included__