Marble

GeoSceneProperty.h
1/*
2 SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef MARBLE_GEOSCENEPROPERTY_H
8#define MARBLE_GEOSCENEPROPERTY_H
9
10#include <QObject>
11#include <QString>
12
13#include <geodata_export.h>
14
15#include "GeoDocument.h"
16
17namespace Marble
18{
19
20/**
21 * @short Settings property within a GeoScene document.
22 */
23
24class GEODATA_EXPORT GeoSceneProperty : public QObject,
25 public GeoNode
26{
27 Q_OBJECT
28
29 public:
30 explicit GeoSceneProperty( const QString& name );
31 const char* nodeType() const override;
32
33 QString name() const;
34 bool available() const;
35 void setAvailable( bool available );
36 bool defaultValue() const;
37 void setDefaultValue( bool defaultValue );
38 bool value() const;
39 void setValue( bool value );
40
41 Q_SIGNALS:
42 void valueChanged( const QString&, bool );
43
44 private:
45 // FIXME: d-pointerfy
46
47 QString m_name;
48 bool m_available;
49 bool m_defaultValue;
50 bool m_value;
51};
52
53}
54
55#endif
A shared base class for all classes that are mapped to a specific tag (ie.
Definition GeoDocument.h:35
Settings property within a GeoScene document.
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 Fri Jun 21 2024 12:00:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.