|
QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
A dialog which allows users to modify the properties of a QgsCptCityColorRamp. More...
#include <qgscptcitycolorrampdialog.h>

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 |
A dialog which allows users to modify the properties of a QgsCptCityColorRamp.
Definition at line 41 of file qgscptcitycolorrampdialog.h.
| QgsCptCityColorRampDialog::QgsCptCityColorRampDialog | ( | const QgsCptCityColorRamp & | ramp, |
| QWidget * | parent = nullptr |
||
| ) |
Constructor for QgsCptCityColorRampDialog.
| ramp | initial ramp to show in dialog |
| parent | parent widget |
Definition at line 40 of file qgscptcitycolorrampdialog.cpp.
| QDialogButtonBox * QgsCptCityColorRampDialog::buttonBox | ( | ) | const |
Returns a reference to the dialog's button box.
Definition at line 508 of file qgscptcitycolorrampdialog.cpp.
|
signal |
Emitted when the dialog settings change.
|
override |
Definition at line 551 of file qgscptcitycolorrampdialog.cpp.
|
inline |
Returns a color ramp representing the current settings from the dialog.
Definition at line 59 of file qgscptcitycolorrampdialog.h.
| bool QgsCptCityColorRampDialog::saveAsGradientRamp | ( | ) | const |
Returns true if the ramp should be converted to a QgsGradientColorRamp.
Definition at line 501 of file qgscptcitycolorrampdialog.cpp.
|
inline |
Returns the name of the ramp currently selected in the dialog.
Definition at line 71 of file qgscptcitycolorrampdialog.h.
| void QgsCptCityColorRampDialog::setRamp | ( | const QgsCptCityColorRamp & | ramp | ) |
Sets the color ramp to show in the dialog.
| ramp | color ramp |
Definition at line 132 of file qgscptcitycolorrampdialog.cpp.
|
readwrite |
Definition at line 44 of file qgscptcitycolorrampdialog.h.