marble
#include <RoutingInputWidget.h>

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
|
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
|
slot |
Cancel a started input request from the map.
Definition at line 400 of file RoutingInputWidget.cpp.
|
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.
|
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.
|
signal |
User requests position input from the map.
|
slot |
Reload the bookmarks menu.
Definition at line 443 of file RoutingInputWidget.cpp.
|
signal |
User requests to remove this widget.
|
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.
|
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.
|
signal |
hasTargetPosition changed because of selecting a placemark or changing the search term
The documentation for this class was generated from the following files:
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.