View Single Post
Old 04-17-2011, 11:37 AM   #1
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Launching plugin routines from keyboard or icons

One question that's come up about my plugin from kiwidude is customizing the plugin's icon to change the default action when clicked - this is if I split my toolbar icon so that it can be clicked and have a drop down menu. Right now its just a drop down menu. There is code I can borrow, though I'm not sure if I'll change it yet. (I know I'm not a typical user as I'm always using all the menu options while testing, but when originally using calibre - it seems so long ago - it wasn't clear that clicking on the down arrow gave a menu and it can be fiddly to make sure you click the arrow instead of the icon).

While thinking about this I was wondering if there was a central list of keyboard shortcuts that users could use to assign to plugin's to save adding (borrowed) code myself?

And more than just launching the default routine launched by the plugin, I was wondering if you could choose any one of the menu options to link the shortcut to. It might be that the routines might need to be registered with calibre at startup to make them available to assign to a shortcut.

And in addition to keyboard shortcuts, is it possible to add a separate icon to the toolbar for any particular menu item in a plugin (or on the new optional toolbar - whether default text/user-defined text or even an icon). This way the user can decide what function is run when clicking an icon.

Maybe that needs another plugin - one that just calls the specific routine of another plugin? would that be possible?
meme is offline   Reply With Quote