• 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
  • lib
  • marble
NavigationWidget.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 2004-2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 // Copyright 2007 Thomas Zander <zander@kde.org>
11 // Copyright 2010 Bastian Holst <bastianholst@gmx.de>
12 //
13 
14 #ifndef MARBLE_NAVIGATIONWIDGET_H
15 #define MARBLE_NAVIGATIONWIDGET_H
16 
17 // Marble
18 #include "marble_export.h"
19 #include "MarbleGlobal.h"
20 
21 // Qt
22 #include <QWidget>
23 
24 class QModelIndex;
25 class QAbstractItemModel;
26 
27 namespace Marble
28 {
29 
30 class NavigationWidgetPrivate;
31 
32 class MarbleWidget;
33 class GeoDataPlacemark;
34 
35 class MARBLE_EXPORT NavigationWidget : public QWidget
36 {
37  Q_OBJECT
38 
39  public:
40  explicit NavigationWidget( QWidget *parent = 0, Qt::WindowFlags f = 0 );
41  ~NavigationWidget();
42 
47  void setMarbleWidget( MarbleWidget *widget );
48 
49  void search( const QString &searchTerm, SearchMode searchMode );
50 
51  Q_SIGNALS:
55  void goHome();
59  void zoomIn();
63  void zoomOut();
68  void zoomChanged( int zoom );
69 
73  void moveLeft();
77  void moveRight();
81  void moveUp();
85  void moveDown();
86 
87  void searchFinished();
88 
89  public Q_SLOTS:
90  void selectTheme( const QString & );
91 
101  void changeZoom( int zoom );
102 
106  void clearSearch();
107 
108  protected:
116  void resizeEvent( QResizeEvent * );
117 
118  private:
119  Q_PRIVATE_SLOT( d, void updateButtons( int ) )
120  Q_PRIVATE_SLOT( d, void mapCenterOnSignal( const QModelIndex & ) )
121  Q_PRIVATE_SLOT( d, void adjustForAnimation() )
122  Q_PRIVATE_SLOT( d, void adjustForStill() )
123  Q_PRIVATE_SLOT( d, void setSearchResult( QVector<GeoDataPlacemark*> locations ) )
124 
125  Q_DISABLE_COPY( NavigationWidget )
126 
127  NavigationWidgetPrivate * const d;
128 };
129 
130 }
131 
132 #endif
Marble::SearchMode
SearchMode
Search mode: Global (worldwide) versus area (local, regional) search.
Definition: MarbleGlobal.h:179
Marble::NavigationWidget
Definition: NavigationWidget.h:35
search
Definition: google-search.qml:12
QWidget
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:102
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
MarbleGlobal.h
QAbstractItemModel
marble_export.h
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
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