summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/modcalcgeodcoord.h
blob: e4ae86e2973875cbdb05abd036bd18a272b0507a (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
/***************************************************************************
                          modcalcgeodcoord.h  -  description
                             -------------------
    begin                : Tue Jan 15 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 MODCALCGEODCOORD_H
#define MODCALCGEODCOORD_H

#include "modcalcgeoddlg.h"

/**
  * Class which implements the KStars calculator module to compute
  * Geodetic coordinates to/from Cartesian coordinates.
  *  
  * Inherits QVBox
  *@author Pablo de Vicente
	*@version 0.9
  */

//class QWidget;
//class QLineEdit;
//class QRadioButton;
//class dmsBox;
class GeoLocation;

class modCalcGeodCoord : public modCalcGeodCoordDlg {

	Q_OBJECT
	public:
	
		modCalcGeodCoord(QWidget *p, const char *n);
		~modCalcGeodCoord();
	
		void genGeoCoords(void);
		void getCartGeoCoords (void);
		void getSphGeoCoords (void);
		void showSpheGeoCoords(void);
		void showCartGeoCoords(void);

	public slots:
	
		void slotComputeGeoCoords (void);
		void slotClearGeoCoords (void);		
		void setEllipsoid(int i);
		void slotLongCheckedBatch();
		void slotLatCheckedBatch();
		void slotElevCheckedBatch();
		void slotXCheckedBatch();
		void slotYCheckedBatch();
		void slotZCheckedBatch();
		void slotOutputFile();
		void slotInputFile();
	private:

		void geoCheck(void);
		void xyzCheck(void);
		void showLongLat(void);
		void processLines( QTextStream &istream );
		void slotRunBatch(void);

//		QRadioButton *cartRadio, *spheRadio;
//		QVBox *vbox, *rightBox;
//		QLineEdit *xGeoName, *yGeoName, *zGeoName, *altGeoName;
//		dmsBox *timeBox, *dateBox, *lonGeoBox, *latGeoBox;

		GeoLocation *geoPlace;
		bool xyzInputCoords;

};
	
#endif