25 static constexpr int CommandId = 1763227783;
27 using PluginLocation =
28 std::pair<plugins::PluginGroup *, structure::tracks::AutomationTracklist *>;
50 std::vector<PluginMoveInfo> plugin_infos,
51 PluginLocation target_location,
52 std::optional<int> target_start_index = std::nullopt);
54 void undo ()
override;
55 void redo ()
override;
57 int id ()
const override {
return CommandId; }
60 void move_plugin_automation (
61 const plugins::PluginUuidReference &plugin_ref,
66 std::vector<PluginMoveInfo> plugin_infos_;
67 PluginLocation target_location_;
68 std::optional<int> target_start_index_;
MovePluginsCommand(std::vector< PluginMoveInfo > plugin_infos, PluginLocation target_location, std::optional< int > target_start_index=std::nullopt)
Constructs a command to move plugins to a target location.