Stellarium 0.90.0
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;
35 
36 class ViewDialog : public StelDialog
37 {
38 Q_OBJECT
39 public:
40  ViewDialog(QObject* parent);
41  virtual ~ViewDialog();
43  void styleChanged();
44 
45 public slots:
46  void retranslate();
47 
48 protected:
49  Ui_viewDialogForm* ui;
51  virtual void createDialogContent();
52 private slots:
53  void populateLists();
54  void skyCultureChanged();
55  void changeProjection(const QString& projectionNameI18n);
56  void projectionChanged();
57  void changeLandscape(QListWidgetItem* item);
58  void landscapeChanged(QString id,QString name);
59  void updateZhrDescription(int zhr);
60  void setBortleScaleToolTip(int Bindex);
61  void setCurrentLandscapeAsDefault(void);
62  void setCurrentCultureAsDefault(void);
63  void updateDefaultSkyCulture();
64  void updateDefaultLandscape();
65  void setFlagCustomGrsSettings(bool b);
68  // NO LONGER NEEDED!
69  //void updateFromProgram();
70 
71  void showAddRemoveLandscapesDialog();
72  void showAtmosphereDialog();
73  void showGreatRedSpotDialog();
74  void showConfigureDSOColorsDialog();
75 
76  void setLightPollutionSpinBoxStatus();
77  // Two new from the unwanted trunk-rework Not sure if we need them at all?
78  void populateLightPollution();
79 
80  // WHAT IS THE SKY LAYER? hidden, under development?
81  void populateSkyLayersList();
82  void skyLayersSelectionChanged(const QString&);
83  void skyLayersEnabledChanged(int);
84 
85  void setSelectedCatalogsFromCheckBoxes();
86  void setSelectedTypesFromCheckBoxes();
87 
88  void changePage(QListWidgetItem *current, QListWidgetItem *previous);
89 
90  void updateSelectedCatalogsCheckBoxes();
91  void updateSelectedTypesCheckBoxes();
92 
93  void askEclipticJ2000GridColor();
94  void askEclipticGridColor();
95  void askEquatorJ2000GridColor();
96  void askEquatorGridColor();
97  void askGalacticGridColor();
98  void askSupergalacticGridColor();
99  void askAzimuthalGridColor();
100  void askEclipticLineJ2000Color();
101  void askEclipticLineColor();
102  void askEquatorLineJ2000Color();
103  void askEquatorLineColor();
104  void askGalacticEquatorLineColor();
105  void askSupergalacticEquatorLineColor();
106  void askLongitudeLineColor();
107  void askHorizonLineColor();
108  void askColureLinesColor();
109  void askCircumpolarCirclesColor();
110  void askPrecessionCirclesColor();
111  void askPrimeVerticalLineColor();
112  void askMeridianLineColor();
113  void askCardinalPointsColor();
114  void askCelestialJ2000PolesColor();
115  void askCelestialPolesColor();
116  void askZenithNadirColor();
117  void askEclipticJ2000PolesColor();
118  void askEclipticPolesColor();
119  void askGalacticPolesColor();
120  void askSupergalacticPolesColor();
121  void askEquinoxJ2000PointsColor();
122  void askEquinoxPointsColor();
123  // constellations colors
124  void askConstellationLabelsColor();
125  void askConstellationLinesColor();
126  void askConstellationBoundariesColor();
127 
128 private:
129  void connectGroupBox(class QGroupBox* groupBox, const QString& actionId);
130  void updateSkyCultureText();
133  void updateTabBarListWidgetWidth();
134 
135  void colorButton(QToolButton *toolButton, QString propName);
136 
137  AddRemoveLandscapesDialog * addRemoveLandscapesDialog;
138  AtmosphereDialog * atmosphereDialog;
139  GreatRedSpotDialog * greatRedSpotDialog;
140  ConfigureDSOColorsDialog * configureDSOColorsDialog;
141 };
142 
143 #endif // _VIEWDIALOG_HPP_
void styleChanged()
Notify that the application style changed.
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:67
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.