kstars
modcalcsidtime.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 modcalcsidtime.h - description 00003 ------------------- 00004 begin : Wed Jan 23 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 MODCALCSIDTIME_H 00019 #define MODCALCSIDTIME_H 00020 00021 #include "modcalcsidtimedlg.h" 00022 #include <kapplication.h> 00023 00033 class dms; 00034 class QTime; 00035 class ExtDate; 00036 00037 class modCalcSidTime : public modCalcSidTimeDlg { 00038 00039 Q_OBJECT 00040 00041 public: 00042 00043 modCalcSidTime(QWidget *p, const char *n); 00044 ~modCalcSidTime(); 00045 00046 QTime computeUTtoST (QTime u, ExtDate d, dms l); 00047 QTime computeSTtoUT (QTime s, ExtDate d, dms l); 00048 00049 public slots: 00050 00051 00053 void slotClearFields(); 00054 00056 void slotComputeTime(); 00057 00058 void slotUtChecked(); 00059 void slotDateChecked(); 00060 void slotStChecked(); 00061 void slotLongChecked(); 00062 void slotInputFile(); 00063 void slotOutputFile(); 00064 void slotRunBatch(); 00065 void processLines( QTextStream &istream ); 00066 00067 private: 00068 00069 void showUT ( QTime ut ); 00070 void showST ( QTime st ); 00071 00072 /* Fills the UT, Date boxes with the current time 00073 * and date and the longitude box with the current Geo location 00074 */ 00075 void showCurrentTimeAndLong (void); 00076 00077 void sidNoCheck(); 00078 void utNoCheck(); 00079 00080 QTime getUT (void); 00081 QTime getST (void); 00082 ExtDate getDate (void); 00083 dms getLongitude (void); 00084 bool stInputTime; 00085 00086 }; 00087 00088 #endif