QGIS/python/gui/symbology-ng/qgscptcitycolorrampdialog.sip

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-08-24 13:41:08 +10:00
/** \ingroup gui
* \class QgsCptCityColorRampDialog
* A dialog which allows users to modify the properties of a QgsCptCityColorRamp.
* \note added in QGIS 3.0
*/
2016-08-06 11:01:42 +02:00
class QgsCptCityColorRampDialog : QDialog
{
%TypeHeaderCode
#include <qgscptcitycolorrampdialog.h>
%End
public:
2016-08-24 13:41:08 +10:00
/** Constructor for QgsCptCityColorRampDialog.
* @param ramp initial ramp to show in dialog
* @param parent parent widget
*/
QgsCptCityColorRampDialog( const QgsCptCityColorRamp& ramp, QWidget* parent /TransferThis/ = nullptr );
2016-08-06 11:01:42 +02:00
~QgsCptCityColorRampDialog();
2016-08-24 13:41:08 +10:00
/** Returns a color ramp representing the current settings from the dialog.
* @see setRamp()
*/
QgsCptCityColorRamp ramp() const;
2016-08-24 13:41:08 +10:00
/** Sets the color ramp to show in the dialog.
* @param ramp color ramp
* @see ramp()
*/
void setRamp( const QgsCptCityColorRamp& ramp );
2016-08-24 13:41:08 +10:00
/** Returns the name of the ramp currently selected in the dialog.
*/
QString selectedName() const;
2016-08-24 13:41:08 +10:00
/** Returns true if the ramp should be converted to a QgsGradientColorRamp.
*/
2013-06-23 16:00:16 +02:00
bool saveAsGradientRamp() const;
bool eventFilter( QObject *obj, QEvent *event );
2016-08-24 13:41:08 +10:00
signals:
//! Emitted when the dialog settings change
void changed();
};