Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickQmlGenerator Class Reference

#include <qquickqmlgenerator_p.h>

+ Inheritance diagram for QQuickQmlGenerator:
+ Collaboration diagram for QQuickQmlGenerator:

Public Member Functions

 QQuickQmlGenerator (const QString fileName, QQuickVectorImageGenerator::GeneratorFlags flags, const QString &outFileName)
 
 ~QQuickQmlGenerator ()
 
void setShapeTypeName (const QString &name)
 
QString shapeTypeName () const
 
void setCommentString (const QString commentString)
 
QString commentString () const
 
void setRetainFilePaths (bool retainFilePaths)
 
bool retainFilePaths () const
 
void setAssetFileDirectory (const QString &assetFileDirectory)
 
QString assetFileDirectory () const
 
void setAssetFilePrefix (const QString &assetFilePrefix)
 
QString assetFilePrefix () const
 
- Public Member Functions inherited from QQuickGenerator
 QQuickGenerator (const QString fileName, QQuickVectorImageGenerator::GeneratorFlags flags)
 
virtual ~QQuickGenerator ()
 
void setGeneratorFlags (QQuickVectorImageGenerator::GeneratorFlags flags)
 
QQuickVectorImageGenerator::GeneratorFlags generatorFlags ()
 
void generate ()
 

Protected Member Functions

void generateNodeBase (const NodeInfo &info) override
 
bool generateDefsNode (const NodeInfo &info) override
 
void generateImageNode (const ImageNodeInfo &info) override
 
void generatePath (const PathNodeInfo &info) override
 
void generateNode (const NodeInfo &info) override
 
void generateTextNode (const TextNodeInfo &info) override
 
void generateUseNode (const UseNodeInfo &info) override
 
bool generateStructureNode (const StructureNodeInfo &info) override
 
bool generateRootNode (const StructureNodeInfo &info) override
 
void outputShapePath (const PathNodeInfo &info, const QPainterPath *path, const QQuadPath *quadPath, QQuickVectorImageGenerator::PathSelector pathSelector, const QRectF &boundingRect) override
 
- Protected Member Functions inherited from QQuickGenerator
void optimizePaths (const PathNodeInfo &info)
 
bool isNodeVisible (const NodeInfo &info)
 

Additional Inherited Members

- Protected Attributes inherited from QQuickGenerator
QQuickVectorImageGenerator::GeneratorFlags m_flags
 

Detailed Description

Definition at line 26 of file qquickqmlgenerator_p.h.

Constructor & Destructor Documentation

◆ QQuickQmlGenerator()

QQuickQmlGenerator::QQuickQmlGenerator ( const QString fileName,
QQuickVectorImageGenerator::GeneratorFlags flags,
const QString & outFileName )

Definition at line 73 of file qquickqmlgenerator.cpp.

◆ ~QQuickQmlGenerator()

QQuickQmlGenerator::~QQuickQmlGenerator ( )

Definition at line 80 of file qquickqmlgenerator.cpp.

References QString::isEmpty(), qCDebug, and QIODeviceBase::WriteOnly.

+ Here is the call graph for this function:

Member Function Documentation

◆ assetFileDirectory()

QString QQuickQmlGenerator::assetFileDirectory ( ) const
inline

Definition at line 53 of file qquickqmlgenerator_p.h.

◆ assetFilePrefix()

QString QQuickQmlGenerator::assetFilePrefix ( ) const
inline

Definition at line 63 of file qquickqmlgenerator_p.h.

◆ commentString()

QString QQuickQmlGenerator::commentString ( ) const

Definition at line 110 of file qquickqmlgenerator.cpp.

Referenced by setCommentString().

+ Here is the caller graph for this function:

◆ generateDefsNode()

bool QQuickQmlGenerator::generateDefsNode ( const NodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 149 of file qquickqmlgenerator.cpp.

References info, and Q_UNUSED.

◆ generateImageNode()

void QQuickQmlGenerator::generateImageNode ( const ImageNodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 156 of file qquickqmlgenerator.cpp.

References arg, QString::endsWith(), generateNodeBase(), info, QString::isEmpty(), QQuickGenerator::isNodeVisible(), qCDebug, qCWarning, and QStringLiteral.

+ Here is the call graph for this function:

◆ generateNode()

void QQuickQmlGenerator::generateNode ( const NodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 344 of file qquickqmlgenerator.cpp.

References generateNodeBase(), info, and QQuickGenerator::isNodeVisible().

+ Here is the call graph for this function:

◆ generateNodeBase()

void QQuickQmlGenerator::generateNodeBase ( const NodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 115 of file qquickqmlgenerator.cpp.

References i, info, QTransform::TxScale, and QTransform::TxTranslate.

Referenced by generateImageNode(), generateNode(), generatePath(), generateRootNode(), generateStructureNode(), generateTextNode(), and generateUseNode().

+ Here is the caller graph for this function:

◆ generatePath()

void QQuickQmlGenerator::generatePath ( const PathNodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 210 of file qquickqmlgenerator.cpp.

References QQuickVectorImageGenerator::CurveRenderer, generateNodeBase(), info, QQuickGenerator::isNodeVisible(), QQuickGenerator::m_flags, QQuickGenerator::optimizePaths(), and qWarning.

+ Here is the call graph for this function:

◆ generateRootNode()

bool QQuickQmlGenerator::generateRootNode ( const StructureNodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 491 of file qquickqmlgenerator.cpp.

References Qt::endl(), generateNodeBase(), info, QQuickGenerator::isNodeVisible(), qFuzzyIsNull(), QString::split(), Start, and translate().

+ Here is the call graph for this function:

◆ generateStructureNode()

bool QQuickQmlGenerator::generateStructureNode ( const StructureNodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 449 of file qquickqmlgenerator.cpp.

References QQuickVectorImageGenerator::CurveRenderer, generateNodeBase(), info, QQuickGenerator::isNodeVisible(), QQuickGenerator::m_flags, qFuzzyIsNull(), Start, and translate().

+ Here is the call graph for this function:

◆ generateTextNode()

void QQuickQmlGenerator::generateTextNode ( const TextNodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 356 of file qquickqmlgenerator.cpp.

References Qt::AlignHCenter, Qt::AlignLeft, Qt::AlignRight, generateNodeBase(), QColor::HexArgb, info, QQuickGenerator::isNodeVisible(), QFont::Normal, Q_FALLTHROUGH, qCDebug, QStringLiteral, and QColorConstants::Transparent.

+ Here is the call graph for this function:

◆ generateUseNode()

void QQuickQmlGenerator::generateUseNode ( const UseNodeInfo & info)
overrideprotectedvirtual

Implements QQuickGenerator.

Definition at line 432 of file qquickqmlgenerator.cpp.

References generateNodeBase(), info, QQuickGenerator::isNodeVisible(), and Start.

+ Here is the call graph for this function:

◆ outputShapePath()

◆ retainFilePaths()

bool QQuickQmlGenerator::retainFilePaths ( ) const
inline

Definition at line 43 of file qquickqmlgenerator_p.h.

◆ setAssetFileDirectory()

void QQuickQmlGenerator::setAssetFileDirectory ( const QString & assetFileDirectory)
inline

Definition at line 48 of file qquickqmlgenerator_p.h.

◆ setAssetFilePrefix()

void QQuickQmlGenerator::setAssetFilePrefix ( const QString & assetFilePrefix)
inline

Definition at line 58 of file qquickqmlgenerator_p.h.

◆ setCommentString()

void QQuickQmlGenerator::setCommentString ( const QString commentString)

Definition at line 105 of file qquickqmlgenerator.cpp.

References commentString().

+ Here is the call graph for this function:

◆ setRetainFilePaths()

void QQuickQmlGenerator::setRetainFilePaths ( bool retainFilePaths)
inline

Definition at line 38 of file qquickqmlgenerator_p.h.

◆ setShapeTypeName()

void QQuickQmlGenerator::setShapeTypeName ( const QString & name)

Definition at line 95 of file qquickqmlgenerator.cpp.

◆ shapeTypeName()

QString QQuickQmlGenerator::shapeTypeName ( ) const

Definition at line 100 of file qquickqmlgenerator.cpp.

References QString::fromLatin1().

+ Here is the call graph for this function:

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