moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / tools / modcalceclipticcoords.h
blob809928c9ff7d6b4dadea853b2a7ca3a230963569
1 /***************************************************************************
2 modcalceclipticcoords.h - description
3 -------------------
4 begin : Fri May 14 2004
5 copyright : (C) 2004 by Pablo de Vicente
6 email : p.devicente@wanadoo.es
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef MODCALCECLIPTICCOORDS_H
19 #define MODCALCECLIPTICCOORDS_H
21 #include "modcalceclipticcoordsdlg.h"
22 #include "dms.h"
24 class QString;
26 /**
27 * Class which implements the KStars calculator module to compute
28 * geocentric ecliptic coordinates to/from geocentric equatorial coordinates.
30 * Inherits QWidget
31 *@author Pablo de Vicente
34 class modCalcEclCoords : public modCalcEclCoordsDlg {
36 Q_OBJECT
38 public:
40 modCalcEclCoords(QWidget *p, const char *n);
41 ~modCalcEclCoords();
43 void getEclCoords (void);
44 void getEquCoords (void);
45 double getEpoch( QString t );
46 void showEquCoords(void);
47 void showEclCoords(void);
48 void EclToEqu(void);
49 void EquToEcl(void);
51 public slots:
53 void slotClearCoords (void);
54 void slotComputeCoords (void);
55 void slotEclLatCheckedBatch(void);
56 void slotEclLongCheckedBatch(void);
57 void slotRaCheckedBatch(void);
58 void slotDecCheckedBatch(void);
59 void slotEpochCheckedBatch(void);
60 void slotInputFile(void);
61 void slotOutputFile(void);
62 void slotRunBatch();
64 private:
65 void equCheck(void);
66 void eclCheck(void);
67 void processLines( QTextStream &is );
69 dms eclipLong, eclipLat, raCoord, decCoord;
70 double epoch;
71 bool eclInputCoords;
73 #endif