2#include <Scenario/Commands/ScenarioCommandFactory.hpp>
4#include <score/command/Command.hpp>
5#include <score/model/path/ObjectPath.hpp>
7#include <score/serialization/JSONVisitor.hpp>
9#include <score_plugin_scenario_export.h>
17struct DocumentContext;
25 std::vector<std::pair<ObjectPath, ObjectPath>> moved;
30SCORE_PLUGIN_SCENARIO_EXPORT
33SCORE_PLUGIN_SCENARIO_EXPORT
34bool hasAnchors(
const rapidjson::Value& copy);
38SCORE_PLUGIN_SCENARIO_EXPORT
42SCORE_PLUGIN_SCENARIO_EXPORT
50 SCORE_COMMAND_DECL(CommandFactoryName(),
FollowPasted,
"Follow pasted objects")
62 std::vector<ObjectPath> m_pasted;
Goes last in a paste macro, once all the pasted objects exist.
Definition PasteAnchors.hpp:49
The Command class.
Definition Command.hpp:34
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
void followPasted(const score::DocumentContext &ctx, const std::vector< QObject * > &pasted)
The copies are published under their own names.
Definition PasteAnchors.cpp:150
bool copiedFromHere(const rapidjson::Value ©, const score::DocumentContext &ctx)
Compares the copy's "OriginDocument" key with score::IDocument::copyOrigin()
Definition PasteAnchors.cpp:26
void remapCopiedAnchors(QObject &root, const CopiedPaths &paths)
Definition PasteAnchors.cpp:84
Base toolkit upon which the software is built.
Definition Application.cpp:108
Definition DataStreamHelpers.hpp:103
Paths of the copied objects and of their copies.
Definition PasteAnchors.hpp:24
Definition DocumentContext.hpp:18