File indexing completed on 2024-04-21 14:46:54
0001 /* 0002 SPDX-FileCopyrightText: 2004 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_modcalcangdist.h" 0010 0011 class dms; 0012 class dmsBox; 0013 class SkyPoint; 0014 class QTextStream; 0015 0016 /** 0017 * Module to compute the angular distance between two points in the sky and position angle. 0018 * 0019 * @author Pablo de Vicente 0020 * @author Jasem Mutlaq 0021 * @version 1.0 0022 */ 0023 class modCalcAngDist : public QFrame, public Ui::modCalcAngDistDlg 0024 { 0025 Q_OBJECT 0026 public: 0027 /**Constructor. */ 0028 explicit modCalcAngDist(QWidget *p); 0029 0030 virtual ~modCalcAngDist() override = default; 0031 0032 public slots: 0033 void slotValidatePositions(); 0034 void slotObjectButton(); 0035 void slotResetTitle(); 0036 void slotRunBatch(); 0037 0038 private: 0039 /** Process Lines **/ 0040 void processLines(QTextStream &istream); 0041 0042 /** @returns a SkyPoint constructed from the coordinates in the RA and Dec dmsBoxes. */ 0043 SkyPoint getCoords(dmsBox *rBox, dmsBox *dBox, bool *ok); 0044 };