aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/templateedit.h
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-05 07:29:46 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-05 21:03:12 +0300
commitcc53dc7acf801f022612678f697e6d76c2443153 (patch)
tree6eabb01a37ec3d39db9956b764ab2ce58681bab6 /qt-ui/templateedit.h
parentc44496e23d3e16ec6b5622eea73ae39d991e27bf (diff)
downloadsubsurface-cc53dc7acf801f022612678f697e6d76c2443153.tar.gz
Printing: implement QPlainTextEdit in TemplateEdit
This is the main area to edit the templates inside Subsurface. Whenever the user edits a template the edited template is saved in custom.html and custom.html is considered the selected printing template. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/templateedit.h')
-rw-r--r--qt-ui/templateedit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/templateedit.h b/qt-ui/templateedit.h
index dc38d11fc..296005652 100644
--- a/qt-ui/templateedit.h
+++ b/qt-ui/templateedit.h
@@ -2,6 +2,7 @@
#define TEMPLATEEDIT_H
#include <QDialog>
+#include "templatelayout.h"
namespace Ui {
class TemplateEdit;
@@ -23,10 +24,13 @@ private slots:
void on_colorpalette_currentIndexChanged(int index);
+ void on_TemplateEdit_finished(int result);
+
private:
Ui::TemplateEdit *ui;
struct template_options *templateOptions;
struct print_options *printOptions;
+ QString grantlee_template;
};
#endif // TEMPLATEEDIT_H