Kstars
opscolors.cpp
45 connect(themesWidget, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(slotChangeTheme(QListWidgetItem*)));
53 QListWidgetItem *item = new QListWidgetItem(KStarsData::Instance()->colorScheme()->nameAt(i), ColorPalette);
99 connect(ColorPalette, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(newColor(QListWidgetItem*)));
100 connect(kcfg_StarColorIntensity, SIGNAL(valueChanged(int)), this, SLOT(slotStarColorIntensity(int)));
130 //NewColor will only be valid if the above if statement was found to be true during one of the for loop iterations
136 KStarsData::Instance()->colorScheme()->setColor(KStarsData::Instance()->colorScheme()->keyAt(index),
169 test.setFileName(QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath(filename));
217 QInputDialog::getText(nullptr, i18n("New Color Scheme"), i18n("Enter a name for the new color scheme:"),
254 cdatFile.setFileName(QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath("colors.dat"));
257 KStars::Instance()->removeColorMenuItem(QString("cs_" + filename.left(filename.indexOf(".colors"))).toUtf8());
261 QString message = i18n("Local color scheme index file could not be opened.\nScheme cannot be removed.");
292 colorFile.setFileName(QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath(filename));
void append(const T &value)
bool save(const QString &name)
Save the current color scheme to a *.colors file.
Definition: colorscheme.cpp:249
QString text() const const
QAction * action(const QString &name) const
UserRole
ReadOnly
bool remove()
virtual bool open(QIODevice::OpenMode mode) override
int count(const T &value) const const
T value() 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
Normal
bool exists() const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual QString fileName() const const override
QColor getColor(const QColor &initial, QWidget *parent, const QString &title, QColorDialog::ColorDialogOptions options)
virtual QVariant data(int role) const const
KGuiItem test()
void setEnabled(bool enable)
QString i18n(const char *text, const TYPE &arg...)
virtual void setData(int role, const QVariant &value)
Primary window to view monochrome and color FITS images. The FITSviewer can open multiple images each...
Definition: fitsviewer.h:49
bool isEmpty() const const
QList< T > findChildren(const QString &name, Qt::FindChildOptions options) const const
QByteArray toUtf8() const const
int length() const const
QString getText(QWidget *parent, const QString &title, const QString &label, QLineEdit::EchoMode mode, const QString &text, bool *ok, Qt::WindowFlags flags, Qt::InputMethodHints inputMethodHints)
void setFileName(const QString &name)
virtual void close() override
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
This is the main window for KStars. In addition to the GUI elements, the class contains the program c...
Definition: kstars.h:90
void setupUi(QWidget *widget)
AppLocalDataLocation
virtual KActionCollection * actionCollection() const
QString left(int n) const const
QString name(StandardShortcut id)
const QList< QKeySequence > & save()
const QChar at(int position) const const
QString i18nc(const char *context, const char *text, const TYPE &arg...)
bool isValid() const const
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 removeColorMenuItem(const QString &actionName)
Remove an item from the color-scheme action manu.
Definition: kstarsactions.cpp:2014
void addColorMenuItem(QString name, const QString &actionName)
Add an item to the color-scheme action manu.
Definition: kstarsactions.cpp:1992
void forceUpdate(bool now=false)
Recalculates the positions of objects in the sky, and then repaints the sky map.
Definition: skymap.cpp:1176
void setChecked(bool)
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 message
QString & append(QChar ch)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:55:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:55:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.