File indexing completed on 2024-04-21 14:46:54

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 "dms.h"
0010 #include "ui_modcalcgalcoord.h"
0011 
0012 /**
0013  * Class which implements the KStars calculator module to compute
0014  * Galactic coordinates to/from Equatorial coordinates.
0015  *
0016  * @author Pablo de Vicente
0017  * @version 0.9
0018  */
0019 class modCalcGalCoord : public QFrame, public Ui::modCalcGalCoordDlg
0020 {
0021     Q_OBJECT
0022 
0023   public:
0024     explicit modCalcGalCoord(QWidget *p);
0025     virtual ~modCalcGalCoord() override = default;
0026 
0027   public slots:
0028 
0029     void slotComputeCoords();
0030     void slotObject();
0031 
0032     void slotGalLatCheckedBatch();
0033     void slotGalLongCheckedBatch();
0034     void slotRaCheckedBatch();
0035     void slotDecCheckedBatch();
0036     void slotEpochCheckedBatch();
0037     void slotRunBatch();
0038 
0039   private:
0040     void equCheck();
0041     void galCheck();
0042     void processLines(QTextStream &is);
0043 
0044     dms galLong, galLat, raCoord, decCoord;
0045     QString epoch;
0046     bool galInputCoords { false };
0047 };