QGIS/python/gui/symbology/qgscategorizedsymbolrendererwidget.sip
2017-08-06 14:18:57 +02:00

131 lines
3.6 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/symbology/qgscategorizedsymbolrendererwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsCategorizedSymbolRendererWidget : QgsRendererWidget
{
%TypeHeaderCode
#include "qgscategorizedsymbolrendererwidget.h"
%End
public:
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
%Docstring
:rtype: QgsRendererWidget
%End
QgsCategorizedSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
~QgsCategorizedSymbolRendererWidget();
virtual QgsFeatureRenderer *renderer();
int matchToSymbols( QgsStyle *style );
%Docstring
Replaces category symbols with the symbols from a style that have a matching
name.
\param style style containing symbols to match with
:return: number of symbols matched
.. seealso:: matchToSymbolsFromLibrary
.. seealso:: matchToSymbolsFromXml
.. versionadded:: 2.9
:rtype: int
%End
public slots:
void changeCategorizedSymbol();
void categoryColumnChanged( const QString &field );
void categoriesDoubleClicked( const QModelIndex &idx );
void addCategory();
void addCategories();
void applyColorRamp();
%Docstring
Applies the color ramp passed on by the color ramp button
%End
void deleteCategories();
void deleteAllCategories();
void showSymbolLevels();
void rowsMoved();
void matchToSymbolsFromLibrary();
%Docstring
Replaces category symbols with the symbols from the users' symbol library that have a
matching name.
.. seealso:: matchToSymbolsFromXml
.. seealso:: matchToSymbols
.. versionadded:: 2.9
%End
void matchToSymbolsFromXml();
%Docstring
Prompts for selection of an xml file, then replaces category symbols with the symbols
from the XML file with a matching name.
.. seealso:: matchToSymbolsFromLibrary
.. seealso:: matchToSymbols
.. versionadded:: 2.9
%End
protected:
void updateUiFromRenderer();
void updateCategorizedSymbolIcon();
void populateCategories();
int currentCategoryRow();
%Docstring
return row index for the currently selected category (-1 if on no selection)
:rtype: int
%End
QList<int> selectedCategories();
%Docstring
return a list of indexes for the categories unders selection
:rtype: list of int
%End
void changeSelectedSymbols();
%Docstring
change the selected symbols alone for the change button, if there is a selection
%End
void changeCategorySymbol();
virtual QList<QgsSymbol *> selectedSymbols();
QgsCategoryList selectedCategoryList();
%Docstring
:rtype: QgsCategoryList
%End
virtual void refreshSymbolView();
virtual void keyPressEvent( QKeyEvent *event );
protected:
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/symbology/qgscategorizedsymbolrendererwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/