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 162 of file kicontheme.h.
Constructor & Destructor Documentation
|
Load an icon theme by name.
References dir(), KGlobal::dirs(), KStandardDirs::exists(), KConfigBase::readBoolEntry(), KConfigBase::readEntry(), KConfigBase::readIntListEntry(), KConfigBase::readListEntry(), KConfigBase::readNumEntry(), KConfigBase::readPathEntry(), KConfigBase::readPathListEntry(), KStandardDirs::resourceDirs(), and KConfigBase::setGroup(). |
Member Function Documentation
|
The stylized name of the icon theme.
|
|
A description for the icon theme.
|
|
Return the name of the "example" icon. This can be used to present the theme to the user.
|
|
Return the name of the screenshot.
|
|
Returns the name of this theme's link overlay.
Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's zip overlay.
Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's lock overlay.
Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's share overlay.
Referenced by KIconLoader::loadIcon(). |
|
Returns the toplevel theme directory.
Referenced by iconPath(), KIconTheme(), list(), queryIcons(), and queryIconsByContext(). |
|
The themes this icon theme falls back on.
|
|
The icon theme exists?
Referenced by list(). |
|
The icon theme should be hidden to the user?
|
|
The minimum display depth required for this theme. This can either be 8 or 32.
|
|
The default size of this theme for a certain icon group.
|
|
Query available sizes for a group.
|
|
Query available icons for a size and context.
References dir(). |
|
Query available icons for a context and preferred size.
References dir(). |
|
Lookup an icon in the theme.
References KIcon::context, dir(), KIcon::path, KIcon::size, KIcon::threshold, and KIcon::type. |
|
List all icon themes installed on the system, global and local.
References dir(), KGlobal::dirs(), KStandardDirs::exists(), isValid(), and KStandardDirs::resourceDirs(). |
|
Returns the current icon theme.
References KGlobal::config(), defaultThemeName(), and KConfigBase::readEntry(). |
|
Reconfigure the theme. Definition at line 481 of file kicontheme.cpp. Referenced by KInstance::newIconLoader(). |
|
Returns the default icon theme.
Referenced by current(). |
The documentation for this class was generated from the following files: