• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • kdeui
  • icons
kicontheme.h
Go to the documentation of this file.
1/* vi: ts=8 sts=4 sw=4
2 *
3 * This file is part of the KDE project, module kdecore.
4 * Copyright (C) 2000 Geert Jansen <jansen@kde.org>
5 * Antonio Larrosa <larrosa@kde.org>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License version 2 as published by the Free Software Foundation.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 */
22
23#ifndef KICONTHEME_H
24#define KICONTHEME_H
25
26#include <kdeui_export.h>
27
28#include <QtCore/QString>
29#include <QtCore/QStringList>
30#include <QtCore/QList>
31
32#include "kiconloader.h"
33
34class QAction;
35class KIconThemeDir;
36class K3Icon;
37
46class KDEUI_EXPORT KIconTheme
47{
48public:
55 explicit KIconTheme(const QString& name, const QString& appName=QString());
56 ~KIconTheme();
57
62 QString name() const;
63
69 QString internalName() const;
70
76 QString description() const;
77
83 QString example() const;
84
89 QString screenshot() const;
90
95 QString dir() const;
96
101 QStringList inherits() const;
102
107 bool isValid() const;
108
113 bool isHidden() const;
114
120 int depth() const;
121
127 int defaultSize(KIconLoader::Group group) const;
128
134 QList<int> querySizes(KIconLoader::Group group) const;
135
142 QStringList queryIcons(int size, KIconLoader::Context context = KIconLoader::Any) const;
143
150 QStringList queryIconsByContext(int size, KIconLoader::Context context = KIconLoader::Any) const;
151
163 K3Icon iconPath(const QString& name, int size, KIconLoader::MatchType match) const;
164
168 bool hasContext( KIconLoader::Context context ) const;
169
174 static QStringList list();
175
180 static QString current();
181
185 static void reconfigure();
186
191 static QString defaultThemeName();
192
202 enum ContextMenus { TextEditor,
203 ReadOnlyText };
204
208 static void assignIconsToContextMenu(ContextMenus type, QList<QAction*> actions);
209
210private:
211 class KIconThemePrivate;
212 KIconThemePrivate * const d;
213};
214
215#endif
KIconLoader::Group
Group
The group of the icon.
Definition: kiconloader.h:127
KIconLoader::Context
Context
Defines the context of the icon.
Definition: kiconloader.h:91
KIconLoader::Any
@ Any
Some icon with unknown purpose.
Definition: kiconloader.h:92
KIconLoader::MatchType
MatchType
The type of a match.
Definition: kiconloader.h:119
KIconTheme
Definition: kicontheme.h:47
KIconTheme::ContextMenus
ContextMenus
Defines the context menus that assignIconsToContextMenus is aware of.
Definition: kicontheme.h:202
QAction
QList
kdeui_export.h
kiconloader.h
group
group
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal