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

#include <qgscolorrampcombobox.h>

Public Slots

void colorRampChanged (int index)

Public Member Functions

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

Static Public Attributes

static QSize rampIconSize

Protected Attributes

QgsVectorColorRampV2mSourceColorRamp
QgsStyleV2mStyle

Detailed Description

Definition at line 23 of file qgscolorrampcombobox.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file qgscolorrampcombobox.cpp.

QgsColorRampComboBox::~QgsColorRampComboBox ( )

Definition at line 29 of file qgscolorrampcombobox.cpp.

Member Function Documentation

void QgsColorRampComboBox::colorRampChanged ( int  index)
slot

Definition at line 95 of file qgscolorrampcombobox.cpp.

bool QgsColorRampComboBox::createNewColorRampSelected ( ) const

Returns true if the current selection in the combo box is the option for creating a new color ramp.

Note
added in QGIS 2.7

Definition at line 77 of file qgscolorrampcombobox.cpp.

QgsVectorColorRampV2 * QgsColorRampComboBox::currentColorRamp ( )

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

Definition at line 63 of file qgscolorrampcombobox.cpp.

void QgsColorRampComboBox::populate ( QgsStyleV2 style)

initialize the combo box with color ramps from the style

Definition at line 34 of file qgscolorrampcombobox.cpp.

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

Definition at line 50 of file qgscolorrampcombobox.h.

void QgsColorRampComboBox::setSourceColorRamp ( QgsVectorColorRampV2 sourceRamp)

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

Definition at line 83 of file qgscolorrampcombobox.cpp.

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

Definition at line 52 of file qgscolorrampcombobox.h.

Member Data Documentation

QgsVectorColorRampV2* QgsColorRampComboBox::mSourceColorRamp
protected

Definition at line 59 of file qgscolorrampcombobox.h.

QgsStyleV2* QgsColorRampComboBox::mStyle
protected

Definition at line 58 of file qgscolorrampcombobox.h.

QSize QgsColorRampComboBox::rampIconSize
static
Note
not available in python bindings

Definition at line 47 of file qgscolorrampcombobox.h.


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