KIconTheme Class Reference
Class to use/access icon themes in KDE. More...
#include <kicontheme.h>
Public Member Functions | |
KIconTheme (const QString &name, const QString &appName=QString::null) | |
Load an icon theme by name. | |
QString | name () const |
The stylized name of the icon theme. | |
QString | description () const |
A description for the icon theme. | |
QString | example () const |
Return the name of the "example" icon. | |
QString | screenshot () const |
Return the name of the screenshot. | |
QString | linkOverlay () const |
Returns the name of this theme's link overlay. | |
QString | zipOverlay () const |
Returns the name of this theme's zip overlay. | |
QString | lockOverlay () const |
Returns the name of this theme's lock overlay. | |
QString | shareOverlay () const |
Returns the name of this theme's share overlay. | |
QString | dir () const |
Returns the toplevel theme directory. | |
QStringList | inherits () const |
The themes this icon theme falls back on. | |
bool | isValid () const |
The icon theme exists? | |
bool | isHidden () const |
The icon theme should be hidden to the user? | |
int | depth () const |
The minimum display depth required for this theme. | |
int | defaultSize (KIcon::Group group) const |
The default size of this theme for a certain icon group. | |
QValueList< int > | querySizes (KIcon::Group group) const |
Query available sizes for a group. | |
QStringList | queryIcons (int size, KIcon::Context context=KIcon::Any) const |
Query available icons for a size and context. | |
QStringList | queryIconsByContext (int size, KIcon::Context context=KIcon::Any) const |
Query available icons for a context and preferred size. | |
KIcon | iconPath (const QString &name, int size, KIcon::MatchType match) const |
Lookup an icon in the theme. | |
Static Public Member Functions | |
QStringList | list () |
List all icon themes installed on the system, global and local. | |
QString | current () |
Returns the current icon theme. | |
void | reconfigure () |
Reconfigure the theme. | |
QString | defaultThemeName () |
Returns the default icon theme. |
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 155 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(), KStdAction::name(), QPtrList< KIconThemeDir >::next(), KConfigBase::readBoolEntry(), KConfigBase::readEntry(), KConfigBase::readIntListEntry(), KConfigBase::readListEntry(), KConfigBase::readNumEntry(), KConfigBase::readPathEntry(), KConfigBase::readPathListEntry(), KStandardDirs::resourceDirs(), KIcon::Scalable, QPtrList< KIconThemeDir >::setAutoDelete(), and KConfigBase::setGroup(). |
Member Function Documentation
|
The stylized name of the icon theme.
Definition at line 171 of file kicontheme.h. |
|
A description for the icon theme.
Definition at line 178 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 224 of file kicontheme.cpp. |
|
Return the name of the screenshot.
Definition at line 225 of file kicontheme.cpp. |
|
Returns the name of this theme's link overlay.
Definition at line 226 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's zip overlay.
Definition at line 228 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's lock overlay.
Definition at line 227 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's share overlay.
Definition at line 229 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). |
|
Returns the toplevel theme directory.
Definition at line 222 of file kicontheme.h. Referenced by iconPath(), KIconTheme(), list(), queryIcons(), and queryIconsByContext(). |
|
The themes this icon theme falls back on.
Definition at line 228 of file kicontheme.h. |
|
The icon theme exists?
Definition at line 214 of file kicontheme.cpp. References QPtrList< KIconThemeDir >::isEmpty(). |
|
The icon theme should be hidden to the user?
Definition at line 219 of file kicontheme.cpp. |
|
The minimum display depth required for this theme. This can either be 8 or 32.
Definition at line 248 of file kicontheme.h. |
|
The default size of this theme for a certain icon group.
Definition at line 231 of file kicontheme.cpp. |
|
Query available sizes for a group.
Definition at line 241 of file kicontheme.cpp. |
|
Query available icons for a size and context.
Definition at line 252 of file kicontheme.cpp. References KIcon::Any, QPtrListIterator::current(), dir(), KIcon::Fixed, KIcon::Scalable, KIcon::Threshold, and QPtrListIterator::toFirst(). |
|
Query available icons for a context and preferred size.
Definition at line 305 of file kicontheme.cpp. References KIcon::Any, QPtrListIterator::current(), and dir(). |
|
Lookup an icon in the theme.
Definition at line 333 of file kicontheme.cpp. References KIcon::context, QPtrListIterator::current(), dir(), KIcon::Fixed, KIcon::MatchExact, KStdAction::name(), KIcon::path, KIcon::Scalable, KIcon::size, KIcon::threshold, KIcon::Threshold, and KIcon::type. |
|
List all icon themes installed on the system, global and local.
Definition at line 444 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 422 of file kicontheme.cpp. References KGlobal::config(), defaultThemeName(), QString::fromLatin1(), and KConfigBase::readEntry(). |
|
Reconfigure the theme.
Definition at line 474 of file kicontheme.cpp. Referenced by KInstance::newIconLoader(). |
|
Returns the default icon theme.
Definition at line 483 of file kicontheme.cpp. References QString::fromLatin1(). Referenced by current(). |
The documentation for this class was generated from the following files: