View Single Post
Old 03-30-2024, 07:49 AM   #118
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kiwidude View Post
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 View Post
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 View Post
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.
chaley is offline   Reply With Quote