16 #ifndef QGSPRESETCOLORRAMPDIALOG_H    17 #define QGSPRESETCOLORRAMPDIALOG_H    23 #include "ui_qgspresetcolorrampwidgetbase.h"    26 class QDialogButtonBox;
    69     void mButtonAddColor_clicked();
    71     void newColorChanged( 
const QColor &color );
   117     QDialogButtonBox *buttonBox() 
const;
   127     QDialogButtonBox *mButtonBox = 
nullptr;
   135 #endif //QGSPRESETCOLORRAMPDIALOG_H 
QgsPresetSchemeColorRamp ramp() const
Returns a color ramp representing the current settings from the dialog. 
 
A dialog which allows users to modify the properties of a QgsPresetSchemeColorRamp. 
 
A scheme based color ramp consisting of a list of predefined colors. 
 
void setRamp(const QgsPresetSchemeColorRamp &ramp)
Sets the color ramp to show in the dialog.