Stellarium 0.15.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 
31 class AtmosphereDialog;
32 class GreatRedSpotDialog;
33 
34 class ViewDialog : public StelDialog
35 {
36 Q_OBJECT
37 public:
38  ViewDialog(QObject* parent);
39  virtual ~ViewDialog();
41  void styleChanged();
42 
43 public slots:
44  void retranslate();
45 
46 protected:
47  Ui_viewDialogForm* ui;
49  virtual void createDialogContent();
50 private slots:
51  void populateLists();
52  void skyCultureChanged(const QString& cultureName);
53  void projectionChanged(const QString& projectionName);
54  void viewportVerticalShiftChanged(const int shift);
55  void landscapeChanged(QListWidgetItem* item);
56  void setZHR(int zhr);
57  void updateZhrDescription();
58  void planetsLabelsValueChanged(int);
59  void nebulasLabelsValueChanged(int);
60  void nebulasMarkersValueChanged(int);
61  void setBortleScaleToolTip(int Bindex);
62  void starsLabelsValueChanged(int);
63  void setCurrentLandscapeAsDefault(void);
64  void setCurrentCultureAsDefault(void);
65  void setFlagLandscapeUseMinimalBrightness(bool b);
66  void setFlagCustomGrsSettings(bool b);
69  void updateFromProgram();
70 
71  void showAddRemoveLandscapesDialog();
72  void showAtmosphereDialog();
73  void showGreatRedSpotDialog();
74 
75  void populateLightPollution();
76  void populateLandscapeMinimalBrightness();
77 
78  // WHAT IS THE SKY LAYER? hidden, under development?
79  void populateSkyLayersList();
80  void skyLayersSelectionChanged(const QString&);
81  void skyLayersEnabledChanged(int);
82 
83  void setSelectedCatalogsFromCheckBoxes();
84  void setSelectedTypesFromCheckBoxes();
85 
86  void changePage(QListWidgetItem *current, QListWidgetItem *previous);
87 private:
89  void connectCheckBox(class QCheckBox* checkBox, const QString& actionId);
90  void connectGroupBox(class QGroupBox* groupBox, const QString& actionId);
91  void updateSkyCultureText();
94  void updateTabBarListWidgetWidth();
95 
96  void updateSelectedCatalogsCheckBoxes();
97  void updateSelectedTypesCheckBoxes();
98 
99  AddRemoveLandscapesDialog * addRemoveLandscapesDialog;
100  AtmosphereDialog * atmosphereDialog;
101  GreatRedSpotDialog * greatRedSpotDialog;
102 };
103 
104 #endif // _VIEWDIALOG_HPP_
void styleChanged()
Notify that the application style changed.
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:52
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.