mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
67 lines
2.1 KiB
Plaintext
67 lines
2.1 KiB
Plaintext
|
/************************************************************************
|
||
|
* 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
|
||
|
Layout view tool for adding node based items to a layout.
|
||
|
.. versionadded:: 3.0
|
||
|
%End
|
||
|
|
||
|
%TypeHeaderCode
|
||
|
#include "qgslayoutviewtooladdnodeitem.h"
|
||
|
%End
|
||
|
public:
|
||
|
|
||
|
QgsLayoutViewToolAddNodeItem( QgsLayoutView *view /TransferThis/ );
|
||
|
|
||
|
int itemMetadataId() const;
|
||
|
%Docstring
|
||
|
Returns the item metadata id for items created by the tool.
|
||
|
.. seealso:: setItemMetadataId()
|
||
|
:rtype: int
|
||
|
%End
|
||
|
|
||
|
void setItemMetadataId( int metadataId );
|
||
|
%Docstring
|
||
|
Sets the item metadata ``metadataId`` for items created by the tool.
|
||
|
|
||
|
The ``metadataId`` associates the current tool behavior with a metadata entry
|
||
|
from QgsLayoutItemGuiRegistry.
|
||
|
|
||
|
.. seealso:: itemMetadataId()
|
||
|
%End
|
||
|
|
||
|
virtual void layoutPressEvent( QgsLayoutViewMouseEvent *event );
|
||
|
|
||
|
virtual void layoutMoveEvent( QgsLayoutViewMouseEvent *event );
|
||
|
|
||
|
virtual void layoutReleaseEvent( QgsLayoutViewMouseEvent *event );
|
||
|
|
||
|
virtual void deactivate();
|
||
|
|
||
|
|
||
|
signals:
|
||
|
|
||
|
void createdItem();
|
||
|
%Docstring
|
||
|
Emitted when an item has been created using the tool.
|
||
|
%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 *
|
||
|
************************************************************************/
|