File indexing completed on 2024-07-14 07:17:15

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_opscatalog.h"
0010 
0011 class KStars;
0012 class QListWidgetItem;
0013 class KConfigDialog;
0014 
0015 /**
0016  * @class OpsCatalog
0017  * The Catalog page for the Options window.  This page allows the user
0018  * to modify display of the major object catalogs in KStars:
0019  * @li Hipparcos/Tycho Star Catalog
0020  *
0021  * DSO catalog control is deffered to `CatacalogsDBUI`.
0022  *
0023  * @short Catalog page of the Options window.
0024  * @author Jason Harris
0025  * @version 1.0
0026  */
0027 class OpsCatalog : public QFrame, public Ui::OpsCatalog
0028 {
0029     Q_OBJECT
0030 
0031   public:
0032     explicit OpsCatalog();
0033     virtual ~OpsCatalog() override = default;
0034 
0035   private slots:
0036     void slotStarWidgets(bool on);
0037     void slotDeepSkyWidgets(bool on);
0038     void slotApply();
0039     void slotCancel();
0040 
0041   private:
0042     KConfigDialog *m_ConfigDialog{ nullptr };
0043     float m_StarDensity{ 0 };
0044     bool isDirty{ false };
0045 };