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

Add interface for adding custom tab context menu actions #96

Closed
DamirPorobic opened this issue May 21, 2020 · 2 comments
Closed

Add interface for adding custom tab context menu actions #96

DamirPorobic opened this issue May 21, 2020 · 2 comments
Assignees

Comments

@DamirPorobic
Copy link
Member

We could provide an interface for adding a list of actions which we could show in the tab context menu. Every action could be expecting a single parameter, the index of tab over which it was clicked.

@DamirPorobic
Copy link
Member Author

@nicolasfella Hey Nicolas, I have this feature that I want to implement in the annotator. As you probably know, we support now tabs and there are some operations that can be done per tab by opening the context menu. I would like to provide an option for the parent application to provide a list of custom actions that can be show in every tab, when the users clicks such an action in the context menu, I would emit the triggered signal with a single parameter, the tab id. Usually that would be simple, overwrite QAction and create a custom signal that takes the id as parameter. What's puzzling me is that kimageAnnotator is a library, which makes it a bit more complex. Do you have any idea who to set this custom class up?

@DamirPorobic
Copy link
Member Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant