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
|
|
|
|
|
|
|
int itemType() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the item type for items created by the tool.
|
|
|
|
.. seealso:: setItemType()
|
|
|
|
:rtype: int
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setItemType( int type );
|
|
|
|
%Docstring
|
|
|
|
Sets the item ``type`` for items created by the tool.
|
|
|
|
.. seealso:: itemType()
|
|
|
|
%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-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 *
|
|
|
|
************************************************************************/
|