marble
MarbleInputHandler.cpp
Go to the documentation of this file.
285 d->m_kineticSpinning.jumpToPosition(MarbleInputHandler::d->m_marblePresenter->centerLongitude(),
293 bool MarbleDefaultInputHandler::handlePinch(QPointF center, qreal scaleFactor, Qt::GestureState state)
427 MarbleInputHandler::d->m_marblePresenter->map()->screenCoordinates(0.0, 90.0, northPoleX, northPoleY);
436 MarbleInputHandler::d->m_marblePresenter->map()->screenCoordinates(0.0, -90.0, southPoleX, southPoleY);
516 void MarbleDefaultInputHandler::notifyPosition(bool isMouseAboveMap, qreal mouseLon, qreal mouseLat)
532 void MarbleDefaultInputHandler::adjustCursorShape(const QPoint &mousePosition, const QPoint &mouseDirection)
572 if ((MarbleInputHandler::d->m_marblePresenter->map()->whichFeatureAt(mousePosition).size() == 0)
617 QRect boundingRect = MarbleInputHandler::d->m_marblePresenter->viewport()->mapRegion().boundingRect();
652 MarbleInputHandler::d->m_marblePresenter->rotateBy(-moveStep * (qreal)(+dirX), moveStep * (qreal)(+dirY));
656 MarbleInputHandler::d->m_marblePresenter->rotateBy(-moveStep * (qreal)(-dirX), moveStep * (qreal)(+dirY));
679 foreach (AbstractFloatItem *floatItem, MarbleInputHandler::d->m_marblePresenter->map()->floatItems())
692 const bool isMouseAboveMap = MarbleInputHandler::d->m_marblePresenter->map()->geoCoordinates(event->x(), event->y(),
699 || MarbleInputHandler::d->m_marblePresenter->map()->whichFeatureAt( mousePosition ).size() != 0)
759 // Note: This caused a bug in combination with oxygen, see https://bugs.kde.org/show_bug.cgi?id=242414
bool isMouseButtonPopupEnabled(Qt::MouseButton mouseButton) const
Return whether the left mouse button popup menu is active.
Definition: MarbleInputHandler.cpp:101
void mouseClickScreenPosition(int, int)
state
Type type() const
T * data() const
void setRadius(int radius)
Definition: MarbleAbstractPresenter.cpp:316
bool handleMouseEvent(QMouseEvent *e)
Definition: MarbleInputHandler.cpp:668
QPointer< AbstractDataPluginItem > lastToolTipItem()
Definition: MarbleInputHandler.cpp:840
virtual ~MarbleDefaultInputHandler()
Definition: MarbleInputHandler.cpp:223
bool isPositionSignalConnected() const
Definition: MarbleInputHandler.cpp:84
int x() const
int y() const
Definition: kineticmodel.h:39
int height() const
void setInertialEarthRotationEnabled(bool enabled)
Definition: MarbleInputHandler.cpp:116
void mouseMoveGeoPosition(QString)
const QPoint & pos() const
int radius() const
Definition: MarbleAbstractPresenter.cpp:311
void lmbRequest(int, int)
bool panViaArrowsEnabled() const
Definition: MarbleInputHandler.cpp:111
QString tr(const char *sourceText, const char *disambiguation, int n)
MarbleDefaultInputHandler(MarbleAbstractPresenter *marblePresenter)
Definition: MarbleInputHandler.cpp:203
int x() const
int y() const
QGesture * gesture(Qt::GestureType type) const
virtual bool event(QEvent *e)
virtual void setGeometry(const QRect &geometry)=0
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition: ViewportParams.cpp:427
void restoreViewContext()
Definition: MarbleInputHandler.cpp:236
bool contains(const QPointF &point) const
Returns true if the Item contains point in parent coordinates.
Definition: MarbleGraphicsItem.cpp:110
qreal x() const
qreal y() const
int top() const
scaleFactor
bool isNull() const
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
virtual void hide()=0
int left() const
Qt::MouseButton button() const
bool inertialEarthRotationEnabled() const
Returns true iff dragging the map with the mouse keeps spinning in the chosen direction for a slightl...
Definition: MarbleInputHandler.cpp:121
void rmbRequest(int, int)
void resetFocusPoint()
Invalidate any focus point set with setFocusPoint.
Definition: ViewportParams.cpp:432
centerPoint
bool geoCoordinates(int x, int y, qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Degree) const
Get the earth coordinates corresponding to a pixel in the map.
Definition: MarbleMap.cpp:686
Qt::KeyboardModifiers modifiers() const
QTimer * toolTipTimer()
Definition: MarbleInputHandler.cpp:845
iterator end()
int key() const
This file contains the headers for ViewportParams.
int delta() const
bool eventFilter(QObject *, QEvent *)
Definition: MarbleInputHandler.cpp:764
int width() const
typedef MouseButtons
virtual ~MarbleInputHandler()
Definition: MarbleInputHandler.cpp:73
virtual void show()=0
const QPoint & pos() const
virtual bool isVisible() const =0
QPoint toolTipPosition()
Definition: MarbleInputHandler.cpp:850
void setMouseButtonPopupEnabled(Qt::MouseButton mouseButton, bool enabled)
The MarbleInputHandler handles mouse and keyboard input.
Definition: MarbleInputHandler.cpp:89
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setPositionSignalConnected(bool connected)
Definition: MarbleInputHandler.cpp:79
bool handlePinch(QPointF center, qreal scaleFactor, Qt::GestureState state)
Definition: MarbleInputHandler.cpp:293
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
iterator begin()
void setPanViaArrowsEnabled(bool enabled)
Definition: MarbleInputHandler.cpp:106
void setViewContext(ViewContext viewContext)
Definition: MarbleAbstractPresenter.cpp:497
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.