1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-15 11:32:11 +01:00
falkonOfficial/src/plugins/MouseGestures/mousegesturesplugin.h
nowrep af7a041714 Added new plugin: Mouse Gestures.
- setting building plugins as default now
- closes #255
2012-02-24 21:03:44 +01:00

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