##// END OF EJS Templates
Implements color scale loading when the editor is open
Implements color scale loading when the editor is open

File last commit:

r1011:9104d7a70c66
r1011:9104d7a70c66
Show More
ColorScaleEditor.h
48 lines | 1.3 KiB | text/x-c | CLexer
Alexandre Leroux
Inits color scale widget
r1001 #ifndef SCIQLOP_COLORSCALEEDITOR_H
#define SCIQLOP_COLORSCALEEDITOR_H
Alexandre Leroux
Inits threshold mode buttons (auto or manual)...
r1003 #include <QButtonGroup>
Alexandre Leroux
Inits color scale widget
r1001 #include <QDialog>
namespace Ui {
class ColorScaleEditor;
} // Ui
Alexandre Leroux
Adds the color scale in edting in color scale editor
r1010 class SqpColorScale;
Alexandre Leroux
Inits color scale preview
r1006 class QCPColorScale;
Alexandre Leroux
Inits color scale widget
r1001 /**
* @brief The ColorScaleEditor class represents the widget to set properties of color scale's graphs
*/
class ColorScaleEditor : public QDialog {
Q_OBJECT
public:
Alexandre Leroux
Adds the color scale in edting in color scale editor
r1010 explicit ColorScaleEditor(SqpColorScale &scale, QWidget *parent = 0);
Alexandre Leroux
Inits color scale widget
r1001 virtual ~ColorScaleEditor() noexcept;
private:
Alexandre Leroux
Implements color scale loading when the editor is open
r1011 /// Fills the editor fields from color scale data
void loadScale();
Alexandre Leroux
Inits color scale widget
r1001 Ui::ColorScaleEditor *ui;
Alexandre Leroux
Inits threshold mode buttons (auto or manual)...
r1003 QButtonGroup *m_ThresholdGroup;
Alexandre Leroux
Adds the color scale in edting in color scale editor
r1010 /// Scale in editing
/// @remarks reference must remain valid throughout the existence of the ColorScaleEditor
/// instance
SqpColorScale &m_Scale;
/// Scale shown as preview
QCPColorScale *m_PreviewScale;
Alexandre Leroux
Inits threshold mode buttons (auto or manual)...
r1003
private slots:
Alexandre Leroux
Inits min/max spinboxes...
r1004 /// Slot called when max threshold value changes
void onMaxChanged();
/// Slot called when min threshold value changes
void onMinChanged();
Alexandre Leroux
Inits threshold mode buttons (auto or manual)...
r1003 /// Slot called when the threshold mode (auto or manual) changes
void onThresholdChanged(bool checked);
Alexandre Leroux
Implements preview update...
r1007
/// Slot called when a property of the color scale changed
void updatePreview();
Alexandre Leroux
Inits color scale widget
r1001 };
#endif // SCIQLOP_COLORSCALEEDITOR_H