QGIS/python/gui/qgslimitedrandomcolorrampdialog.sip
Nyall Dawson cf9292cc6d Color ramp dialogs no longer edit ramps in place
Now the dialogs use a copy of the ramp, and the edited
ramp is retrieved by calling ramp() on the dialog after
it is executed.

Avoids pointer lifetime issues by storing and working
on a ramp pointer which the dialog does not have ownership
on.

Also fix a bunch of leaks relating to cloning color ramps.
2016-08-24 21:01:03 +10:00

25 lines
557 B
Plaintext

class QgsLimitedRandomColorRampDialog : QDialog
{
%TypeHeaderCode
#include <qgslimitedrandomcolorrampdialog.h>
%End
public:
QgsLimitedRandomColorRampDialog( const QgsLimitedRandomColorRamp& ramp, QWidget* parent /TransferThis/ = nullptr );
QgsLimitedRandomColorRamp ramp() const;
public slots:
void setCount( int val );
void setHue1( int val );
void setHue2( int val );
void setSat1( int val );
void setSat2( int val );
void setVal1( int val );
void setVal2( int val );
protected:
void updatePreview();
};