mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Add links to manual in template editor.
This commit is contained in:
parent
87c178accb
commit
09bcc41c1f
@ -254,6 +254,13 @@ class TemplateDialog(QDialog, Ui_TemplateDialog):
|
||||
self.textbox_changed()
|
||||
self.rule = (None, '')
|
||||
|
||||
self.template_tutorial.setText(_('Template language tutorial: ') +
|
||||
'<a href="http://manual.calibre-ebook.com/template_lang.html">'
|
||||
'http://manual.calibre-ebook.com/template_lang.html</a>')
|
||||
self.template_func_reference.setText(_('Template function reference: ') +
|
||||
'<a href="http://manual.calibre-ebook.com/template_ref.html">'
|
||||
'http://manual.calibre-ebook.com/template_ref.html</a>')
|
||||
|
||||
def textbox_changed(self):
|
||||
cur_text = unicode(self.textbox.toPlainText())
|
||||
if self.last_text != cur_text:
|
||||
|
@ -125,6 +125,20 @@
|
||||
<item row="9" column="1">
|
||||
<widget class="QPlainTextEdit" name="source_code"/>
|
||||
</item>
|
||||
<item row="10" column="1">
|
||||
<widget class="QLabel" name="template_tutorial">
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1">
|
||||
<widget class="QLabel" name="template_func_reference">
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
Loading…
x
Reference in New Issue
Block a user