Krita Source Code Documentation
Loading...
Searching...
No Matches
ShapeLayerTypeCheckFactory Class Reference

#include <ShapeLayerTypeCheck.h>

+ Inheritance diagram for ShapeLayerTypeCheckFactory:

Public Member Functions

KisExportCheckBasecreate (KisExportCheckBase::Level level, const QString &customWarning) override
 
QString id () const override
 
 ShapeLayerTypeCheckFactory (const QString &ShapeId, const QString &PathShapeId="")
 
 ~ShapeLayerTypeCheckFactory () override
 
- Public Member Functions inherited from KisExportCheckFactory
virtual ~KisExportCheckFactory ()
 

Public Attributes

const QString m_pathShapeId
 
const QString m_shapeId
 

Detailed Description

Definition at line 141 of file ShapeLayerTypeCheck.h.

Constructor & Destructor Documentation

◆ ShapeLayerTypeCheckFactory()

ShapeLayerTypeCheckFactory::ShapeLayerTypeCheckFactory ( const QString & ShapeId,
const QString & PathShapeId = "" )
inline

Definition at line 145 of file ShapeLayerTypeCheck.h.

146 : m_shapeId(ShapeId)
147 , m_pathShapeId(PathShapeId)
148 {
149 }

◆ ~ShapeLayerTypeCheckFactory()

ShapeLayerTypeCheckFactory::~ShapeLayerTypeCheckFactory ( )
inlineoverride

Definition at line 151 of file ShapeLayerTypeCheck.h.

151{}

Member Function Documentation

◆ create()

KisExportCheckBase * ShapeLayerTypeCheckFactory::create ( KisExportCheckBase::Level level,
const QString & customWarning )
inlineoverridevirtual

Implements KisExportCheckFactory.

Definition at line 153 of file ShapeLayerTypeCheck.h.

154 {
155 return new ShapeLayerTypeCheck(m_shapeId, m_pathShapeId, id(), level, customWarning);
156 }

References m_pathShapeId, and m_shapeId.

◆ id()

QString ShapeLayerTypeCheckFactory::id ( ) const
inlineoverridevirtual

Implements KisExportCheckFactory.

Definition at line 158 of file ShapeLayerTypeCheck.h.

158 {
159 if (m_pathShapeId.isEmpty()) {
160 return "ShapeLayerTypeCheck/" + m_shapeId;
161 }
162 return "ShapeLayerTypeCheck/" + m_shapeId + "/" + m_pathShapeId;
163 }

References m_pathShapeId, and m_shapeId.

Member Data Documentation

◆ m_pathShapeId

const QString ShapeLayerTypeCheckFactory::m_pathShapeId

Definition at line 166 of file ShapeLayerTypeCheck.h.

◆ m_shapeId

const QString ShapeLayerTypeCheckFactory::m_shapeId

Definition at line 165 of file ShapeLayerTypeCheck.h.


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