Marble
RoutingInputWidget.cpp
114 QString const name = QObject::tr("%1 %2, %3", "An address with parameters %1=house number, %2=road, %3=city");
147RoutingInputWidgetPrivate::RoutingInputWidgetPrivate(MarbleModel *model, int index, QWidget *parent)
183 m_centerAction = result->addAction(QIcon(m_route->pixmap(m_index)), QObject::tr("&Center Map here"), parent, SLOT(requestActivity()));
186 m_currentLocationAction = result->addAction(QIcon(QStringLiteral(":/icons/gps.png")), QObject::tr("Current &Location"), parent, SLOT(setCurrentLocation()));
189 m_mapInput = result->addAction(QIcon(QStringLiteral(":/icons/crosshairs.png")), QObject::tr("From &Map..."));
191 QObject::connect(m_mapInput, SIGNAL(triggered(bool)), parent, SLOT(setMapInputModeEnabled(bool)));
193 m_bookmarkAction = result->addAction(QIcon(QStringLiteral(":/icons/bookmarks.png")), QObject::tr("From &Bookmark"));
202 result->addAction(QIcon(QStringLiteral(":/icons/go-home.png")), QObject::tr("&Home"), parent, SLOT(setHomePosition()));
213 QMenu *menu = result->addMenu(QIcon(QStringLiteral(":/icons/folder-bookmark.png")), (*i)->name());
221void RoutingInputWidgetPrivate::createBookmarkActions(QMenu *menu, GeoDataFolder *bookmarksFolder, QObject *parent)
231 QObject::connect(menu, SIGNAL(triggered(QAction *)), parent, SLOT(setBookmarkPosition(QAction *)));
264 connect(d->m_lineEdit, &MarbleLineEdit::decoratorButtonClicked, this, &RoutingInputWidget::openTargetSelectionDialog);
267 connect(d->m_lineEdit, &MarbleLineEdit::decoratorButtonClicked, this, &RoutingInputWidget::showMenu);
270 connect(d->m_removeButton, &QAbstractButton::clicked, this, &RoutingInputWidget::requestRemoval);
271 connect(d->m_marbleModel->bookmarkManager(), SIGNAL(bookmarksChanged()), this, SLOT(reloadBookmarks()));
276 connect(&d->m_placemarkRunnerManager, SIGNAL(searchResultChanged(QAbstractItemModel *)), this, SLOT(setPlacemarkModel(QAbstractItemModel *)));
283 connect(&d->m_placemarkRunnerManager, SIGNAL(searchFinished(QString)), this, SLOT(finishSearch()));
319void RoutingInputWidget::setTargetPosition(const GeoDataCoordinates &position, const QString &name)
427void RoutingInputWidget::retrieveReverseGeocodingResult(const GeoDataCoordinates &, const GeoDataPlacemark &placemark)
This file contains the headers for MarbleModel.
This file contains the headers for MarbleWidget.
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:47
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition MarbleModel.h:84
This class represents a model of all place marks which are currently available through a given Placem...
Definition MarblePlacemarkModel.h:30
void setPosition(int index, const GeoDataCoordinates &position, const QString &name=QString())
Change the value of the element at the given position.
Definition RouteRequest.cpp:269
GeoDataCoordinates at(int index) const
Accessor for the n-th position.
Definition RouteRequest.cpp:147
QPixmap pixmap(int index, int size=-1, int margin=2) const
Returns a pixmap which indicates the position of the element.
Definition RouteRequest.cpp:152
void targetValidityChanged(bool targetValid)
hasTargetPosition changed because of selecting a placemark or changing the search term
void removalRequest(RoutingInputWidget *)
User requests to remove this widget.
void searchFinished(RoutingInputWidget *)
All runners are finished.
GeoDataCoordinates targetPosition() const
Returns the geoposition selected by the user, or a default constructed geoposition if hasTargetPositi...
Definition RoutingInputWidget.cpp:336
bool hasTargetPosition() const
Returns true if the user has selected a valid geo position.
Definition RoutingInputWidget.cpp:331
void abortMapInputRequest()
Cancel a started input request from the map.
Definition RoutingInputWidget.cpp:395
void setTargetPosition(const GeoDataCoordinates &position, const QString &name=QString())
Set the target position to the given coordinates, eliminating any previously set positions.
Definition RoutingInputWidget.cpp:319
MarblePlacemarkModel * searchResultModel()
Returns the placemark model that contains search results.
Definition RoutingInputWidget.cpp:356
void findPlacemarks()
Search for placemarks matching the current input text.
Definition RoutingInputWidget.cpp:345
void mapInputModeEnabled(RoutingInputWidget *, bool enabled)
User requests position input from the map.
void setIndex(int index)
Change the data index in the route request model.
Definition RoutingInputWidget.cpp:402
void activityRequest(RoutingInputWidget *)
User requests to activate this widget.
bool hasInput() const
Returns false iff the input text is empty.
Definition RoutingInputWidget.cpp:373
Q_SCRIPTABLE CaptureState status()
QString name(GameStandardAction id)
QAction * end(const QObject *recvr, const char *slot, QObject *parent)
PostalAddress address(const QVariant &location)
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
void clicked(bool checked)
void setChecked(bool)
QVariant data() const const
void setEnabled(bool)
void setMenu(QMenu *menu)
Accepted
QString name() const const
SetMinimumSize
void addWidget(QWidget *w)
void setContentsMargins(const QMargins &margins)
void setSizeConstraint(SizeConstraint)
virtual void setSpacing(int)
void clear()
void setCursorPosition(int)
void setText(const QString &)
void textEdited(const QString &text)
const_iterator constBegin() const const
const_iterator constEnd() const const
T & first()
qsizetype size() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
Antialiasing
int height() const const
QSize size() const const
int width() const const
QString arg(Args &&... args) const const
bool isEmpty() const const
transparent
Key_Return
NoPen
void stop()
void timeout()
QVariant fromValue(T &&value)
bool isNull() const const
T value() const const
enabled
height
QLayout * layout() const const
QPoint mapToGlobal(const QPoint &pos) const const
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.