Stellarium 0.13.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 "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);
63  void setFlagLandscapeUseMinimalBrightness(bool b);
66  void updateFromProgram();
67 
68  void showAddRemoveLandscapesDialog();
69  void showAtmosphereDialog();
70 
71  void populateLightPollution();
72  void populateLandscapeMinimalBrightness();
73 
74  // WHAT IS THE SKY LAYER? hidden, under development?
75  void populateSkyLayersList();
76  void skyLayersSelectionChanged(const QString&);
77  void skyLayersEnabledChanged(int);
78 
79  void changePage(QListWidgetItem *current, QListWidgetItem *previous);
80 private:
82  void connectCheckBox(class QCheckBox* checkBox, const QString& actionId);
83  void connectGroupBox(class QGroupBox* groupBox, const QString& actionId);
84  void updateSkyCultureText();
87  void updateTabBarListWidgetWidth();
88 
89  AddRemoveLandscapesDialog * addRemoveLandscapesDialog;
90  AtmosphereDialog * atmosphereDialog;
91 };
92 
93 #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.