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 179 of file kicontheme.h.
Constructor & Destructor Documentation
|
Load an icon theme by name.
Definition at line 82 of file kicontheme.cpp. References dir(), KGlobal::dirs(), KStandardDirs::exists(), KSharedConfig::openConfig(), 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.
Definition at line 195 of file kicontheme.h. |
|
A description for the icon theme.
Definition at line 202 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 233 of file kicontheme.cpp. |
|
Return the name of the screenshot.
Definition at line 234 of file kicontheme.cpp. |
|
Returns the name of this theme's link overlay.
Definition at line 235 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's zip overlay.
Definition at line 237 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's lock overlay.
Definition at line 236 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). |
|
Returns the name of this theme's share overlay.
Definition at line 238 of file kicontheme.cpp. Referenced by KIconLoader::loadIcon(). |
|
Returns the toplevel theme directory.
Definition at line 246 of file kicontheme.h. Referenced by KIconTheme(), and list(). |
|
The themes this icon theme falls back on.
Definition at line 252 of file kicontheme.h. |
|
The icon theme exists?
Definition at line 223 of file kicontheme.cpp. Referenced by list(). |
|
The icon theme should be hidden to the user?
Definition at line 228 of file kicontheme.cpp. |
|
The minimum display depth required for this theme. This can either be 8 or 32.
Definition at line 272 of file kicontheme.h. |
|
The default size of this theme for a certain icon group.
Definition at line 240 of file kicontheme.cpp. |
|
Query available sizes for a group.
Definition at line 250 of file kicontheme.cpp. |
|
Query available icons for a size and context.
Definition at line 261 of file kicontheme.cpp. |
|
Query available icons for a context and preferred size.
Definition at line 314 of file kicontheme.cpp. |
|
Lookup an icon in the theme.
Definition at line 343 of file kicontheme.cpp. References KIcon::context, KIcon::path, KIcon::size, KIcon::threshold, and KIcon::type. |
|
List all icon themes installed on the system, global and local.
Definition at line 448 of file kicontheme.cpp. References dir(), KGlobal::dirs(), KStandardDirs::exists(), isValid(), and KStandardDirs::resourceDirs(). |
|
Returns the current icon theme.
Definition at line 426 of file kicontheme.cpp. 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.
Definition at line 490 of file kicontheme.cpp. Referenced by current(). |
The documentation for this class was generated from the following files: