Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::commands::MovePluginsCommand Class Reference

Command to move one or more plugins between PluginGroups. More...

#include <src/commands/move_plugins_command.h>

Inheritance diagram for zrythm::commands::MovePluginsCommand:
Collaboration diagram for zrythm::commands::MovePluginsCommand:

Data Structures

struct  PluginMoveInfo
 Per-plugin info for the move. More...

Public Types

using PluginLocation

Public Member Functions

 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.
void undo () override
void redo () override
int id () const override

Static Public Attributes

static constexpr int CommandId = 1763227783

Detailed Description

Command to move one or more plugins between PluginGroups.

Supports moving multiple plugins at once (e.g., when multiple plugins are selected and dragged together).

Definition at line 22 of file move_plugins_command.h.

Member Typedef Documentation

◆ PluginLocation

using zrythm::commands::MovePluginsCommand::PluginLocation
Initial value:
std::pair<plugins::PluginGroup *, structure::tracks::AutomationTracklist *>

Definition at line 27 of file move_plugins_command.h.

Constructor & Destructor Documentation

◆ MovePluginsCommand()

zrythm::commands::MovePluginsCommand::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.

Parameters
plugin_infosPlugins to move with their source locations.
target_locationTarget PluginGroup and automation tracklist.
target_start_indexPosition to insert at in the target group. std::nullopt means append to the end.

Member Function Documentation

◆ id()

int zrythm::commands::MovePluginsCommand::id ( ) const
inlineoverride

Definition at line 57 of file move_plugins_command.h.

Field Documentation

◆ CommandId

int zrythm::commands::MovePluginsCommand::CommandId = 1763227783
staticconstexpr

Definition at line 25 of file move_plugins_command.h.


The documentation for this class was generated from the following file: