Marble
7#include "GeoSceneGroup.h"
9#include "MarbleDebug.h"
11#include "GeoSceneProperty.h"
12#include "GeoSceneTypes.h"
17GeoSceneGroup::GeoSceneGroup(
const QString& name )
22GeoSceneGroup::~GeoSceneGroup()
24 qDeleteAll( m_properties );
27bool GeoSceneGroup::propertyAvailable(
const QString& name,
bool& available )
const
31 for (; it != end; ++it) {
32 if ( (*it)->name() == name ) {
33 available = (*it)->available();
43bool GeoSceneGroup::setPropertyValue(
const QString& name,
bool value )
47 for (; it != end; ++it) {
48 if ( (*it)->name() == name ) {
49 (*it)->setValue( value );
50 emit valueChanged( name, value );
58bool GeoSceneGroup::propertyValue(
const QString& name,
bool& value )
const
62 for (; it != end; ++it) {
63 if ( (*it)->name() == name ) {
64 value = (*it)->value();
83 while (it != m_properties.end()) {
85 if ( currentProperty->name() == property->name() ) {
86 delete currentProperty;
87 m_properties.erase(it);
95 m_properties.append( property );
98 connect ( property, SIGNAL(valueChanged(
QString,
bool)),
99 SIGNAL(valueChanged(
QString,
bool)) );
100 emit valueChanged( property->name(), property->value() );
109 for (; it != end; ++it) {
110 if ( (*it)->name() == name ) {
121GeoSceneProperty* GeoSceneGroup::property(
const QString& name )
123 return const_cast<GeoSceneProperty*
>
124 (
static_cast<GeoSceneGroup
const *
>( this )->property( name ));
135 result.
reserve(m_properties.size());
137 for (
const GeoSceneProperty *property: m_properties ) {
144QString GeoSceneGroup::name()
const
149const char *GeoSceneGroup::nodeType()
const
151 return GeoSceneTypes::GeoSceneGroupType;
156#include "moc_GeoSceneGroup.cpp"
Settings property within a GeoScene document.
QString name(StandardShortcut id)
Binds a QML item to a specific geodetic location in screen coordinates.
void reserve(qsizetype size)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.