16class MovePluginCommand :
public QUndoCommand
19 using PluginLocation =
20 std::pair<plugins::PluginGroup *, structure::tracks::AutomationTracklist *>;
23 plugins::PluginUuidReference plugin_ref,
24 PluginLocation source_locaction,
25 PluginLocation target_locaction,
26 std::optional<int> index = std::nullopt);
28 void undo ()
override;
29 void redo ()
override;
32 void move_plugin_automation (
37 plugins::PluginUuidReference plugin_ref_;
38 PluginLocation target_location_;
39 PluginLocation source_location_;
40 int index_in_previous_list_{};
41 std::optional<int> index_;