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();
53  void changeProjection(const QString& projectionNameI18n);
54  void projectionChanged();
55  void changeLandscape(QListWidgetItem* item);
56  void landscapeChanged(QString id,QString name);
57  void updateZhrDescription(int zhr);
58  void setBortleScaleToolTip(int Bindex);
59  void setCurrentLandscapeAsDefault(void);
60  void setCurrentCultureAsDefault(void);
61  void updateDefaultSkyCulture();
62  void updateDefaultLandscape();
63  void setFlagCustomGrsSettings(bool b);
66  // NO LONGER NEEDED!
67  //void updateFromProgram();
68 
69  void showAddRemoveLandscapesDialog();
70  void showAtmosphereDialog();
71  void showGreatRedSpotDialog();
72 
73  void setLightPollutionSpinBoxStatus();
74  // Two new from the unwanted trunk-rework Not sure if we need them at all?
75  void populateLightPollution();
76 
77  // WHAT IS THE SKY LAYER? hidden, under development?
78  void populateSkyLayersList();
79  void skyLayersSelectionChanged(const QString&);
80  void skyLayersEnabledChanged(int);
81 
82  void setSelectedCatalogsFromCheckBoxes();
83  void setSelectedTypesFromCheckBoxes();
84 
85  void changePage(QListWidgetItem *current, QListWidgetItem *previous);
86 
87  void updateSelectedCatalogsCheckBoxes();
88  void updateSelectedTypesCheckBoxes();
89 private:
90  void connectGroupBox(class QGroupBox* groupBox, const QString& actionId);
91  void updateSkyCultureText();
94  void updateTabBarListWidgetWidth();
95 
96  AddRemoveLandscapesDialog * addRemoveLandscapesDialog;
97  AtmosphereDialog * atmosphereDialog;
98  GreatRedSpotDialog * greatRedSpotDialog;
99 };
100 
101 #endif // _VIEWDIALOG_HPP_
void styleChanged()
Notify that the application style changed.
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:67
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.