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, public GeoNode
25{
26 Q_OBJECT
27
28public:
29 explicit GeoSceneProperty(const QString &name);
30 const char *nodeType() const override;
31
32 QString name() const;
33 bool available() const;
34 void setAvailable(bool available);
35 bool defaultValue() const;
36 void setDefaultValue(bool defaultValue);
37 bool value() const;
38 void setValue(bool value);
39
40Q_SIGNALS:
41 void valueChanged(const QString &, bool);
42
43private:
44 // FIXME: d-pointerfy
45
46 QString m_name;
47 bool m_available;
48 bool m_defaultValue;
49 bool m_value;
50};
51
52}
53
54#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 Nov 29 2024 11:55:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.