mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-15 11:32:11 +01:00
33 lines
802 B
C
33 lines
802 B
C
|
#ifndef MOUSEGESTURESPLUGIN_H
|
||
|
#define MOUSEGESTURESPLUGIN_H
|
||
|
|
||
|
#include "plugininterface.h"
|
||
|
|
||
|
class MouseGestures;
|
||
|
class MouseGesturesPlugin : public QObject, public PluginInterface
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
Q_INTERFACES(PluginInterface)
|
||
|
|
||
|
public:
|
||
|
MouseGesturesPlugin();
|
||
|
PluginSpec pluginSpec();
|
||
|
|
||
|
void init(const QString &sPath);
|
||
|
void unload();
|
||
|
bool testPlugin();
|
||
|
|
||
|
QTranslator* getTranslator(const QString &locale);
|
||
|
void showSettings(QWidget* parent = 0);
|
||
|
|
||
|
bool mousePress(const Qz::ObjectName &type, QObject* obj, QMouseEvent* event);
|
||
|
bool mouseRelease(const Qz::ObjectName &type, QObject* obj, QMouseEvent* event);
|
||
|
bool mouseMove(const Qz::ObjectName &type, QObject* obj, QMouseEvent* event);
|
||
|
|
||
|
private:
|
||
|
MouseGestures* m_gestures;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // MOUSEGESTURESPLUGIN_H
|