QGIS API Documentation
3.43.0-Master (3ee7834ace6)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
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
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
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 Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
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
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
gui
layout
qgslayoutaddpagesdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayoutaddpagesdialog.h
3
-------------------------
4
Date : July 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 QGSLAYOUTADDPAGESDIALOG_H
17
#define QGSLAYOUTADDPAGESDIALOG_H
18
19
// We don't want to expose this in the public API
20
#define SIP_NO_FILE
21
22
#include "
qgis_sip.h
"
23
#include "qgis_gui.h"
24
#include "ui_qgslayoutnewpagedialog.h"
25
26
#include "
qgslayoutsize.h
"
27
#include "
qgslayoutpoint.h
"
28
#include "
qgslayoutitem.h
"
29
#include "
qgslayoutmeasurementconverter.h
"
30
38
class
GUI_EXPORT
QgsLayoutAddPagesDialog
:
public
QDialog,
private
Ui::QgsLayoutNewPageDialog
39
{
40
Q_OBJECT
41
42
public
:
44
enum
PagePosition
45
{
46
BeforePage
,
47
AfterPage
,
48
AtEnd
49
};
44
enum
PagePosition
{
…
};
50
54
QgsLayoutAddPagesDialog
( QWidget *parent =
nullptr
, Qt::WindowFlags flags = Qt::WindowFlags() );
55
61
void
setLayout(
QgsLayout
*layout );
62
66
int
numberPages()
const
;
67
71
PagePosition pagePosition()
const
;
72
76
int
beforePage()
const
;
77
81
QgsLayoutSize
pageSize()
const
;
82
83
private
slots:
84
85
void
positionChanged(
int
index );
86
void
pageSizeChanged(
int
index );
87
void
orientationChanged(
int
index );
88
void
setToCustomSize();
89
void
showHelp();
90
91
private
:
92
bool
mSettingPresetSize =
false
;
93
94
QgsLayoutMeasurementConverter
mConverter;
95
};
38
class
GUI_EXPORT
QgsLayoutAddPagesDialog
:
public
QDialog,
private
Ui::QgsLayoutNewPageDialog {
…
};
96
97
#endif
// QGSLAYOUTADDPAGESDIALOG_H
QgsLayoutAddPagesDialog
A dialog for configuring properties of new pages to be added to a layout.
Definition
qgslayoutaddpagesdialog.h:39
QgsLayoutAddPagesDialog::PagePosition
PagePosition
Page insertion positions.
Definition
qgslayoutaddpagesdialog.h:45
QgsLayoutAddPagesDialog::AfterPage
@ AfterPage
Definition
qgslayoutaddpagesdialog.h:47
QgsLayoutAddPagesDialog::BeforePage
@ BeforePage
Definition
qgslayoutaddpagesdialog.h:46
QgsLayoutMeasurementConverter
This class provides a method of converting QgsLayoutMeasurements from one unit to another.
Definition
qgslayoutmeasurementconverter.h:42
QgsLayoutSize
This class provides a method of storing sizes, consisting of a width and height, for use in QGIS layo...
Definition
qgslayoutsize.h:41
QgsLayout
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition
qgslayout.h:49
qgis_sip.h
qgslayoutitem.h
qgslayoutmeasurementconverter.h
qgslayoutpoint.h
qgslayoutsize.h
Generated on Mon Mar 24 2025 21:55:38 for QGIS API Documentation by
1.9.8