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

#include <qgsvectorgradientcolorrampv2dialog.h>

Collaboration diagram for QgsVectorGradientColorRampV2Dialog:
Collaboration graph
[legend]

Public Slots

void setColor1 (const QColor &color)
void setColor2 (const QColor &color)
void toggledStops (bool on)
void addStop ()
void removeStop ()
void stopDoubleClicked (QTreeWidgetItem *item, int column)
void setItemStopColor (const QColor &newColor)

Public Member Functions

 QgsVectorGradientColorRampV2Dialog (QgsVectorGradientColorRampV2 *ramp, QWidget *parent=NULL)

Protected Slots

void on_cboType_currentIndexChanged (int index)
void on_btnInformation_pressed ()

Protected Member Functions

void updateStops ()
void updatePreview ()
void setStopColor (QTreeWidgetItem *item, QColor color)

Protected Attributes

QgsVectorGradientColorRampV2mRamp
QTreeWidgetItem * mCurrentItem

Static Protected Attributes

static const int StopColorRole = Qt::UserRole + 1
static const int StopOffsetRole = Qt::UserRole + 2

Detailed Description

Definition at line 25 of file qgsvectorgradientcolorrampv2dialog.h.

Constructor & Destructor Documentation

QgsVectorGradientColorRampV2Dialog::QgsVectorGradientColorRampV2Dialog ( QgsVectorGradientColorRampV2 ramp,
QWidget *  parent = NULL 
)

Member Function Documentation

void QgsVectorGradientColorRampV2Dialog::addStop ( )
slot
void QgsVectorGradientColorRampV2Dialog::on_btnInformation_pressed ( )
protectedslot
void QgsVectorGradientColorRampV2Dialog::on_cboType_currentIndexChanged ( int  index)
protectedslot
void QgsVectorGradientColorRampV2Dialog::removeStop ( )
slot

Definition at line 363 of file qgsvectorgradientcolorrampv2dialog.cpp.

References index, and updatePreview().

Referenced by QgsVectorGradientColorRampV2Dialog().

void QgsVectorGradientColorRampV2Dialog::setColor1 ( const QColor &  color)
slot
void QgsVectorGradientColorRampV2Dialog::setColor2 ( const QColor &  color)
slot
void QgsVectorGradientColorRampV2Dialog::setItemStopColor ( const QColor &  newColor)
slot

Definition at line 258 of file qgsvectorgradientcolorrampv2dialog.cpp.

References mCurrentItem, setStopColor(), and updatePreview().

Referenced by stopDoubleClicked().

void QgsVectorGradientColorRampV2Dialog::setStopColor ( QTreeWidgetItem *  item,
QColor  color 
)
protected
void QgsVectorGradientColorRampV2Dialog::stopDoubleClicked ( QTreeWidgetItem *  item,
int  column 
)
slot
void QgsVectorGradientColorRampV2Dialog::toggledStops ( bool  on)
slot
void QgsVectorGradientColorRampV2Dialog::updatePreview ( )
protected
void QgsVectorGradientColorRampV2Dialog::updateStops ( )
protected

Member Data Documentation

QTreeWidgetItem* QgsVectorGradientColorRampV2Dialog::mCurrentItem
protected

Definition at line 58 of file qgsvectorgradientcolorrampv2dialog.h.

Referenced by setItemStopColor(), and stopDoubleClicked().

QgsVectorGradientColorRampV2* QgsVectorGradientColorRampV2Dialog::mRamp
protected
const int QgsVectorGradientColorRampV2Dialog::StopColorRole = Qt::UserRole + 1
staticprotected
const int QgsVectorGradientColorRampV2Dialog::StopOffsetRole = Qt::UserRole + 2
staticprotected

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