Kstars

opscolors.h
1/*
2 SPDX-FileCopyrightText: 2004 Jason Harris <jharris@30doradus.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ui_opscolors.h"
10
11#include <qstringlist.h>
12
13class KStars;
14
15/**
16 * @class OpsColors
17 *
18 * The Colors page allows the user to adjust all of the colors used to
19 * display the night sky. The colors are presented as a list of
20 * colored rectangles and a description of its assignment in the map.
21 * Clicking on any color opens a KColorDialog for selecting a new color.
22 *
23 * The user can also load preset color schemes, or create new schemes
24 * from the current set of colors.
25 *
26 * @short The Colors page of the Options window.
27 * @author Jason Harris
28 * @author Jasem Mutlaq
29 * @version 1.1
30 */
31class OpsColors : public QFrame, public Ui::OpsColors
32{
34
35 public:
36 explicit OpsColors();
37 virtual ~OpsColors() override = default;
38
39 private slots:
40 void newColor(QListWidgetItem *item);
41 void slotPreset(int i);
42 void slotAddPreset();
43 void slotSavePreset();
44 void slotRemovePreset();
45 void slotStarColorMode(int);
46 void slotStarColorIntensity(int);
47 void slotChangeTheme(QListWidgetItem *item);
48
49 private:
50 bool setColors(const QString &filename);
51
52 QStringList PresetFileList;
53};
This is the main window for KStars.
Definition kstars.h:91
The Colors page allows the user to adjust all of the colors used to display the night sky.
Definition opscolors.h:32
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.