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-07-27 18:14:33 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-09-03 13:48:13 +02:00
|
|
|
#include "nodeinstanceserverdispatcher.h"
|
2020-07-27 18:14:33 +02:00
|
|
|
|
|
|
|
|
namespace QmlDesigner {
|
|
|
|
|
|
2020-09-03 13:48:13 +02:00
|
|
|
class CaptureNodeInstanceServerDispatcher : public NodeInstanceServerDispatcher
|
2020-07-27 18:14:33 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2020-09-03 13:48:13 +02:00
|
|
|
CaptureNodeInstanceServerDispatcher(const QStringList &serverNames,
|
|
|
|
|
NodeInstanceClientInterface *nodeInstanceClient)
|
|
|
|
|
: NodeInstanceServerDispatcher{serverNames, nodeInstanceClient}
|
|
|
|
|
, m_nodeInstanceClient{nodeInstanceClient}
|
2020-07-27 18:14:33 +02:00
|
|
|
{}
|
|
|
|
|
|
2020-09-03 13:48:13 +02:00
|
|
|
void createScene(const CreateSceneCommand &command);
|
2020-07-27 18:14:33 +02:00
|
|
|
|
|
|
|
|
private:
|
2020-09-03 13:48:13 +02:00
|
|
|
void collectItemChangesAndSendChangeCommands();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
NodeInstanceClientInterface *m_nodeInstanceClient;
|
2020-07-27 18:14:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace QmlDesigner
|