ColorScaleEditor.h
40 lines
| 1006 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r1042 | #ifndef SCIQLOP_COLORSCALEEDITOR_H | ||
#define SCIQLOP_COLORSCALEEDITOR_H | ||||
Alexandre Leroux
|
r1044 | #include <QButtonGroup> | ||
Alexandre Leroux
|
r1042 | #include <QDialog> | ||
namespace Ui { | ||||
class ColorScaleEditor; | ||||
} // Ui | ||||
Alexandre Leroux
|
r1047 | class QCPColorScale; | ||
Alexandre Leroux
|
r1042 | /** | ||
* @brief The ColorScaleEditor class represents the widget to set properties of color scale's graphs | ||||
*/ | ||||
class ColorScaleEditor : public QDialog { | ||||
Q_OBJECT | ||||
public: | ||||
explicit ColorScaleEditor(QWidget *parent = 0); | ||||
virtual ~ColorScaleEditor() noexcept; | ||||
private: | ||||
Ui::ColorScaleEditor *ui; | ||||
Alexandre Leroux
|
r1044 | QButtonGroup *m_ThresholdGroup; | ||
Alexandre Leroux
|
r1047 | QCPColorScale *m_PreviewScale; ///< Scale shown as preview | ||
Alexandre Leroux
|
r1044 | |||
private slots: | ||||
Alexandre Leroux
|
r1045 | /// Slot called when max threshold value changes | ||
void onMaxChanged(); | ||||
/// Slot called when min threshold value changes | ||||
void onMinChanged(); | ||||
Alexandre Leroux
|
r1044 | /// Slot called when the threshold mode (auto or manual) changes | ||
void onThresholdChanged(bool checked); | ||||
Alexandre Leroux
|
r1048 | |||
/// Slot called when a property of the color scale changed | ||||
void updatePreview(); | ||||
Alexandre Leroux
|
r1042 | }; | ||
#endif // SCIQLOP_COLORSCALEEDITOR_H | ||||