KDEUI
kcolorcollection.cpp
Go to the documentation of this file.
111 KGlobal::dirs()->findAllResources("config", "colors/*", KStandardDirs::NoDuplicates, paletteList);
QString description() const
Get the description of the collection.
Definition: kcolorcollection.cpp:165
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
void setName(const QString &name)
Set the name of the collection.
Definition: kcolorcollection.cpp:180
virtual bool open(OpenMode flags=QIODevice::ReadWrite)
KStandardDirs * dirs()
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
void setEditable(Editable editable)
Change whether the collection may be edited.
Definition: kcolorcollection.cpp:190
void setDescription(const QString &desc)
Set the description of the collection.
Definition: kcolorcollection.cpp:170
int count() const
Return the number of colors in the collection.
Definition: kcolorcollection.cpp:195
int addColor(const QColor &newColor, const QString &newColorName=QString())
Add a color.
Definition: kcolorcollection.cpp:246
int changeColor(int index, const QColor &newColor, const QString &newColorName=QString())
Change a color.
Definition: kcolorcollection.cpp:253
static QStringList installedCollections()
Query which KDE color collections are installed.
Definition: kcolorcollection.cpp:108
KColorCollection(const QString &name=QString())
KColorCollection constructor.
Definition: kcolorcollection.cpp:124
Editable editable() const
Returns whether the collection may be edited.
Definition: kcolorcollection.cpp:185
bool finalize()
Class for handling color collections ("palettes").
Definition: kcolorcollection.h:42
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
KColorCollection & operator=(const KColorCollection &)
KColorCollection assignment operator.
Definition: kcolorcollection.cpp:201
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
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.