| 
									
										
										
										
											2015-07-19 18:43:48 +02:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * colormap.h | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  Created on: Jul 19, 2015 | 
					
						
							|  |  |  |  *      Author: f4exb | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | #ifndef INCLUDE_GPL_GUI_COLORMAPPER_H_
 | 
					
						
							|  |  |  | #define INCLUDE_GPL_GUI_COLORMAPPER_H_
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QColor>
 | 
					
						
							|  |  |  | #include <vector>
 | 
					
						
							|  |  |  | #include <utility>
 | 
					
						
							|  |  |  | #include "util/export.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-30 01:26:51 +02:00
										 |  |  | class SDRANGEL_API ColorMapper | 
					
						
							| 
									
										
										
										
											2015-07-19 18:43:48 +02:00
										 |  |  | { | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  | 	enum Theme { | 
					
						
							|  |  |  | 		Normal, | 
					
						
							| 
									
										
										
										
											2015-07-19 19:39:16 +02:00
										 |  |  | 		Gold, | 
					
						
							| 
									
										
										
										
											2015-07-19 18:43:48 +02:00
										 |  |  | 		ReverseGold, | 
					
						
							| 
									
										
										
										
											2016-10-30 10:03:09 +01:00
										 |  |  | 		ReverseGreenEmerald, | 
					
						
							|  |  |  | 		ReverseGreen, | 
					
						
							|  |  |  | 		ReverseGreenApple, | 
					
						
							|  |  |  | 		ReverseGreenYellow | 
					
						
							| 
									
										
										
										
											2015-07-19 18:43:48 +02:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	typedef std::vector<std::pair<float, QColor> > colormap; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	ColorMapper(Theme theme = Normal); | 
					
						
							|  |  |  | 	~ColorMapper(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	const colormap& getDialBackgroundColorMap() const { return m_dialBackgroundcolorMap; }; | 
					
						
							|  |  |  | 	const QColor& getForegroundColor() const { return m_foregroundColor; }; | 
					
						
							|  |  |  | 	const QColor& getSecondaryForegroundColor() const { return m_secondaryForegroundColor; }; | 
					
						
							|  |  |  | 	const QColor& getHighlightColor() const { return m_highlightColor; }; | 
					
						
							| 
									
										
										
										
											2015-07-19 19:39:16 +02:00
										 |  |  | 	const QColor& getBoundaryColor() const { return m_boundaryColor; }; | 
					
						
							|  |  |  | 	const QColor& getBoundaryAlphaColor() const { return m_boundaryAlphaColor; }; | 
					
						
							| 
									
										
										
										
											2015-07-19 18:43:48 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  | 	Theme m_theme; | 
					
						
							|  |  |  | 	std::vector<std::pair<float, QColor> > m_dialBackgroundcolorMap; | 
					
						
							|  |  |  | 	QColor m_foregroundColor; | 
					
						
							|  |  |  | 	QColor m_secondaryForegroundColor; | 
					
						
							|  |  |  | 	QColor m_highlightColor; | 
					
						
							| 
									
										
										
										
											2015-07-19 19:39:16 +02:00
										 |  |  | 	QColor m_boundaryColor; | 
					
						
							|  |  |  | 	QColor m_boundaryAlphaColor; | 
					
						
							| 
									
										
										
										
											2015-07-19 18:43:48 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* INCLUDE_GPL_GUI_COLORMAPPER_H_ */
 |