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
layout
qgslayoutitemcombobox.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayoutitemcombobox.h
3
--------------------------------------
4
Date : October 2017
5
Copyright : (C) 2017 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 QGSLAYOUTITEMCOMBOBOX_H
17
#define QGSLAYOUTITEMCOMBOBOX_H
18
19
#include <QComboBox>
20
#include "
qgis_sip.h
"
21
#include "
qgslayoutitem.h
"
22
#include "
qgslayoutitemregistry.h
"
23
#include "qgis_gui.h"
24
#include "
qgslayoutmodel.h
"
25
26
34
class
GUI_EXPORT
QgsLayoutItemComboBox
:
public
QComboBox
35
{
36
Q_OBJECT
37
38
public
:
39
46
explicit
QgsLayoutItemComboBox
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
,
QgsLayout
*layout =
nullptr
);
47
53
void
setCurrentLayout(
QgsLayout
*layout );
54
60
QgsLayout
*currentLayout();
61
68
void
setItemType(
QgsLayoutItemRegistry::ItemType
itemType );
69
74
QgsLayoutItemRegistry::ItemType
itemType()
const
;
75
80
void
setExceptedItemList(
const
QList< QgsLayoutItem * > &exceptList );
81
86
QList< QgsLayoutItem * > exceptedItemList()
const
;
87
93
void
setAllowEmptyItem(
bool
allowEmpty );
94
100
bool
allowEmptyItem()
const
;
101
110
void
setItemFlags( QgsLayoutItem::Flags flags );
111
120
QgsLayoutItem::Flags itemFlags()
const
;
121
126
QgsLayoutItem
*item(
int
index )
const
;
127
131
QgsLayoutItem
*currentItem()
const
;
132
133
public
slots:
134
138
void
setItem(
const
QgsLayoutItem
*item );
139
140
signals:
141
143
void
itemChanged(
QgsLayoutItem
*item );
144
145
private
slots:
146
void
indexChanged(
int
i );
147
void
rowsChanged();
148
149
private
:
150
std::unique_ptr< QgsLayoutProxyModel > mProxyModel;
151
152
};
153
154
#endif // QGSLAYOUTITEMCOMBOBOX_H
QgsLayoutItemComboBox
The QgsLayoutItemComboBox class is a combo box which displays items of a matching type from a layout.
Definition:
qgslayoutitemcombobox.h:34
QgsLayoutItemRegistry::ItemType
ItemType
Item types.
Definition:
qgslayoutitemregistry.h:336
qgslayoutitem.h
qgis_sip.h
QgsLayoutItem
Base class for graphical items within a QgsLayout.
Definition:
qgslayoutitem.h:112
QgsLayout
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition:
qgslayout.h:50
qgslayoutitemregistry.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition:
qgis_sip.h:53
qgslayoutmodel.h
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17