kstars
modcalcplanets.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 modcalcazel.h - description 00003 ------------------- 00004 begin : mier abr 20 2004 00005 copyright : (C) 2004-2005 by Pablo de Vicente 00006 email : pvicentea@wanadoo.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 MODCALCPLANETS_H 00019 #define MODCALCPLANETS_H 00020 00021 #include <kapplication.h> 00022 #include <qwidget.h> 00023 #include "modcalcplanetsdlg.h" 00024 #include "geolocation.h" 00025 #include "kstarsdatetime.h" 00026 00027 class QWidget; 00028 class QTextStream; 00029 class KSPlanet; 00030 class KSMoon; 00031 class KSSun; 00032 class KSPluto; 00033 00038 class modCalcPlanets : public modCalcPlanetsDlg { 00039 00040 Q_OBJECT 00041 00042 public: 00043 modCalcPlanets(QWidget *p, const char *n); 00044 ~modCalcPlanets(); 00045 00046 public slots: 00047 00048 void slotComputePosition (void); 00049 void slotClear(void); 00050 void slotUtCheckedBatch(); 00051 void slotDateCheckedBatch(); 00052 void slotLongCheckedBatch(); 00053 void slotLatCheckedBatch(); 00054 void slotPlanetsCheckedBatch(); 00055 void slotInputFile(); 00056 void slotOutputFile(); 00057 void slotRunBatch(); 00058 void processLines( QTextStream &istream ); 00059 //void slotInputFile(); 00060 //void slotOutputFile(); 00061 //void slotRunBatch(); 00062 00063 private: 00064 00065 void showCurrentDateTime (void); 00066 KStarsDateTime getDateTime (void); 00067 void showLongLat(void); 00068 GeoLocation getObserverPosition (void); 00069 void showCoordinates( const KSPlanet &ksp ); 00070 void showCoordinates( const KSMoon &ksp ); 00071 void showCoordinates( const KSSun &ksp ); 00072 void showCoordinates( const KSPluto &ksp ); 00073 void showHeliocentricEclipticCoords( const dms *hLong, const dms *hLat, double dist); 00074 void showGeocentricEclipticCoords( const dms *eLong, const dms *eLat, double r); 00075 void showEquatorialCoords( const dms *ra, const dms *dec); 00076 void showTopocentricCoords( const dms *az, const dms *el); 00077 unsigned int requiredBatchFields(void); 00078 00079 // void processLines( QTextStream &istream ); 00080 00081 }; 00082 00083 #endif