QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
qgslayoutnewitempropertiesdialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslayoutnewitempropertiesdialog.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 QGSLAYOUTNEWITEMPROPERTIESDIALOG_H
17#define QGSLAYOUTNEWITEMPROPERTIESDIALOG_H
18
19#include "qgis_sip.h"
20#include "qgis_gui.h"
21#include "ui_qgslayoutnewitemproperties.h"
22
23#include "qgslayoutsize.h"
24#include "qgslayoutpoint.h"
25#include "qgslayoutitem.h"
26
35class GUI_EXPORT QgsLayoutItemPropertiesDialog : public QDialog, private Ui::QgsLayoutNewItemPropertiesDialog
36{
37 Q_OBJECT
38
39 public:
40
44 QgsLayoutItemPropertiesDialog( QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );
45
50 void setItemPosition( QgsLayoutPoint position );
51
56 QgsLayoutPoint itemPosition() const;
57
61 int page() const;
62
67 void setItemSize( QgsLayoutSize size );
68
73 QgsLayoutSize itemSize() const;
74
79 QgsLayoutItem::ReferencePoint referencePoint() const;
80
85 void setReferencePoint( QgsLayoutItem::ReferencePoint point );
86
92 void setLayout( QgsLayout *layout );
93
94 private:
95
96 QgsLayout *mLayout = nullptr;
97
98 private slots:
99 void showHelp();
100
101};
102
103#endif // QGSLAYOUTNEWITEMPROPERTIESDIALOG_H
A dialog for configuring properties like the size and position of layout items.
ReferencePoint
Fixed position reference point.
This class provides a method of storing points, consisting of an x and y coordinate,...
This class provides a method of storing sizes, consisting of a width and height, for use in QGIS layo...
Definition: qgslayoutsize.h:40
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition: qgslayout.h:49