13 #ifndef __KIconTheme_h_Included__
14 #define __KIconTheme_h_Included__
17 #include <tqstringlist.h>
18 #include <tqptrlist.h>
19 #include <tqvaluelist.h>
20 #include "kdelibs_export.h"
25 class KIconThemePrivate;
44 bool isValid()
const {
return size != 0; }
196 KIconTheme(
const TQString& name,
const TQString& appName=TQString::null);
203 TQString
name()
const {
return mName; }
217 TQString example()
const;
223 TQString screenshot()
const;
229 TQString linkOverlay()
const;
235 TQString zipOverlay()
const;
241 TQString lockOverlay()
const;
248 TQString shareOverlay ()
const;
254 TQString
dir()
const {
return mDir; }
260 TQStringList
inherits()
const {
return mInherits; }
266 bool isValid()
const;
273 bool isHidden()
const;
280 int depth()
const {
return mDepth; }
335 static TQStringList list();
341 static TQString current();
346 static void reconfigure();
353 static TQString defaultThemeName();
357 TQValueList<int> mSizes[8];
360 TQString mDir, mName, mDesc;
361 TQStringList mInherits;
362 TQPtrList<KIconThemeDir> mDirs;
363 KIconThemePrivate *d;
365 static TQString *_theme;
366 static TQStringList *_theme_list;
Access KDE Configuration entries.
Class to use/access icon themes in KDE.
TQString dir() const
Returns the toplevel theme directory.
TQString description() const
A description for the icon theme.
TQStringList inherits() const
The themes this icon theme falls back on.
TQString name() const
The stylized name of the icon theme.
int depth() const
The minimum display depth required for this theme.
One icon as found by KIconTheme.
Type type
The type of the icon: Fixed, Scalable or Threshold.
int size
The size in pixels of the icon.
States
Defines the possible states of an icon.
@ ActiveState
Icon is active.
@ DisabledState
Icon is disabled.
@ DefaultState
The default state.
Group
The group of the icon.
@ MainToolbar
Main toolbar icons.
@ Panel
Panel (Kicker) icons.
StdSizes
These are the standard sizes for icons.
MatchType
The type of a match.
@ MatchExact
Only try to find an exact match.
int threshold
The threshold in case type == Threshold.
Type
The type of the icon.
@ Scalable
Scalable-size icon.
TQString path
The full path of the icon.
Overlays
This defines an overlay, a semi-transparent image that is projected onto the icon.
Context
Defines the context of the icon.
@ MimeType
An icon that represents a mime type (or file type).
@ Category
An icon that represents a category.
@ Action
An action icon (e.g. 'save', 'print').
@ Place
An icon that represents a location (e.g. 'home', 'trash').
@ Emote
An icon that expresses an emotion.
@ Device
An icon that represents a device.
@ International
An icon that represents a country's flag.
@ Application
An icon that represents an application.
@ Animation
An icon that is animated.
@ FileSystem
An icon that represents a file system.
@ Any
Some icon with unknown purpose.
@ Emblem
An icon that adds information to an existing icon.
Context context
The context of the icon.
bool isValid() const
Return true if this icon is valid, false otherwise.