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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • plugins
  • declarative
Navigation.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_NAVIGATION_H
12 #define MARBLE_DECLARATIVE_NAVIGATION_H
13 
14 #include <QObject>
15 #if QT_VERSION < 0x050000
16  #include <QtDeclarative/qdeclarative.h>
17 #else
18  #include <QtQml/qqml.h>
19 #endif
20 
21 class QAbstractItemModel;
22 
23 class MarbleWidget;
24 class NavigationPrivate;
25 
26 class Navigation : public QObject
27 {
28  Q_OBJECT
29  Q_PROPERTY(MarbleWidget* map READ map WRITE setMap NOTIFY mapChanged)
30  Q_PROPERTY(bool guidanceModeEnabled READ guidanceModeEnabled WRITE setGuidanceModeEnabled NOTIFY guidanceModeEnabledChanged)
31  Q_PROPERTY(bool muted READ muted WRITE setMuted NOTIFY mutedChanged)
32  Q_PROPERTY(bool soundEnabled READ soundEnabled WRITE setSoundEnabled NOTIFY soundEnabledChanged)
33  Q_PROPERTY(QString speaker READ speaker WRITE setSpeaker NOTIFY speakerChanged)
34  Q_PROPERTY(QString nextInstructionText READ nextInstructionText NOTIFY nextInstructionTextChanged)
35  Q_PROPERTY(QString nextRoad READ nextRoad NOTIFY nextRoadChanged)
36  Q_PROPERTY(QString nextInstructionImage READ nextInstructionImage NOTIFY nextInstructionImageChanged)
37  Q_PROPERTY(qreal nextInstructionDistance READ nextInstructionDistance NOTIFY nextInstructionDistanceChanged)
38  Q_PROPERTY(qreal destinationDistance READ destinationDistance NOTIFY destinationDistanceChanged)
39  Q_PROPERTY(QString voiceNavigationAnnouncement READ voiceNavigationAnnouncement NOTIFY voiceNavigationAnnouncementChanged)
40  Q_PROPERTY(bool deviated READ deviated NOTIFY deviationChanged)
41 
42 public:
43  explicit Navigation( QObject* parent = 0 );
44 
45  ~Navigation();
46 
47  MarbleWidget* map();
48 
49  void setMap( MarbleWidget* widget );
50 
51  bool guidanceModeEnabled() const;
52 
53  void setGuidanceModeEnabled( bool enabled );
54 
55  bool muted() const;
56 
57  void setMuted(bool enabled);
58 
59  QString nextInstructionText() const;
60 
61  QString nextRoad() const;
62 
63  QString nextInstructionImage() const;
64 
65  qreal nextInstructionDistance() const;
66 
67  qreal destinationDistance() const;
68 
69  QString voiceNavigationAnnouncement() const;
70 
71  QString speaker() const;
72 
73  void setSpeaker( const QString &speaker );
74 
75  bool soundEnabled() const;
76 
77  void setSoundEnabled( bool soundEnabled );
78 
79  bool deviated() const;
80 
81 Q_SIGNALS:
82  void mapChanged();
83 
84  void guidanceModeEnabledChanged();
85 
86  void mutedChanged(bool arg);
87 
88  void nextInstructionTextChanged();
89 
90  void nextInstructionImageChanged();
91 
92  void nextInstructionDistanceChanged();
93 
94  void destinationDistanceChanged();
95 
96  void nextRoadChanged();
97 
98  void voiceNavigationAnnouncementChanged();
99 
100  void soundEnabledChanged();
101 
102  void speakerChanged();
103 
104  void deviationChanged();
105 
106 private Q_SLOTS:
107  void update();
108 
109 private:
110  NavigationPrivate* const d;
111 };
112 
113 #endif
Navigation::setSoundEnabled
void setSoundEnabled(bool soundEnabled)
Definition: Navigation.cpp:229
Navigation::nextInstructionTextChanged
void nextInstructionTextChanged()
Navigation::nextInstructionDistance
qreal nextInstructionDistance() const
Navigation::deviated
bool deviated() const
Navigation::nextInstructionImageChanged
void nextInstructionImageChanged()
Navigation::soundEnabled
bool soundEnabled() const
Navigation::setMap
void setMap(MarbleWidget *widget)
Definition: Navigation.cpp:111
Navigation::guidanceModeEnabledChanged
void guidanceModeEnabledChanged()
Navigation::map
MarbleWidget * map()
Navigation::destinationDistance
qreal destinationDistance() const
QObject
Navigation::nextInstructionDistanceChanged
void nextInstructionDistanceChanged()
Navigation::setMuted
void setMuted(bool enabled)
Definition: Navigation.cpp:159
Navigation::voiceNavigationAnnouncement
QString voiceNavigationAnnouncement() const
Navigation::guidanceModeEnabled
bool guidanceModeEnabled() const
Navigation::nextInstructionImage
QString nextInstructionImage() const
Navigation::deviationChanged
void deviationChanged()
Navigation::speaker
QString speaker() const
Navigation::soundEnabledChanged
void soundEnabledChanged()
QAbstractItemModel
Navigation::mapChanged
void mapChanged()
Navigation::destinationDistanceChanged
void destinationDistanceChanged()
Navigation
Definition: Navigation.qml:16
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
Navigation::nextRoad
QString nextRoad() const
Navigation::nextRoadChanged
void nextRoadChanged()
Navigation::mutedChanged
void mutedChanged(bool arg)
Navigation::setGuidanceModeEnabled
void setGuidanceModeEnabled(bool enabled)
Definition: Navigation.cpp:143
Navigation::voiceNavigationAnnouncementChanged
void voiceNavigationAnnouncementChanged()
Navigation::muted
bool muted() const
Navigation::nextInstructionText
QString nextInstructionText() const
Navigation::setSpeaker
void setSpeaker(const QString &speaker)
Definition: Navigation.cpp:219
Navigation::speakerChanged
void speakerChanged()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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