KDEUI
Go to the documentation of this file.
22 #ifndef KDELIBS_KCOLORCOLLECTION_H
23 #define KDELIBS_KCOLORCOLLECTION_H
27 #include <QtGui/QColor>
28 #include <QtCore/QList>
29 #include <QtCore/QString>
30 #include <QtCore/QStringList>
50 static QStringList installedCollections();
85 QString description()
const;
91 void setDescription(
const QString &desc);
103 void setName(
const QString &
name);
119 Editable editable()
const;
125 void setEditable(Editable editable);
138 QColor color(
int index)
const;
146 int findColor(
const QColor &color)
const;
155 QString
name(
int index)
const;
164 QString
name(
const QColor &color)
const;
173 int addColor(
const QColor &newColor,
174 const QString &newColorName = QString());
185 int changeColor(
int index,
186 const QColor &newColor,
187 const QString &newColorName = QString());
198 int changeColor(
const QColor &oldColor,
199 const QColor &newColor,
200 const QString &newColorName = QString());
203 class KColorCollectionPrivate *d;
207 #endif // KDELIBS_KCOLORCOLLECTION_H
Editable
Used to specify whether a collection may be edited.
@ Yes
Collection may be edited.
const char * name(StandardAction id)
This will return the internal name of a given standard action.
@ No
Collection may not be edited.
Class for handling color collections ("palettes").
KAction * save(const QObject *recvr, const char *slot, QObject *parent)
Save the current document.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.