stanislas: Having the plugin in the context menu or as a button on a toolbar works exactly the same. The select books can be determined in both circumstances. So, leave it up to the user to decide where they want the function. Personally, my context menu is so long, that adding anything to it is useless. I should be trimming it, not expanding it.
There are lots of examples of how to do this in the various plugins. I have done it a few times. I would have used one of kiwidudes plugins as an example, most likely the Modify ePub plugin. But I think I've stolen code from most of his plugins.
|