moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / tools / modcalcgalcoord.h
blob94acd572d70845bcd5a2d6f6f6f3b48cdb43815f
1 /***************************************************************************
2 modcalcgal.h - description
3 -------------------
4 begin : Thu Jan 17 2002
5 copyright : (C) 2002 by Pablo de Vicente
6 email : vicente@oan.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 MODCALCGALCOORD_H
19 #define MODCALCGALCOORD_H
21 #include "dms.h"
22 #include "modcalcgalcoorddlg.h"
24 /**
25 * Class which implements the KStars calculator module to compute
26 * Galactic coordinates to/from Equatorial coordinates.
28 * Inherits QWidget
29 *@author Pablo de Vicente
30 *@version 0.9
33 class modCalcGalCoord : public modCalcGalCoordDlg {
35 Q_OBJECT
37 public:
39 modCalcGalCoord(QWidget *p, const char *n);
40 ~modCalcGalCoord();
41 /**
42 * Obtains the galactic coords. from the Box.
44 void getGalCoords (void);
45 void getEquCoords (void);
46 void getEpoch (void);
47 double getEpoch( QString t );
48 void showEquCoords(void);
49 void showGalCoords(void);
50 void GalToEqu(void);
51 void EquToGal(void);
53 public slots:
55 void slotClearCoords (void);
56 void slotComputeCoords (void);
57 void slotGalLatCheckedBatch(void);
58 void slotGalLongCheckedBatch(void);
59 void slotRaCheckedBatch(void);
60 void slotDecCheckedBatch(void);
61 void slotEpochCheckedBatch(void);
62 void slotInputFile(void);
63 void slotOutputFile(void);
64 void slotRunBatch();
66 private:
67 void equCheck(void);
68 void galCheck(void);
69 void processLines( QTextStream &is );
71 dms galLong, galLat, raCoord, decCoord;
72 double epoch;
73 bool galInputCoords;
75 #endif