QGIS API Documentation
2.0.1-Dufour
|
A combobox which lets the user select blend modes from a predefined list. More...
#include <qgsblendmodecombobox.h>
Public Slots | |
void | updateModes () |
Public Member Functions | |
QgsBlendModeComboBox (QWidget *parent=0) | |
virtual | ~QgsBlendModeComboBox () |
QPainter::CompositionMode | blendMode () |
Function to read the selected blend mode as QPainter::CompositionMode. | |
void | setBlendMode (QPainter::CompositionMode blendMode) |
Function to set the selected blend mode from QPainter::CompositionMode. |
Private Member Functions | |
QStringList | blendModesList () const |
Returns a list of grouped blend modes (with seperators) |
Private Attributes | |
std::vector< int > | mBlendModeToListIndex |
Used to map blend modes across to their corresponding. | |
std::vector< int > | mListIndexToBlendMode |
A combobox which lets the user select blend modes from a predefined list.
Definition at line 28 of file qgsblendmodecombobox.h.
QgsBlendModeComboBox::QgsBlendModeComboBox | ( | QWidget * | parent = 0 | ) |
Definition at line 27 of file qgsblendmodecombobox.cpp.
References updateModes().
|
virtual |
Definition at line 32 of file qgsblendmodecombobox.cpp.
QPainter::CompositionMode QgsBlendModeComboBox::blendMode | ( | ) |
Function to read the selected blend mode as QPainter::CompositionMode.
Function to read the selected blend mode.
Definition at line 102 of file qgsblendmodecombobox.cpp.
References QgsMapRenderer::getCompositionMode(), and mListIndexToBlendMode.
|
private |
Returns a list of grouped blend modes (with seperators)
Definition at line 41 of file qgsblendmodecombobox.cpp.
References tr.
Referenced by updateModes().
void QgsBlendModeComboBox::setBlendMode | ( | QPainter::CompositionMode | blendMode | ) |
Function to set the selected blend mode from QPainter::CompositionMode.
Function to set the selected blend mode.
Definition at line 108 of file qgsblendmodecombobox.cpp.
References QgsMapRenderer::getBlendModeEnum(), and mBlendModeToListIndex.
|
slot |
Definition at line 65 of file qgsblendmodecombobox.cpp.
References blendModesList(), mBlendModeToListIndex, and mListIndexToBlendMode.
Referenced by QgsBlendModeComboBox().
|
private |
Used to map blend modes across to their corresponding.
Definition at line 45 of file qgsblendmodecombobox.h.
Referenced by setBlendMode(), and updateModes().
|
private |
Definition at line 46 of file qgsblendmodecombobox.h.
Referenced by blendMode(), and updateModes().