2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2020 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2020-01-02 11:58:33 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <qmetatype.h>
|
|
|
|
|
#include <QDataStream>
|
2020-01-07 12:54:19 +01:00
|
|
|
#include <QVariant>
|
2020-01-02 11:58:33 +02:00
|
|
|
|
|
|
|
|
namespace QmlDesigner {
|
|
|
|
|
|
|
|
|
|
class PuppetToCreatorCommand
|
|
|
|
|
{
|
|
|
|
|
public:
|
2021-01-22 17:51:46 +02:00
|
|
|
enum Type {
|
|
|
|
|
Edit3DToolState,
|
|
|
|
|
Render3DView,
|
|
|
|
|
ActiveSceneChanged,
|
|
|
|
|
RenderModelNodePreviewImage,
|
|
|
|
|
Import3DSupport,
|
2022-09-06 15:10:53 +03:00
|
|
|
NodeAtPos,
|
2021-01-22 17:51:46 +02:00
|
|
|
None };
|
2020-01-02 11:58:33 +02:00
|
|
|
|
|
|
|
|
PuppetToCreatorCommand(Type type, const QVariant &data);
|
|
|
|
|
PuppetToCreatorCommand() = default;
|
|
|
|
|
|
|
|
|
|
Type type() const { return m_type; }
|
|
|
|
|
QVariant data() const { return m_data; }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Type m_type = None;
|
|
|
|
|
QVariant m_data;
|
|
|
|
|
|
|
|
|
|
friend QDataStream &operator>>(QDataStream &in, PuppetToCreatorCommand &command);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
QDataStream &operator<<(QDataStream &out, const PuppetToCreatorCommand &command);
|
|
|
|
|
QDataStream &operator>>(QDataStream &in, PuppetToCreatorCommand &command);
|
|
|
|
|
|
|
|
|
|
} // namespace QmlDesigner
|
|
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(QmlDesigner::PuppetToCreatorCommand)
|