• 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
GeoSceneDocument.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2007 Murad Tagirov <tmurad@gmail.com>
3  Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 
5  This file is part of the KDE project
6 
7  This library is free software you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  aint with this library see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 // Own
24 #include "GeoSceneDocument.h"
25 
26 // Marble
27 #include "GeoSceneHead.h"
28 #include "GeoSceneMap.h"
29 #include "GeoSceneLegend.h"
30 #include "GeoSceneSettings.h"
31 #include "GeoSceneTypes.h"
32 
33 namespace Marble
34 {
35 
36 class GeoSceneDocumentPrivate
37 {
38  public:
39  GeoSceneDocumentPrivate()
40  : m_head(new GeoSceneHead),
41  m_map(new GeoSceneMap),
42  m_settings(new GeoSceneSettings),
43  m_legend(new GeoSceneLegend)
44  {
45  }
46 
47  ~GeoSceneDocumentPrivate()
48  {
49  delete m_head;
50  delete m_map;
51  delete m_settings;
52  delete m_legend;
53  }
54 
55  const char* nodeType() const
56  {
57  return GeoSceneTypes::GeoSceneDocumentType;
58  }
59 
60  GeoSceneHead* m_head;
61  GeoSceneMap* m_map;
62  GeoSceneSettings* m_settings;
63  GeoSceneLegend* m_legend;
64 };
65 
66 
67 GeoSceneDocument::GeoSceneDocument()
68  : GeoDocument(),
69  d( new GeoSceneDocumentPrivate )
70 {
71  // Establish connection of property changes to the outside, e.g. the LegendBrowser
72  connect ( d->m_settings, SIGNAL(valueChanged(QString,bool)),
73  SIGNAL(valueChanged(QString,bool)) );
74 }
75 
76 GeoSceneDocument::~GeoSceneDocument()
77 {
78  delete d;
79 }
80 
81 const char* GeoSceneDocument::nodeType() const
82 {
83  return d->nodeType();
84 }
85 
86 const GeoSceneHead* GeoSceneDocument::head() const
87 {
88  return d->m_head;
89 }
90 
91 GeoSceneHead* GeoSceneDocument::head()
92 {
93  return d->m_head;
94 }
95 
96 const GeoSceneMap* GeoSceneDocument::map() const
97 {
98  return d->m_map;
99 }
100 
101 GeoSceneMap* GeoSceneDocument::map()
102 {
103  return d->m_map;
104 }
105 
106 const GeoSceneSettings* GeoSceneDocument::settings() const
107 {
108  return d->m_settings;
109 }
110 
111 GeoSceneSettings* GeoSceneDocument::settings()
112 {
113  return d->m_settings;
114 }
115 
116 const GeoSceneLegend* GeoSceneDocument::legend() const
117 {
118  return d->m_legend;
119 }
120 
121 GeoSceneLegend* GeoSceneDocument::legend()
122 {
123  return d->m_legend;
124 }
125 
126 }
127 
128 #include "GeoSceneDocument.moc"
Marble::GeoSceneDocument::valueChanged
void valueChanged(QString, bool)
GeoSceneHead.h
GeoSceneTypes.h
Marble::GeoSceneSettings
Settings of a GeoScene document.
Definition: GeoSceneSettings.h:44
Marble::GeoSceneDocument::map
const GeoSceneMap * map() const
Definition: GeoSceneDocument.cpp:96
Marble::GeoSceneDocument::nodeType
virtual const char * nodeType() const
Definition: GeoSceneDocument.cpp:81
Marble::GeoSceneHead
General properties and identifiers of a GeoScene document.
Definition: GeoSceneHead.h:42
Marble::GeoSceneTypes::GeoSceneDocumentType
const char * GeoSceneDocumentType
Please keep alphabetic order to prevent mess.
Definition: GeoSceneTypes.cpp:18
GeoSceneDocument.h
Marble::GeoSceneMap
Map layer structure of a GeoScene document.
Definition: GeoSceneMap.h:44
Marble::GeoSceneDocument::legend
const GeoSceneLegend * legend() const
Definition: GeoSceneDocument.cpp:116
Marble::GeoSceneLegend
Legend of a GeoScene document.
Definition: GeoSceneLegend.h:41
QString
Marble::GeoSceneDocument::GeoSceneDocument
GeoSceneDocument()
Definition: GeoSceneDocument.cpp:67
Marble::GeoSceneDocument::head
const GeoSceneHead * head() const
Definition: GeoSceneDocument.cpp:86
GeoSceneSettings.h
Marble::GeoDocument
A shared base class between GeoDataDocument/GeoSourceDocument.
Definition: GeoDocument.h:42
Marble::GeoSceneDocument::~GeoSceneDocument
~GeoSceneDocument()
Definition: GeoSceneDocument.cpp:76
GeoSceneLegend.h
QObject::connect
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
GeoSceneMap.h
Marble::GeoSceneDocument::settings
const GeoSceneSettings * settings() const
Definition: GeoSceneDocument.cpp:106
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