|
QGIS API Documentation
2.8.2-Wien
|
#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. | |
| QgsVectorColorRampV2 * | currentColorRamp () |
| 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 | |
| QgsVectorColorRampV2 * | mSourceColorRamp |
| QgsStyleV2 * | mStyle |
Definition at line 23 of file qgscolorrampcombobox.h.
|
explicit |
Definition at line 24 of file qgscolorrampcombobox.cpp.
| QgsColorRampComboBox::~QgsColorRampComboBox | ( | ) |
Definition at line 29 of file qgscolorrampcombobox.cpp.
|
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.
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.
|
inline |
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.
|
inline |
Definition at line 52 of file qgscolorrampcombobox.h.
|
protected |
Definition at line 59 of file qgscolorrampcombobox.h.
|
protected |
Definition at line 58 of file qgscolorrampcombobox.h.
|
static |
Definition at line 47 of file qgscolorrampcombobox.h.
1.8.1.2