2017-07-17 17:59:14 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/layout/qgslayoutnewitempropertiesdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-18 12:02:55 +10:00
|
|
|
class QgsLayoutItemPropertiesDialog : QDialog
|
2017-07-17 17:59:14 +10:00
|
|
|
{
|
|
|
|
%Docstring
|
2017-07-18 12:02:55 +10:00
|
|
|
A dialog for configuring properties like the size and position of layout items.
|
|
|
|
|
|
|
|
This is usually used only when constructing new layout items, allowing users to precisely
|
|
|
|
enter their sizes and positions.
|
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2017-07-17 17:59:14 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslayoutnewitempropertiesdialog.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-07-18 12:02:55 +10:00
|
|
|
QgsLayoutItemPropertiesDialog( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsLayoutNewItemPropertiesDialog.
|
|
|
|
%End
|
2017-07-17 17:59:14 +10:00
|
|
|
|
2017-07-18 12:02:55 +10:00
|
|
|
void setItemPosition( QgsLayoutPoint position );
|
|
|
|
%Docstring
|
|
|
|
Sets the item ``position`` to show in the dialog.
|
|
|
|
.. seealso:: itemPosition()
|
|
|
|
%End
|
2017-07-17 17:59:14 +10:00
|
|
|
|
|
|
|
QgsLayoutPoint itemPosition() const;
|
|
|
|
%Docstring
|
2017-07-18 12:02:55 +10:00
|
|
|
Returns the current item position defined by the dialog.
|
|
|
|
.. seealso:: setItemPosition()
|
2017-07-17 17:59:14 +10:00
|
|
|
:rtype: QgsLayoutPoint
|
|
|
|
%End
|
|
|
|
|
2017-07-18 12:02:55 +10:00
|
|
|
void setItemSize( QgsLayoutSize size );
|
|
|
|
%Docstring
|
|
|
|
Sets the item ``size`` to show in the dialog.
|
|
|
|
.. seealso:: itemSize()
|
|
|
|
%End
|
|
|
|
|
2017-07-17 17:59:14 +10:00
|
|
|
QgsLayoutSize itemSize() const;
|
|
|
|
%Docstring
|
2017-07-18 12:02:55 +10:00
|
|
|
Returns the item size defined by the dialog.
|
|
|
|
.. seealso:: setItemSize()
|
2017-07-17 17:59:14 +10:00
|
|
|
:rtype: QgsLayoutSize
|
|
|
|
%End
|
|
|
|
|
2017-07-18 12:02:55 +10:00
|
|
|
QgsLayoutItem::ReferencePoint referencePoint() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the item reference point defined by the dialog.
|
|
|
|
.. seealso:: setReferencePoint()
|
|
|
|
:rtype: QgsLayoutItem.ReferencePoint
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setReferencePoint( QgsLayoutItem::ReferencePoint point );
|
|
|
|
%Docstring
|
|
|
|
Sets the item reference ``point`` defined to show in the dialog.
|
|
|
|
.. seealso:: referencePoint()
|
|
|
|
%End
|
|
|
|
|
2017-07-21 13:49:39 +10:00
|
|
|
void setLayout( QgsLayout *layout );
|
|
|
|
%Docstring
|
|
|
|
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.
|
|
|
|
%End
|
|
|
|
|
2017-07-17 17:59:14 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/layout/qgslayoutnewitempropertiesdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|