KIconTheme Class Reference
Class to use/access icon themes in KDE. More...
#include <kicontheme.h>
Collaboration diagram for KIconTheme:

| Public Member Functions | |
| KIconTheme (const QString &name, const QString &appName=QString::null) | |
| QString | name () const | 
| QString | description () const | 
| QString | example () const | 
| QString | screenshot () const | 
| QString | linkOverlay () const | 
| QString | zipOverlay () const | 
| QString | lockOverlay () const | 
| QString | shareOverlay () const | 
| QString | dir () const | 
| QStringList | inherits () const | 
| bool | isValid () const | 
| bool | isHidden () const | 
| int | depth () const | 
| int | defaultSize (KIcon::Group group) const | 
| QValueList< int > | querySizes (KIcon::Group group) const | 
| QStringList | queryIcons (int size, KIcon::Context context=KIcon::Any) const | 
| QStringList | queryIconsByContext (int size, KIcon::Context context=KIcon::Any) const | 
| KIcon | iconPath (const QString &name, int size, KIcon::MatchType match) const | 
| Static Public Member Functions | |
| QStringList | list () | 
| QString | current () | 
| void | reconfigure () | 
| QString | defaultThemeName () | 
Detailed Description
Class to use/access icon themes in KDE.This class is used by the iconloader but can be used by others too.
- See also:
- KIconLoader
Definition at line 158 of file kicontheme.h.
Constructor & Destructor Documentation
| 
 | ||||||||||||
| Load an icon theme by name. 
 
 Definition at line 81 of file kicontheme.cpp. References QPtrList< KIconThemeDir >::append(), QValueList::begin(), QMap::contains(), dir(), KGlobal::dirs(), QValueList::end(), KStandardDirs::exists(), QFile::exists(), QPtrList< KIconThemeDir >::first(), QString::isEmpty(), QPtrList< KIconThemeDir >::next(), KConfigBase::readBoolEntry(), KConfigBase::readEntry(), KConfigBase::readIntListEntry(), KConfigBase::readListEntry(), KConfigBase::readNumEntry(), KConfigBase::readPathEntry(), KConfigBase::readPathListEntry(), KStandardDirs::resourceDirs(), QPtrList< KIconThemeDir >::setAutoDelete(), and KConfigBase::setGroup(). | 
Member Function Documentation
| 
 | 
| The stylized name of the icon theme. 
 
 Definition at line 174 of file kicontheme.h. | 
| 
 | 
| A description for the icon theme. 
 
 Definition at line 181 of file kicontheme.h. | 
| 
 | 
| Return the name of the "example" icon. This can be used to present the theme to the user. 
 Definition at line 227 of file kicontheme.cpp. | 
| 
 | 
| Return the name of the screenshot. 
 
 Definition at line 228 of file kicontheme.cpp. | 
| 
 | 
| Returns the name of this theme's link overlay. 
 
 Definition at line 229 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). | 
| 
 | 
| Returns the name of this theme's zip overlay. 
 
 Definition at line 231 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). | 
| 
 | 
| Returns the name of this theme's lock overlay. 
 
 Definition at line 230 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). | 
| 
 | 
| Returns the name of this theme's share overlay. 
 
 
 Definition at line 232 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). | 
| 
 | 
| Returns the toplevel theme directory. 
 
 Definition at line 225 of file kicontheme.h. Referenced by iconPath(), KIconTheme(), list(), queryIcons(), and queryIconsByContext(). | 
| 
 | 
| The themes this icon theme falls back on. 
 
 Definition at line 231 of file kicontheme.h. | 
| 
 | 
| The icon theme exists? 
 
 Definition at line 217 of file kicontheme.cpp. References QPtrList< KIconThemeDir >::isEmpty(). | 
| 
 | 
| The icon theme should be hidden to the user? 
 
 
 Definition at line 222 of file kicontheme.cpp. | 
| 
 | 
| The minimum display depth required for this theme. This can either be 8 or 32. 
 Definition at line 251 of file kicontheme.h. | 
| 
 | 
| The default size of this theme for a certain icon group. 
 
 
 Definition at line 234 of file kicontheme.cpp. | 
| 
 | 
| Query available sizes for a group. 
 
 
 Definition at line 244 of file kicontheme.cpp. | 
| 
 | ||||||||||||
| Query available icons for a size and context. 
 
 
 Definition at line 255 of file kicontheme.cpp. References QPtrListIterator::current(), dir(), and QPtrListIterator::toFirst(). | 
| 
 | ||||||||||||
| Query available icons for a context and preferred size. 
 
 
 Definition at line 308 of file kicontheme.cpp. References QPtrListIterator::current(), and dir(). | 
| 
 | ||||||||||||||||
| Lookup an icon in the theme. 
 
 
 
 Definition at line 337 of file kicontheme.cpp. References KIcon::context, QPtrListIterator::current(), dir(), QString::isEmpty(), KIcon::path, KIcon::size, KIcon::threshold, and KIcon::type. | 
| 
 | 
| List all icon themes installed on the system, global and local. 
 
 Definition at line 442 of file kicontheme.cpp. References dir(), KGlobal::dirs(), QDir::entryList(), KStandardDirs::exists(), QDir::exists(), and KStandardDirs::resourceDirs(). | 
| 
 | 
| Returns the current icon theme. 
 
 Definition at line 420 of file kicontheme.cpp. References KGlobal::config(), defaultThemeName(), QString::fromLatin1(), and KConfigBase::readEntry(). | 
| 
 | 
| Reconfigure the theme. 
 Definition at line 472 of file kicontheme.cpp. Referenced by KInstance::newIconLoader(). | 
| 
 | 
| Returns the default icon theme. 
 
 
 Definition at line 481 of file kicontheme.cpp. References QString::fromLatin1(). Referenced by current(). | 
The documentation for this class was generated from the following files:

