QGIS API Documentation 3.41.0-Master (57ec4277f5e)
|
A dialog for configuring properties of new pages to be added to a layout. More...
#include <qgslayoutaddpagesdialog.h>
Public Types | |
enum | PagePosition { BeforePage , AfterPage , AtEnd } |
Page insertion positions. More... | |
Public Member Functions | |
QgsLayoutAddPagesDialog (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) | |
Constructor for QgsLayoutAddPagesDialog. | |
int | beforePage () const |
Returns the page number for which new pages should be inserted before/after. | |
int | numberPages () const |
Returns the number of pages to insert. | |
PagePosition | pagePosition () const |
Returns the position at which to insert the new pages. | |
QgsLayoutSize | pageSize () const |
Returns the desired page size. | |
void | setLayout (QgsLayout *layout) |
Sets the layout associated with the dialog. | |
A dialog for configuring properties of new pages to be added to a layout.
Definition at line 38 of file qgslayoutaddpagesdialog.h.
Page insertion positions.
Enumerator | |
---|---|
BeforePage | |
AfterPage | |
AtEnd |
Definition at line 44 of file qgslayoutaddpagesdialog.h.
QgsLayoutAddPagesDialog::QgsLayoutAddPagesDialog | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | flags = Qt::WindowFlags() |
||
) |
Constructor for QgsLayoutAddPagesDialog.
Definition at line 26 of file qgslayoutaddpagesdialog.cpp.
int QgsLayoutAddPagesDialog::beforePage | ( | ) | const |
Returns the page number for which new pages should be inserted before/after.
Definition at line 81 of file qgslayoutaddpagesdialog.cpp.
int QgsLayoutAddPagesDialog::numberPages | ( | ) | const |
Returns the number of pages to insert.
Definition at line 71 of file qgslayoutaddpagesdialog.cpp.
QgsLayoutAddPagesDialog::PagePosition QgsLayoutAddPagesDialog::pagePosition | ( | ) | const |
Returns the position at which to insert the new pages.
Definition at line 76 of file qgslayoutaddpagesdialog.cpp.
QgsLayoutSize QgsLayoutAddPagesDialog::pageSize | ( | ) | const |
Returns the desired page size.
Definition at line 86 of file qgslayoutaddpagesdialog.cpp.
void QgsLayoutAddPagesDialog::setLayout | ( | QgsLayout * | layout | ) |
Sets the layout associated with the dialog.
This allows the dialog to retrieve properties from the layout and perform tasks like automatic conversion of units.
Definition at line 63 of file qgslayoutaddpagesdialog.cpp.