Stellarium 0.14.3
Scenery3dDialog.hpp
1 /*
2  * Stellarium Scenery3d Plug-in
3  *
4  * Copyright (C) 2011-2015 Simon Parzer, Peter Neubauer, Georg Zotti, Andrei Borza, Florian Schaukowitsch
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
19  */
20 
21 #ifndef _SCENERY3DDIALOG_HPP_
22 #define _SCENERY3DDIALOG_HPP_
23 
24 #include "StelDialog.hpp"
25 #include "S3DEnum.hpp"
26 #include "ui_scenery3dDialog.h"
27 
28 class Scenery3dMgr;
29 struct SceneInfo;
30 
32 {
33  Q_OBJECT
34 public:
35  Scenery3dDialog(QObject* parent = NULL);
36  ~Scenery3dDialog();
37 
38 public slots:
39  void retranslate();
40 
41 protected:
42  void createDialogContent();
43 
44 private slots:
45  void on_comboBoxShadowFiltering_currentIndexChanged(int index);
46  void on_comboBoxCubemapMode_currentIndexChanged(int index);
47  void on_sliderTorchStrength_valueChanged(int value);
48  void on_sliderTorchRange_valueChanged(int value);
49  void on_checkBoxDefaultScene_stateChanged(int value);
50  void on_comboBoxCubemapSize_currentIndexChanged(int index);
51  void on_comboBoxShadowmapSize_currentIndexChanged(int index);
52 
53  void scenery3dChanged(QListWidgetItem* item);
54 
55  void updateTorchStrength(float val);
56  void updateTorchRange(float val);
57  void updateLazyDrawingInterval(float val);
58  void updateShadowFilterQuality(S3DEnum::ShadowFilterQuality quality);
59  void updateSecondDominantFaceEnabled();
60 
61  void updateCurrentScene(const SceneInfo& sceneInfo);
62 
63  void initResolutionCombobox(QComboBox* cb);
64  void setResolutionCombobox(QComboBox* cb, uint val);
65 
66  void updateShortcutStrings();
67 
68  void updateToolTipStrings();
69 
70 private:
72  void createUpdateConnections();
74  void setToInitialValues();
75  void updateTextBrowser(const SceneInfo& si);
76 
77  QVector<QAbstractButton*> shortcutButtons;
78  Ui_scenery3dDialogForm* ui;
79  Scenery3dMgr* mgr;
80 };
81 
82 #endif
Contains all the metadata necessary for a Scenery3d scene, and can be loaded from special ...
Definition: SceneInfo.hpp:34
A local copy of StelDialog, the base class for all the GUI windows in Stellarium, included to allow t...
Main class of the module, inherits from StelModule.
ShadowFilterQuality
Contains different shadow filter settings.
Definition: S3DEnum.hpp:46