12 #ifndef __TDEIconLoader_h_Included__
13 #define __TDEIconLoader_h_Included__
17 #include <tqiconset.h>
21 #define TDEIconLoaderXStatus Status
25 #ifdef TDEIconLoaderXStatus
27 #undef TDEIconLoaderXStatus
30 #include <tdeglobal.h>
31 #include <kinstance.h>
32 #include <kicontheme.h>
35 class TDEIconThemeNode;
37 struct TDEIconLoaderPrivate;
106 void addAppDir(
const TQString& appname);
129 TQPixmap loadIcon(
const TQString& name,
TDEIcon::Group group,
int size=0,
131 bool canReturnNull=
false)
const;
151 TQIconSet loadIconSet(
const TQString& name,
TDEIcon::Group group,
int size,
152 bool canReturnNull,
bool immediateExistenceCheck);
171 TQIconSet loadIconSet(
const TQString& name,
TDEIcon::Group group,
int size,
186 TQIconSet loadIconSet(
const TQString& name,
TDEIcon::Group group,
int size=0);
202 TQString iconPath(
const TQString& name,
int group_or_size,
203 bool canReturnNull=
false)
const;
213 TQMovie loadMovie(
const TQString& name,
TDEIcon::Group group,
int size=0)
const;
224 TQString moviePath(
const TQString& name,
TDEIcon::Group group,
int size=0)
const;
236 TQStringList loadAnimated(
const TQString& name,
TDEIcon::Group group,
int size=0)
const;
261 TQStringList queryIconsByContext(
int group_or_size,
276 TQStringList queryIconsByDir(
const TQString& iconsDir )
const;
311 static TQPixmap unknown();
327 void addExtraDesktopThemes();
334 bool extraDesktopThemesAdded()
const;
355 void enableDelayedIconSetLoading(
bool enable );
364 bool isDelayedIconSetLoadingEnabled()
const;
378 TDEIcon findMatchingIcon(
const TQString& name,
int size)
const;
384 TQImage *loadOverlay(
const TQString& name,
int size)
const;
390 void addAppThemes(
const TQString& appname);
397 void addBaseThemes(TDEIconThemeNode *node,
const TQString &appname);
404 TQString unknownIconPath(
int size )
const;
421 TQString removeIconExtension(
const TQString &name)
const;
432 TQString removeIconExtensionInternal(
const TQString &name)
const;
437 TQIconSet loadIconSetNonDelayed(
const TQString& name,
TDEIcon::Group group,
438 int size,
bool canReturnNull );
441 TDEIconLoaderPrivate *d;
448 TDECORE_EXPORT TQPixmap
DesktopIcon(
const TQString& name,
int size=0,
462 TDECORE_EXPORT TQIconSet
DesktopIconSet(
const TQString& name,
int size=0,
482 TDECORE_EXPORT TQIconSet
BarIconSet(
const TQString& name,
int size=0,
489 TDECORE_EXPORT TQPixmap
SmallIcon(
const TQString& name,
int size=0,
503 TDECORE_EXPORT TQIconSet
SmallIconSet(
const TQString& name,
int size=0,
510 TDECORE_EXPORT TQPixmap
MainBarIcon(
const TQString& name,
int size=0,
524 TDECORE_EXPORT TQIconSet
MainBarIconSet(
const TQString& name,
int size=0,
544 TDECORE_EXPORT TQIconSet
UserIconSet(
const TQString& name,
Access KDE Configuration entries.
static TDEInstance * instance()
Returns the global instance.
Applies effects to icons.
TQPixmap BarIcon(const TQString &name, int size=0, int state=TDEIcon::DefaultState, TDEInstance *instance=TDEGlobal::instance())
Load a toolbar icon.
TQPixmap DesktopIcon(const TQString &name, int size=0, int state=TDEIcon::DefaultState, TDEInstance *instance=TDEGlobal::instance())
Load a desktop icon.
TQIconSet BarIconSet(const TQString &name, int size=0, TDEInstance *instance=TDEGlobal::instance())
Load a toolbar icon, and apply the necessary effects to get an IconSet.
TQIconSet SmallIconSet(const TQString &name, int size=0, TDEInstance *instance=TDEGlobal::instance())
Load a small icon, and apply the necessary effects to get an IconSet.
TQIconSet MainBarIconSet(const TQString &name, int size=0, TDEInstance *instance=TDEGlobal::instance())
Load a main toolbar icon, and apply the effects to get an IconSet.
TQIconSet UserIconSet(const TQString &name, TDEInstance *instance=TDEGlobal::instance())
Load a user icon, and apply the effects to get an IconSet.
int IconSize(TDEIcon::Group group, TDEInstance *instance=TDEGlobal::instance())
Returns the current icon size for a specific group.
TQPixmap UserIcon(const TQString &name, int state=TDEIcon::DefaultState, TDEInstance *instance=TDEGlobal::instance())
Load a user icon.
TQPixmap MainBarIcon(const TQString &name, int size=0, int state=TDEIcon::DefaultState, TDEInstance *instance=TDEGlobal::instance())
Load a main toolbar icon.
TQIconSet DesktopIconSet(const TQString &name, int size=0, TDEInstance *instance=TDEGlobal::instance())
Load a desktop icon, and apply the necessary effects to get an IconSet.
TQPixmap SmallIcon(const TQString &name, int size=0, int state=TDEIcon::DefaultState, TDEInstance *instance=TDEGlobal::instance())
Load a small icon.
Class to use/access icon themes in KDE.
One icon as found by TDEIconTheme.
@ DefaultState
The default state.
Context
Defines the context of the icon.
@ Any
Some icon with unknown purpose.
Group
The group of the icon.
Access to KDE global objects for use in shared libraries.
Site-independent access to standard KDE directories.