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

marble/src

MarbleNavigator Class Reference

#include <MarbleNavigator.h>

Inheritance diagram for MarbleNavigator:

Inheritance graph
[legend]

List of all members.


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 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.
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 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:
  • MarbleNavigator.h
  • MarbleNavigator.cpp

marble/src

Skip menu "marble/src"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal