QGIS API Documentation  2.7.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 ()
 
QgsVectorColorRampV2currentColorRamp ()
 return new instance of the current color ramp or NULL if there is no active color ramp More...
 
void populate (QgsStyleV2 *style)
 initialize the combo box with color ramps from the style More...
 
void setShowGradientOnly (bool gradientOnly)
 
void setSourceColorRamp (QgsVectorColorRampV2 *sourceRamp)
 add/select color ramp which was used previously by the renderer More...
 
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 89 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 44 of file qgscolorrampcombobox.h.

void QgsColorRampComboBox::setSourceColorRamp ( QgsVectorColorRampV2 sourceRamp)

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

Definition at line 77 of file qgscolorrampcombobox.cpp.

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

Definition at line 46 of file qgscolorrampcombobox.h.

Member Data Documentation

QgsVectorColorRampV2* QgsColorRampComboBox::mSourceColorRamp
protected

Definition at line 53 of file qgscolorrampcombobox.h.

QgsStyleV2* QgsColorRampComboBox::mStyle
protected

Definition at line 52 of file qgscolorrampcombobox.h.

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

Definition at line 41 of file qgscolorrampcombobox.h.


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