From 43a0883022f64539498b84220d487b16ffd49a7e Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 31 Jul 2015 19:35:33 +0200 Subject: Added missing html resources to the html template file --- src/context.cpp | 17 +++++++++++++++-- templates/html/htmljsnavtree.tpl | 3 +++ templates/html/htmllayout.tpl | 8 ++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/context.cpp b/src/context.cpp index c4822e7..39d7b07 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -952,6 +952,14 @@ class TranslateContext::Private : public PropertyMapper { return theTranslator->trRTFGeneralIndex(); } + TemplateVariant panelSyncOn() const + { + return theTranslator->trPanelSynchronisationTooltip(FALSE); + } + TemplateVariant panelSyncOff() const + { + return theTranslator->trPanelSynchronisationTooltip(TRUE); + } Private() { //%% string generatedBy @@ -1126,6 +1134,10 @@ class TranslateContext::Private : public PropertyMapper addProperty("referenceManual", this,&Private::referenceManual); //%% string index addProperty("index", this,&Private::index); + //%% string panelSyncOn + addProperty("panelSyncOn", this,&Private::panelSyncOn); + //%% string panelSyncOff + addProperty("panelSyncOff", this,&Private::panelSyncOff); m_javaOpt = Config_getBool("OPTIMIZE_OUTPUT_JAVA"); m_fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN"); @@ -9079,6 +9091,7 @@ int RefCountedContext::s_totalCount; void generateOutputViaTemplate() { + msg("Generating output via template engine...\n"); { TemplateEngine e; TemplateContext *ctx = e.createContext(); @@ -9165,7 +9178,7 @@ void generateOutputViaTemplate() //%% string space ctx->set("space"," "); - if (Config_getBool("GENERATE_HTML")) + //if (Config_getBool("GENERATE_HTML")) { // render HTML output Template *tpl = e.loadByName("htmllayout.tpl",1); if (tpl) @@ -9188,7 +9201,7 @@ void generateOutputViaTemplate() // TODO: clean index before each run... - if (Config_getBool("GENERATE_LATEX")) + //if (Config_getBool("GENERATE_LATEX")) { // render LaTeX output Template *tpl = e.loadByName("latexlayout.tpl",1); if (tpl) diff --git a/templates/html/htmljsnavtree.tpl b/templates/html/htmljsnavtree.tpl index a7ad88e..99a269e 100644 --- a/templates/html/htmljsnavtree.tpl +++ b/templates/html/htmljsnavtree.tpl @@ -18,3 +18,6 @@ var NAVTREEINDEX = {% endfor %} {% endwith %} ]; + +var SYNCONMSG = '{{ tr.panelSyncOn }}'; +var SYNCOFFMSG = '{{ tr.panelSyncOff }}'; diff --git a/templates/html/htmllayout.tpl b/templates/html/htmllayout.tpl index 13fb330..c21ef91 100644 --- a/templates/html/htmllayout.tpl +++ b/templates/html/htmllayout.tpl @@ -24,6 +24,14 @@ {% resource 'nav_g.png' %} {% resource 'nav_h.lum' %} {% resource 'navtree.css' %} +{% resource 'navtree.js' %} +{% resource 'resize.js' %} +{% resource 'doc.luma' %} +{% resource 'folderopen.luma' %} +{% resource 'folderclosed.luma' %} +{% resource 'arrowdown.luma' %} +{% resource 'arrowright.luma' %} +{% resource 'splitbar.lum' %} {# general search resources #} {% resource 'search_l.png' as 'search/search_l.png' %} -- cgit v0.12