Registry of available layout item types.
More...
#include <qgslayoutitemregistry.h>
|
enum | ItemType {
LayoutItem = QGraphicsItem::UserType + 100
, LayoutGroup
, LayoutPage
, LayoutMap
,
LayoutPicture
, LayoutLabel
, LayoutLegend
, LayoutShape
,
LayoutPolygon
, LayoutPolyline
, LayoutScaleBar
, LayoutFrame
,
LayoutHtml
, LayoutAttributeTable
, LayoutTextTable
, Layout3DMap
,
LayoutManualTable
, LayoutMarker
, PluginItem = LayoutTextTable + 10000
} |
| Item types. More...
|
|
|
void | multiFrameTypeAdded (int type, const QString &name) |
| Emitted whenever a new multiframe type is added to the registry, with the specified type and visible name. More...
|
|
void | typeAdded (int type, const QString &name) |
| Emitted whenever a new item type is added to the registry, with the specified type and visible name. More...
|
|
Registry of available layout item types.
QgsLayoutItemRegistry is not usually directly created, but rather accessed through QgsApplication::layoutItemRegistry().
A companion class, QgsLayoutItemGuiRegistry, handles the GUI behavior of layout items.
- Since
- QGIS 3.0
Definition at line 329 of file qgslayoutitemregistry.h.
◆ ItemType
Item types.
Enumerator |
---|
LayoutItem | Base class for items.
|
LayoutGroup | Grouped item.
|
LayoutPage | Page items.
|
LayoutMap | Map item.
|
LayoutPicture | Picture item.
|
LayoutLabel | Label item.
|
LayoutLegend | Legend item.
|
LayoutShape | Shape item.
|
LayoutPolygon | Polygon shape item.
|
LayoutPolyline | Polyline shape item.
|
LayoutScaleBar | Scale bar item.
|
LayoutFrame | Frame item, part of a QgsLayoutMultiFrame object.
|
LayoutHtml | Html multiframe item.
|
LayoutAttributeTable | Attribute table.
|
LayoutTextTable | Preset text table.
|
Layout3DMap | 3D map item
|
LayoutManualTable | Manual (fixed) table.
|
LayoutMarker | Marker item.
|
PluginItem | Starting point for plugin item types.
|
Definition at line 336 of file qgslayoutitemregistry.h.
◆ QgsLayoutItemRegistry() [1/2]
QgsLayoutItemRegistry::QgsLayoutItemRegistry |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~QgsLayoutItemRegistry()
QgsLayoutItemRegistry::~QgsLayoutItemRegistry |
( |
| ) |
|
|
override |
◆ QgsLayoutItemRegistry() [2/2]
◆ addLayoutItemType()
◆ addLayoutMultiFrameType()
◆ createItem()
◆ createMultiFrame()
◆ itemMetadata()
◆ itemTypes()
QMap< int, QString > QgsLayoutItemRegistry::itemTypes |
( |
| ) |
const |
◆ multiFrameMetadata()
Returns the metadata for the specified multiframe type.
Returns nullptr
if a corresponding type was not found in the registry.
- See also
- itemMetadata()
Definition at line 98 of file qgslayoutitemregistry.cpp.
◆ multiFrameTypeAdded
void QgsLayoutItemRegistry::multiFrameTypeAdded |
( |
int |
type, |
|
|
const QString & |
name |
|
) |
| |
|
signal |
Emitted whenever a new multiframe type is added to the registry, with the specified type and visible name.
◆ operator=()
◆ populate()
bool QgsLayoutItemRegistry::populate |
( |
| ) |
|
Populates the registry with standard item types.
If called on a non-empty registry then this will have no effect and will return false
.
Definition at line 52 of file qgslayoutitemregistry.cpp.
◆ resolvePaths()
void QgsLayoutItemRegistry::resolvePaths |
( |
int |
type, |
|
|
QVariantMap & |
properties, |
|
|
const QgsPathResolver & |
pathResolver, |
|
|
bool |
saving |
|
) |
| const |
Resolve paths in properties of a particular symbol layer.
This normally means converting relative paths to absolute paths when loading and converting absolute paths to relative paths when saving.
Definition at line 139 of file qgslayoutitemregistry.cpp.
◆ typeAdded
void QgsLayoutItemRegistry::typeAdded |
( |
int |
type, |
|
|
const QString & |
name |
|
) |
| |
|
signal |
Emitted whenever a new item type is added to the registry, with the specified type and visible name.
The documentation for this class was generated from the following files: