Stellarium 0.12.4
Main Page
Namespaces
Classes
Coding Style
Scripting
Plugins
Renderer
File Structure
File List
File Members
gui
DateTimeDialog.hpp
1
/*
2
* Stellarium
3
* Copyright (C) 2008 Nigel Kerr
4
* Copyright (C) 2012 Timothy Reaves
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 _DATETIMEDIALOG_HPP_
22
#define _DATETIMEDIALOG_HPP_
23
24
#include <QObject>
25
#include "StelDialog.hpp"
26
27
class
Ui_dateTimeDialogForm;
28
29
class
DateTimeDialog
:
public
StelDialog
30
{
31
Q_OBJECT
32
public
:
33
DateTimeDialog
();
34
~
DateTimeDialog
();
35
double
newJd();
36
bool
valid(
int
y,
int
m,
int
d,
int
h,
int
min,
int
s);
38
void
styleChanged
();
39
public
slots:
40
void
retranslate();
42
void
setDateTime
(
double
newJd);
43
44
void
close();
45
46
47
protected
:
49
virtual
void
createDialogContent
();
50
void
connectSpinnerEvents()
const
;
51
void
disconnectSpinnerEvents()
const
;
52
53
private
slots:
55
void
yearChanged(
int
ny);
57
void
monthChanged(
int
nm);
59
void
dayChanged(
int
nd);
61
void
hourChanged(
int
nh);
63
void
minuteChanged(
int
nm);
65
void
secondChanged(
int
ns);
66
67
private
:
68
Ui_dateTimeDialogForm* ui;
69
int
year;
70
int
month;
71
int
day;
72
int
hour;
73
int
minute;
74
int
second;
75
void
pushToWidgets();
76
};
77
78
#endif // _DATETIMEDIALOG_HPP_
Generated on Wed Sep 25 2013 22:30:31 for Stellarium by
1.8.3.1