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

#include <qgsgraduatedsymbolrendererv2widget.h>

Inheritance diagram for QgsGraduatedSymbolRendererV2Widget:
Inheritance graph
[legend]
Collaboration diagram for QgsGraduatedSymbolRendererV2Widget:
Collaboration graph
[legend]

Public Slots

void changeGraduatedSymbol ()
 
void graduatedColumnChanged (QString field)
 
void classifyGraduated ()
 
void reapplyColorRamp ()
 
void rangesDoubleClicked (const QModelIndex &idx)
 
void rangesClicked (const QModelIndex &idx)
 
void changeCurrentValue (QStandardItem *item)
 
void addClass ()
 Adds a class manually to the classification. More...
 
void deleteClasses ()
 Removes currently selected classes. More...
 
void deleteAllClasses ()
 Removes all classes from the classification. More...
 
void rotationFieldChanged (QString fldName)
 
void sizeScaleFieldChanged (QString fldName)
 
void scaleMethodChanged (QgsSymbolV2::ScaleMethod scaleMethod)
 
void showSymbolLevels ()
 
void rowsMoved ()
 

Public Member Functions

 QgsGraduatedSymbolRendererV2Widget (QgsVectorLayer *layer, QgsStyleV2 *style, QgsFeatureRendererV2 *renderer)
 
 ~QgsGraduatedSymbolRendererV2Widget ()
 
virtual QgsFeatureRendererV2renderer ()
 return pointer to the renderer (no transfer of ownership) More...
 
- Public Member Functions inherited from QgsRendererV2Widget
 QgsRendererV2Widget (QgsVectorLayer *layer, QgsStyleV2 *style)
 
virtual ~QgsRendererV2Widget ()
 
void showSymbolLevelsDialog (QgsFeatureRendererV2 *r)
 show a dialog with renderer's symbol level settings More...
 

Static Public Member Functions

static QgsRendererV2Widgetcreate (QgsVectorLayer *layer, QgsStyleV2 *style, QgsFeatureRendererV2 *renderer)
 

Protected Member Functions

void updateUiFromRenderer ()
 
void updateGraduatedSymbolIcon ()
 
QList< int > selectedClasses ()
 return a list of indexes for the classes under selection More...
 
QgsRangeList selectedRanges ()
 
void changeRangeSymbol (int rangeIdx)
 
void changeRange (int rangeIdx)
 
void changeSelectedSymbols ()
 
QList< QgsSymbolV2 * > selectedSymbols ()
 Subclasses may provide the capability of changing multiple symbols at once by implementing the following two methods and by connecting the slot contextMenuViewCategories(const QPoint&) More...
 
QgsSymbolV2findSymbolForRange (double lowerBound, double upperBound, const QgsRangeList &ranges) const
 
void refreshSymbolView ()
 
void keyPressEvent (QKeyEvent *event)
 

Protected Attributes

QgsGraduatedSymbolRendererV2mRenderer
 
QgsSymbolV2mGraduatedSymbol
 
int mRowSelected
 
QgsRendererV2DataDefinedMenusmDataDefinedMenus
 
QgsGraduatedSymbolRendererV2ModelmModel
 
QgsRangeList mCopyBuffer
 
- Protected Attributes inherited from QgsRendererV2Widget
QgsVectorLayermLayer
 
QgsStyleV2mStyle
 
QMenu * contextMenu
 
QAction * mCopyAction
 
QAction * mPasteAction
 

Additional Inherited Members

- Protected Slots inherited from QgsRendererV2Widget
void contextMenuViewCategories (const QPoint &p)
 
void changeSymbolColor ()
 Change color of selected symbols. More...
 
void changeSymbolTransparency ()
 Change opacity of selected symbols. More...
 
void changeSymbolUnit ()
 Change units mm/map units of selected symbols. More...
 
void changeSymbolWidth ()
 Change line widths of selected symbols. More...
 
void changeSymbolSize ()
 Change marker sizes of selected symbols. More...
 
virtual void copy ()
 
virtual void paste ()
 

Detailed Description

Definition at line 70 of file qgsgraduatedsymbolrendererv2widget.h.

Constructor & Destructor Documentation

QgsGraduatedSymbolRendererV2Widget::QgsGraduatedSymbolRendererV2Widget ( QgsVectorLayer layer,
QgsStyleV2 style,
QgsFeatureRendererV2 renderer 
)
QgsGraduatedSymbolRendererV2Widget::~QgsGraduatedSymbolRendererV2Widget ( )

Definition at line 441 of file qgsgraduatedsymbolrendererv2widget.cpp.

References mModel, and mRenderer.

Member Function Documentation

void QgsGraduatedSymbolRendererV2Widget::addClass ( )
slot

Adds a class manually to the classification.

Definition at line 710 of file qgsgraduatedsymbolrendererv2widget.cpp.

References QgsGraduatedSymbolRendererV2Model::addClass(), mGraduatedSymbol, and mModel.

Referenced by QgsGraduatedSymbolRendererV2Widget().

void QgsGraduatedSymbolRendererV2Widget::changeCurrentValue ( QStandardItem *  item)
slot
void QgsGraduatedSymbolRendererV2Widget::changeGraduatedSymbol ( )
slot
void QgsGraduatedSymbolRendererV2Widget::changeRange ( int  rangeIdx)
protected
void QgsGraduatedSymbolRendererV2Widget::changeRangeSymbol ( int  rangeIdx)
protected
void QgsGraduatedSymbolRendererV2Widget::changeSelectedSymbols ( )
protected
void QgsGraduatedSymbolRendererV2Widget::classifyGraduated ( )
slot
QgsRendererV2Widget * QgsGraduatedSymbolRendererV2Widget::create ( QgsVectorLayer layer,
QgsStyleV2 style,
QgsFeatureRendererV2 renderer 
)
static
void QgsGraduatedSymbolRendererV2Widget::deleteAllClasses ( )
slot

Removes all classes from the classification.

Definition at line 721 of file qgsgraduatedsymbolrendererv2widget.cpp.

References mModel, and QgsGraduatedSymbolRendererV2Model::removeAllRows().

Referenced by QgsGraduatedSymbolRendererV2Widget().

void QgsGraduatedSymbolRendererV2Widget::deleteClasses ( )
slot

Removes currently selected classes.

Definition at line 715 of file qgsgraduatedsymbolrendererv2widget.cpp.

References QgsGraduatedSymbolRendererV2Model::deleteRows(), mModel, and selectedClasses().

Referenced by QgsGraduatedSymbolRendererV2Widget().

QgsSymbolV2 * QgsGraduatedSymbolRendererV2Widget::findSymbolForRange ( double  lowerBound,
double  upperBound,
const QgsRangeList ranges 
) const
protected

Definition at line 781 of file qgsgraduatedsymbolrendererv2widget.cpp.

References qgsDoubleNear().

Referenced by selectedSymbols().

void QgsGraduatedSymbolRendererV2Widget::graduatedColumnChanged ( QString  field)
slot
void QgsGraduatedSymbolRendererV2Widget::keyPressEvent ( QKeyEvent *  event)
protected
void QgsGraduatedSymbolRendererV2Widget::rangesClicked ( const QModelIndex &  idx)
slot

Definition at line 641 of file qgsgraduatedsymbolrendererv2widget.cpp.

References mRowSelected.

Referenced by QgsGraduatedSymbolRendererV2Widget().

void QgsGraduatedSymbolRendererV2Widget::rangesDoubleClicked ( const QModelIndex &  idx)
slot
void QgsGraduatedSymbolRendererV2Widget::reapplyColorRamp ( )
slot
void QgsGraduatedSymbolRendererV2Widget::refreshSymbolView ( )
protectedvirtual
QgsFeatureRendererV2 * QgsGraduatedSymbolRendererV2Widget::renderer ( )
virtual

return pointer to the renderer (no transfer of ownership)

Implements QgsRendererV2Widget.

Definition at line 447 of file qgsgraduatedsymbolrendererv2widget.cpp.

References mRenderer.

Referenced by QgsGraduatedSymbolRendererV2Widget(), and QgsRuleBasedRendererV2Widget::refineRuleRangesGui().

void QgsGraduatedSymbolRendererV2Widget::rotationFieldChanged ( QString  fldName)
slot
void QgsGraduatedSymbolRendererV2Widget::rowsMoved ( )
slot
void QgsGraduatedSymbolRendererV2Widget::scaleMethodChanged ( QgsSymbolV2::ScaleMethod  scaleMethod)
slot
QList< int > QgsGraduatedSymbolRendererV2Widget::selectedClasses ( )
protected

return a list of indexes for the classes under selection

Definition at line 605 of file qgsgraduatedsymbolrendererv2widget.cpp.

Referenced by deleteClasses().

QgsRangeList QgsGraduatedSymbolRendererV2Widget::selectedRanges ( )
protected
QList< QgsSymbolV2 * > QgsGraduatedSymbolRendererV2Widget::selectedSymbols ( )
protectedvirtual

Subclasses may provide the capability of changing multiple symbols at once by implementing the following two methods and by connecting the slot contextMenuViewCategories(const QPoint&)

Reimplemented from QgsRendererV2Widget.

Definition at line 751 of file qgsgraduatedsymbolrendererv2widget.cpp.

References findSymbolForRange(), mRenderer, and QgsGraduatedSymbolRendererV2::ranges().

void QgsGraduatedSymbolRendererV2Widget::showSymbolLevels ( )
slot
void QgsGraduatedSymbolRendererV2Widget::sizeScaleFieldChanged ( QString  fldName)
slot
void QgsGraduatedSymbolRendererV2Widget::updateGraduatedSymbolIcon ( )
protected
void QgsGraduatedSymbolRendererV2Widget::updateUiFromRenderer ( )
protected

Member Data Documentation

QgsRangeList QgsGraduatedSymbolRendererV2Widget::mCopyBuffer
protected

Definition at line 137 of file qgsgraduatedsymbolrendererv2widget.h.

Referenced by keyPressEvent().

QgsRendererV2DataDefinedMenus* QgsGraduatedSymbolRendererV2Widget::mDataDefinedMenus
protected
QgsSymbolV2* QgsGraduatedSymbolRendererV2Widget::mGraduatedSymbol
protected
QgsGraduatedSymbolRendererV2Model* QgsGraduatedSymbolRendererV2Widget::mModel
protected
QgsGraduatedSymbolRendererV2* QgsGraduatedSymbolRendererV2Widget::mRenderer
protected
int QgsGraduatedSymbolRendererV2Widget::mRowSelected
protected

Definition at line 131 of file qgsgraduatedsymbolrendererv2widget.h.

Referenced by rangesClicked().


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