Stores GUI metadata about one layout item class.
More...
#include <qgslayoutitemguiregistry.h>
Stores GUI metadata about one layout item class.
This is a companion to QgsLayoutItemAbstractMetadata, storing only the components related to the GUI behavior of a layout item.
- Note
- In C++ you can use QgsLayoutItemGuiMetadata convenience class.
- Since
- QGIS 3.0
Definition at line 46 of file qgslayoutitemguiregistry.h.
◆ Flag
Flags for controlling how a items behave in the GUI.
Enumerator |
---|
FlagNoCreationTools | Do not show item creation tools for the item type.
|
Definition at line 51 of file qgslayoutitemguiregistry.h.
◆ QgsLayoutItemAbstractGuiMetadata()
QgsLayoutItemAbstractGuiMetadata::QgsLayoutItemAbstractGuiMetadata |
( |
int |
type, |
|
|
const QString & |
visibleName, |
|
|
const QString & |
groupId = QString() , |
|
|
bool |
isNodeBased = false , |
|
|
Flags |
flags = QgsLayoutItemAbstractGuiMetadata::Flags() |
|
) |
| |
|
inline |
Constructor for QgsLayoutItemAbstractGuiMetadata with the specified class type.
visibleName should be set to a translated, user visible name identifying the corresponding layout item.
An optional groupId can be set, which allows grouping of related layout item classes. See QgsLayoutItemGuiMetadata for details.
If isNodeBased is true
, then the corresponding item is a node based item.
Definition at line 66 of file qgslayoutitemguiregistry.h.
◆ ~QgsLayoutItemAbstractGuiMetadata()
virtual QgsLayoutItemAbstractGuiMetadata::~QgsLayoutItemAbstractGuiMetadata |
( |
| ) |
|
|
virtualdefault |
◆ createItem()
◆ createItemWidget()
◆ createNodeRubberBand()
QAbstractGraphicsShapeItem * QgsLayoutItemAbstractGuiMetadata::createNodeRubberBand |
( |
QgsLayoutView * |
view | ) |
|
|
virtual |
◆ createRubberBand()
◆ creationIcon()
virtual QIcon QgsLayoutItemAbstractGuiMetadata::creationIcon |
( |
| ) |
const |
|
inlinevirtual |
◆ flags()
Flags QgsLayoutItemAbstractGuiMetadata::flags |
( |
| ) |
const |
|
inline |
◆ groupId()
QString QgsLayoutItemAbstractGuiMetadata::groupId |
( |
| ) |
const |
|
inline |
◆ isNodeBased()
bool QgsLayoutItemAbstractGuiMetadata::isNodeBased |
( |
| ) |
const |
|
inline |
◆ newItemAddedToLayout()
void QgsLayoutItemAbstractGuiMetadata::newItemAddedToLayout |
( |
QgsLayoutItem * |
item | ) |
|
|
virtual |
Called when a newly created item of the associated type has been added to a layout.
This is only called for additions which result from GUI operations - i.e. it is not called for items added from templates.
Reimplemented in QgsLayoutItemGuiMetadata.
Definition at line 40 of file qgslayoutitemguiregistry.cpp.
◆ type()
int QgsLayoutItemAbstractGuiMetadata::type |
( |
| ) |
const |
|
inline |
◆ visibleName()
QString QgsLayoutItemAbstractGuiMetadata::visibleName |
( |
| ) |
const |
|
inline |
Returns a translated, user visible name identifying the corresponding layout item.
Definition at line 99 of file qgslayoutitemguiregistry.h.
The documentation for this class was generated from the following files: