From 09bcc41c1ffadc5bde5516fc6ee094c1259eaec8 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sat, 4 Jun 2011 15:21:23 +0100 Subject: [PATCH] Add links to manual in template editor. --- src/calibre/gui2/dialogs/template_dialog.py | 7 +++++++ src/calibre/gui2/dialogs/template_dialog.ui | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/calibre/gui2/dialogs/template_dialog.py b/src/calibre/gui2/dialogs/template_dialog.py index 852bbcc221..a228fb5c0d 100644 --- a/src/calibre/gui2/dialogs/template_dialog.py +++ b/src/calibre/gui2/dialogs/template_dialog.py @@ -254,6 +254,13 @@ class TemplateDialog(QDialog, Ui_TemplateDialog): self.textbox_changed() self.rule = (None, '') + self.template_tutorial.setText(_('Template language tutorial: ') + + '' + 'http://manual.calibre-ebook.com/template_lang.html') + self.template_func_reference.setText(_('Template function reference: ') + + '' + 'http://manual.calibre-ebook.com/template_ref.html') + def textbox_changed(self): cur_text = unicode(self.textbox.toPlainText()) if self.last_text != cur_text: diff --git a/src/calibre/gui2/dialogs/template_dialog.ui b/src/calibre/gui2/dialogs/template_dialog.ui index 13586e7049..674100fe04 100644 --- a/src/calibre/gui2/dialogs/template_dialog.ui +++ b/src/calibre/gui2/dialogs/template_dialog.ui @@ -125,6 +125,20 @@ + + + + true + + + + + + + true + + +