QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Slots | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
QgsColorRampComboBox Class Reference

#include <qgscolorrampcombobox.h>

Inheritance diagram for QgsColorRampComboBox:
Inheritance graph
[legend]

Public Slots

void colorRampChanged (int index)
 

Public Member Functions

 QgsColorRampComboBox (QWidget *parent=0)
 
 ~QgsColorRampComboBox ()
 
void populate (QgsStyleV2 *style)
 initialize the combo box with color ramps from the style More...
 
void setSourceColorRamp (QgsVectorColorRampV2 *sourceRamp)
 add/select color ramp which was used previously by the renderer More...
 
QgsVectorColorRampV2currentColorRamp ()
 return new instance of the current color ramp or NULL if there is no active color ramp More...
 
void setShowGradientOnly (bool gradientOnly)
 
bool showGradientOnly () const
 

Static Public Attributes

static QSize rampIconSize
 

Protected Attributes

QgsStyleV2mStyle
 
QgsVectorColorRampV2mSourceColorRamp
 

Constructor & Destructor Documentation

QgsColorRampComboBox::QgsColorRampComboBox ( QWidget *  parent = 0)
explicit
QgsColorRampComboBox::~QgsColorRampComboBox ( )

Member Function Documentation

void QgsColorRampComboBox::colorRampChanged ( int  index)
slot
QgsVectorColorRampV2 * QgsColorRampComboBox::currentColorRamp ( )

return new instance of the current color ramp or NULL if there is no active color ramp

void QgsColorRampComboBox::populate ( QgsStyleV2 style)

initialize the combo box with color ramps from the style

void QgsColorRampComboBox::setShowGradientOnly ( bool  gradientOnly)
inline
Note
added in 2.2
void QgsColorRampComboBox::setSourceColorRamp ( QgsVectorColorRampV2 sourceRamp)

add/select color ramp which was used previously by the renderer

bool QgsColorRampComboBox::showGradientOnly ( ) const
inline
Note
added in 2.2

Member Data Documentation

QgsVectorColorRampV2* QgsColorRampComboBox::mSourceColorRamp
protected
QgsStyleV2* QgsColorRampComboBox::mStyle
protected
QSize QgsColorRampComboBox::rampIconSize
static
Note
not available in python bindings

The documentation for this class was generated from the following files: