Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send key and mouse events to plugins #677

Open
nmellado opened this issue Feb 5, 2021 · 2 comments · Fixed by #848
Open

Send key and mouse events to plugins #677

nmellado opened this issue Feb 5, 2021 · 2 comments · Fixed by #848
Labels
Feature Request Type of issue: feature request PluginBase Related to Ra::PluginBase

Comments

@nmellado
Copy link
Contributor

nmellado commented Feb 5, 2021

In some cases, plugins might need to catch events from the GUI.
We could add a signal/slot mechanism in PluginContext to forward events from the UI to the plugins. Of course, it will be the responsibility of the application to forward these events. We can do it for the Viewer class.

Suggested by @chemseddinehimeur

@nmellado nmellado added the Feature Request Type of issue: feature request label Feb 5, 2021
@nmellado
Copy link
Contributor Author

nmellado commented Feb 5, 2021

It could for instance be done like this: 114eac4

@nmellado nmellado added the PluginBase Related to Ra::PluginBase label Feb 10, 2021
@nmellado
Copy link
Contributor Author

Note: New mechanism added in #776

@nmellado nmellado linked a pull request Jan 13, 2022 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Type of issue: feature request PluginBase Related to Ra::PluginBase
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant