marble
Go to the documentation of this file.
13 #ifndef MARBLE_MARBLEINPUTHANDLER_H
14 #define MARBLE_MARBLEINPUTHANDLER_H
36 class MarbleAbstractPresenter;
37 class MarbleWidgetPopupMenu;
38 class AbstractDataPluginItem;
49 void setPositionSignalConnected(
bool connected );
50 bool isPositionSignalConnected()
const;
60 void setMouseButtonPopupEnabled( Qt::MouseButton mouseButton,
bool enabled );
66 bool isMouseButtonPopupEnabled( Qt::MouseButton mouseButton )
const;
68 void setPanViaArrowsEnabled(
bool enabled );
70 bool panViaArrowsEnabled()
const;
72 void setInertialEarthRotationEnabled(
bool enabled );
79 bool inertialEarthRotationEnabled()
const;
83 void lmbRequest(
int,
int );
84 void rmbRequest(
int,
int );
87 void mouseClickScreenPosition(
int,
int );
88 void mouseMoveGeoPosition(
QString );
91 void restoreViewContext();
98 virtual void installPluginEventFilter(
RenderPlugin *renderPlugin ) = 0;
108 virtual void show() = 0;
109 virtual void hide() = 0;
126 bool handlePinch(
QPointF center, qreal scaleFactor, Qt::GestureState state);
134 virtual void installPluginEventFilter(
RenderPlugin *renderPlugin ) = 0;
135 virtual void showLmbMenu(
int,
int ) = 0;
136 virtual void showRmbMenu(
int,
int ) = 0;
138 virtual void openItemToolTip() = 0;
139 virtual void setCursor(
const QCursor &) = 0;
148 virtual bool handleKeyPress(
QKeyEvent *e);
153 virtual void handleMouseButtonPress(
QMouseEvent *e);
154 virtual void handleLeftMouseButtonPress(
QMouseEvent *e);
155 virtual void handleRightMouseButtonPress(
QMouseEvent *e);
156 virtual void handleMiddleMouseButtonPress(
QMouseEvent *e);
157 virtual void handleMouseButtonRelease(
QMouseEvent *e);
159 virtual void hideSelectionIfCtrlReleased(
QEvent *e);
163 virtual bool acceptMouse();
165 void notifyPosition(
bool isAboveMap, qreal mouseLon, qreal mouseLat);
167 void adjustCursorShape(
const QPoint& mousePosition,
const QPoint& mouseDirection);
176 #endif //MARBLE_MARBLEINPUTHANDLER_H
virtual void setGeometry(const QRect &geometry)=0
virtual const QRect & geometry() const =0
virtual bool isVisible() const =0
The abstract class that creates a renderable item.
virtual ~AbstractSelectionRubber()
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
KDE's Doxygen guidelines are available online.