QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsCptCityColorRampDialog Class Reference

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

#include <qgscptcitycolorrampdialog.h>

Inheritance diagram for QgsCptCityColorRampDialog:

Signals

void changed ()
 Emitted when the dialog settings change.

Public Member Functions

 QgsCptCityColorRampDialog (const QgsCptCityColorRamp &ramp, QWidget *parent=nullptr)
 Constructor for QgsCptCityColorRampDialog.
QDialogButtonBox * buttonBox () const
 Returns a reference to the dialog's button box.
bool eventFilter (QObject *obj, QEvent *event) override
QgsCptCityColorRamp ramp () const
 Returns a color ramp representing the current settings from the dialog.
bool saveAsGradientRamp () const
 Returns true if the ramp should be converted to a QgsGradientColorRamp.
QString selectedName () const
 Returns the name of the ramp currently selected in the dialog.
void setRamp (const QgsCptCityColorRamp &ramp)
 Sets the color ramp to show in the dialog.

Properties

QgsCptCityColorRamp ramp

Detailed Description

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

Definition at line 41 of file qgscptcitycolorrampdialog.h.

Constructor & Destructor Documentation

◆ QgsCptCityColorRampDialog()

QgsCptCityColorRampDialog::QgsCptCityColorRampDialog ( const QgsCptCityColorRamp & ramp,
QWidget * parent = nullptr )

Constructor for QgsCptCityColorRampDialog.

Parameters
rampinitial ramp to show in dialog
parentparent widget

Definition at line 42 of file qgscptcitycolorrampdialog.cpp.

Member Function Documentation

◆ buttonBox()

QDialogButtonBox * QgsCptCityColorRampDialog::buttonBox ( ) const

Returns a reference to the dialog's button box.

Since
QGIS 3.10

Definition at line 505 of file qgscptcitycolorrampdialog.cpp.

◆ changed

void QgsCptCityColorRampDialog::changed ( )
signal

Emitted when the dialog settings change.

◆ eventFilter()

bool QgsCptCityColorRampDialog::eventFilter ( QObject * obj,
QEvent * event )
override

Definition at line 548 of file qgscptcitycolorrampdialog.cpp.

◆ ramp()

QgsCptCityColorRamp QgsCptCityColorRampDialog::ramp ( ) const
inline

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

See also
setRamp()

Definition at line 58 of file qgscptcitycolorrampdialog.h.

◆ saveAsGradientRamp()

bool QgsCptCityColorRampDialog::saveAsGradientRamp ( ) const

Returns true if the ramp should be converted to a QgsGradientColorRamp.

Definition at line 498 of file qgscptcitycolorrampdialog.cpp.

◆ selectedName()

QString QgsCptCityColorRampDialog::selectedName ( ) const
inline

Returns the name of the ramp currently selected in the dialog.

Definition at line 70 of file qgscptcitycolorrampdialog.h.

◆ setRamp()

void QgsCptCityColorRampDialog::setRamp ( const QgsCptCityColorRamp & ramp)

Sets the color ramp to show in the dialog.

Parameters
rampcolor ramp
See also
ramp()

Definition at line 131 of file qgscptcitycolorrampdialog.cpp.

Property Documentation

◆ ramp

QgsCptCityColorRamp QgsCptCityColorRampDialog::ramp
readwrite

Definition at line 44 of file qgscptcitycolorrampdialog.h.


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