QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
layout
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 "ui_qgslayoutnewitemproperties.h"
20
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
#include "
qgslayoutitem.h
"
24
#include "
qgslayoutpoint.h
"
25
#include "
qgslayoutsize.h
"
26
35
class
GUI_EXPORT
QgsLayoutItemPropertiesDialog
:
public
QDialog,
private
Ui::QgsLayoutNewItemPropertiesDialog
36
{
37
Q_OBJECT
38
39
public
:
43
QgsLayoutItemPropertiesDialog
( QWidget *parent =
nullptr
, Qt::WindowFlags flags = Qt::WindowFlags() );
44
49
void
setItemPosition
(
QgsLayoutPoint
position );
50
55
QgsLayoutPoint
itemPosition
()
const
;
56
60
int
page
()
const
;
61
66
void
setItemSize
(
QgsLayoutSize
size );
67
72
QgsLayoutSize
itemSize
()
const
;
73
78
QgsLayoutItem::ReferencePoint
referencePoint
()
const
;
79
84
void
setReferencePoint
(
QgsLayoutItem::ReferencePoint
point );
85
91
void
setLayout
(
QgsLayout
*layout );
92
93
private
:
94
QgsLayout
*mLayout =
nullptr
;
95
96
private
slots:
97
void
showHelp();
98
};
99
100
#endif
// QGSLAYOUTNEWITEMPROPERTIESDIALOG_H
QgsLayoutItemPropertiesDialog::QgsLayoutItemPropertiesDialog
QgsLayoutItemPropertiesDialog(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
Constructor for QgsLayoutNewItemPropertiesDialog.
Definition
qgslayoutnewitempropertiesdialog.cpp:32
QgsLayoutItemPropertiesDialog::itemSize
QgsLayoutSize itemSize() const
Returns the item size defined by the dialog.
Definition
qgslayoutnewitempropertiesdialog.cpp:101
QgsLayoutItemPropertiesDialog::setReferencePoint
void setReferencePoint(QgsLayoutItem::ReferencePoint point)
Sets the item reference point defined to show in the dialog.
Definition
qgslayoutnewitempropertiesdialog.cpp:147
QgsLayoutItemPropertiesDialog::referencePoint
QgsLayoutItem::ReferencePoint referencePoint() const
Returns the item reference point defined by the dialog.
Definition
qgslayoutnewitempropertiesdialog.cpp:106
QgsLayoutItemPropertiesDialog::setItemSize
void setItemSize(QgsLayoutSize size)
Sets the item size to show in the dialog.
Definition
qgslayoutnewitempropertiesdialog.cpp:94
QgsLayoutItemPropertiesDialog::setLayout
void setLayout(QgsLayout *layout)
Sets the layout associated with the dialog.
Definition
qgslayoutnewitempropertiesdialog.cpp:189
QgsLayoutItemPropertiesDialog::itemPosition
QgsLayoutPoint itemPosition() const
Returns the current item position defined by the dialog.
Definition
qgslayoutnewitempropertiesdialog.cpp:84
QgsLayoutItemPropertiesDialog::page
int page() const
Returns the page number for the new item.
Definition
qgslayoutnewitempropertiesdialog.cpp:89
QgsLayoutItemPropertiesDialog::setItemPosition
void setItemPosition(QgsLayoutPoint position)
Sets the item position to show in the dialog.
Definition
qgslayoutnewitempropertiesdialog.cpp:69
QgsLayoutItem::ReferencePoint
ReferencePoint
Fixed position reference point.
Definition
qgslayoutitem.h:208
QgsLayoutPoint
Provides a method of storing points, consisting of an x and y coordinate, for use in QGIS layouts.
Definition
qgslayoutpoint.h:47
QgsLayoutSize
Provides a method of storing sizes, consisting of a width and height, for use in QGIS layouts.
Definition
qgslayoutsize.h:47
QgsLayout
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition
qgslayout.h:51
qgis_sip.h
qgslayoutitem.h
qgslayoutpoint.h
qgslayoutsize.h
Generated on
for QGIS API Documentation by
1.17.0