kstars
modcalcapcoord.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 modcalcapcoord.h - description 00003 ------------------- 00004 begin : Wed Apr 10 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 MODCALCAPCOORD_H 00019 #define MODCALCAPCOORD_H 00020 00021 #include "modcalcapcoorddlg.h" 00022 #include <kapplication.h> 00023 00030 class dms; 00031 class dmsBox; 00032 class SkyPoint; 00033 class KStarsDateTime; 00034 class QTextStream; 00035 00036 class modCalcApCoord : public modCalcApCoordDlg { 00037 00038 Q_OBJECT 00039 public: 00041 modCalcApCoord(QWidget *p, const char *n); 00043 ~modCalcApCoord(); 00044 00046 SkyPoint precess (dms ra0, dms dec0, long double j0, long double jf); 00047 00049 SkyPoint apparentCoordinates (dms r0, dms d0, long double j0, long double jf); 00050 00052 // void processLines( const QFile * f ); 00053 void processLines( QTextStream &istream ); 00054 public slots: 00055 00056 00058 void slotComputeCoords(); 00060 void slotClearCoords(); 00061 void slotUtCheckedBatch(); 00062 void slotDateCheckedBatch(); 00063 void slotRaCheckedBatch(); 00064 void slotDecCheckedBatch(); 00065 void slotEpochCheckedBatch(); 00066 void slotInputFile(); 00067 void slotOutputFile(); 00068 void slotRunBatch(); 00069 00070 private: 00072 SkyPoint getEquCoords(void); 00073 00075 void showCurrentTime(void); 00076 00078 KStarsDateTime getDateTime (void); 00079 00081 double getEpoch (QString eName); 00082 00084 void showEquCoords ( SkyPoint sp ); 00085 00086 }; 00087 00088 #endif