marble
NavigationFloatItem.cpp
Go to the documentation of this file.
265 connect( m_activateCurrentPositionButtonAction, SIGNAL(triggered()), SLOT(activateCurrentPositionButton()) );
281 icon.addPixmap( pixmap("marble/navigation/navigational_currentlocation_hover"), QIcon::Active );
282 icon.addPixmap( pixmap("marble/navigation/navigational_currentlocation_pressed"), QIcon::Selected );
291 disconnect( m_navigationWidget->homeButton, SIGNAL(clicked()), m_marbleWidget, SLOT(goHome()) );
316 disconnect( m_navigationWidget->homeButton, SIGNAL(clicked()), this, SLOT(centerOnCurrentLocation()) );
328 m_marbleWidget->centerOn( m_marbleWidget->model()->positionTracking()->currentLocation(), true );
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: AbstractFloatItem.cpp:72
iterator insert(const Key &key, const T &value)
void setWidget(QWidget *widget)
Definition: WidgetGraphicsItem.cpp:48
void repaintNeeded(QRegion dirtyRegion=QRegion())
This signal is emitted if an update of the view is needed.
void remove(const QString &key)
This file contains the headers for MarbleModel.
void setVisible(bool)
Definition: PluginInterface.h:28
virtual bool eventFilter(QObject *object, QEvent *e)
Definition: AbstractFloatItem.cpp:163
QPoint mapToGlobal(const QPoint &pos) const
void setBackground(const QBrush &background)
Changes the background brush of the item.
Definition: FrameGraphicsItem.cpp:161
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: AbstractFloatItem.cpp:79
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setLayout(AbstractMarbleGraphicsLayout *layout)
Set the layout of the graphics item.
Definition: MarbleGraphicsItem.cpp:146
void addItem(ScreenGraphicsItem *item, int row, int column)
Definition: MarbleGraphicsGridLayout.cpp:74
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString tr(const char *sourceText, const char *disambiguation, int n)
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
QString fromUtf8(const char *str, int size)
void settingsChanged(QString nameId)
This signal is emitted if the settings of the RenderPlugin changed.
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
int maximumZoom() const
Return the minimum zoom value for the current map theme.
Definition: MarbleWidget.cpp:355
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
PositionTracking * positionTracking() const
Definition: MarbleModel.cpp:512
void addPixmap(const QPixmap &pixmap, Mode mode, State state)
int minimumZoom() const
Return the minimum zoom value for the current map theme.
Definition: MarbleWidget.cpp:350
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
const T value(const Key &key) const
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:549
This file contains the headers for ViewportParams.
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
void setCacheMode(CacheMode mode)
Set the cache mode of the item.
Definition: MarbleGraphicsItem.cpp:159
QPixmap * find(const QString &key)
This file contains the headers for MarbleWidget.
AbstractMarbleGraphicsLayout * layout() const
Returns the layout of the MarbleGraphicsItem.
Definition: MarbleGraphicsItem.cpp:141
GeoDataCoordinates currentLocation() const
Returns the current position, if any.
Definition: PositionTracking.cpp:389
bool insert(const QString &key, const QPixmap &pixmap)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void setProjection(const ViewportParams *viewport)
Definition: MarbleGraphicsItem.cpp:272
void setVisible(bool visible)
Set visibility of the float item.
Definition: AbstractFloatItem.cpp:130
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.