QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsLayoutMultiFrameAbstractMetadata Class Referenceabstract

Stores metadata about one layout multiframe class. More...

#include <qgslayoutitemregistry.h>

Inheritance diagram for QgsLayoutMultiFrameAbstractMetadata:
Inheritance graph
[legend]

Public Member Functions

 QgsLayoutMultiFrameAbstractMetadata (int type, const QString &visibleName)
 Constructor for QgsLayoutMultiFrameAbstractMetadata with the specified class type and visibleName.
 
virtual ~QgsLayoutMultiFrameAbstractMetadata ()=default
 
virtual QgsLayoutMultiFramecreateMultiFrame (QgsLayout *layout)=0
 Creates a layout multiframe of this class for a specified layout.
 
virtual QIcon icon () const
 Returns an icon representing the layout multiframe type.
 
virtual void resolvePaths (QVariantMap &properties, const QgsPathResolver &pathResolver, bool saving)
 Resolve paths in the item's properties (if there are any paths).
 
int type () const
 Returns the unique item type code for the layout multiframe class.
 
QString visibleName () const
 Returns a translated, user visible name for the layout multiframe class.
 

Detailed Description

Stores metadata about one layout multiframe class.

A companion class, QgsLayoutMultiFrameAbstractGuiMetadata, handles the GUI behavior of QgsLayoutMultiFrames.

Note
In C++ you can use QgsLayoutMultiFrameMetadata convenience class.

Definition at line 186 of file qgslayoutitemregistry.h.

Constructor & Destructor Documentation

◆ QgsLayoutMultiFrameAbstractMetadata()

QgsLayoutMultiFrameAbstractMetadata::QgsLayoutMultiFrameAbstractMetadata ( int  type,
const QString &  visibleName 
)
inline

Constructor for QgsLayoutMultiFrameAbstractMetadata with the specified class type and visibleName.

Definition at line 194 of file qgslayoutitemregistry.h.

◆ ~QgsLayoutMultiFrameAbstractMetadata()

virtual QgsLayoutMultiFrameAbstractMetadata::~QgsLayoutMultiFrameAbstractMetadata ( )
virtualdefault

Member Function Documentation

◆ createMultiFrame()

virtual QgsLayoutMultiFrame * QgsLayoutMultiFrameAbstractMetadata::createMultiFrame ( QgsLayout layout)
pure virtual

Creates a layout multiframe of this class for a specified layout.

Implemented in QgsLayoutMultiFrameMetadata.

◆ icon()

virtual QIcon QgsLayoutMultiFrameAbstractMetadata::icon ( ) const
inlinevirtual

Returns an icon representing the layout multiframe type.

Definition at line 209 of file qgslayoutitemregistry.h.

◆ resolvePaths()

virtual void QgsLayoutMultiFrameAbstractMetadata::resolvePaths ( QVariantMap &  properties,
const QgsPathResolver pathResolver,
bool  saving 
)
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 243 of file qgslayoutitemregistry.h.

◆ type()

int QgsLayoutMultiFrameAbstractMetadata::type ( ) const
inline

Returns the unique item type code for the layout multiframe class.

Definition at line 204 of file qgslayoutitemregistry.h.

◆ visibleName()

QString QgsLayoutMultiFrameAbstractMetadata::visibleName ( ) const
inline

Returns a translated, user visible name for the layout multiframe class.

Definition at line 214 of file qgslayoutitemregistry.h.


The documentation for this class was generated from the following file: