Stellarium 0.12.3
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 <QObject>
24 #include "StelDialog.hpp"
25 
26 class Ui_viewDialogForm;
27 class QListWidgetItem;
28 
30 class AtmosphereDialog;
31 
32 class ViewDialog : public StelDialog
33 {
34 Q_OBJECT
35 public:
36  ViewDialog();
37  virtual ~ViewDialog();
39  void styleChanged();
40 
41 public slots:
42  void retranslate();
43  void updateIconsColor();
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();
55  void updateZhrControls(int zhr);
56  void updateZhrDescription(int zhr);
57  void planetsLabelsValueChanged(int);
58  void nebulasLabelsValueChanged(int);
59  void starsLabelsValueChanged(int);
60  void setCurrentLandscapeAsDefault(void);
61  void setCurrentCultureAsDefault(void);
64  void updateFromProgram();
65 
66  void showAddRemoveLandscapesDialog();
67  void showAtmosphereDialog();
68 
69  void populateSkyLayersList();
70  void skyLayersSelectionChanged(const QString&);
71  void skyLayersEnabledChanged(int);
72 
73  void changePage(QListWidgetItem *current, QListWidgetItem *previous);
74 private:
75  void updateSkyCultureText();
76 
77  AddRemoveLandscapesDialog * addRemoveLandscapesDialog;
78  AtmosphereDialog * atmosphereDialog;
79 };
80 
81 #endif // _VIEWDIALOG_HPP_