Stellarium 0.15.2
ViewDialog.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2008 Fabien Chereau
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18 */
19 
20 #ifndef _VIEWDIALOG_HPP_
21 #define _VIEWDIALOG_HPP_
22 
23 #include "StelDialog.hpp"
24 
25 #include <QObject>
26 
27 class Ui_viewDialogForm;
28 class QListWidgetItem;
29 class QToolButton;
30 
32 class AtmosphereDialog;
33 class GreatRedSpotDialog;
36 
37 class ViewDialog : public StelDialog
38 {
39 Q_OBJECT
40 public:
41  ViewDialog(QObject* parent);
42  virtual ~ViewDialog();
44  void styleChanged();
45 
46 public slots:
47  void retranslate();
48 
49 protected:
50  Ui_viewDialogForm* ui;
52  virtual void createDialogContent();
53 private slots:
54  void populateLists();
55  void skyCultureChanged();
56  void changeProjection(const QString& projectionNameI18n);
57  void projectionChanged();
58  void changeLandscape(QListWidgetItem* item);
59  void landscapeChanged(QString id,QString name);
60  void updateZhrDescription(int zhr);
61  void setBortleScaleToolTip(int Bindex);
62  void setCurrentLandscapeAsDefault(void);
63  void setCurrentCultureAsDefault(void);
64  void updateDefaultSkyCulture();
65  void updateDefaultLandscape();
66  void setFlagCustomGrsSettings(bool b);
69  // NO LONGER NEEDED!
70  //void updateFromProgram();
71 
72  void showAddRemoveLandscapesDialog();
73  void showAtmosphereDialog();
74  void showGreatRedSpotDialog();
75  void showConfigureDSOColorsDialog();
76  void showConfigureOrbitColorsDialog();
77 
78  void setLightPollutionSpinBoxStatus();
79  // Two new from the unwanted trunk-rework Not sure if we need them at all?
80  void populateLightPollution();
81 
82  // WHAT IS THE SKY LAYER? hidden, under development?
83  void populateSkyLayersList();
84  void skyLayersSelectionChanged(const QString&);
85  void skyLayersEnabledChanged(int);
86 
87  void setSelectedCatalogsFromCheckBoxes();
88  void setSelectedTypesFromCheckBoxes();
89 
90  void changePage(QListWidgetItem *current, QListWidgetItem *previous);
91 
92  void updateSelectedCatalogsCheckBoxes();
93  void updateSelectedTypesCheckBoxes();
94 
95  void askEclipticJ2000GridColor();
96  void askEclipticGridColor();
97  void askEquatorJ2000GridColor();
98  void askEquatorGridColor();
99  void askGalacticGridColor();
100  void askSupergalacticGridColor();
101  void askAzimuthalGridColor();
102  void askEclipticLineJ2000Color();
103  void askEclipticLineColor();
104  void askEquatorLineJ2000Color();
105  void askEquatorLineColor();
106  void askGalacticEquatorLineColor();
107  void askSupergalacticEquatorLineColor();
108  void askLongitudeLineColor();
109  void askHorizonLineColor();
110  void askColureLinesColor();
111  void askCircumpolarCirclesColor();
112  void askPrecessionCirclesColor();
113  void askPrimeVerticalLineColor();
114  void askMeridianLineColor();
115  void askCardinalPointsColor();
116  void askCelestialJ2000PolesColor();
117  void askCelestialPolesColor();
118  void askZenithNadirColor();
119  void askEclipticJ2000PolesColor();
120  void askEclipticPolesColor();
121  void askGalacticPolesColor();
122  void askSupergalacticPolesColor();
123  void askEquinoxJ2000PointsColor();
124  void askEquinoxPointsColor();
125  void askSolsticeJ2000PointsColor();
126  void askSolsticePointsColor();
127  // constellations colors
128  void askConstellationLabelsColor();
129  void askConstellationLinesColor();
130  void askConstellationBoundariesColor();
131 
132 private:
133  void connectGroupBox(class QGroupBox* groupBox, const QString& actionId);
134  void updateSkyCultureText();
137  void updateTabBarListWidgetWidth();
138 
139  void colorButton(QToolButton *toolButton, QString propName);
140 
141  AddRemoveLandscapesDialog * addRemoveLandscapesDialog;
142  AtmosphereDialog * atmosphereDialog;
143  GreatRedSpotDialog * greatRedSpotDialog;
144  ConfigureDSOColorsDialog * configureDSOColorsDialog;
145  ConfigureOrbitColorsDialog * configureOrbitColorsDialog;
146 };
147 
148 #endif // _VIEWDIALOG_HPP_
void styleChanged()
Notify that the application style changed.
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:72
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.