| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  | #ifndef COLORHIGHLIGHTING_H_
 | 
					
						
							|  |  |  | #define COLORHIGHLIGHTING_H_
 | 
					
						
							| 
									
										
										
										
											2018-08-25 11:19:43 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <QDialog>
 | 
					
						
							| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  | #include <QScopedPointer>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class QSettings; | 
					
						
							|  |  |  | class DecodeHighlightingModel; | 
					
						
							| 
									
										
										
										
											2018-08-25 11:19:43 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace Ui { | 
					
						
							| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  |   class ColorHighlighting; | 
					
						
							| 
									
										
										
										
											2018-08-25 11:19:43 -04:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  | class ColorHighlighting final | 
					
						
							|  |  |  | : public QDialog | 
					
						
							| 
									
										
										
										
											2018-08-25 11:19:43 -04:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  |   Q_OBJECT; | 
					
						
							| 
									
										
										
										
											2018-08-25 11:19:43 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  |  public: | 
					
						
							|  |  |  |   explicit ColorHighlighting(QSettings *, DecodeHighlightingModel const&, QWidget * parent = nullptr); | 
					
						
							|  |  |  |   ~ColorHighlighting (); | 
					
						
							| 
									
										
										
										
											2018-08-25 11:19:43 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  |   Q_SLOT void set_items (DecodeHighlightingModel const&); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  private: | 
					
						
							| 
									
										
										
										
											2018-08-25 15:37:30 -04:00
										 |  |  |   void read_settings (); | 
					
						
							|  |  |  |   void write_settings (); | 
					
						
							| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   QScopedPointer<Ui::ColorHighlighting> ui; | 
					
						
							|  |  |  |   QSettings * settings_; | 
					
						
							| 
									
										
										
										
											2018-08-25 11:19:43 -04:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-17 00:26:04 +01:00
										 |  |  | #endif
 |