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