|
| QgsLayoutItemGuiMetadata (int type, const QString &visibleName, const QIcon &creationIcon, const QgsLayoutItemWidgetFunc &pfWidget=nullptr, const QgsLayoutItemRubberBandFunc &pfRubberBand=nullptr, const QString &groupId=QString(), bool isNodeBased=false, QgsLayoutItemAbstractGuiMetadata::Flags flags=QgsLayoutItemAbstractGuiMetadata::Flags(), const QgsLayoutItemCreateFunc &pfCreateFunc=nullptr) |
| Constructor for QgsLayoutItemGuiMetadata with the specified class type and creationIcon, and function pointers for the various configuration widget creation functions. More...
|
|
QgsLayoutItem * | createItem (QgsLayout *layout) override |
| Creates an instance of the corresponding item type. More...
|
|
QgsLayoutItemBaseWidget * | createItemWidget (QgsLayoutItem *item) override |
| Creates a configuration widget for an item of this type. More...
|
|
QAbstractGraphicsShapeItem * | createNodeRubberBand (QgsLayoutView *view) override |
| Creates a rubber band for use when creating layout node based items of this type. More...
|
|
QgsLayoutViewRubberBand * | createRubberBand (QgsLayoutView *view) override |
| Creates a rubber band for use when creating layout items of this type. More...
|
|
QIcon | creationIcon () const override |
| Returns an icon representing creation of the layout item type. More...
|
|
QgsLayoutItemAddedToLayoutFunc | itemAddToLayoutFunction () const |
| Returns the classes' item added to layout function. More...
|
|
QgsLayoutItemCreateFunc | itemCreationFunction () const |
| Returns the classes' item creation function. More...
|
|
void | newItemAddedToLayout (QgsLayoutItem *item) override |
| Called when a newly created item of the associated type has been added to a layout. More...
|
|
void | newItemAddedToLayout (QgsLayoutItem *item, const QVariantMap &properties) |
| Called when a newly created item of the associated type has been added to a layout. More...
|
|
QgsLayoutNodeItemRubberBandFunc | nodeRubberBandCreationFunction () const |
| Returns the classes' node based rubber band creation function. More...
|
|
QgsLayoutItemRubberBandFunc | rubberBandCreationFunction () const |
| Returns the classes' rubber band creation function. More...
|
|
void | setItemAddedToLayoutFunction (const QgsLayoutItemAddedToLayoutFunc &function) |
| Sets the classes' item creation function. More...
|
|
void | setItemCreationFunction (const QgsLayoutItemCreateFunc &function) |
| Sets the classes' item creation function. More...
|
|
void | setNodeRubberBandCreationFunction (const QgsLayoutNodeItemRubberBandFunc &function) |
| Sets the classes' node based rubber band creation function. More...
|
|
void | setRubberBandCreationFunction (const QgsLayoutItemRubberBandFunc &function) |
| Sets the classes' rubber band creation function. More...
|
|
void | setWidgetFunction (const QgsLayoutItemWidgetFunc &function) |
| Sets the classes' configuration widget creation function. More...
|
|
QgsLayoutItemWidgetFunc | widgetFunction () const |
| Returns the classes' configuration widget creation function. More...
|
|
| QgsLayoutItemAbstractGuiMetadata (int type, const QString &visibleName, const QString &groupId=QString(), bool isNodeBased=false, Flags flags=QgsLayoutItemAbstractGuiMetadata::Flags()) |
| Constructor for QgsLayoutItemAbstractGuiMetadata with the specified class type. More...
|
|
virtual | ~QgsLayoutItemAbstractGuiMetadata ()=default |
|
virtual QgsLayoutItem * | createItem (QgsLayout *layout) |
| Creates an instance of the corresponding item type. More...
|
|
virtual QgsLayoutItemBaseWidget * | createItemWidget (QgsLayoutItem *item) |
| Creates a configuration widget for an item of this type. More...
|
|
virtual QAbstractGraphicsShapeItem * | createNodeRubberBand (QgsLayoutView *view) |
| Creates a rubber band for use when creating layout node based items of this type. More...
|
|
virtual QgsLayoutViewRubberBand * | createRubberBand (QgsLayoutView *view) |
| Creates a rubber band for use when creating layout items of this type. More...
|
|
virtual QIcon | creationIcon () const |
| Returns an icon representing creation of the layout item type. More...
|
|
Flags | flags () const |
| Returns item flags. More...
|
|
QString | groupId () const |
| Returns the item group ID, if set. More...
|
|
bool | isNodeBased () const |
| Returns true if the associated item is a node based item. More...
|
|
virtual void | newItemAddedToLayout (QgsLayoutItem *item) |
| Called when a newly created item of the associated type has been added to a layout. More...
|
|
int | type () const |
| Returns the unique item type code for the layout item class. More...
|
|
QString | visibleName () const |
| Returns a translated, user visible name identifying the corresponding layout item. More...
|
|