• 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
CurrentLocationWidget.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 2010 Bastian Holst <bastianholst@gmx.de>
9 //
10 
11 #ifndef MARBLE_CURRENTLOCATIONWIDGET_H
12 #define MARBLE_CURRENTLOCATIONWIDGET_H
13 
14 // Marble
15 #include "marble_export.h"
16 #include "AutoNavigation.h"
17 
18 // Qt
19 #include <QWidget>
20 
21 namespace Marble
22 {
23 
24 class CurrentLocationWidgetPrivate;
25 
26 class GeoDataCoordinates;
27 class MarbleWidget;
28 class PositionProviderPlugin;
29 
30 class MARBLE_EXPORT CurrentLocationWidget : public QWidget
31 {
32  Q_OBJECT
33 
34  public:
35  explicit CurrentLocationWidget( QWidget *parent = 0, Qt::WindowFlags f = 0 );
36  ~CurrentLocationWidget();
37 
42  void setMarbleWidget( MarbleWidget *widget );
43 
44  AutoNavigation::CenterMode recenterMode() const;
45 
46  bool autoZoom() const;
47 
48  bool trackVisible() const;
49 
50  QString lastOpenPath() const;
51 
52  QString lastSavePath() const;
53 
54  public Q_SLOTS:
56  void setRecenterMode( int recenterMode );
57 
59  void setAutoZoom( bool activate );
60 
61  void setTrackVisible( bool visible );
62 
63  void setLastOpenPath( const QString &path );
64 
65  void setLastSavePath( const QString &path );
66 
67  private:
68  Q_DISABLE_COPY( CurrentLocationWidget )
69 
70  CurrentLocationWidgetPrivate * const d;
71 
72  Q_PRIVATE_SLOT( d, void receiveGpsCoordinates( const GeoDataCoordinates &in, qreal speed ) )
73  Q_PRIVATE_SLOT( d, void adjustPositionTrackingStatus( PositionProviderStatus status ) )
74  Q_PRIVATE_SLOT( d, void changePositionProvider( const QString &provider ) )
75  Q_PRIVATE_SLOT( d, void centerOnCurrentLocation() )
76 
77  Q_PRIVATE_SLOT( d, void trackPlacemark() )
78 
79 
83  Q_PRIVATE_SLOT( d, void updateRecenterComboBox( AutoNavigation::CenterMode centerMode ) )
84 
85 
89  Q_PRIVATE_SLOT( d, void updateAutoZoomCheckBox( bool autoZoom ) )
90 
91  Q_PRIVATE_SLOT( d, void updateActivePositionProvider( PositionProviderPlugin* ) )
92 
93  Q_PRIVATE_SLOT( d, void saveTrack() )
94  Q_PRIVATE_SLOT( d, void openTrack() )
95  Q_PRIVATE_SLOT( d, void clearTrack() )
96 };
97 
98 }
99 
100 #endif
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
QWidget
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
Marble::PositionProviderPlugin
The abstract class that provides position information.
Definition: PositionProviderPlugin.h:26
Marble::CurrentLocationWidget
Definition: CurrentLocationWidget.h:30
AutoNavigation.h
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
Marble::PositionProviderStatus
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
marble_export.h
Qt::WindowFlags
typedef WindowFlags
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
Marble::AutoNavigation::CenterMode
CenterMode
An enum type Represents which recentering method is selected.
Definition: AutoNavigation.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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