QGIS/python/gui/symbology/qgscategorizedsymbolrendererwidget.sip

131 lines
3.6 KiB
Plaintext
Raw Normal View History

2017-06-08 15:30:38 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
2017-08-06 13:39:03 +02:00
* src/gui/symbology/qgscategorizedsymbolrendererwidget.h *
2017-06-08 15:30:38 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2016-08-06 11:01:42 +02:00
class QgsCategorizedSymbolRendererWidget : QgsRendererWidget
{
2017-06-08 15:30:38 +02:00
%TypeHeaderCode
2017-06-08 15:30:38 +02:00
#include "qgscategorizedsymbolrendererwidget.h"
%End
public:
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
2017-06-08 15:30:38 +02:00
%Docstring
:rtype: QgsRendererWidget
%End
QgsCategorizedSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
2016-08-06 11:01:42 +02:00
~QgsCategorizedSymbolRendererWidget();
virtual QgsFeatureRenderer *renderer();
int matchToSymbols( QgsStyle *style );
2017-06-08 15:30:38 +02:00
%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();
2017-06-08 15:30:38 +02:00
void applyColorRamp();
2017-06-08 15:30:38 +02:00
%Docstring
Applies the color ramp passed on by the color ramp button
%End
void deleteCategories();
void deleteAllCategories();
void showSymbolLevels();
2013-02-02 17:06:22 +01:00
void rowsMoved();
void matchToSymbolsFromLibrary();
2017-06-08 15:30:38 +02:00
%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();
2017-06-08 15:30:38 +02:00
%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();
2017-06-08 15:30:38 +02:00
%Docstring
return row index for the currently selected category (-1 if on no selection)
:rtype: int
%End
2013-02-02 17:06:22 +01:00
QList<int> selectedCategories();
2017-06-08 15:30:38 +02:00
%Docstring
return a list of indexes for the categories unders selection
:rtype: list of int
%End
2013-02-02 17:06:22 +01:00
void changeSelectedSymbols();
2017-06-08 15:30:38 +02:00
%Docstring
change the selected symbols alone for the change button, if there is a selection
%End
2013-02-02 17:06:22 +01:00
void changeCategorySymbol();
2017-06-08 15:30:38 +02:00
virtual QList<QgsSymbol *> selectedSymbols();
2014-01-26 18:35:21 +01:00
QgsCategoryList selectedCategoryList();
2017-06-08 15:30:38 +02:00
%Docstring
:rtype: QgsCategoryList
%End
virtual void refreshSymbolView();
virtual void keyPressEvent( QKeyEvent *event );
protected:
};
2017-06-08 15:30:38 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
2017-08-06 13:39:03 +02:00
* src/gui/symbology/qgscategorizedsymbolrendererwidget.h *
2017-06-08 15:30:38 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/