2015-06-26 02:21:03 +00:00
|
|
|
#ifndef TEMPLATEEDIT_H
|
|
|
|
#define TEMPLATEEDIT_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2015-06-29 01:16:19 +00:00
|
|
|
struct template_options {
|
|
|
|
int font_index;
|
|
|
|
int color_palette_index;
|
|
|
|
double font_size;
|
|
|
|
double line_spacing;
|
|
|
|
};
|
|
|
|
|
2015-06-26 02:21:03 +00:00
|
|
|
namespace Ui {
|
|
|
|
class TemplateEdit;
|
|
|
|
}
|
|
|
|
|
|
|
|
class TemplateEdit : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-06-29 01:16:19 +00:00
|
|
|
explicit TemplateEdit(QWidget *parent, struct template_options *templateOptions);
|
2015-06-26 02:21:03 +00:00
|
|
|
~TemplateEdit();
|
2015-06-29 01:24:29 +00:00
|
|
|
private slots:
|
|
|
|
void on_fontsize_valueChanged(int font_size);
|
|
|
|
|
|
|
|
void on_linespacing_valueChanged(double line_spacing);
|
|
|
|
|
|
|
|
void on_fontSelection_currentIndexChanged(int index);
|
|
|
|
|
|
|
|
void on_colorpalette_currentIndexChanged(int index);
|
|
|
|
|
2015-06-26 02:21:03 +00:00
|
|
|
private:
|
|
|
|
Ui::TemplateEdit *ui;
|
2015-06-29 01:16:19 +00:00
|
|
|
struct template_options *templateOptions;
|
2015-06-26 02:21:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TEMPLATEEDIT_H
|