diff options
Diffstat (limited to 'kstars/kstars/tools/modcalcgeodcoord.h')
-rw-r--r-- | kstars/kstars/tools/modcalcgeodcoord.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/kstars/kstars/tools/modcalcgeodcoord.h b/kstars/kstars/tools/modcalcgeodcoord.h new file mode 100644 index 00000000..e4ae86e2 --- /dev/null +++ b/kstars/kstars/tools/modcalcgeodcoord.h @@ -0,0 +1,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 |