summaryrefslogtreecommitdiffstats
path: root/templatelayout.h
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-08-21 19:03:42 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-08-22 18:35:51 +0300
commitb0e84e7e2b2a6e7252cd24d6df9d0b93af127d77 (patch)
treeb339900ff868bebb8b744970ba2bcb9ed26529d6 /templatelayout.h
parent70e8862efc7189342ee9c016e85054538b4d7b99 (diff)
downloadsubsurface-b0e84e7e2b2a6e7252cd24d6df9d0b93af127d77.tar.gz
Printing: generate a Grantlee statistics template
As there are two types of templates, Grantlee need to support both. This commit adds the support to generating a statistics HTML code from a statistics template. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Diffstat (limited to 'templatelayout.h')
-rw-r--r--templatelayout.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/templatelayout.h b/templatelayout.h
index 47ca31f4c..d9fa29295 100644
--- a/templatelayout.h
+++ b/templatelayout.h
@@ -10,7 +10,7 @@
int getTotalWork(print_options *printOptions);
void find_all_templates();
-extern QList<QString> grantlee_templates;
+extern QList<QString> grantlee_templates, grantlee_statistics_templates;
class TemplateLayout : public QObject {
Q_OBJECT
@@ -18,6 +18,7 @@ public:
TemplateLayout(print_options *PrintOptions, template_options *templateOptions);
~TemplateLayout();
QString generate();
+ QString generateStatistics();
static QString readTemplate(QString template_name);
static void writeTemplate(QString template_name, QString grantlee_template);
@@ -198,7 +199,6 @@ if (property == "grayscale") {
GRANTLEE_END_LOOKUP
GRANTLEE_BEGIN_LOOKUP(YearInfo)
-
if (property == "year") {
return object.year->period;
} else if (property == "dives") {