2017-10-17 17:39:55 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/layout/qgslayoutviewtooladdnodeitem.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLayoutViewToolAddNodeItem : QgsLayoutViewTool
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Layout view tool for adding node based items to a layout.
|
|
|
|
|
2017-10-17 17:39:55 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslayoutviewtooladdnodeitem.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsLayoutViewToolAddNodeItem( QgsLayoutView *view /TransferThis/ );
|
2018-10-24 08:27:09 -04:00
|
|
|
%Docstring
|
|
|
|
Constructs a QgsLayoutViewToolAddNodeItem for the given layout ``view``.
|
|
|
|
%End
|
2017-10-17 17:39:55 +10:00
|
|
|
|
|
|
|
int itemMetadataId() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the item metadata id for items created by the tool.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setItemMetadataId`
|
2017-10-17 17:39:55 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setItemMetadataId( int metadataId );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the item metadata ``metadataId`` for items created by the tool.
|
2017-10-17 17:39:55 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
The ``metadataId`` associates the current tool behavior with a metadata entry
|
2017-12-19 11:43:52 -04:00
|
|
|
from :py:class:`QgsLayoutItemGuiRegistry`.
|
2017-10-17 17:39:55 +10:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`itemMetadataId`
|
2017-10-17 17:39:55 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void layoutPressEvent( QgsLayoutViewMouseEvent *event );
|
|
|
|
|
|
|
|
virtual void layoutMoveEvent( QgsLayoutViewMouseEvent *event );
|
|
|
|
|
|
|
|
virtual void layoutReleaseEvent( QgsLayoutViewMouseEvent *event );
|
|
|
|
|
2017-10-18 08:02:11 +10:00
|
|
|
virtual void keyPressEvent( QKeyEvent *event );
|
|
|
|
|
2017-10-17 17:39:55 +10:00
|
|
|
virtual void deactivate();
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void createdItem();
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Emitted when an item has been created using the tool.
|
2017-10-17 17:39:55 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/layout/qgslayoutviewtooladdnodeitem.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|