QGIS API Documentation  3.8.0-Zanzibar (11aff65)
Signals | Public Member Functions | Properties | List of all members
QgsPresetColorRampDialog Class Reference

A dialog which allows users to modify the properties of a QgsPresetSchemeColorRamp. More...

#include <qgspresetcolorrampdialog.h>

Inheritance diagram for QgsPresetColorRampDialog:
Inheritance graph
[legend]

Signals

void changed ()
 Emitted when the dialog settings change. More...
 

Public Member Functions

 QgsPresetColorRampDialog (const QgsPresetSchemeColorRamp &ramp, QWidget *parent=nullptr)
 Constructor for QgsPresetColorRampDialog. More...
 
QgsPresetSchemeColorRamp ramp () const
 Returns a color ramp representing the current settings from the dialog. More...
 
void setRamp (const QgsPresetSchemeColorRamp &ramp)
 Sets the color ramp to show in the dialog. More...
 

Properties

QgsPresetSchemeColorRamp ramp
 

Detailed Description

A dialog which allows users to modify the properties of a QgsPresetSchemeColorRamp.

Since
QGIS 3.0

Definition at line 84 of file qgspresetcolorrampdialog.h.

Constructor & Destructor Documentation

◆ QgsPresetColorRampDialog()

QgsPresetColorRampDialog::QgsPresetColorRampDialog ( const QgsPresetSchemeColorRamp ramp,
QWidget *  parent = nullptr 
)

Constructor for QgsPresetColorRampDialog.

Parameters
rampinitial ramp to show in dialog
parentparent widget

Definition at line 109 of file qgspresetcolorrampdialog.cpp.

Member Function Documentation

◆ changed

void QgsPresetColorRampDialog::changed ( )
signal

Emitted when the dialog settings change.

◆ ramp()

QgsPresetSchemeColorRamp QgsPresetColorRampDialog::ramp ( ) const
inline

Returns a color ramp representing the current settings from the dialog.

See also
setRamp()

Definition at line 102 of file qgspresetcolorrampdialog.h.

◆ setRamp()

void QgsPresetColorRampDialog::setRamp ( const QgsPresetSchemeColorRamp ramp)
inline

Sets the color ramp to show in the dialog.

Parameters
rampcolor ramp
See also
ramp()

Definition at line 109 of file qgspresetcolorrampdialog.h.

Property Documentation

◆ ramp

QgsPresetSchemeColorRamp QgsPresetColorRampDialog::ramp
readwrite

Definition at line 87 of file qgspresetcolorrampdialog.h.


The documentation for this class was generated from the following files: