comparison widgets/ColourMapComboBox.h @ 1199:73d43e410a6b levelpanwidget

Add swatches to colour map combo (optionally, as it turns out they are quite visually distracting)
author Chris Cannam
date Fri, 16 Dec 2016 15:55:59 +0000
parents 69ff93e0c624
children
comparison
equal deleted inserted replaced
1198:69ff93e0c624 1199:73d43e410a6b
17 #define SV_COLOURMAP_COMBO_BOX_H 17 #define SV_COLOURMAP_COMBO_BOX_H
18 18
19 #include "NotifyingComboBox.h" 19 #include "NotifyingComboBox.h"
20 20
21 /** 21 /**
22 * Colour map picker combo box with swatches 22 * Colour map picker combo box with optional swatches
23 */ 23 */
24 class ColourMapComboBox : public NotifyingComboBox 24 class ColourMapComboBox : public NotifyingComboBox
25 { 25 {
26 Q_OBJECT 26 Q_OBJECT
27 27
28 public: 28 public:
29 ColourMapComboBox(QWidget *parent = 0); 29 ColourMapComboBox(bool includeSwatches, QWidget *parent = 0);
30 30
31 signals: 31 signals:
32 void colourMapChanged(int index); 32 void colourMapChanged(int index);
33 33
34 private slots: 34 private slots:
35 void rebuild(); 35 void rebuild();
36 void comboActivated(int); 36 void comboActivated(int);
37
38 private:
39 bool m_includeSwatches;
37 }; 40 };
38 41
39 #endif 42 #endif
40 43