File indexing completed on 2024-04-21 14:46:55
0001 /* 0002 SPDX-FileCopyrightText: 2002 Pablo de Vicente <vicente@oan.es> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "ui_modcalcjd.h" 0010 0011 class QTextStream; 0012 class QWidget; 0013 0014 /** 0015 * Class for KStars module which computes JD, MJD and Date/Time from the 0016 * any of the other entries. 0017 * 0018 * Inherits QVBox 0019 * 0020 * @author Pablo de Vicente 0021 * @version 0.9 0022 */ 0023 class modCalcJD : public QFrame, public Ui::modCalcJdDlg 0024 { 0025 Q_OBJECT 0026 public: 0027 explicit modCalcJD(QWidget *p); 0028 virtual ~modCalcJD() override = default; 0029 0030 public slots: 0031 void slotUpdateCalendar(); 0032 void slotUpdateModJD(); 0033 void slotUpdateJD(); 0034 void showCurrentTime(void); 0035 void slotRunBatch(); 0036 void slotViewBatch(); 0037 void slotCheckFiles(); 0038 0039 private: 0040 void processLines(QTextStream &istream, int inputData); 0041 /** Shows Julian Day in the Box */ 0042 void showJd(long double jd); 0043 /** Shows the modified Julian Day in the Box */ 0044 void showMjd(long double mjd); 0045 };