QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
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
b
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
x
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
x
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,
const
QString &stylePath );
66
void
saveShape();
67
68
private
:
69
70
Qgis::SymbolType
mType =
Qgis::SymbolType::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
Qgis::SymbolType::Fill
@ Fill
Fill symbol.
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
Represents a patch shape for use in map legends.
Definition:
qgslegendpatchshape.h:33
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition:
qgspanelwidget.h:29
Qgis::SymbolType
SymbolType
Symbol types.
Definition:
qgis.h:205
QgsLegendPatchShapeWidget
Widget for configuring a custom legend patch shape.
Definition:
qgslegendpatchshapewidget.h:32
qgslegendpatchshape.h
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 Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17