• 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
  • render
  • gpsinfo
GpsInfo.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 2011 Thibaut Gridel <tgridel@free.fr>
9 //
10 
11 //
12 // This class is a render plugin to display various Position Tracking info.
13 //
14 
15 #ifndef MARBLEGPSINFO_H
16 #define MARBLEGPSINFO_H
17 
18 #include <QObject>
19 #include <QHash>
20 
21 #include "AbstractFloatItem.h"
22 
23 #include "ui_GpsInfoPlugin.h"
24 
25 namespace Marble
26 {
27 
28 class GeoDataCoordinates;
29 class WidgetGraphicsItem;
30 class MarbleLocale;
31 
37 class GpsInfo : public AbstractFloatItem
38 {
39  Q_OBJECT
40  Q_PLUGIN_METADATA( IID "org.kde.edu.marble.GpsInfo" )
41  Q_INTERFACES( Marble::RenderPluginInterface )
42  MARBLE_PLUGIN( GpsInfo )
43 
44  public:
45  GpsInfo();
46  explicit GpsInfo( const MarbleModel *marbleModel );
47  ~GpsInfo();
48 
49  QStringList backendTypes() const;
50 
51  QString name() const;
52 
53  QString guiString() const;
54 
55  QString nameId() const;
56 
57  QString version() const;
58 
59  QString description() const;
60 
61  QString copyrightYears() const;
62 
63  QList<PluginAuthor> pluginAuthors() const;
64 
65  QIcon icon () const;
66 
67  void initialize ();
68 
69  bool isInitialized () const;
70 
71  void forceRepaint();
72 
73  private slots:
74  void updateLocation( GeoDataCoordinates coordinates, qreal speed);
75 
76  private:
77  MarbleLocale* m_locale;
78  Ui::GpsInfoPlugin m_widget;
79  WidgetGraphicsItem* m_widgetItem;
80 };
81 
82 }
83 
84 #endif
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::RenderPluginInterface
The class that specifies the Marble layer interface of a plugin.
Definition: RenderPluginInterface.h:30
Marble::GpsInfo
The class that displays Position Tracking info.
Definition: GpsInfo.h:37
Marble::GpsInfo::icon
QIcon icon() const
Returns an icon for the plugin.
Definition: GpsInfo.cpp:84
Marble::GpsInfo::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: GpsInfo.cpp:78
AbstractFloatItem.h
Marble::GpsInfo::guiString
QString guiString() const
String that should be displayed in GUI.
Definition: GpsInfo.cpp:53
Marble::GpsInfo::~GpsInfo
~GpsInfo()
Definition: GpsInfo.cpp:39
Marble::GpsInfo::copyrightYears
QString copyrightYears() const
Definition: GpsInfo.cpp:73
Marble::AbstractFloatItem
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:48
Marble::GpsInfo::initialize
void initialize()
Definition: GpsInfo.cpp:89
Marble::WidgetGraphicsItem
Definition: WidgetGraphicsItem.h:28
Marble::MarbleLocale
A class that contains all localization stuff for Marble.
Definition: MarbleLocale.h:31
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
Marble::GpsInfo::version
QString version() const
Definition: GpsInfo.cpp:63
Marble::GpsInfo::GpsInfo
GpsInfo()
Definition: GpsInfo.cpp:26
Marble::GpsInfo::name
QString name() const
Returns the user-visible name of the plugin.
Definition: GpsInfo.cpp:48
Marble::GpsInfo::description
QString description() const
Returns a user description of the plugin.
Definition: GpsInfo.cpp:68
Marble::GpsInfo::isInitialized
bool isInitialized() const
Definition: GpsInfo.cpp:109
Marble::GpsInfo::forceRepaint
void forceRepaint()
Marble::GpsInfo::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: GpsInfo.cpp:58
Marble::RenderPlugin::marbleModel
const MarbleModel * marbleModel() const
Access to the MarbleModel.
Definition: RenderPlugin.cpp:81
Marble::GpsInfo::backendTypes
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: GpsInfo.cpp:43
MARBLE_PLUGIN
#define MARBLE_PLUGIN(T)
Definition: RenderPlugin.h:337
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 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