Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2014, 01:09 PM   #1
Gerbrand
Junior Member
Gerbrand began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2014
Device: none
How to register a plugin to viewer selected text context menu?

I want to write a plugin that uses selected text in the window of the epub viewer.

In the preferences is an option to configure the toolbar, I understand this is the place where ui-plugins are to be 'registered'.

In the set of popupmenu items are 3 contextmenus to select from: library, device, coverbrowser.

There is no entry for the contextmenu of epub-viewer's selected text. So how do I register this plugin?
Gerbrand is offline   Reply With Quote
Old 05-04-2014, 01:16 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 24,783
Karma: 34257999
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
Moderator Notice
Moved to development
where the code gurus hang out
theducks is offline   Reply With Quote
Advert
Old 05-04-2014, 01:24 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 36,242
Karma: 16098999
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You dont need to register the plugin simply implement the customize_context_menu() method in your plugin to do whatever you want with the menu.
kovidgoyal is offline   Reply With Quote
Reply

Tags
register plugin, viewer context menu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy in Preview Context Menu BetterRed Editor 2 03-17-2014 12:35 AM
Add semantics context menu Artha Sigil 1 11-22-2011 02:11 PM
Save One Format to Disk - Add to Context Menu? nynaevelan Library Management 4 02-13-2011 09:16 PM
How to create custom context menu item? gizban Calibre 2 08-22-2010 06:22 PM
no context-menu, no wifi snakeduh PocketBook 3 07-08-2010 03:24 PM


All times are GMT -4. The time now is 05:39 PM.


MobileRead.com is a privately owned, operated and funded community.