|
QGIS API Documentation
master-6227475
|
#include <qgsvectorgradientcolorrampv2dialog.h>
Collaboration diagram for QgsVectorGradientColorRampV2Dialog:Public Slots | |
| void | addStop () |
| void | removeStop () |
| void | setColor1 (const QColor &color) |
| void | setColor2 (const QColor &color) |
| void | setItemStopColor (const QColor &newColor) |
| void | stopDoubleClicked (QTreeWidgetItem *item, int column) |
| void | toggledStops (bool on) |
Public Member Functions | |
| QgsVectorGradientColorRampV2Dialog (QgsVectorGradientColorRampV2 *ramp, QWidget *parent=NULL) | |
Protected Slots | |
| void | on_btnInformation_pressed () |
| void | on_cboType_currentIndexChanged (int index) |
Protected Member Functions | |
| void | setStopColor (QTreeWidgetItem *item, QColor color) |
| void | updatePreview () |
| void | updateStops () |
Protected Attributes | |
| QTreeWidgetItem * | mCurrentItem |
| QgsVectorGradientColorRampV2 * | mRamp |
Static Protected Attributes | |
| static const int | StopColorRole = Qt::UserRole + 1 |
| static const int | StopOffsetRole = Qt::UserRole + 2 |
Definition at line 25 of file qgsvectorgradientcolorrampv2dialog.h.
| QgsVectorGradientColorRampV2Dialog::QgsVectorGradientColorRampV2Dialog | ( | QgsVectorGradientColorRampV2 * | ramp, |
| QWidget * | parent = NULL |
||
| ) |
Definition at line 30 of file qgsvectorgradientcolorrampv2dialog.cpp.
References addStop(), QgsVectorGradientColorRampV2::info(), QgsVectorGradientColorRampV2::isDiscrete(), mRamp, removeStop(), setColor1(), setColor2(), stopDoubleClicked(), toggledStops(), tr, updatePreview(), and updateStops().
| void QgsVectorGradientColorRampV2Dialog::addStop | ( | ) | [slot] |
Definition at line 314 of file qgsvectorgradientcolorrampv2dialog.cpp.
References setStopColor(), StopOffsetRole, tr, and updatePreview().
Referenced by QgsVectorGradientColorRampV2Dialog().
| void QgsVectorGradientColorRampV2Dialog::on_btnInformation_pressed | ( | ) | [protected, slot] |
Definition at line 80 of file qgsvectorgradientcolorrampv2dialog.cpp.
References QgsCptCityArchive::defaultBaseDir(), file, QgsVectorGradientColorRampV2::info(), QgsDialog::layout(), mRamp, and tr.
| void QgsVectorGradientColorRampV2Dialog::on_cboType_currentIndexChanged | ( | int | index | ) | [protected, slot] |
Definition at line 70 of file qgsvectorgradientcolorrampv2dialog.cpp.
References QgsVectorGradientColorRampV2::convertToDiscrete(), QgsVectorGradientColorRampV2::isDiscrete(), mRamp, updatePreview(), and updateStops().
| void QgsVectorGradientColorRampV2Dialog::removeStop | ( | ) | [slot] |
Definition at line 374 of file qgsvectorgradientcolorrampv2dialog.cpp.
References updatePreview().
Referenced by QgsVectorGradientColorRampV2Dialog().
| void QgsVectorGradientColorRampV2Dialog::setColor1 | ( | const QColor & | color | ) | [slot] |
Definition at line 217 of file qgsvectorgradientcolorrampv2dialog.cpp.
References mRamp, QgsVectorGradientColorRampV2::setColor1(), and updatePreview().
Referenced by QgsVectorGradientColorRampV2Dialog().
| void QgsVectorGradientColorRampV2Dialog::setColor2 | ( | const QColor & | color | ) | [slot] |
Definition at line 223 of file qgsvectorgradientcolorrampv2dialog.cpp.
References mRamp, QgsVectorGradientColorRampV2::setColor2(), and updatePreview().
Referenced by QgsVectorGradientColorRampV2Dialog().
| void QgsVectorGradientColorRampV2Dialog::setItemStopColor | ( | const QColor & | newColor | ) | [slot] |
Definition at line 250 of file qgsvectorgradientcolorrampv2dialog.cpp.
References mCurrentItem, setStopColor(), and updatePreview().
Referenced by stopDoubleClicked().
| void QgsVectorGradientColorRampV2Dialog::setStopColor | ( | QTreeWidgetItem * | item, |
| QColor | color | ||
| ) | [protected] |
Definition at line 229 of file qgsvectorgradientcolorrampv2dialog.cpp.
References StopColorRole.
Referenced by addStop(), setItemStopColor(), stopDoubleClicked(), and updateStops().
| void QgsVectorGradientColorRampV2Dialog::stopDoubleClicked | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [slot] |
Definition at line 259 of file qgsvectorgradientcolorrampv2dialog.cpp.
References QgsColorDialog::getLiveColor(), mCurrentItem, setItemStopColor(), setStopColor(), StopColorRole, StopOffsetRole, tr, and updatePreview().
Referenced by QgsVectorGradientColorRampV2Dialog().
| void QgsVectorGradientColorRampV2Dialog::toggledStops | ( | bool | on | ) | [slot] |
Definition at line 385 of file qgsvectorgradientcolorrampv2dialog.cpp.
References updatePreview().
Referenced by QgsVectorGradientColorRampV2Dialog().
| void QgsVectorGradientColorRampV2Dialog::updatePreview | ( | ) | [protected] |
Definition at line 192 of file qgsvectorgradientcolorrampv2dialog.cpp.
References QgsVectorGradientColorRampV2::color1(), QgsVectorGradientColorRampV2::color2(), QgsSymbolLayerV2Utils::colorRampPreviewPixmap(), mRamp, QgsVectorGradientColorRampV2::setStops(), size, StopColorRole, and StopOffsetRole.
Referenced by addStop(), on_cboType_currentIndexChanged(), QgsVectorGradientColorRampV2Dialog(), removeStop(), setColor1(), setColor2(), setItemStopColor(), stopDoubleClicked(), and toggledStops().
| void QgsVectorGradientColorRampV2Dialog::updateStops | ( | ) | [protected] |
Definition at line 165 of file qgsvectorgradientcolorrampv2dialog.cpp.
References mRamp, setStopColor(), StopOffsetRole, and QgsVectorGradientColorRampV2::stops().
Referenced by on_cboType_currentIndexChanged(), and QgsVectorGradientColorRampV2Dialog().
QTreeWidgetItem* QgsVectorGradientColorRampV2Dialog::mCurrentItem [protected] |
Definition at line 58 of file qgsvectorgradientcolorrampv2dialog.h.
Referenced by setItemStopColor(), and stopDoubleClicked().
Definition at line 53 of file qgsvectorgradientcolorrampv2dialog.h.
Referenced by on_btnInformation_pressed(), on_cboType_currentIndexChanged(), QgsVectorGradientColorRampV2Dialog(), setColor1(), setColor2(), updatePreview(), and updateStops().
const int QgsVectorGradientColorRampV2Dialog::StopColorRole = Qt::UserRole + 1 [static, protected] |
Definition at line 55 of file qgsvectorgradientcolorrampv2dialog.h.
Referenced by setStopColor(), stopDoubleClicked(), and updatePreview().
const int QgsVectorGradientColorRampV2Dialog::StopOffsetRole = Qt::UserRole + 2 [static, protected] |
Definition at line 56 of file qgsvectorgradientcolorrampv2dialog.h.
Referenced by addStop(), stopDoubleClicked(), updatePreview(), and updateStops().