You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.6 KiB
61 lines
1.6 KiB
15 years ago
|
/* vi: ts=8 sts=4 sw=4
|
||
|
*
|
||
13 years ago
|
* This file is part of the KDE project, module tdecore.
|
||
15 years ago
|
* 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__
|
||
|
|
||
15 years ago
|
#include <tqobject.h>
|
||
|
#include <tqstringlist.h>
|
||
15 years ago
|
#include <kicontheme.h>
|
||
|
#include <kiconloader.h>
|
||
|
#include <kiconeffect.h>
|
||
15 years ago
|
#include <tqdict.h>
|
||
15 years ago
|
|
||
|
class KIconThemeNode
|
||
|
{
|
||
|
public:
|
||
|
KIconThemeNode(KIconTheme *_theme);
|
||
|
~KIconThemeNode();
|
||
|
|
||
15 years ago
|
void queryIcons(TQStringList *lst, int size, KIcon::Context context) const;
|
||
|
void queryIconsByContext(TQStringList *lst, int size, KIcon::Context context) const;
|
||
14 years ago
|
KIcon findIcon(const TQString& name, int size, KIcon::MatchType match) const;
|
||
15 years ago
|
void printTree(TQString& dbgString) const;
|
||
15 years ago
|
|
||
|
KIconTheme *theme;
|
||
|
};
|
||
|
|
||
14 years ago
|
class KIconLoaderPrivate : public TQObject
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
15 years ago
|
TQStringList mThemesInTree;
|
||
15 years ago
|
KIconGroup *mpGroups;
|
||
|
KIconThemeNode *mpThemeRoot;
|
||
|
KStandardDirs *mpDirs;
|
||
|
KIconLoader *q;
|
||
|
KIconEffect mpEffect;
|
||
15 years ago
|
TQDict<TQImage> imgDict;
|
||
|
TQImage lastImage; // last loaded image without effect applied
|
||
|
TQString lastImageKey; // key for icon without effect
|
||
|
TQString appname;
|
||
15 years ago
|
int lastIconType; // see KIcon::type
|
||
|
int lastIconThreshold; // see KIcon::threshold
|
||
15 years ago
|
TQPtrList<KIconThemeNode> links;
|
||
15 years ago
|
bool extraDesktopIconsLoaded;
|
||
|
bool delayedLoading;
|
||
|
|
||
|
public slots:
|
||
|
void reconfigure();
|
||
|
};
|
||
|
|
||
|
#endif // __KIconLoader_p_h_Included__
|