Stellarium 0.14.3
ArchaeoLinesDialog.hpp
1 /*
2  * ArchaeoLines plug-in for Stellarium
3  *
4  * Copyright (C) 2014 Georg Zotti
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef _ARCHAEOLINESDIALOG_HPP_
21 #define _ARCHAEOLINESDIALOG_HPP_
22 
23 #include "StelDialog.hpp"
24 #include "StelGui.hpp"
25 #include "StelTranslator.hpp"
26 
27 #include <QString>
28 #include <QColor>
29 #include <QColorDialog>
30 
31 class Ui_archaeoLinesDialog;
32 class ArchaeoLines;
33 
37 {
38  Q_OBJECT
39 
40 public:
43 
44 public slots:
45  void retranslate();
46  // actions to be called by the color dialog
47  // These must also forward the colors in float format to the ArchaeoLines object.
48  void setEquinoxColor(QColor color){equinoxColor=color;}
49  void setSolsticeColor(QColor color){solsticeColor=color;}
50  void setCrossquarterColor(QColor color){crossquarterColor=color;}
51  void setMajorStandstillColor(QColor color){majorStandstillColor=color;}
52  void setMinorStandstillColor(QColor color){minorStandstillColor=color;}
53  void setZenithPassageColor(QColor color){zenithPassageColor=color;}
54  void setNadirPassageColor(QColor color){nadirPassageColor=color;}
55  void setCurrentSunColor(QColor color){currentSunColor=color;}
56  void setCurrentMoonColor(QColor color){currentMoonColor=color;}
57  void setCurrentPlanetColor(QColor color){currentPlanetColor=color;}
58  void setSelectedObjectColor(QColor color){selectedObjectColor=color;}
59  void askEquinoxColor();
60  void askSolsticeColor();
61  void askCrossquarterColor();
62  void askMajorStandstillColor();
63  void askMinorStandstillColor();
64  void askZenithPassageColor();
65  void askNadirPassageColor();
66  void askCurrentSunColor();
67  void askCurrentMoonColor();
68  void askCurrentPlanetColor();
69  void askSelectedObjectColor();
70 
71 protected:
72  void createDialogContent();
73 
74 private:
75  Ui_archaeoLinesDialog* ui;
76  ArchaeoLines* al;
77  // These are colors to be settable with a QColorDialog.
78  QColor equinoxColor;
79  QColor solsticeColor;
80  QColor crossquarterColor;
81  QColor majorStandstillColor;
82  QColor minorStandstillColor;
83  QColor zenithPassageColor;
84  QColor nadirPassageColor;
85  QColor currentSunColor;
86  QColor currentMoonColor;
87  QColor currentPlanetColor;
88  QColor selectedObjectColor;
89  QPixmap equinoxColorPixmap;
90  QPixmap solsticeColorPixmap;
91  QPixmap crossquarterColorPixmap;
92  QPixmap majorStandstillColorPixmap;
93  QPixmap minorStandstillColorPixmap;
94  QPixmap zenithPassageColorPixmap;
95  QPixmap nadirPassageColorPixmap;
96  QPixmap currentSunColorPixmap;
97  QPixmap currentMoonColorPixmap;
98  QPixmap currentPlanetColorPixmap;
99  QPixmap selectedObjectColorPixmap;
100  void setAboutHtml();
101 
102 private slots:
103  void resetArchaeoLinesSettings();
105  void setCurrentPlanetFromGUI(int index);
106 
107 };
108 
109 #endif /* _ARCHAEOLINESDIALOG_HPP_ */
A local copy of StelDialog, the base class for all the GUI windows in Stellarium, included to allow t...
Main window of the ArchaeoLines plug-in.
Main class of the ArchaeoLines plug-in.