Kstars
colorscheme.cpp
38 appendItem("CBoundHighColor", i18nc("Highlighted Constellation Boundary", "Constell. Boundary Highlight"),
40 appendItem("MWColor", i18nc("refers to the band of stars in the sky due to the Galactic plane", "Milky Way"),
158 qDebug() << Q_FUNC_INFO << QString("Unable to load color scheme named %1. Also tried %2.").arg(name, filename);
226 qWarning() << "Could not use the key \"" << tkey << "\" from the color scheme file \"" << filename
264 file.setFileName(QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath(filename));
269 KSNotification::sorry(i18n("Local color scheme file could not be opened.\nScheme cannot be recorded."));
283 file.setFileName(QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath("colors.dat"));
287 KSNotification::sorry(i18n("Local color scheme index file could not be opened.\nScheme cannot be recorded."));
332 setStarColorModeIntensity(cg.readEntry("StarColorMode", 0), cg.readEntry("StarColorIntensity", 5));
void append(const T &value)
bool save(const QString &name)
Save the current color scheme to a *.colors file.
Definition: colorscheme.cpp:249
QString readEntry(const char *key, const char *aDefault=nullptr) const
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const const
ReadWrite
virtual bool open(QIODevice::OpenMode mode) override
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
int count(const T &value) const const
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
QString trimmed() const const
QString name() const const
void setStarColorMode(int mode)
Set the star color mode used by the color scheme mode the star color mode to use.
Definition: colorscheme.cpp:353
void setStarColorModeIntensity(int mode, int intens)
Set the star color mode and intensity value used by the color scheme mode the star color mode to use ...
Definition: colorscheme.cpp:382
QString nameFromKey(const QString &key) const
Definition: colorscheme.cpp:113
bool load(const QString &filename)
Load a color scheme from a *.colors file filename the filename of the color scheme to be loaded.
Definition: colorscheme.cpp:127
int size() const const
QString i18n(const char *text, const TYPE &arg...)
bool atEnd() const const
void setDarkPalette(bool enable)
setDarkPalette Set whether the color schemes uses dark palette
bool isEmpty() const const
int length() const const
QString readLine(qint64 maxlen)
const T & at(int i) const const
void setFileName(const QString &name)
virtual void close() override
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
int indexOf(QStringView str, int from) const const
QString & replace(int position, int n, QChar after)
AppLocalDataLocation
int count() const const
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
QString left(int n) const const
const QChar at(int position) const const
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void setColor(const QString &key, const QString &color)
Change the color with the given key to the given value key the key-name of the color to be changed co...
Definition: colorscheme.cpp:118
void setStarColorIntensity(int intens)
Set the star color intensity value used by the color scheme intens The star color intensity value.
Definition: colorscheme.cpp:373
QString mid(int position, int n) const const
QString & append(QChar ch)
white
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.