marble/src
MarbleNavigator Class Reference
#include <MarbleNavigator.h>

Detailed Description
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
Definition at line 49 of file MarbleNavigator.h.
Public Slots | |
| void | changeZoom (int zoom) |
Signals | |
| void | goHome () |
| void | zoomIn () |
| void | zoomOut () |
| void | zoomChanged (int zoom) |
| void | moveLeft () |
| void | moveRight () |
| void | moveUp () |
| void | moveDown () |
Public Member Functions | |
| MarbleNavigator (QWidget *parent=0) | |
| ~MarbleNavigator () | |
| int | minimumZoom () const |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *) |
Constructor & Destructor Documentation
| MarbleNavigator::MarbleNavigator | ( | QWidget * | parent = 0 |
) |
Construct a new MarbleNavigator.
- Parameters:
-
parent the parent widget
Definition at line 32 of file MarbleNavigator.cpp.
| MarbleNavigator::~MarbleNavigator | ( | ) |
Definition at line 62 of file MarbleNavigator.cpp.
Member Function Documentation
| int MarbleNavigator::minimumZoom | ( | ) | const |
Return the minimum zoom level set in the widget.
- Returns:
- the minimum zoom level set in the widget.
Definition at line 68 of file MarbleNavigator.cpp.
| void MarbleNavigator::goHome | ( | ) | [signal] |
Signal emitted when the Home button has been pressed.
| void MarbleNavigator::zoomIn | ( | ) | [signal] |
Signal emitted when the Zoom In button has been pressed.
| void MarbleNavigator::zoomOut | ( | ) | [signal] |
Signal emitted when the Zoom Out button has been pressed.
| void MarbleNavigator::zoomChanged | ( | int | zoom | ) | [signal] |
Signal emitted when the zoom slider has been moved.
- Parameters:
-
zoom The new zoom value.
| void MarbleNavigator::moveLeft | ( | ) | [signal] |
Signal emitted when the Move Left button has been pressed.
| void MarbleNavigator::moveRight | ( | ) | [signal] |
Signal emitted when the Move Right button has been pressed.
| void MarbleNavigator::moveUp | ( | ) | [signal] |
Signal emitted when the Move Up button has been pressed.
| void MarbleNavigator::moveDown | ( | ) | [signal] |
Signal emitted when the Move Down button has been pressed.
| void MarbleNavigator::changeZoom | ( | int | zoom | ) | [slot] |
Sets the value of the slider.
- Parameters:
-
zoom The new zoom value.
Definition at line 74 of file MarbleNavigator.cpp.
| void MarbleNavigator::resizeEvent | ( | QResizeEvent * | ) | [protected] |
Reimplementation of the resizeEvent() of the widget.
If the MarbleNavigator gets shrunk enough, the slider will be hidden, leaving only the Zoom Up and Zoom Down buttons.
Reimplemented from QWidget.
Definition at line 83 of file MarbleNavigator.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference