16 #ifndef QGSGRADIENTCOLORRAMPDIALOG_H    17 #define QGSGRADIENTCOLORRAMPDIALOG_H    22 #include "ui_qgsgradientcolorrampdialogbase.h"    30 class QgsGradientPlotEventFilter;
    77     void setColor1( 
const QColor &color );
    83     void setColor2( 
const QColor &color );
    86     void cboType_currentIndexChanged( 
int index );
    87     void btnInformation_pressed();
    88     void updateRampFromStopEditor();
    89     void updateColorButtons();
    90     void updateStopEditor();
    92     void colorWidgetChanged( 
const QColor &color );
    93     void mPositionSpinBox_valueChanged( 
double val );
    94     void mPlotHueCheckbox_toggled( 
bool checked );
    95     void mPlotLightnessCheckbox_toggled( 
bool checked );
    96     void mPlotSaturationCheckbox_toggled( 
bool checked );
    97     void mPlotAlphaCheckbox_toggled( 
bool checked );
    98     void plotMousePress( QPointF point );
    99     void plotMouseRelease( QPointF point );
   100     void plotMouseMove( QPointF point );
   106     QwtPlotCurve *mLightnessCurve = 
nullptr;
   107     QwtPlotCurve *mSaturationCurve = 
nullptr;
   108     QwtPlotCurve *mHueCurve = 
nullptr;
   109     QwtPlotCurve *mAlphaCurve = 
nullptr;
   110     QList< QwtPlotMarker * > mMarkers;
   111     QgsGradientPlotEventFilter *mPlotFilter = 
nullptr;
   112     int mCurrentPlotColorComponent;
   113     int mCurrentPlotMarkerIndex;
   116     void addPlotMarker( 
double x, 
double y, 
const QColor &color, 
bool isSelected = 
false );
   117     void addMarkersForColor( 
double x, 
const QColor &color, 
bool isSelected = 
false );
   127 class GUI_EXPORT QgsGradientPlotEventFilter: 
public QObject
   133     QgsGradientPlotEventFilter( QwtPlot *plot );
   135     bool eventFilter( QObject *
object, QEvent *event ) 
override;
   139     void mousePress( QPointF );
   140     void mouseRelease( QPointF );
   141     void mouseMove( QPointF );
   145     QwtPlot *mPlot = 
nullptr;
   146     QPointF mapPoint( QPointF point ) 
const;
 
Represents a color stop within a QgsGradientColorRamp color ramp. 
 
A dialog which allows users to modify the properties of a QgsGradientColorRamp. 
 
Gradient color ramp, which smoothly interpolates between two colors and also supports optional extra ...
 
QgsGradientColorRamp ramp() const
Returns a color ramp representing the current settings from the dialog.