1 /* 2 SPDX-FileCopyrightText: 2004 Jason Harris <jharris@30doradus.org> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #pragma once 8 9 #include "ui_opscatalog.h" 10 11 class KStars; 12 class QListWidgetItem; 13 class KConfigDialog; 14 15 /** 16 * @class OpsCatalog 17 * The Catalog page for the Options window. This page allows the user 18 * to modify display of the major object catalogs in KStars: 19 * @li Hipparcos/Tycho Star Catalog 20 * 21 * DSO catalog control is deffered to `CatacalogsDBUI`. 22 * 23 * @short Catalog page of the Options window. 24 * @author Jason Harris 25 * @version 1.0 26 */ 27 class OpsCatalog : public QFrame, public Ui::OpsCatalog 28 { 29 Q_OBJECT 30 31 public: 32 explicit OpsCatalog(); 33 virtual ~OpsCatalog() override = default; 34 35 private slots: 36 void slotStarWidgets(bool on); 37 void slotDeepSkyWidgets(bool on); 38 void slotApply(); 39 void slotCancel(); 40 41 private: 42 KConfigDialog *m_ConfigDialog{ nullptr }; 43 float m_StarDensity{ 0 }; 44 bool isDirty{ false }; 45 }; 46