QGIS/python/gui/symbology/qgscategorizedsymbolrendererwidget.sip.in

134 lines
3.5 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/;
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:: :py:func:`matchToSymbolsFromLibrary`
.. seealso:: :py:func:`matchToSymbolsFromXml`
.. versionadded:: 2.9
%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:: :py:func:`matchToSymbolsFromXml`
.. seealso:: :py:func:`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:: :py:func:`matchToSymbolsFromLibrary`
.. seealso:: :py:func:`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)
%End
QList<int> selectedCategories();
%Docstring
return a list of indexes for the categories unders selection
%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();
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 *
************************************************************************/