18#ifndef MOUSEGESTURES_H
19#define MOUSEGESTURES_H
34 explicit MouseGestures(
const QString &settingsPath, QObject* parent =
nullptr);
37 bool mousePress(QObject* obj, QMouseEvent* event);
39 bool mouseMove(QObject* obj, QMouseEvent* event);
61 void downRightGestured();
62 void downLeftGestured();
63 void downUpGestured();
65 void upDownGestured();
66 void upLeftGestured();
67 void upRightGestured();
74 QPointer<MouseGesturesSettingsDialog> m_settings;
75 QPointer<WebView> m_view;
77 QString m_settingsFile;
78 Qt::MouseButton m_button;
79 bool m_enableRockerNavigation =
false;
81 bool m_blockNextRightMouseRelease =
false;
82 bool m_blockNextLeftMouseRelease =
false;
84 bool m_oldWebViewForceContextMenuOnRelease =
false;
bool mousePress(QObject *obj, QMouseEvent *event)
Qt::MouseButton gestureButton() const
MouseGestures(const QString &settingsPath, QObject *parent=nullptr)
void showSettings(QWidget *parent)
void setRockerNavigationEnabled(bool enable)
bool rockerNavigationEnabled() const
bool mouseRelease(QObject *obj, QMouseEvent *event)
void setGestureButton(Qt::MouseButton button)
void setGestureButtonByIndex(int index)
bool mouseMove(QObject *obj, QMouseEvent *event)
int buttonToIndex() const