QGIS API Documentation
3.6.0-Noosa (5873452)
|
Stores metadata about one layout multiframe class. More...
#include <qgslayoutitemregistry.h>
Public Member Functions | |
QgsLayoutMultiFrameAbstractMetadata (int type, const QString &visibleName) | |
Constructor for QgsLayoutMultiFrameAbstractMetadata with the specified class type and visibleName. More... | |
virtual | ~QgsLayoutMultiFrameAbstractMetadata ()=default |
virtual QgsLayoutMultiFrame * | createMultiFrame (QgsLayout *layout)=0 |
Creates a layout multiframe of this class for a specified layout. More... | |
virtual QIcon | icon () const |
Returns an icon representing the layout multiframe type. More... | |
virtual void | resolvePaths (QVariantMap &properties, const QgsPathResolver &pathResolver, bool saving) |
Resolve paths in the item's properties (if there are any paths). More... | |
int | type () const |
Returns the unique item type code for the layout multiframe class. More... | |
QString | visibleName () const |
Returns a translated, user visible name for the layout multiframe class. More... | |
Stores metadata about one layout multiframe class.
A companion class, QgsLayoutMultiFrameAbstractGuiMetadata, handles the GUI behavior of QgsLayoutMultiFrames.
Definition at line 161 of file qgslayoutitemregistry.h.
|
inline |
Constructor for QgsLayoutMultiFrameAbstractMetadata with the specified class type and visibleName.
Definition at line 169 of file qgslayoutitemregistry.h.
|
virtualdefault |
|
pure virtual |
Creates a layout multiframe of this class for a specified layout.
Implemented in QgsLayoutMultiFrameMetadata.
|
inlinevirtual |
Returns an icon representing the layout multiframe type.
Definition at line 184 of file qgslayoutitemregistry.h.
|
inlinevirtual |
Resolve paths in the item's properties (if there are any paths).
When saving is true, paths are converted from absolute to relative, when saving is false, paths are converted from relative to absolute. This ensures that paths in project files can be relative, but in item instances the paths are always absolute.
Reimplemented in QgsLayoutMultiFrameMetadata.
Definition at line 203 of file qgslayoutitemregistry.h.
|
inline |
Returns the unique item type code for the layout multiframe class.
Definition at line 179 of file qgslayoutitemregistry.h.
|
inline |
Returns a translated, user visible name for the layout multiframe class.
Definition at line 189 of file qgslayoutitemregistry.h.