Marble

SunControlWidget.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2008 David Roberts <dvdr18@gmail.com>
4// SPDX-FileCopyrightText: 2008 Inge Wallin <inge@lysator.liu.se>
5// SPDX-FileCopyrightText: 2010 Harshit Jain <hjain.itbhu@gmail.com>
6//
7
8#ifndef MARBLE_SUNCONTROLWIDGET_H
9#define MARBLE_SUNCONTROLWIDGET_H
10
11#include <QDialog>
12
13#include "marble_export.h"
14
15namespace Ui
16{
17class SunControlWidget;
18}
19
20namespace Marble
21{
22class MarbleWidget;
23
24class MARBLE_EXPORT SunControlWidget : public QDialog
25{
26 Q_OBJECT
27
28public:
29 explicit SunControlWidget(MarbleWidget *marbleWidget, QWidget *parent = nullptr);
30 ~SunControlWidget() override;
31 void setSunShading(bool);
32
33private Q_SLOTS:
34 void apply();
35
36Q_SIGNALS:
37 void showSun(bool show);
38 void isLockedToSubSolarPoint(bool show);
39 void isSubSolarPointIconVisible(bool show);
40
41protected:
42 Q_DISABLE_COPY(SunControlWidget)
43
44 void showEvent(QShowEvent *event) override;
45
46 Ui::SunControlWidget *const m_uiWidget;
47 MarbleWidget *const m_marbleWidget;
48 QString m_shadow;
49};
50
51}
52
53#endif
KGuiItem apply()
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.