-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tools to create node based items
- Loading branch information
1 parent
6b629e1
commit 44fe2a8
Showing
19 changed files
with
537 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/************************************************************************ | ||
* 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 * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.