mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Add more to the tool tip for the new html composite column subtype
This commit is contained in:
parent
7615f4df49
commit
708917e8cd
@ -143,6 +143,21 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
|
|||||||
|
|
||||||
all_colors = [unicode(s) for s in list(QColor.colorNames())]
|
all_colors = [unicode(s) for s in list(QColor.colorNames())]
|
||||||
self.enum_colors_label.setToolTip('<p>' + ', '.join(all_colors) + '</p>')
|
self.enum_colors_label.setToolTip('<p>' + ', '.join(all_colors) + '</p>')
|
||||||
|
|
||||||
|
self.composite_contains_html.setToolTip('<p>' +
|
||||||
|
_('If checked, this column will be displayed as HTML in '
|
||||||
|
'book details and the content server. This can be used to '
|
||||||
|
'construct links with the template language. For example, '
|
||||||
|
'the template '
|
||||||
|
'<pre><big><b>{title}</b></big>'
|
||||||
|
'{series:| [|}{series_index:| [|]]}</pre>'
|
||||||
|
'will create a field displaying the title in bold large '
|
||||||
|
'characters, along with the series, for example <br>"<big><b>'
|
||||||
|
'An Oblique Approach</b></big> [Belisarius [1]]". The template '
|
||||||
|
'<pre><a href="http://www.beam-ebooks.de/ebook/{identifiers'
|
||||||
|
':select(beam)}">Beam book</a></pre> '
|
||||||
|
'will generate a link to the book on the Beam ebooks site.')
|
||||||
|
+ '</p>')
|
||||||
self.exec_()
|
self.exec_()
|
||||||
|
|
||||||
def shortcut_activated(self, url):
|
def shortcut_activated(self, url):
|
||||||
|
@ -296,9 +296,6 @@ and end with <code>}</code> You can have text before and after the f
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="composite_contains_html">
|
<widget class="QCheckBox" name="composite_contains_html">
|
||||||
<property name="toolTip">
|
|
||||||
<string>If checked, this column will be displayed as HTML in book details and the content server</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show as HTML in book details</string>
|
<string>Show as HTML in book details</string>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user