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

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • 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 
34 class QAction;
35 class KIconThemeDir;
36 class K3Icon;
37 
46 class KDEUI_EXPORT KIconTheme
47 {
48 public:
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 
210 private:
211  class KIconThemePrivate;
212  KIconThemePrivate * const d;
213 };
214 
215 #endif
group
KStandardAction::name
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
kiconloader.h
KIconTheme::ContextMenus
ContextMenus
Defines the context menus that assignIconsToContextMenus is aware of.
Definition: kicontheme.h:202
QString
KIconLoader::Any
Some icon with unknown purpose.
Definition: kiconloader.h:92
QStringList
KIconLoader::MatchType
MatchType
The type of a match.
Definition: kiconloader.h:119
KIconLoader::Context
Context
Defines the context of the icon.
Definition: kiconloader.h:91
KIconLoader::Group
Group
The group of the icon.
Definition: kiconloader.h:127
kdeui_export.h
KIconTheme::TextEditor
Definition: kicontheme.h:202
KIconTheme
Definition: kicontheme.h:46
QAction
QList< int >
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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