• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • MarbleNavigator
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
Marble::MarbleNavigator Class Reference

#include <MarbleNavigator.h>

Inheritance diagram for Marble::MarbleNavigator:
Inheritance graph
[legend]

Public Slots

void changeZoom (int zoom)
 

Signals

void goHome ()
 
void moveDown ()
 
void moveLeft ()
 
void moveRight ()
 
void moveUp ()
 
void zoomChanged (int zoom)
 
void zoomIn ()
 
void zoomOut ()
 

Public Member Functions

 MarbleNavigator (QWidget *parent=0)
 
 ~MarbleNavigator ()
 
int minimumZoom () const
 

Protected Member Functions

void resizeEvent (QResizeEvent *)
 

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
MarbleControlBox

Definition at line 52 of file MarbleNavigator.h.

Constructor & Destructor Documentation

Marble::MarbleNavigator::MarbleNavigator ( QWidget *  parent = 0)
explicit

Construct a new MarbleNavigator.

Parameters
parentthe parent widget

Definition at line 35 of file MarbleNavigator.cpp.

Marble::MarbleNavigator::~MarbleNavigator ( )

Definition at line 65 of file MarbleNavigator.cpp.

Member Function Documentation

void Marble::MarbleNavigator::changeZoom ( int  zoom)
slot

Sets the value of the slider.

Parameters
zoomThe new zoom value.

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

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.

Definition at line 86 of file MarbleNavigator.cpp.

void Marble::MarbleNavigator::zoomChanged ( int  zoom)
signal

Signal emitted when the zoom slider has been moved.

Parameters
zoomThe new zoom value.
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:
  • MarbleNavigator.h
  • MarbleNavigator.cpp
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.

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