| 
									
										
										
										
											2017-04-27 20:26:05 +02:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							| 
									
										
										
										
											2015-06-26 04:21:03 +02:00
										 |  |  | #ifndef TEMPLATEEDIT_H
 | 
					
						
							|  |  |  | #define TEMPLATEEDIT_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QDialog>
 | 
					
						
							| 
									
										
										
										
											2015-07-05 07:29:46 +02:00
										 |  |  | #include "templatelayout.h"
 | 
					
						
							| 
									
										
										
										
											2015-06-26 04:21:03 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace Ui { | 
					
						
							|  |  |  | class TemplateEdit; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class TemplateEdit : public QDialog | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	Q_OBJECT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2015-07-05 07:26:39 +02:00
										 |  |  | 	explicit TemplateEdit(QWidget *parent, struct print_options *printOptions, struct template_options *templateOptions); | 
					
						
							| 
									
										
										
										
											2015-06-26 04:21:03 +02:00
										 |  |  | 	~TemplateEdit(); | 
					
						
							| 
									
										
										
										
											2015-06-29 03:24:29 +02:00
										 |  |  | private slots: | 
					
						
							|  |  |  | 	void on_fontsize_valueChanged(int font_size); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void on_linespacing_valueChanged(double line_spacing); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-06 18:41:54 +02:00
										 |  |  | 	void on_borderwidth_valueChanged(double border_width); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-29 03:24:29 +02:00
										 |  |  | 	void on_fontSelection_currentIndexChanged(int index); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void on_colorpalette_currentIndexChanged(int index); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-11 01:37:27 +02:00
										 |  |  | 	void on_buttonBox_clicked(QAbstractButton *button); | 
					
						
							| 
									
										
										
										
											2015-07-05 07:29:46 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-12 05:54:00 +02:00
										 |  |  | 	void colorSelect(QAbstractButton *button); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-26 04:21:03 +02:00
										 |  |  | private: | 
					
						
							|  |  |  | 	Ui::TemplateEdit *ui; | 
					
						
							| 
									
										
										
										
											2015-07-12 05:54:00 +02:00
										 |  |  | 	QButtonGroup *btnGroup; | 
					
						
							| 
									
										
										
										
											2015-07-29 19:49:50 +02:00
										 |  |  | 	bool editingCustomColors; | 
					
						
							| 
									
										
										
										
											2015-06-29 03:16:19 +02:00
										 |  |  | 	struct template_options *templateOptions; | 
					
						
							| 
									
										
										
										
											2015-07-11 01:06:43 +02:00
										 |  |  | 	struct template_options newTemplateOptions; | 
					
						
							| 
									
										
										
										
											2015-07-05 07:26:39 +02:00
										 |  |  | 	struct print_options *printOptions; | 
					
						
							| 
									
										
										
										
											2015-07-05 07:29:46 +02:00
										 |  |  | 	QString grantlee_template; | 
					
						
							| 
									
										
										
										
											2015-07-11 01:37:27 +02:00
										 |  |  | 	void saveSettings(); | 
					
						
							| 
									
										
										
										
											2015-07-11 12:50:14 +02:00
										 |  |  | 	void updatePreview(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-26 04:21:03 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // TEMPLATEEDIT_H
 |