16 #ifndef QGSVECTORGRADIENTCOLORRAMPV2DIALOG_H 17 #define QGSVECTORGRADIENTCOLORRAMPV2DIALOG_H 21 #include "ui_qgsvectorgradientcolorrampv2dialogbase.h" 27 class QgsGradientPlotEventFilter;
41 void setColor1(
const QColor& color );
42 void setColor2(
const QColor& color );
45 void on_cboType_currentIndexChanged(
int index );
46 void on_btnInformation_pressed();
53 void updateRampFromStopEditor();
54 void updateColorButtons();
55 void updateStopEditor();
57 void colorWidgetChanged(
const QColor& color );
58 void on_mPositionSpinBox_valueChanged(
double val );
59 void on_mPlotHueCheckbox_toggled(
bool checked );
60 void on_mPlotLightnessCheckbox_toggled(
bool checked );
61 void on_mPlotSaturationCheckbox_toggled(
bool checked );
62 void on_mPlotAlphaCheckbox_toggled(
bool checked );
63 void plotMousePress(
QPointF point );
64 void plotMouseRelease(
QPointF point );
65 void plotMouseMove(
QPointF point );
69 QwtPlotCurve* mLightnessCurve;
70 QwtPlotCurve* mSaturationCurve;
71 QwtPlotCurve* mHueCurve;
72 QwtPlotCurve* mAlphaCurve;
74 QgsGradientPlotEventFilter* mPlotFilter;
75 int mCurrentPlotColorComponent;
76 int mCurrentPlotMarkerIndex;
79 void addPlotMarker(
double x,
double y,
const QColor &color,
bool isSelected =
false );
80 void addMarkersForColor(
double x,
const QColor &color,
bool isSelected =
false );
89 class GUI_EXPORT QgsGradientPlotEventFilter:
public QObject 95 QgsGradientPlotEventFilter( QwtPlot *plot );
97 virtual ~QgsGradientPlotEventFilter() {}
Represents a color stop within a gradient color ramp.
virtual bool eventFilter(QObject *watched, QEvent *event)
QgsVectorGradientColorRampV2 * mRamp
Gradient color ramp, which smoothly interpolates between two colors and also supports optional extra ...