File: qgscategorizedsymbolrendererwidget.sip.in

package info (click to toggle)
qgis 3.22.16%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,186,020 kB
  • sloc: cpp: 1,275,562; python: 194,091; xml: 15,597; perl: 3,471; sh: 3,368; sql: 2,485; ansic: 2,219; yacc: 1,056; lex: 574; javascript: 504; lisp: 411; makefile: 227
file content (147 lines) | stat: -rw-r--r-- 3,925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/************************************************************************
 * 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();

    virtual void setContext( const QgsSymbolWidgetContext &context );


    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:
    virtual void setSymbolLevels( const QgsLegendSymbolList &levels, bool enabled );


  protected slots:

    virtual void pasteSymbolToSelection();


  protected:

    void updateUiFromRenderer();

    void populateCategories();

    int currentCategoryRow();
%Docstring
Returns row index for the currently selected category (-1 if on no selection)
%End

    QList<int> selectedCategories();
%Docstring
Returns a list of indexes for the categories under selection
%End

    void changeSelectedSymbols();
%Docstring
Changes the selected symbols alone for the change button, if there is a selection
%End

    void changeCategorySymbol();
    void applyChangeToSymbol();
%Docstring
Applies current symbol to selected categories, or to all categories if none is selected
%End

    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   *
 ************************************************************************/