Stellarium 0.15.2
PointerCoordinatesWindow.hpp
1 /*
2  * Pointer Coordinates plug-in for Stellarium
3  *
4  * Copyright (C) 2014 Alexander Wolf
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, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef _POINTER_COORDINATES_WINDOW_HPP_
21 #define _POINTER_COORDINATES_WINDOW_HPP_
22 
23 #include "StelDialog.hpp"
24 
25 #include <QString>
26 #include <QDoubleSpinBox>
27 
28 class Ui_pointerCoordinatesWindowForm;
29 class PointerCoordinates;
30 
34 {
35  Q_OBJECT
36 
37 public:
40 
41 public slots:
42  void retranslate();
43 
44 protected:
45  void createDialogContent();
46 
47 private:
48  Ui_pointerCoordinatesWindowForm* ui;
49  PointerCoordinates* coord;
50 
51  void setAboutHtml();
52  void populateValues();
53  void setCustomCoordinatesAccess(QString place);
54 
55 private slots:
56  void saveCoordinatesSettings();
57  void resetCoordinatesSettings();
58 
59  void populateCoordinatesPlacesList();
60  void populateCoordinateSystemsList();
61  void setCoordinatesPlace(int placeID);
62  void setCoordinateSystem(int csID);
63  void setCustomCoordinatesPlace();
64 };
65 
66 
67 #endif /* _POINTER_COORDINATES_WINDOW_HPP_ */
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:72
Main window of the Pointer Coordinates plug-in.
Main class of the Pointer Coordinates plugin.
void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.