QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
gui
qgsmaplayerconfigwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaplayerconfigwidget.h
3
-------------------------
4
begin : June 2016
5
copyright : (C) 2016 by Nathan Woodrow
6
email : woodrow dot nathan at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
#ifndef QGSMAPLAYERCONFIGWIDGET_H
16
#define QGSMAPLAYERCONFIGWIDGET_H
17
18
#include <QWidget>
19
#include <QIcon>
20
21
#include "
qgspanelwidget.h
"
22
#include "qgis_gui.h"
23
24
class
QgsMapCanvas
;
25
class
QgsMapLayer
;
26
33
class
GUI_EXPORT
QgsMapLayerConfigWidget
:
public
QgsPanelWidget
34
{
35
Q_OBJECT
36
public
:
37
46
QgsMapLayerConfigWidget
(
QgsMapLayer
*layer,
QgsMapCanvas
*canvas, QWidget *parent =
nullptr
);
47
54
virtual
bool
shouldTriggerLayerRepaint
()
const
{
return
true
; }
55
60
virtual
void
syncToLayer
(
QgsMapLayer
*layer ) { Q_UNUSED( layer ) }
61
62
public
slots:
63
68
virtual
void
apply
() = 0;
69
70
protected
:
71
QgsMapLayer
*mLayer =
nullptr
;
72
QgsMapCanvas
*mMapCanvas =
nullptr
;
73
};
74
75
#endif
// QGSMAPLAYERCONFIGWIDGET_H
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition:
qgsmapcanvas.h:86
QgsMapLayerConfigWidget
A panel widget that can be shown in the map style dock.
Definition:
qgsmaplayerconfigwidget.h:34
QgsMapLayerConfigWidget::apply
virtual void apply()=0
Called when changes to the layer need to be made.
QgsMapLayerConfigWidget::syncToLayer
virtual void syncToLayer(QgsMapLayer *layer)
Reset to original (vector layer) values.
Definition:
qgsmaplayerconfigwidget.h:60
QgsMapLayerConfigWidget::shouldTriggerLayerRepaint
virtual bool shouldTriggerLayerRepaint() const
Whether this config widget changes map layer properties in a way that triggerRepaint() should be call...
Definition:
qgsmaplayerconfigwidget.h:54
QgsMapLayer
Base class for all map layer types.
Definition:
qgsmaplayer.h:85
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition:
qgspanelwidget.h:30
qgspanelwidget.h
Generated on Sun Mar 21 2021 09:16:51 for QGIS API Documentation by
1.9.1