mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c44496e23d
commit
cc53dc7acf
3 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue