Marble

GeoSceneItem.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_GEOSCENEITEM_H
8#define MARBLE_GEOSCENEITEM_H
9
10#include <QString>
11
12#include "GeoDocument.h"
13
14namespace Marble
15{
16
17class GeoSceneIcon;
18
19/**
20 * @short The section item in a legend of a GeoScene document.
21 */
22
23class GEODATA_EXPORT GeoSceneItem : public GeoNode
24{
25public:
26 explicit GeoSceneItem(const QString &name);
27 ~GeoSceneItem() override;
28
29 const char *nodeType() const override;
30
31 QString name() const;
32
33 QString text() const;
34 void setText(const QString &text);
35
36 bool checkable() const;
37 void setCheckable(bool checkable);
38
39 QString connectTo() const;
40 void setConnectTo(const QString &text);
41
42 int spacing() const;
43 void setSpacing(int spacing);
44
45 const GeoSceneIcon *icon() const;
46 GeoSceneIcon *icon();
47
48private:
49 Q_DISABLE_COPY(GeoSceneItem)
50
51 GeoSceneIcon *const m_icon;
52
53 QString m_name;
54 QString m_text;
55 QString m_connectTo;
56
57 bool m_checkable;
58 int m_spacing;
59};
60
61}
62
63#endif
A shared base class for all classes that are mapped to a specific tag (ie.
Definition GeoDocument.h:35
Icon properties of a GeoScene document.
The section item in a legend of 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 Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.