Stellarium 0.12.3
ObservabilityDialog.hpp
1 /*
2  * Stellarium Observability Plug-in GUI
3  *
4  * Copyright (C) 2012 Ivan Marti-Vidal
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, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
19 */
20 
21 #ifndef _OBSERVABILITYDIALOG_HPP_
22 #define _OBSERVABILITYDIALOG_HPP_
23 
24 #include <QObject>
25 #include "StelDialog.hpp"
26 #include "Observability.hpp"
27 
28 class Ui_ObservabilityDialog;
29 
31 {
32  Q_OBJECT
33 
34 public:
37 
38 protected:
40  void createDialogContent();
41 
42 public slots:
43  void retranslate();
44 
45 private slots:
46  void setTodayFlag(int);
47  void setAcroCosFlag(int);
48  void setOppositionFlag(int);
49  void setGoodDatesFlag(int);
50  void setFullMoonFlag(int);
51 // void setCrescentMoonFlag(int);
52 // void setSuperMoonFlag(int);
53 
54  void restoreDefaults(void);
55  void saveSettings(void);
56  void setRed(int);
57  void setGreen(int);
58  void setBlue(int);
59  void setSize(int);
60  void setAltitude(int);
61  void setHorizon(int);
62 
63 private:
64  Ui_ObservabilityDialog* ui;
65  void setAboutHtml(void);
66  void updateGuiFromSettings(void);
67 
68 };
69 
70 #endif // _OBSERVABILITYDIALOG_HPP_