blob: c7505b7ac88e8c2348e79a7bab08c0d38c8591c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/***************************************************************************
modcalcjd.h - description
-------------------
begin : Tue Jan 15 2002
copyright : (C) 2002 by Pablo de Vicente
email : vicente@oan.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef MODCALCJD_H
#define MODCALCJD_H
#include <tqvbox.h>
#include <kapplication.h>
#include "modcalcjddlg.h"
/**
* Class for KStars module which computes JD, MJD and Date/Time from the
* any of the other entries.
*
* Inherits QVBox
*@author Pablo de Vicente
*@version 0.9
*/
class TQWidget;
class VBox;
class KStarsDateTime;
class modCalcJD : public modCalcJdDlg
{
Q_OBJECT
public:
modCalcJD(TQWidget *p, const char *n);
~modCalcJD();
void computeFromCalendar (void);
void computeFromMjd (void);
void computeFromJd (void);
KStarsDateTime getDateTime (void);
public slots:
void slotComputeTime(void);
void slotClearTime(void);
void showCurrentTime(void);
private:
/** Shows Julian Day in the Box */
void showJd(long double jd);
/** Shows the modified Julian Day in the Box */
void showMjd(long double mjd);
};
#endif
|