Marble
8#ifndef MARBLE_MARBLEWIDGETINPUTHANDLER_H
9#define MARBLE_MARBLEWIDGETINPUTHANDLER_H
11#include "MarbleInputHandler.h"
13#include <QPinchGesture>
14#include <QSharedPointer>
21class MarbleWidgetInputHandlerPrivate;
23class MARBLE_EXPORT MarbleWidgetInputHandler :
public MarbleDefaultInputHandler
28 MarbleWidgetInputHandler(MarbleAbstractPresenter *marblePresenter, MarbleWidget *marbleWidget);
30 void setDebugModeEnabled(
bool enabled);
33 void installPluginEventFilter(RenderPlugin *renderPlugin)
override;
34 void showLmbMenu(
int x,
int y)
override;
35 void showRmbMenu(
int x,
int y)
override;
36 void openItemToolTip()
override;
37 void setCursor(
const QCursor &cursor)
override;
40 bool handleKeyPress(QKeyEvent *event)
override;
41 bool handleTouch(QTouchEvent *event)
override;
42 bool handleGesture(QGestureEvent *e)
override;
43 AbstractSelectionRubber *selectionRubber()
override;
44 bool layersEventFilter(QObject *o, QEvent *e)
override;
46 void handlePinchGesture(QPinchGesture *pinch);
48 using MarbleWidgetInputHandlerPrivatePtr = QSharedPointer<MarbleWidgetInputHandlerPrivate>;
49 MarbleWidgetInputHandlerPrivatePtr d;
50 friend class MarbleWidgetInputHandlerPrivate;
52 Q_DISABLE_COPY(MarbleWidgetInputHandler)
The abstract class that creates a renderable item.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:10 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.