QGIS API Documentation
3.14.0-Pi (9f7028fd23)
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
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
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
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
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
qgslegendpatchshapewidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslegendpatchshapewidget.h
3
---------------------------
4
Date : April 2020
5
Copyright : (C) 2020 Nyall Dawson
6
Email : nyall dot dawson 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
16
#ifndef QGSLEGENDPATCHSHAPEWIDGET_H
17
#define QGSLEGENDPATCHSHAPEWIDGET_H
18
19
#include "
qgis.h
"
20
#include "qgis_gui.h"
21
#include "ui_qgslegendpatchshapewidgetbase.h"
22
#include "
qgslegendpatchshape.h
"
23
#include <QDialog>
24
25
class
QDialogButtonBox;
26
32
class
GUI_EXPORT
QgsLegendPatchShapeWidget
:
public
QgsPanelWidget
,
private
Ui::QgsLegendPatchShapeWidgetBase
33
{
34
Q_OBJECT
35
36
public
:
37
41
QgsLegendPatchShapeWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
,
const
QgsLegendPatchShape
&shape =
QgsLegendPatchShape
() );
42
48
QgsLegendPatchShape
shape()
const
;
49
55
void
setShape(
const
QgsLegendPatchShape
&shape );
56
57
signals:
58
62
void
changed();
63
64
private
slots:
65
void
setShapeFromStyle(
const
QString &name,
QgsStyle::StyleEntity
type );
66
void
saveShape();
67
68
private
:
69
70
QgsSymbol::SymbolType
mType =
QgsSymbol::Fill
;
71
72
};
73
79
class
GUI_EXPORT
QgsLegendPatchShapeDialog
:
public
QDialog
80
{
81
Q_OBJECT
82
83
public
:
84
88
QgsLegendPatchShapeDialog
(
const
QgsLegendPatchShape
&shape, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
89
93
QgsLegendPatchShape
shape
()
const
{
return
mWidget->shape(); }
94
98
QDialogButtonBox *buttonBox()
const
;
99
100
private
:
101
102
QgsLegendPatchShapeWidget
*mWidget =
nullptr
;
103
QDialogButtonBox *mButtonBox =
nullptr
;
104
105
};
106
107
#endif // QGSLEGENDPATCHSHAPEWIDGET_H
QgsLegendPatchShapeDialog
A dialog for configuring a custom legend patch shape.
Definition:
qgslegendpatchshapewidget.h:79
qgis.h
QgsLegendPatchShapeDialog::shape
QgsLegendPatchShape shape() const
Returns the legend patch shape defined by the dialog.
Definition:
qgslegendpatchshapewidget.h:93
QgsLegendPatchShape
Definition:
qgslegendpatchshape.h:30
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition:
qgspanelwidget.h:29
QgsLegendPatchShapeWidget
Widget for configuring a custom legend patch shape.
Definition:
qgslegendpatchshapewidget.h:32
qgslegendpatchshape.h
QgsSymbol::Fill
@ Fill
Fill symbol.
Definition:
qgssymbol.h:89
QgsSymbol::SymbolType
SymbolType
Type of the symbol.
Definition:
qgssymbol.h:85
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition:
qgis_sip.h:53
QgsStyle::StyleEntity
StyleEntity
Enum for Entities involved in a style.
Definition:
qgsstyle.h:178
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17