2023-08-16 11:35:10 +03:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
|
|
namespace QmlDesigner {
|
|
|
|
|
|
|
|
|
|
class CompositionNode : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
2023-08-17 15:59:46 +03:00
|
|
|
Q_PROPERTY(QString nodeName MEMBER m_name CONSTANT)
|
|
|
|
|
|
2023-08-16 11:35:10 +03:00
|
|
|
public:
|
|
|
|
|
CompositionNode(const QString &qenPath);
|
|
|
|
|
|
|
|
|
|
QString fragmentCode() const;
|
|
|
|
|
QString vertexCode() const;
|
|
|
|
|
QString description() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void parse(const QString &qenPath);
|
|
|
|
|
|
|
|
|
|
QString m_name;
|
|
|
|
|
QString m_fragmentCode;
|
|
|
|
|
QString m_vertexCode;
|
|
|
|
|
QString m_description;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace QmlDesigner
|