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

139 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 *
************************************************************************/
2017-06-08 15:30:38 +02:00
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/;
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
2017-12-15 10:36:55 -04:00
Replaces category symbols with the symbols from a style that have a matching
name.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param style: style containing symbols to match with
:return: number of symbols matched
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`matchToSymbolsFromLibrary`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`matchToSymbolsFromXml`
2017-12-15 10:36:55 -04:00
2017-06-08 15:30:38 +02:00
.. versionadded:: 2.9
%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
2017-12-15 10:36:55 -04:00
Applies the color ramp passed on by the color ramp button
2017-06-08 15:30:38 +02:00
%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
2017-12-15 10:36:55 -04:00
Replaces category symbols with the symbols from the users' symbol library that have a
matching name.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`matchToSymbolsFromXml`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`matchToSymbols`
2017-12-15 10:36:55 -04:00
2017-06-08 15:30:38 +02:00
.. versionadded:: 2.9
%End
void matchToSymbolsFromXml();
2017-06-08 15:30:38 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Prompts for selection of an xml file, then replaces category symbols with the symbols
from the XML file with a matching name.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`matchToSymbolsFromLibrary`
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`matchToSymbols`
2017-12-15 10:36:55 -04:00
2017-06-08 15:30:38 +02:00
.. versionadded:: 2.9
%End
protected:
void updateUiFromRenderer();
void updateCategorizedSymbolIcon();
void populateCategories();
int currentCategoryRow();
2017-06-08 15:30:38 +02:00
%Docstring
2018-02-05 00:39:29 +01:00
Returns row index for the currently selected category (-1 if on no selection)
2017-06-08 15:30:38 +02:00
%End
2013-02-02 17:06:22 +01:00
QList<int> selectedCategories();
2017-06-08 15:30:38 +02:00
%Docstring
2018-02-05 00:39:29 +01:00
Returns a list of indexes for the categories under selection
2017-06-08 15:30:38 +02:00
%End
2013-02-02 17:06:22 +01:00
void changeSelectedSymbols();
2017-06-08 15:30:38 +02:00
%Docstring
2018-02-05 00:39:29 +01:00
Changes the selected symbols alone for the change button, if there is a selection
2017-06-08 15:30:38 +02:00
%End
2013-02-02 17:06:22 +01:00
void changeCategorySymbol();
void applyChangeToSymbol();
%Docstring
Applies current symbol to selected categories, or to all categories if none is selected
%End
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
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 *
************************************************************************/