moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / tools / modcalcgeodcoord.h
blobe4ae86e2973875cbdb05abd036bd18a272b0507a
1 /***************************************************************************
2 modcalcgeodcoord.h - description
3 -------------------
4 begin : Tue Jan 15 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 MODCALCGEODCOORD_H
19 #define MODCALCGEODCOORD_H
21 #include "modcalcgeoddlg.h"
23 /**
24 * Class which implements the KStars calculator module to compute
25 * Geodetic coordinates to/from Cartesian coordinates.
27 * Inherits QVBox
28 *@author Pablo de Vicente
29 *@version 0.9
32 //class QWidget;
33 //class QLineEdit;
34 //class QRadioButton;
35 //class dmsBox;
36 class GeoLocation;
38 class modCalcGeodCoord : public modCalcGeodCoordDlg {
40 Q_OBJECT
41 public:
43 modCalcGeodCoord(QWidget *p, const char *n);
44 ~modCalcGeodCoord();
46 void genGeoCoords(void);
47 void getCartGeoCoords (void);
48 void getSphGeoCoords (void);
49 void showSpheGeoCoords(void);
50 void showCartGeoCoords(void);
52 public slots:
54 void slotComputeGeoCoords (void);
55 void slotClearGeoCoords (void);
56 void setEllipsoid(int i);
57 void slotLongCheckedBatch();
58 void slotLatCheckedBatch();
59 void slotElevCheckedBatch();
60 void slotXCheckedBatch();
61 void slotYCheckedBatch();
62 void slotZCheckedBatch();
63 void slotOutputFile();
64 void slotInputFile();
65 private:
67 void geoCheck(void);
68 void xyzCheck(void);
69 void showLongLat(void);
70 void processLines( QTextStream &istream );
71 void slotRunBatch(void);
73 // QRadioButton *cartRadio, *spheRadio;
74 // QVBox *vbox, *rightBox;
75 // QLineEdit *xGeoName, *yGeoName, *zGeoName, *altGeoName;
76 // dmsBox *timeBox, *dateBox, *lonGeoBox, *latGeoBox;
78 GeoLocation *geoPlace;
79 bool xyzInputCoords;
83 #endif