QGIS/python/gui/symbology-ng/qgscolorrampcombobox.sip
Martin Dobias 8b10eb0306 Color ramp combo box: do not show "random colors" if gradients-only is on
+ added option to query whether gradients-only option is enabled
2014-02-14 19:20:34 +07:00

31 lines
854 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();
//! @note not available in python bindings
// static QSize rampIconSize;
//! @note added in 2.2
void setShowGradientOnly( bool gradientOnly );
//! @note added in 2.2
bool showGradientOnly() const;
public slots:
void colorRampChanged( int index );
};