QGIS/python/gui/auto_generated/layout/qgslayoutviewtooladdnodeitem.sip.in

73 lines
2.2 KiB
Plaintext
Raw Normal View History

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/ );
%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.
.. 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
.. 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 );
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 *
************************************************************************/