Stellarium 0.12.2
Main Page
Namespaces
Classes
Coding Style
Scripting
Plugins
Renderer
File Structure
File List
File Members
gui
CustomDeltaTEquationDialog.hpp
1
/*
2
* Stellarium
3
*
4
* Copyright (C) 2013 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
* 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
// AW: Methods copied largely from AddRemoveLandscapesDialog
21
22
#ifndef _CUSTOMDELTATEQUATIONDIALOG_HPP_
23
#define _CUSTOMDELTATEQUATIONDIALOG_HPP_
24
25
#include <QObject>
26
#include <QSettings>
27
#include "StelDialog.hpp"
28
#include "StelCore.hpp"
29
30
class
Ui_CustomDeltaTEquationDialogForm;
31
33
class
CustomDeltaTEquationDialog
:
public
StelDialog
34
{
35
Q_OBJECT
36
37
public
:
38
CustomDeltaTEquationDialog
();
39
virtual
~
CustomDeltaTEquationDialog
();
40
41
public
slots:
42
void
retranslate();
43
void
setVisible(
bool
);
44
45
protected
:
47
virtual
void
createDialogContent
();
48
Ui_CustomDeltaTEquationDialogForm *ui;
49
50
private
slots:
51
void
saveSettings(
void
)
const
;
52
53
void
setNDot(
const
QString& v);
54
void
setYear(
const
QString& v);
55
void
setCoeffA(
const
QString& v);
56
void
setCoeffB(
const
QString& v);
57
void
setCoeffC(
const
QString& v);
58
59
private
:
60
QSettings* conf;
61
StelCore
* core;
62
63
float
year;
64
float
ndot;
65
Vec3f
coeff;
66
67
void
setDescription(
void
)
const
;
68
69
};
70
71
#endif // _CUSTOMDELTATEQUATIONDIALOG_HPP_
Generated on Sun May 12 2013 22:32:59 for Stellarium by
1.8.3.1