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

0001 /*
0002     SPDX-FileCopyrightText: 2005 Jason Harris <jharris@30doradus.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "ui_opsguides.h"
0010 
0011 class KConfigDialog;
0012 
0013 /**
0014  * @class OpsGuides
0015  * The guide page enables to user to select to turn on and off guide overlays such as
0016  * constellation lines, boundaries, flags..etc.
0017  */
0018 class OpsGuides : public QFrame, public Ui::OpsGuides
0019 {
0020         Q_OBJECT
0021 
0022     public:
0023         explicit OpsGuides();
0024         virtual ~OpsGuides() override = default;
0025 
0026     private slots:
0027         void slotApply();
0028         void slotToggleConstellOptions(bool state);
0029         void slotToggleConstellationArt(bool state);
0030         void slotToggleMilkyWayOptions(bool state);
0031         void slotToggleOpaqueGround(bool state);
0032         void slotToggleAutoSelectGrid(bool state);
0033 
0034     private:
0035         KConfigDialog *m_ConfigDialog { nullptr };
0036         bool isDirty { false };
0037 };
0038