blob: 08e5497cfa6910ff0e21a343209a94866b25735f (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
/***************************************************************************
modcalcsidtime.h - description
-------------------
begin : Wed Jan 23 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 MODCALCSIDTIME_H
#define MODCALCSIDTIME_H
#include "modcalcsidtimedlg.h"
#include <kapplication.h>
/**
* Class which implements the KStars calculator module to compute Universal
* time to/from Sidereal time.
*
* Inherits modCalcSidTimeDlg
*@author Pablo de Vicente
*@version 0.9
*/
class dms;
class TQTime;
class ExtDate;
class modCalcSidTime : public modCalcSidTimeDlg {
Q_OBJECT
public:
modCalcSidTime(TQWidget *p, const char *n);
~modCalcSidTime();
TQTime computeUTtoST (TQTime u, ExtDate d, dms l);
TQTime computeSTtoUT (TQTime s, ExtDate d, dms l);
public slots:
/** No descriptions */
void slotClearFields();
/** No descriptions */
void slotComputeTime();
void slotUtChecked();
void slotDateChecked();
void slotStChecked();
void slotLongChecked();
void slotInputFile();
void slotOutputFile();
void slotRunBatch();
void processLines( TQTextStream &istream );
private:
void showUT ( TQTime ut );
void showST ( TQTime st );
/* Fills the UT, Date boxes with the current time
* and date and the longitude box with the current Geo location
*/
void showCurrentTimeAndLong (void);
void sidNoCheck();
void utNoCheck();
TQTime getUT (void);
TQTime getST (void);
ExtDate getDate (void);
dms getLongitude (void);
bool stInputTime;
};
#endif
|