SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
colormapper.h
Go to the documentation of this file.
1 /*
2  * colormap.h
3  *
4  * Created on: Jul 19, 2015
5  * Author: f4exb
6  */
7 #ifndef INCLUDE_GPL_GUI_COLORMAPPER_H_
8 #define INCLUDE_GPL_GUI_COLORMAPPER_H_
9 
10 #include <QColor>
11 #include <vector>
12 #include <utility>
13 #include "export.h"
14 
16 {
17 public:
18  enum Theme {
28  GrayYellow
29  };
30 
31  typedef std::vector<std::pair<float, QColor> > colormap;
32 
33  ColorMapper(Theme theme = Normal);
34  ~ColorMapper();
35 
36  const colormap& getDialBackgroundColorMap() const { return m_dialBackgroundcolorMap; };
37  const QColor& getForegroundColor() const { return m_foregroundColor; };
38  const QColor& getSecondaryForegroundColor() const { return m_secondaryForegroundColor; };
39  const QColor& getHighlightColor() const { return m_highlightColor; };
40  const QColor& getBoundaryColor() const { return m_boundaryColor; };
41  const QColor& getBoundaryAlphaColor() const { return m_boundaryAlphaColor; };
42  const QColor& getLightBorderColor() const { return m_lightBorderColor; };
43  const QColor& getDarkBorderColor() const { return m_darkBorderColor; };
44 
45 private:
46  Theme m_theme;
47  std::vector<std::pair<float, QColor> > m_dialBackgroundcolorMap;
55 };
56 
57 #endif /* INCLUDE_GPL_GUI_COLORMAPPER_H_ */
QColor m_highlightColor
Definition: colormapper.h:50
std::vector< std::pair< float, QColor > > colormap
Definition: colormapper.h:31
const QColor & getBoundaryColor() const
Definition: colormapper.h:40
const QColor & getForegroundColor() const
Definition: colormapper.h:37
QColor m_boundaryAlphaColor
Definition: colormapper.h:52
const QColor & getHighlightColor() const
Definition: colormapper.h:39
Theme m_theme
Definition: colormapper.h:43
QColor m_foregroundColor
Definition: colormapper.h:48
QColor m_lightBorderColor
Definition: colormapper.h:53
QColor m_darkBorderColor
Definition: colormapper.h:54
const colormap & getDialBackgroundColorMap() const
Definition: colormapper.h:36
#define SDRGUI_API
Definition: export.h:52
QColor m_secondaryForegroundColor
Definition: colormapper.h:49
const QColor & getBoundaryAlphaColor() const
Definition: colormapper.h:41
QColor m_boundaryColor
Definition: colormapper.h:51
const QColor & getLightBorderColor() const
Definition: colormapper.h:42
const QColor & getSecondaryForegroundColor() const
Definition: colormapper.h:38
std::vector< std::pair< float, QColor > > m_dialBackgroundcolorMap
Definition: colormapper.h:47