• 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
  • plugins
  • declarative
Placemark.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_DECLARATIVE_PLACEMARK_H
12 #define MARBLE_DECLARATIVE_PLACEMARK_H
13 
14 #include "Coordinate.h"
15 
16 #include "GeoDataPlacemark.h"
17 
18 #include <QObject>
19 #include <QAbstractListModel>
20 #if QT_VERSION < 0x050000
21  #include <QDeclarativeComponent>
22 #else
23  #include <QQmlComponent>
24 #endif
25 
29 class Placemark : public QObject
30 {
31  Q_OBJECT
32 
33  Q_PROPERTY( Coordinate* coordinate READ coordinate NOTIFY coordinateChanged )
34  Q_PROPERTY( QString name READ name NOTIFY nameChanged )
35 
36 public:
38  explicit Placemark( QObject *parent = 0 );
39 
40  void setGeoDataPlacemark( const Marble::GeoDataPlacemark &placemark );
41 
42  Coordinate* coordinate();
43 
44  QString name() const;
45 
46 Q_SIGNALS:
47  void coordinateChanged();
48 
49  void nameChanged();
50 
51 private:
52  Marble::GeoDataPlacemark m_placemark;
53 
54  Coordinate m_coordinate;
55 };
56 
57 QML_DECLARE_TYPE( Placemark )
58 
59 #endif // MARBLE_DECLARATIVE_PLACEMARK_H
Placemark::coordinate
Coordinate * coordinate()
Placemark::setGeoDataPlacemark
void setGeoDataPlacemark(const Marble::GeoDataPlacemark &placemark)
Definition: Placemark.cpp:19
Placemark::coordinateChanged
void coordinateChanged()
Coordinate
Represents a coordinate with the properties of a name and coordinates.
Definition: Coordinate.h:28
QObject
QString
GeoDataPlacemark.h
Placemark::nameChanged
void nameChanged()
Coordinate.h
Placemark::name
QString name() const
Placemark
Wraps a GeoDataPlacemark for QML access.
Definition: Placemark.qml:11
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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