Konsole
ColorSchemeManager.cpp
Go to the documentation of this file.
226 kWarning() << "Color scheme in" << filePath << "does not have a valid name and was not loaded.";
304 QString path = KGlobal::dirs()->saveLocation("data", "konsole/") + scheme->name() + ".colorscheme";
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
ColorSchemeManager()
Constructs a new ColorSchemeManager and loads the list of available color schemes.
Definition: ColorSchemeManager.cpp:156
bool remove()
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString simplified() const
bool deleteColorScheme(const QString &name)
Deletes a color scheme.
Definition: ColorSchemeManager.cpp:310
bool exists() const
QString & remove(int position, int n)
void write(KConfig &config) const
Writes the color scheme to the specified configuration source.
Definition: ColorScheme.cpp:322
Always draw text in this color with a bold weight.
Definition: CharacterColor.h:46
QList< const ColorScheme * > allColorSchemes()
Returns a list of the all the available color schemes.
Definition: ColorSchemeManager.cpp:204
Manages the color schemes available for use by terminal displays.
Definition: ColorSchemeManager.h:38
int count(const T &value) const
void setColorTableEntry(int index, const ColorEntry &entry)
Sets a single entry within the color palette.
Definition: ColorScheme.cpp:180
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void addColorScheme(ColorScheme *scheme)
Adds a new color scheme to the manager.
Definition: ColorSchemeManager.cpp:293
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
T & first()
void setDescription(const QString &description)
Sets the descriptive name of the color scheme.
Definition: ColorScheme.cpp:162
~ColorSchemeManager()
Destroys the ColorSchemeManager and saves any modified color schemes to disk.
Definition: ColorSchemeManager.cpp:165
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void setAllowX11ColorNames(bool enabled)
const ColorScheme * findColorScheme(const QString &name)
Returns the color scheme with the given name or 0 if no scheme with that name exists.
Definition: ColorSchemeManager.cpp:326
QString mid(int position, int n) const
Use the current font weight set by the terminal application.
Definition: CharacterColor.h:53
FontWeight fontWeight
Specifies the font weight to use when drawing text with this color.
Definition: CharacterColor.h:86
const ColorScheme * defaultColorScheme() const
Returns the default color scheme for Konsole.
Definition: ColorSchemeManager.cpp:288
void read(const KConfig &config)
Reads the color scheme from the specified configuration source.
Definition: ColorScheme.cpp:289
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.