blob: 65e0983727752787b0e0d8904e88c3333acbd0b9 (
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
/***************************************************************************
modcalcazel.h - description
-------------------
begin : sáb oct 26 2002
copyright : (C) 2002 by Pablo de Vicente
email : pvicentea@wanadoo.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 MODCALCAZEL_H
#define MODCALCAZEL_H
#include <kapplication.h>
#include <tqwidget.h>
#include "modcalcazeldlg.h"
class TQWidget;
class SkyPoint;
class KStarsDateTime;
class GeoLocation;
class dms;
/**
*@author Pablo de Vicente
*/
class modCalcAzel : public modCalcAzelDlg {
Q_OBJECT
public:
modCalcAzel(TQWidget *p, const char *n);
~modCalcAzel();
public slots:
/** No descriptions */
void slotComputeCoords();
/** No descriptions */
void slotClearCoords();
void slotUtChecked();
void slotDateChecked();
void slotRaChecked();
void slotDecChecked();
void slotEpochChecked();
void slotLongChecked();
void slotLatChecked();
void slotAzChecked();
void slotElChecked();
void slotInputFile();
void slotOutputFile();
void slotRunBatch();
private:
/**@returns a SkyPoint constructed from the coordinates in the
* RA and Dec dmsBoxes. */
SkyPoint getEquCoords(void);
/**@returns a SkyPoint constructed from the coordinates in the
* Az and El dmsBoxes. */
SkyPoint getHorCoords(void);
/**Fill the Time and Date fields with the current values from the
* CPU clock. */
void showCurrentDateTime(void);
/**@returns a KStarsDateTime constructed from the Time and Date fields. */
KStarsDateTime getDateTime (void);
/**Parse the string argument as a double
* @param eName String from which the epoch is to be constructed
* once it is converted to a double
*/
double getEpoch (TQString eName);
/**Fill the Az and El dmsBoxes with values of the SkyPoint argument.
* @param sp SkypPoint object which tqcontains the coordinates to
* be displayed */
void showHorCoords ( SkyPoint sp );
/**Fill the Az and El dmsBoxes with values of the SkyPoint argument.
* @param sp SkypPoint object which tqcontains the coordinates to
* be displayed
* @param jd Julian day for which the conversion has been performed
* The epoch is constructed for that day
*/
void showEquCoords ( SkyPoint sp );
/**Fills the epoch box with the value corresponding to a julian day
* @param dt date/time from which to construct the epoch string
*/
void showEpoch ( const KStarsDateTime &dt );
/* Creates a dms object from the latitude box */
dms getLatitude (void);
/* Creates a dms object from the longitude box */
dms getLongitude (void);
void initGeo(void);
void showLongLat(void);
void getGeoLocation (void);
void horNoCheck();
void equNoCheck();
void processLines( TQTextStream &istream );
GeoLocation *geoPlace;
bool horInputCoords;
};
#endif
|