Marble

GeoSceneItem.h
1 /*
2  SPDX-FileCopyrightText: 2008 Torsten Rahn <[email protected]>
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 
14 namespace Marble
15 {
16 
17 class GeoSceneIcon;
18 
19 /**
20  * @short The section item in a legend of a GeoScene document.
21  */
22 
23 class GEODATA_EXPORT GeoSceneItem : public GeoNode
24 {
25  public:
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 
48  private:
49  Q_DISABLE_COPY( GeoSceneItem )
50 
51  GeoSceneIcon* 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:34
Binds a QML item to a specific geodetic location in screen coordinates.
The section item in a legend of a GeoScene document.
Definition: GeoSceneItem.h:23
Icon properties of a GeoScene document.
Definition: GeoSceneIcon.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 04:07:49 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.