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