kstars
modcalcjd.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 modcalcjd.h - description 00003 ------------------- 00004 begin : Tue Jan 15 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 MODCALCJD_H 00019 #define MODCALCJD_H 00020 00021 #include <qvbox.h> 00022 00023 #include <kapplication.h> 00024 #include "modcalcjddlg.h" 00025 00035 class QWidget; 00036 class VBox; 00037 class KStarsDateTime; 00038 00039 class modCalcJD : public modCalcJdDlg 00040 { 00041 Q_OBJECT 00042 public: 00043 modCalcJD(QWidget *p, const char *n); 00044 ~modCalcJD(); 00045 00046 void computeFromCalendar (void); 00047 void computeFromMjd (void); 00048 void computeFromJd (void); 00049 KStarsDateTime getDateTime (void); 00050 00051 public slots: 00052 00053 void slotComputeTime(void); 00054 void slotClearTime(void); 00055 void showCurrentTime(void); 00056 00057 private: 00058 00060 void showJd(long double jd); 00062 void showMjd(long double mjd); 00063 }; 00064 00065 #endif