1 /*
2     SPDX-FileCopyrightText: 2008 Jerome SONRIER <jsid@emor3j.fr.eu.org>
3 
4     SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ui_opsxplanet.h"
10 
11 class KStars;
12 
13 class OpsXplanet : public QFrame, public Ui::OpsXplanet
14 {
15     Q_OBJECT
16 
17   public:
18     explicit OpsXplanet(KStars *_ks);
19     virtual ~OpsXplanet() override = default;
20 
21   private:
22     KStars *ksw { nullptr };
23 
24     QString XPlanetShareDirectory();
25 
26   private slots:
27     void showXPlanetMapsDirectory();
28     void slotConfigFileWidgets(bool on);
29     void slotStarmapFileWidgets(bool on);
30     void slotArcFileWidgets(bool on);
31     void slotLabelWidgets(bool on);
32     void slotMarkerFileWidgets(bool on);
33     void slotMarkerBoundsWidgets(bool on);
34     void slotProjectionWidgets(int index);
35     void slotBackgroundWidgets(bool on);
36     void toggleXPlanetInternal();
37     void slotSelectConfigFile();
38     void slotSelectStarMapFile();
39     void slotSelectArcFile();
40 };
41