QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
QgsLayoutAddPagesDialog Class Reference

A dialog for configuring properties of new pages to be added to a layout. More...

#include <qgslayoutaddpagesdialog.h>

Inheritance diagram for QgsLayoutAddPagesDialog:
Inheritance graph
[legend]

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.
 

Detailed Description

A dialog for configuring properties of new pages to be added to a layout.

Note
This class is not a part of public API
Since
QGIS 3.12

Definition at line 38 of file qgslayoutaddpagesdialog.h.

Member Enumeration Documentation

◆ PagePosition

Page insertion positions.

Enumerator
BeforePage 
AfterPage 
AtEnd 

Definition at line 45 of file qgslayoutaddpagesdialog.h.

Constructor & Destructor Documentation

◆ QgsLayoutAddPagesDialog()

QgsLayoutAddPagesDialog::QgsLayoutAddPagesDialog ( QWidget *  parent = nullptr,
Qt::WindowFlags  flags = Qt::WindowFlags() 
)

Constructor for QgsLayoutAddPagesDialog.

Definition at line 26 of file qgslayoutaddpagesdialog.cpp.

Member Function Documentation

◆ beforePage()

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.

◆ numberPages()

int QgsLayoutAddPagesDialog::numberPages ( ) const

Returns the number of pages to insert.

Definition at line 71 of file qgslayoutaddpagesdialog.cpp.

◆ pagePosition()

QgsLayoutAddPagesDialog::PagePosition QgsLayoutAddPagesDialog::pagePosition ( ) const

Returns the position at which to insert the new pages.

Definition at line 76 of file qgslayoutaddpagesdialog.cpp.

◆ pageSize()

QgsLayoutSize QgsLayoutAddPagesDialog::pageSize ( ) const

Returns the desired page size.

Definition at line 86 of file qgslayoutaddpagesdialog.cpp.

◆ setLayout()

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.


The documentation for this class was generated from the following files: