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

#include <qgscategorizedsymbolrendererv2widget.h>

Inheritance diagram for QgsCategorizedSymbolRendererV2Widget:
Inheritance graph
[legend]

Public Slots

void changeCategorizedSymbol ()
 
void categoryColumnChanged (QString field)
 
void categoriesDoubleClicked (const QModelIndex &idx)
 
void addCategory ()
 
void addCategories ()
 
void applyColorRamp ()
 
void deleteCategories ()
 
void deleteAllCategories ()
 
void rotationFieldChanged (QString fldName)
 
void sizeScaleFieldChanged (QString fldName)
 
void scaleMethodChanged (QgsSymbolV2::ScaleMethod scaleMethod)
 
void showSymbolLevels ()
 
void rowsMoved ()
 

Public Member Functions

 QgsCategorizedSymbolRendererV2Widget (QgsVectorLayer *layer, QgsStyleV2 *style, QgsFeatureRendererV2 *renderer)
 
 ~QgsCategorizedSymbolRendererV2Widget ()
 
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 updateCategorizedSymbolIcon ()
 
void populateCategories ()
 
int currentCategoryRow ()
 return row index for the currently selected category (-1 if on no selection) More...
 
QList< int > selectedCategories ()
 return a list of indexes for the categories unders selection More...
 
void changeSelectedSymbols ()
 change the selected symbols alone for the change button, if there is a selection More...
 
void changeCategorySymbol ()
 
QgsVectorColorRampV2getColorRamp ()
 
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...
 
QgsCategoryList selectedCategoryList ()
 
void refreshSymbolView ()
 
void keyPressEvent (QKeyEvent *event)
 

Protected Attributes

QgsCategorizedSymbolRendererV2mRenderer
 
QgsSymbolV2mCategorizedSymbol
 
QgsRendererV2DataDefinedMenusmDataDefinedMenus
 
QgsCategorizedSymbolRendererV2ModelmModel
 
- 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 ()
 

Constructor & Destructor Documentation

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

Member Function Documentation

void QgsCategorizedSymbolRendererV2Widget::addCategories ( )
slot
void QgsCategorizedSymbolRendererV2Widget::addCategory ( )
slot
void QgsCategorizedSymbolRendererV2Widget::applyColorRamp ( )
slot
void QgsCategorizedSymbolRendererV2Widget::categoriesDoubleClicked ( const QModelIndex &  idx)
slot
void QgsCategorizedSymbolRendererV2Widget::categoryColumnChanged ( QString  field)
slot
void QgsCategorizedSymbolRendererV2Widget::changeCategorizedSymbol ( )
slot
void QgsCategorizedSymbolRendererV2Widget::changeCategorySymbol ( )
protected
void QgsCategorizedSymbolRendererV2Widget::changeSelectedSymbols ( )
protected

change the selected symbols alone for the change button, if there is a selection

QgsRendererV2Widget * QgsCategorizedSymbolRendererV2Widget::create ( QgsVectorLayer layer,
QgsStyleV2 style,
QgsFeatureRendererV2 renderer 
)
static
int QgsCategorizedSymbolRendererV2Widget::currentCategoryRow ( )
protected

return row index for the currently selected category (-1 if on no selection)

void QgsCategorizedSymbolRendererV2Widget::deleteAllCategories ( )
slot
void QgsCategorizedSymbolRendererV2Widget::deleteCategories ( )
slot
QgsVectorColorRampV2 * QgsCategorizedSymbolRendererV2Widget::getColorRamp ( )
protected
void QgsCategorizedSymbolRendererV2Widget::keyPressEvent ( QKeyEvent *  event)
protected
void QgsCategorizedSymbolRendererV2Widget::populateCategories ( )
protected
void QgsCategorizedSymbolRendererV2Widget::refreshSymbolView ( )
inlineprotectedvirtual

Reimplemented from QgsRendererV2Widget.

QgsFeatureRendererV2 * QgsCategorizedSymbolRendererV2Widget::renderer ( )
virtual

return pointer to the renderer (no transfer of ownership)

Implements QgsRendererV2Widget.

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

return a list of indexes for the categories unders selection

QgsCategoryList QgsCategorizedSymbolRendererV2Widget::selectedCategoryList ( )
protected
QList< QgsSymbolV2 * > QgsCategorizedSymbolRendererV2Widget::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.

void QgsCategorizedSymbolRendererV2Widget::showSymbolLevels ( )
slot
void QgsCategorizedSymbolRendererV2Widget::sizeScaleFieldChanged ( QString  fldName)
slot
void QgsCategorizedSymbolRendererV2Widget::updateCategorizedSymbolIcon ( )
protected
void QgsCategorizedSymbolRendererV2Widget::updateUiFromRenderer ( )
protected

Member Data Documentation

QgsSymbolV2* QgsCategorizedSymbolRendererV2Widget::mCategorizedSymbol
protected
QgsRendererV2DataDefinedMenus* QgsCategorizedSymbolRendererV2Widget::mDataDefinedMenus
protected
QgsCategorizedSymbolRendererV2Model* QgsCategorizedSymbolRendererV2Widget::mModel
protected
QgsCategorizedSymbolRendererV2* QgsCategorizedSymbolRendererV2Widget::mRenderer
protected

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