QGIS/python/gui/symbology-ng/qgscolorrampcombobox.sip
Juergen E. Fischer d1fd484bd3 fix build error
2013-06-23 21:19:25 +02:00

23 lines
631 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();
public slots:
void colorRampChanged( int index );
};