13 #ifndef __TDEIconTheme_h_Included__
14 #define __TDEIconTheme_h_Included__
17 #include <tqstringlist.h>
18 #include <tqptrlist.h>
19 #include <tqvaluelist.h>
20 #include "tdelibs_export.h"
23 class TDEIconThemeDir;
25 class TDEIconThemePrivate;
44 bool isValid()
const {
return size != 0; }
196 TDEIconTheme(
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<TDEIconThemeDir> mDirs;
363 TDEIconThemePrivate *d;
365 static TQString *_theme;
366 static TQStringList *_theme_list;
Context context
The context of the icon.
States
Defines the possible states of an icon.
@ FileSystem
An icon that represents a file system.
int depth() const
The minimum display depth required for this theme.
@ Category
An icon that represents a category.
@ Any
Some icon with unknown purpose.
@ DisabledState
Icon is disabled.
@ Place
An icon that represents a location (e.g. 'home', 'trash').
TQString path
The full path of the icon.
int threshold
The threshold in case type == Threshold.
Overlays
This defines an overlay, a semi-transparent image that is projected onto the icon.
TQString description() const
A description for the icon theme.
Context
Defines the context of the icon.
TQStringList inherits() const
The themes this icon theme falls back on.
bool isValid() const
Return true if this icon is valid, false otherwise.
@ Application
An icon that represents an application.
@ Emote
An icon that expresses an emotion.
Type type
The type of the icon: Fixed, Scalable or Threshold.
Class to use/access icon themes in KDE.
@ MimeType
An icon that represents a mime type (or file type).
TQString dir() const
Returns the toplevel theme directory.
One icon as found by TDEIconTheme.
@ Action
An action icon (e.g. 'save', 'print').
@ Panel
Panel (Kicker) icons.
MatchType
The type of a match.
@ Emblem
An icon that adds information to an existing icon.
@ Device
An icon that represents a device.
Type
The type of the icon.
TQString name() const
The stylized name of the icon theme.
@ Animation
An icon that is animated.
Group
The group of the icon.
Access KDE Configuration entries.
@ MatchExact
Only try to find an exact match.
int size
The size in pixels of the icon.
@ MainToolbar
Main toolbar icons.
@ International
An icon that represents a country's flag.
@ Scalable
Scalable-size icon.
StdSizes
These are the standard sizes for icons.
@ ActiveState
Icon is active.