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

31 lines
854 B
Plaintext
Raw Normal View History

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();
2014-01-28 00:26:03 +01:00
//! @note not available in python bindings
// static QSize rampIconSize;
2014-01-26 18:35:21 +01:00
//! @note added in 2.2
2014-01-26 18:35:21 +01:00
void setShowGradientOnly( bool gradientOnly );
//! @note added in 2.2
bool showGradientOnly() const;
2014-01-26 18:35:21 +01:00
public slots:
void colorRampChanged( int index );
};