![]() |
#1 |
Member
![]() Posts: 23
Karma: 10
Join Date: Jul 2008
Device: Sony PRS 505, iPad
|
Adding buttons to the toolbar
Is it possible to add buttons to the Sigil-toolbar (performing some action in the HTML source with respect to the actual cursor position or selection)?
For example:
Do I have to do it in the C++ sources, or is there an easier way? |
![]() |
![]() |
![]() |
#2 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Then Drag-n-reDock it under the Icon Bars (see my layout image) to get the bar Horizontal All clips that are added, that are NOT moved to a group, in the Clip Editor appear here. (see cilip ed image) Newbies Note The layout of buttons shown is not the default. No special code needed, just drag and drop the sections into new locations . |
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Note that you'll need to define clips with a \1 placeholder for the text that will be wrapped by your custom code. For example:
Code:
<span class='x'>\1</span>
These shortcuts can also be changed via Edit > Preferences > Keyboard Shortcuts. Last edited by Doitsu; 10-10-2014 at 02:40 PM. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
Kinda a little off topic but is there an inbuilt limit to what this tool bar can hold? I have items in my clips that do not appear on the too bar.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom adding to toolbar? | imans314 | Calibre | 9 | 04-28-2014 08:29 AM |
adding buttons via usb | scope | Kindle Developer's Corner | 18 | 11-24-2013 05:47 PM |
How I can fullscreen without any toolbar and buttons? | ElenaLauder | Calibre | 2 | 12-25-2011 12:18 AM |
iLiad Adding custom action buttons to toolbar | thijso | iRex Developer's Corner | 1 | 12-31-2009 07:12 AM |
LrfAppender: IE toolbar similar to "Toolbar for Librie" | mumurik | Sony Reader Dev Corner | 1 | 10-06-2009 03:33 AM |