1 #ifndef MOUSEANDKEYPLUGIN_HH
2 #define MOUSEANDKEYPLUGIN_HH
34 void updatedObject(
int _identifier,
const UpdateType& _type);
36 void log(
Logtype _type, QString _message);
37 void log(QString _message);
42 void addPickMode(
const std::string& _mode);
43 void addHiddenPickMode(
const std::string& _mode);
45 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
bool _multiUse =
false);
48 void addToolbox(QString _name, QWidget* _widget);
53 void initializePlugin();
54 void pluginsInitialized();
56 void slotMouseEvent( QMouseEvent* _event );
58 void slotKeyEvent( QKeyEvent* _event );
60 void slotPickModeChanged(
const std::string& _mode);
65 QString
name() {
return (QString(
"Mouse and Keyboard Plugin"));};
66 QString
description() {
return (QString(
"Shows some basic mouse and key embedding"));};
73 template <
typename MeshT>
77 QMenu* contextMenuEntry_;
81 QPushButton* pickButton_;
93 void slotButtonClicked();
96 void contextMenuItemSelected(QAction* _action);
99 QString version() {
return QString(
"1.0"); };
102 #endif //MOUSEANDKEYPLUGIN_HH
Interface class for receiving mouse events.
QString name()
Return a name for the plugin.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
Interface class for creating custom context menus.
Interface for all Plugins which do logging to the logging window of the framework.
Keyboard Event Interface.
Interface class from which all plugins have to be created.
Logtype
Log types for Message Window.
Allow access to picking functions.
QString description()
Return a description of what the plugin is doing.