Kstars

opscolors.h
1 /*
2  SPDX-FileCopyrightText: 2004 Jason Harris <[email protected]>
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 
13 class 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  */
31 class OpsColors : public QFrame, public Ui::OpsColors
32 {
33  Q_OBJECT
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 };
Q_OBJECTQ_OBJECT
This is the main window for KStars. In addition to the GUI elements, the class contains the program c...
Definition: kstars.h:92
The Colors page of the Options window.
Definition: opscolors.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 18 2022 03:56:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.