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

marble

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

#include <RoutingInputWidget.h>

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

Public Slots

void abortMapInputRequest ()
 
void findPlacemarks ()
 
void reloadBookmarks ()
 
void setTargetPosition (const GeoDataCoordinates &position, const QString &name=QString())
 

Signals

void activityRequest (RoutingInputWidget *)
 
void mapInputModeEnabled (RoutingInputWidget *, bool enabled)
 
void removalRequest (RoutingInputWidget *)
 
void searchFinished (RoutingInputWidget *)
 
void targetValidityChanged (bool targetValid)
 

Public Member Functions

 RoutingInputWidget (MarbleWidget *widget, int index, QWidget *parent=0)
 
 ~RoutingInputWidget ()
 
void clear ()
 
bool hasInput () const
 
bool hasTargetPosition () const
 
MarblePlacemarkModel * searchResultModel ()
 
void setIndex (int index)
 
void setProgressAnimation (const QVector< QIcon > &animation)
 
GeoDataCoordinates targetPosition () const
 

Detailed Description

Combines a line edit for input and a couple of buttons to let the user type in a search term, find according placemarks using the marble runner manager and store one of them as the current selection (target position)

Definition at line 39 of file RoutingInputWidget.h.

Constructor & Destructor Documentation

Marble::RoutingInputWidget::RoutingInputWidget ( MarbleWidget *  widget,
int  index,
QWidget *  parent = 0 
)
explicit

Constructor.

Definition at line 255 of file RoutingInputWidget.cpp.

Marble::RoutingInputWidget::~RoutingInputWidget ( )

Destructor.

Definition at line 299 of file RoutingInputWidget.cpp.

Member Function Documentation

void Marble::RoutingInputWidget::abortMapInputRequest ( )
slot

Cancel a started input request from the map.

Definition at line 400 of file RoutingInputWidget.cpp.

void Marble::RoutingInputWidget::activityRequest ( RoutingInputWidget *  )
signal

User requests to activate this widget.

void Marble::RoutingInputWidget::clear ( )

Remove target position and user input, if any.

Definition at line 423 of file RoutingInputWidget.cpp.

void Marble::RoutingInputWidget::findPlacemarks ( )
slot

Search for placemarks matching the current input text.

Does nothing if input is empty

Definition at line 350 of file RoutingInputWidget.cpp.

bool Marble::RoutingInputWidget::hasInput ( ) const

Returns false iff the input text is empty.

Definition at line 378 of file RoutingInputWidget.cpp.

bool Marble::RoutingInputWidget::hasTargetPosition ( ) const

Returns true if the user has selected a valid geo position.

See also
targetPosition

Definition at line 335 of file RoutingInputWidget.cpp.

void Marble::RoutingInputWidget::mapInputModeEnabled ( RoutingInputWidget *  ,
bool  enabled 
)
signal

User requests position input from the map.

void Marble::RoutingInputWidget::reloadBookmarks ( )
slot

Reload the bookmarks menu.

Definition at line 443 of file RoutingInputWidget.cpp.

void Marble::RoutingInputWidget::removalRequest ( RoutingInputWidget *  )
signal

User requests to remove this widget.

void Marble::RoutingInputWidget::searchFinished ( RoutingInputWidget *  )
signal

All runners are finished.

MarblePlacemarkModel * Marble::RoutingInputWidget::searchResultModel ( )

Returns the placemark model that contains search results.

Definition at line 361 of file RoutingInputWidget.cpp.

void Marble::RoutingInputWidget::setIndex ( int  index)

Change the data index in the route request model.

Definition at line 407 of file RoutingInputWidget.cpp.

void Marble::RoutingInputWidget::setProgressAnimation ( const QVector< QIcon > &  animation)

Set the progress animation to use.

Each icon in the vector is displayed sequentially to create the animation, the animation loops endlessly.

Definition at line 438 of file RoutingInputWidget.cpp.

void Marble::RoutingInputWidget::setTargetPosition ( const GeoDataCoordinates &  position,
const QString &  name = QString() 
)
slot

Set the target position to the given coordinates, eliminating any previously set positions.

See also
selectPlacemark hasTargetPosition

Definition at line 323 of file RoutingInputWidget.cpp.

GeoDataCoordinates Marble::RoutingInputWidget::targetPosition ( ) const

Returns the geoposition selected by the user, or a default constructed geoposition if hasTargetPosition returns false.

See also
hasTargetPosition selectPlacemark

Definition at line 341 of file RoutingInputWidget.cpp.

void Marble::RoutingInputWidget::targetValidityChanged ( bool  targetValid)
signal

hasTargetPosition changed because of selecting a placemark or changing the search term


The documentation for this class was generated from the following files:
  • RoutingInputWidget.h
  • RoutingInputWidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 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