File indexing completed on 2024-04-14 14:11:14

0001 /*
0002     SPDX-FileCopyrightText: 2004 Jason Harris <jharris@30doradus.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "ui_opssolarsystem.h"
0010 
0011 class KConfigDialog;
0012 
0013 /** @class OpsSolarSystem
0014     *The Solar System page for the Options window.  This page allows the user
0015     *to modify display of solar system bodies in KStars, including the
0016     *major planets, the Sun and Moon, and the comets and asteroids.
0017     *@short The Solar System page of the Options window.
0018     *@author Jason Harris
0019     *@version 1.0
0020     */
0021 class OpsSolarSystem : public QFrame, public Ui::OpsSolarSystem
0022 {
0023     Q_OBJECT
0024 
0025   public:
0026     explicit OpsSolarSystem();
0027     virtual ~OpsSolarSystem() override = default;
0028 
0029   private slots:
0030     void slotChangeMagDownload(double mag);
0031     void slotAllWidgets(bool on);
0032     void slotAsteroidWidgets(bool on);
0033     void slotCometWidgets(bool on);
0034     void slotSelectPlanets();
0035     void slotApply();
0036 
0037   private:
0038     bool isDirty { false };
0039     KConfigDialog *m_ConfigDialog { nullptr };
0040 };