kstars
modcalcazel.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 modcalcazel.h - description 00003 ------------------- 00004 begin : sáb oct 26 2002 00005 copyright : (C) 2002 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 MODCALCAZEL_H 00019 #define MODCALCAZEL_H 00020 00021 #include <kapplication.h> 00022 #include <qwidget.h> 00023 #include "modcalcazeldlg.h" 00024 00025 class QWidget; 00026 class SkyPoint; 00027 class KStarsDateTime; 00028 class GeoLocation; 00029 class dms; 00030 00035 class modCalcAzel : public modCalcAzelDlg { 00036 00037 Q_OBJECT 00038 00039 public: 00040 modCalcAzel(QWidget *p, const char *n); 00041 ~modCalcAzel(); 00042 00043 public slots: 00044 00046 void slotComputeCoords(); 00048 void slotClearCoords(); 00049 void slotUtChecked(); 00050 void slotDateChecked(); 00051 void slotRaChecked(); 00052 void slotDecChecked(); 00053 void slotEpochChecked(); 00054 void slotLongChecked(); 00055 void slotLatChecked(); 00056 void slotAzChecked(); 00057 void slotElChecked(); 00058 void slotInputFile(); 00059 void slotOutputFile(); 00060 void slotRunBatch(); 00061 00062 private: 00063 00066 SkyPoint getEquCoords(void); 00067 00070 SkyPoint getHorCoords(void); 00071 00074 void showCurrentDateTime(void); 00075 00077 KStarsDateTime getDateTime (void); 00078 00083 double getEpoch (QString eName); 00084 00088 void showHorCoords ( SkyPoint sp ); 00089 00096 void showEquCoords ( SkyPoint sp ); 00097 00101 void showEpoch ( const KStarsDateTime &dt ); 00102 00103 /* Creates a dms object from the latitude box */ 00104 dms getLatitude (void); 00105 00106 /* Creates a dms object from the longitude box */ 00107 dms getLongitude (void); 00108 00109 void initGeo(void); 00110 00111 void showLongLat(void); 00112 00113 void getGeoLocation (void); 00114 00115 void horNoCheck(); 00116 void equNoCheck(); 00117 void processLines( QTextStream &istream ); 00118 00119 GeoLocation *geoPlace; 00120 bool horInputCoords; 00121 00122 }; 00123 00124 #endif