• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • scene
GeoSceneItem.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 Torsten Rahn <rahn@kde.org>
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 #include "GeoSceneItem.h"
23 
24 #include "GeoSceneIcon.h"
25 #include "GeoSceneTypes.h"
26 
27 namespace Marble
28 {
29 
30 GeoSceneItem::GeoSceneItem( const QString& name )
31  : m_icon(new GeoSceneIcon),
32  m_name( name ),
33  m_text(),
34  m_connectTo(),
35  m_checkable( false ),
36  m_spacing( 12 )
37 {
38 }
39 
40 GeoSceneItem::~GeoSceneItem()
41 {
42  delete m_icon;
43 }
44 
45 const char* GeoSceneItem::nodeType() const
46 {
47  return GeoSceneTypes::GeoSceneItemType;
48 }
49 
50 const GeoSceneIcon* GeoSceneItem::icon() const
51 {
52  return m_icon;
53 }
54 
55 GeoSceneIcon* GeoSceneItem::icon()
56 {
57  return m_icon;
58 }
59 
60 QString GeoSceneItem::name() const
61 {
62  return m_name;
63 }
64 
65 QString GeoSceneItem::text() const
66 {
67  return m_text;
68 }
69 
70 void GeoSceneItem::setText( const QString& text )
71 {
72  m_text = text;
73 }
74 
75 bool GeoSceneItem::checkable() const
76 {
77  return m_checkable;
78 }
79 
80 void GeoSceneItem::setCheckable( bool checkable )
81 {
82  m_checkable = checkable;
83 }
84 
85 QString GeoSceneItem::connectTo() const
86 {
87  return m_connectTo;
88 }
89 
90 void GeoSceneItem::setConnectTo( const QString& connectTo )
91 {
92  m_connectTo = connectTo;
93 }
94 
95 int GeoSceneItem::spacing() const
96 {
97  return m_spacing;
98 }
99 
100 void GeoSceneItem::setSpacing( int spacing )
101 {
102  m_spacing = spacing;
103 }
104 
105 }
GeoSceneTypes.h
Marble::GeoSceneIcon
Icon properties of a GeoScene document.
Definition: GeoSceneIcon.h:38
Marble::GeoSceneItem::icon
const GeoSceneIcon * icon() const
Definition: GeoSceneItem.cpp:50
GeoSceneItem.h
Marble::GeoSceneItem::~GeoSceneItem
~GeoSceneItem()
Definition: GeoSceneItem.cpp:40
Marble::GeoSceneTypes::GeoSceneItemType
const char * GeoSceneItemType
Definition: GeoSceneTypes.cpp:24
Marble::GeoSceneItem::text
QString text() const
Definition: GeoSceneItem.cpp:65
Marble::GeoSceneItem::setText
void setText(const QString &text)
Definition: GeoSceneItem.cpp:70
Marble::GeoSceneItem::GeoSceneItem
GeoSceneItem(const QString &name)
Definition: GeoSceneItem.cpp:30
Marble::GeoSceneItem::setCheckable
void setCheckable(bool checkable)
Definition: GeoSceneItem.cpp:80
Marble::GeoSceneItem::name
QString name() const
Definition: GeoSceneItem.cpp:60
QString
Marble::GeoSceneItem::nodeType
virtual const char * nodeType() const
Definition: GeoSceneItem.cpp:45
Marble::GeoSceneItem::setConnectTo
void setConnectTo(const QString &text)
Definition: GeoSceneItem.cpp:90
Marble::GeoSceneItem::connectTo
QString connectTo() const
Definition: GeoSceneItem.cpp:85
Marble::GeoSceneItem::spacing
int spacing() const
Definition: GeoSceneItem.cpp:95
Marble::GeoSceneItem::checkable
bool checkable() const
Definition: GeoSceneItem.cpp:75
GeoSceneIcon.h
Marble::GeoSceneItem::setSpacing
void setSpacing(int spacing)
Definition: GeoSceneItem.cpp:100
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal