16 #ifndef QGSGRADIENTCOLORRAMPDIALOG_H    17 #define QGSGRADIENTCOLORRAMPDIALOG_H    22 #include "ui_qgsgradientcolorrampdialogbase.h"    30 class QgsGradientPlotEventFilter;
    70     QDialogButtonBox *buttonBox() 
const;
    83     void setColor1( 
const QColor &color );
    89     void setColor2( 
const QColor &color );
    92     void cboType_currentIndexChanged( 
int index );
    93     void btnInformation_pressed();
    94     void updateRampFromStopEditor();
    95     void updateColorButtons();
    96     void updateStopEditor();
    98     void colorWidgetChanged( 
const QColor &color );
    99     void mPositionSpinBox_valueChanged( 
double val );
   100     void mPlotHueCheckbox_toggled( 
bool checked );
   101     void mPlotLightnessCheckbox_toggled( 
bool checked );
   102     void mPlotSaturationCheckbox_toggled( 
bool checked );
   103     void mPlotAlphaCheckbox_toggled( 
bool checked );
   104     void plotMousePress( QPointF point );
   105     void plotMouseRelease( QPointF point );
   106     void plotMouseMove( QPointF point );
   112     QwtPlotCurve *mLightnessCurve = 
nullptr;
   113     QwtPlotCurve *mSaturationCurve = 
nullptr;
   114     QwtPlotCurve *mHueCurve = 
nullptr;
   115     QwtPlotCurve *mAlphaCurve = 
nullptr;
   116     QList< QwtPlotMarker * > mMarkers;
   117     QgsGradientPlotEventFilter *mPlotFilter = 
nullptr;
   118     int mCurrentPlotColorComponent;
   119     int mCurrentPlotMarkerIndex;
   122     void addPlotMarker( 
double x, 
double y, 
const QColor &color, 
bool isSelected = 
false );
   123     void addMarkersForColor( 
double x, 
const QColor &color, 
bool isSelected = 
false );
   133 class GUI_EXPORT QgsGradientPlotEventFilter: 
public QObject
   139     QgsGradientPlotEventFilter( QwtPlot *plot );
   141     bool eventFilter( QObject *
object, QEvent *event ) 
override;
   145     void mousePress( QPointF );
   146     void mouseRelease( QPointF );
   147     void mouseMove( QPointF );
   151     QwtPlot *mPlot = 
nullptr;
   152     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.