kstars
modcalcgalcoord.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 modcalcgal.h - description 00003 ------------------- 00004 begin : Thu Jan 17 2002 00005 copyright : (C) 2002 by Pablo de Vicente 00006 email : vicente@oan.es 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef MODCALCGALCOORD_H 00019 #define MODCALCGALCOORD_H 00020 00021 #include "dms.h" 00022 #include "modcalcgalcoorddlg.h" 00023 00033 class modCalcGalCoord : public modCalcGalCoordDlg { 00034 00035 Q_OBJECT 00036 00037 public: 00038 00039 modCalcGalCoord(QWidget *p, const char *n); 00040 ~modCalcGalCoord(); 00044 void getGalCoords (void); 00045 void getEquCoords (void); 00046 void getEpoch (void); 00047 double getEpoch( QString t ); 00048 void showEquCoords(void); 00049 void showGalCoords(void); 00050 void GalToEqu(void); 00051 void EquToGal(void); 00052 00053 public slots: 00054 00055 void slotClearCoords (void); 00056 void slotComputeCoords (void); 00057 void slotGalLatCheckedBatch(void); 00058 void slotGalLongCheckedBatch(void); 00059 void slotRaCheckedBatch(void); 00060 void slotDecCheckedBatch(void); 00061 void slotEpochCheckedBatch(void); 00062 void slotInputFile(void); 00063 void slotOutputFile(void); 00064 void slotRunBatch(); 00065 00066 private: 00067 void equCheck(void); 00068 void galCheck(void); 00069 void processLines( QTextStream &is ); 00070 00071 dms galLong, galLat, raCoord, decCoord; 00072 double epoch; 00073 bool galInputCoords; 00074 }; 00075 #endif 00076