Quote:
Originally Posted by kiwidude
I don't get what you are asking for - each plugin already has its own capability to specify what calibre toolbars it can be supported on. What else is there?
|
Quote:
Originally Posted by Comfy.n
For instance, there are Preferences sub-menu items that aren't available to be added directly to the toolbars, such as Toolbars & Menus, Shortcuts, Plugins, Look & Feel... Then you also have all Action Chains, Reading Lists, Saved Searches and other actions whose buttons, despite being available to Favourite Menus as menu items, can't be added directly to Calibre toolbars
|
Quote:
Originally Posted by kiwidude
You will have to ask Kovid elsewhere for that sort of capability i.e. specifically to allow a plugin to return multiple top-level shortcuts rather than a single one.
|
Unfortunately, this can't happen. Calibre's infrastructure allows adding "Actions" to toolbars etc, one instance of an action per destination. Action sub-menus and sub-commands cannot be added. You can see a list of bona fide actions in the "All GUI actions" menu.
It is in theory possible to make a UI plugin that executes a sub-action or sub-menu -- a variant of the favorites plugin. The user would choose which operation the plugin should do when triggered. The biggest problem: finding a way to get more than one of them, because the plugin is itself a single action. One would require multiple instances of the plugin to get multiple actions.