Marble

MarbleNavigator.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 2005-2007 Torsten Rahn <[email protected]>
9 // Copyright 2007 Inge Wallin <[email protected]>
10 //
11 
12 //
13 // This widget is a control box for the Marble widget.
14 //
15 
16 #ifndef MARBLE_MARBLENAVIGATOR_H
17 #define MARBLE_MARBLENAVIGATOR_H
18 
19 
20 #include <QWidget>
21 
22 #include "marble_export.h"
23 
24 
32 namespace Marble
33 {
34 
35 class MarbleNavigatorPrivate;
36 
49 class MARBLE_EXPORT MarbleNavigator : public QWidget
50 {
51  Q_OBJECT
52 
53  public:
58  explicit MarbleNavigator(QWidget *parent = nullptr);
59  ~MarbleNavigator() override;
60 
65  int minimumZoom() const;
66 
67  Q_SIGNALS:
71  void goHome();
75  void zoomIn();
79  void zoomOut();
84  void zoomChanged(int zoom);
85 
89  void moveLeft();
93  void moveRight();
97  void moveUp();
101  void moveDown();
102  //void centerOn(const QModelIndex&);
103 
104  public Q_SLOTS:
114  void changeZoom(int zoom);
115 
116  protected:
123  void resizeEvent ( QResizeEvent * ) override;
124 
125  private:
126  Q_DISABLE_COPY( MarbleNavigator )
127  MarbleNavigatorPrivate * const d;
128 };
129 
130 }
131 
132 #endif
Binds a QML item to a specific geodetic location in screen coordinates.
A widget class that contains simple controls for a MarbleWidget.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 22:32:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.