QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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"
30
38class GUI_EXPORT QgsLayoutAddPagesDialog : public QDialog, private Ui::QgsLayoutNewPageDialog
39{
40 Q_OBJECT
41
42 public:
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
95};
96
97#endif // QGSLAYOUTADDPAGESDIALOG_H
A dialog for configuring properties of new pages to be added to a layout.
PagePosition
Page insertion positions.
This class provides a method of converting QgsLayoutMeasurements from one unit to another.
This class provides a method of storing sizes, consisting of a width and height, for use in QGIS layo...
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition qgslayout.h:49