blob: 359a707422d94e205619286543e3ea0a2338bf88 (
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
|
/***************************************************************************
modcalcazel.h - description
-------------------
begin : mier abr 20 2004
copyright : (C) 2004-2005 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 MODCALCPLANETS_H
#define MODCALCPLANETS_H
#include <kapplication.h>
#include <tqwidget.h>
#include "modcalcplanetsdlg.h"
#include "geolocation.h"
#include "kstarsdatetime.h"
class TQWidget;
class TQTextStream;
class KSPlanet;
class KSMoon;
class KSSun;
class KSPluto;
/**
*@author Pablo de Vicente
*/
class modCalcPlanets : public modCalcPlanetsDlg {
Q_OBJECT
public:
modCalcPlanets(TQWidget *p, const char *n);
~modCalcPlanets();
public slots:
void slotComputePosition (void);
void slotClear(void);
void slotUtCheckedBatch();
void slotDateCheckedBatch();
void slotLongCheckedBatch();
void slotLatCheckedBatch();
void slotPlanetsCheckedBatch();
void slotInputFile();
void slotOutputFile();
void slotRunBatch();
void processLines( TQTextStream &istream );
//void slotInputFile();
//void slotOutputFile();
//void slotRunBatch();
private:
void showCurrentDateTime (void);
KStarsDateTime getDateTime (void);
void showLongLat(void);
GeoLocation getObserverPosition (void);
void showCoordinates( const KSPlanet &ksp );
void showCoordinates( const KSMoon &ksp );
void showCoordinates( const KSSun &ksp );
void showCoordinates( const KSPluto &ksp );
void showHeliocentricEclipticCoords( const dms *hLong, const dms *hLat, double dist);
void showGeocentricEclipticCoords( const dms *eLong, const dms *eLat, double r);
void showEquatorialCoords( const dms *ra, const dms *dec);
void showTopocentricCoords( const dms *az, const dms *el);
unsigned int requiredBatchFields(void);
// void processLines( TQTextStream &istream );
};
#endif
|