Marble

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

KDE's Doxygen guidelines are available online.