QGIS/python/gui/symbology-ng/qgscolorrampcombobox.sip
2014-01-26 18:36:29 +01:00

27 lines
715 B
Plaintext

class QgsColorRampComboBox : QComboBox
{
%TypeHeaderCode
#include <qgscolorrampcombobox.h>
%End
public:
QgsColorRampComboBox( QWidget *parent = 0 );
~QgsColorRampComboBox();
//! initialize the combo box with color ramps from the style
void populate( QgsStyleV2* style );
//! add/select color ramp which was used previously by the renderer
void setSourceColorRamp( QgsVectorColorRampV2* sourceRamp );
//! return new instance of the current color ramp or NULL if there is no active color ramp
QgsVectorColorRampV2* currentColorRamp();
static QSize rampIconSize;
void setShowGradientOnly( bool gradientOnly );
public slots:
void colorRampChanged( int index );
};