#include <MarbleNavigator.h>
A widget class that contains simple controls for a MarbleWidget.
This widget lets the user control an instance of MarbleWidget. The user can control panning and zooming as well as returning to a predefined view called the 'Home' position. You cannot change the Home position from the MarbleNavigator, though.
- See also
- MarbleWidget
-
MarbleControlBox
Definition at line 52 of file MarbleNavigator.h.
Marble::MarbleNavigator::MarbleNavigator |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Marble::MarbleNavigator::~MarbleNavigator |
( |
| ) |
|
void Marble::MarbleNavigator::changeZoom |
( |
int |
zoom | ) |
|
|
slot |
Sets the value of the slider.
- Parameters
-
This slot should be called when the zoom value is changed from the widget itself, e.g. by using the scroll wheel. It sets the value of the slider, but nothing more. In particular it doesn't emit the zoomChanged signal.
Definition at line 77 of file MarbleNavigator.cpp.
void Marble::MarbleNavigator::goHome |
( |
| ) |
|
|
signal |
Signal emitted when the Home button has been pressed.
int Marble::MarbleNavigator::minimumZoom |
( |
| ) |
const |
Return the minimum zoom level set in the widget.
- Returns
- the minimum zoom level set in the widget.
Definition at line 71 of file MarbleNavigator.cpp.
void Marble::MarbleNavigator::moveDown |
( |
| ) |
|
|
signal |
Signal emitted when the Move Down button has been pressed.
void Marble::MarbleNavigator::moveLeft |
( |
| ) |
|
|
signal |
Signal emitted when the Move Left button has been pressed.
void Marble::MarbleNavigator::moveRight |
( |
| ) |
|
|
signal |
Signal emitted when the Move Right button has been pressed.
void Marble::MarbleNavigator::moveUp |
( |
| ) |
|
|
signal |
Signal emitted when the Move Up button has been pressed.
void Marble::MarbleNavigator::resizeEvent |
( |
QResizeEvent * |
| ) |
|
|
protected |
void Marble::MarbleNavigator::zoomChanged |
( |
int |
zoom | ) |
|
|
signal |
Signal emitted when the zoom slider has been moved.
- Parameters
-
void Marble::MarbleNavigator::zoomIn |
( |
| ) |
|
|
signal |
Signal emitted when the Zoom In button has been pressed.
void Marble::MarbleNavigator::zoomOut |
( |
| ) |
|
|
signal |
Signal emitted when the Zoom Out button has been pressed.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.