mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: add template_options struct that contains template
The template_options struct holds the settings variables in the code. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
ff594c65e3
commit
a600ea5201
6 changed files with 18 additions and 7 deletions
|
@ -3,6 +3,13 @@
|
|||
|
||||
#include <QDialog>
|
||||
|
||||
struct template_options {
|
||||
int font_index;
|
||||
int color_palette_index;
|
||||
double font_size;
|
||||
double line_spacing;
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class TemplateEdit;
|
||||
}
|
||||
|
@ -12,11 +19,11 @@ class TemplateEdit : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TemplateEdit(QWidget *parent = 0);
|
||||
explicit TemplateEdit(QWidget *parent, struct template_options *templateOptions);
|
||||
~TemplateEdit();
|
||||
|
||||
private:
|
||||
Ui::TemplateEdit *ui;
|
||||
struct template_options *templateOptions;
|
||||
};
|
||||
|
||||
#endif // TEMPLATEEDIT_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue