Marble

GeoSceneSettings.h
1 /*
2  Copyright (C) 2008 Torsten Rahn <[email protected]>
3 
4  This file is part of the KDE project
5 
6  This library is free software you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  aint with this library see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef MARBLE_GEOSCENESETTINGS_H
23 #define MARBLE_GEOSCENESETTINGS_H
24 
25 #include <QObject>
26 #include <QVector>
27 
28 #include <geodata_export.h>
29 
30 #include "GeoDocument.h"
31 
32 class QString;
33 
34 namespace Marble
35 {
36 
37 class GeoSceneProperty;
38 class GeoSceneGroup;
39 
40 class GeoSceneSettingsPrivate;
41 
45 class GEODATA_EXPORT GeoSceneSettings : public QObject,
46  public GeoNode
47 {
48  Q_OBJECT
49 
50  public:
52  ~GeoSceneSettings() override;
53  const char* nodeType() const override;
54 
62  bool propertyAvailable( const QString& name, bool& available ) const;
63 
71  bool setPropertyValue( const QString& name, bool value );
72 
80  bool propertyValue( const QString& name, bool& value ) const;
81 
85  QVector<GeoSceneProperty*> allProperties();
86 
90  QVector<const GeoSceneProperty*> allProperties() const;
91 
96  void addGroup( GeoSceneGroup* group );
97 
102  const GeoSceneGroup* group( const QString& name ) const;
103  GeoSceneGroup* group( const QString& name );
104 
109  void addProperty( GeoSceneProperty* property );
110 
115  const GeoSceneProperty* property( const QString& name ) const;
116  GeoSceneProperty* property( const QString& name );
117 
124  QVector<GeoSceneProperty*> rootProperties();
125 
126  Q_SIGNALS:
127  void valueChanged( const QString&, bool );
128 
129  private:
130  Q_DISABLE_COPY( GeoSceneSettings )
131  GeoSceneSettingsPrivate * const d;
132 };
133 
134 }
135 
136 #endif
Settings of a GeoScene document.
Settings property within a GeoScene document.
Binds a QML item to a specific geodetic location in screen coordinates.
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:49
Group inside the settings of a GeoScene document.
Definition: GeoSceneGroup.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 23:20:16 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.