1 #ifndef MOUSEANDKEYPLUGIN_HH 2 #define MOUSEANDKEYPLUGIN_HH 14 #include <QPushButton> 16 #include <QGridLayout> 36 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.examples.MouseAndKeyPlugin")
42 void updatedObject(
int _identifier,
const UpdateType& _type);
44 void log(
Logtype _type, QString _message);
45 void log(QString _message);
50 void addPickMode(
const std::string& _mode);
51 void addHiddenPickMode(
const std::string& _mode);
53 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
bool _multiUse =
false);
56 void addToolbox(QString _name, QWidget* _widget);
61 void initializePlugin();
62 void pluginsInitialized();
64 void slotMouseEvent( QMouseEvent* _event );
66 void slotKeyEvent( QKeyEvent* _event );
68 void slotPickModeChanged(
const std::string& _mode);
73 QString
name() {
return (QString(
"Mouse and Keyboard Plugin"));};
74 QString
description() {
return (QString(
"Shows some basic mouse and key embedding"));};
81 template <
typename MeshT>
85 QMenu* contextMenuEntry_;
89 QPushButton* pickButton_;
101 void slotButtonClicked();
104 void contextMenuItemSelected(QAction* _action);
107 QString version() {
return QString(
"1.0"); };
110 #endif //MOUSEANDKEYPLUGIN_HH
Interface class for receiving mouse events.
QString description()
Return a description of what the plugin is doing.
Logtype
Log types for Message Window.
Interface for all Plugins which do logging to the logging window of the framework.
Keyboard Event Interface.
QString name()
Return a name for the plugin.
Interface class from which all plugins have to be created.
Allow access to picking functions.