Stellarium 0.13.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 landscapeChanged(QListWidgetItem* item);
54  void setZhrFromControls(int zhr);
55  void updateZhrDescription();
56  void updateZhrControls(int zhr);
57  void planetsLabelsValueChanged(int);
58  void nebulasLabelsValueChanged(int);
59  void setBortleScaleToolTip(int Bindex);
60  void starsLabelsValueChanged(int);
61  void setCurrentLandscapeAsDefault(void);
62  void setCurrentCultureAsDefault(void);
65  void updateFromProgram();
66 
67  void showAddRemoveLandscapesDialog();
68  void showAtmosphereDialog();
69 
70  void populateLightPollution();
71 
72  void populateSkyLayersList();
73  void skyLayersSelectionChanged(const QString&);
74  void skyLayersEnabledChanged(int);
75 
76  void changePage(QListWidgetItem *current, QListWidgetItem *previous);
77 private:
79  void connectCheckBox(class QCheckBox* checkBox, const QString& actionId);
80  void connectGroupBox(class QGroupBox* groupBox, const QString& actionId);
81  void updateSkyCultureText();
82 
83  AddRemoveLandscapesDialog * addRemoveLandscapesDialog;
84  AtmosphereDialog * atmosphereDialog;
85 };
86 
87 #endif // _VIEWDIALOG_HPP_
void styleChanged()
Notify that the application style changed.
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:45
Definition: AddRemoveLandscapesDialog.hpp:34
Definition: AtmosphereDialog.hpp:33
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
Definition: ViewDialog.hpp:33