QGIS API Documentation
3.41.0-Master (af5edcb665c)
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
};
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
};
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 Thu Dec 26 2024 02:19:01 for QGIS API Documentation by
1.9.8