2017-07-04 13:55:30 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/layout/qgslayoutviewtooladditem.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLayoutViewToolAddItem : QgsLayoutViewTool
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
Layout view tool for adding items to a layout.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslayoutviewtooladditem.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-07-07 11:16:22 +10:00
|
|
|
QgsLayoutViewToolAddItem( QgsLayoutView *view /TransferThis/ );
|
2017-07-04 13:55:30 +10:00
|
|
|
|
2017-10-17 13:48:35 +10:00
|
|
|
int itemMetadataId() const;
|
2017-07-04 13:55:30 +10:00
|
|
|
%Docstring
|
2017-10-17 13:48:35 +10:00
|
|
|
Returns the item metadata id for items created by the tool.
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setItemMetadataId()`
|
2017-10-17 13:48:35 +10:00
|
|
|
:rtype: int
|
2017-07-04 13:55:30 +10:00
|
|
|
%End
|
|
|
|
|
2017-10-17 13:48:35 +10:00
|
|
|
void setItemMetadataId( int metadataId );
|
2017-07-04 13:55:30 +10:00
|
|
|
%Docstring
|
2017-10-17 13:48:35 +10:00
|
|
|
Sets the item metadata ``metadataId`` for items created by the tool.
|
2017-10-16 17:34:19 +10:00
|
|
|
|
2017-10-17 13:48:35 +10:00
|
|
|
The ``metadataId`` associates the current tool behavior with a metadata entry
|
2017-10-16 17:34:19 +10:00
|
|
|
from QgsLayoutItemGuiRegistry.
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`itemMetadataId()`
|
2017-07-04 13:55:30 +10:00
|
|
|
%End
|
|
|
|
|
2017-07-04 14:58:39 +10:00
|
|
|
virtual void layoutPressEvent( QgsLayoutViewMouseEvent *event );
|
|
|
|
|
|
|
|
virtual void layoutMoveEvent( QgsLayoutViewMouseEvent *event );
|
|
|
|
|
|
|
|
virtual void layoutReleaseEvent( QgsLayoutViewMouseEvent *event );
|
|
|
|
|
2017-07-05 06:59:54 +10:00
|
|
|
virtual void deactivate();
|
|
|
|
|
2017-07-04 14:58:39 +10:00
|
|
|
|
2017-10-11 08:20:21 +10:00
|
|
|
signals:
|
|
|
|
|
|
|
|
void createdItem();
|
|
|
|
%Docstring
|
|
|
|
Emitted when an item has been created using the tool.
|
|
|
|
%End
|
|
|
|
|
2017-07-04 13:55:30 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/layout/qgslayoutviewtooladditem.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|