Editor/EditingContext get proxyimplementations of HistoryOwner::add_commands()

This commit is contained in:
Paul Davis
2025-07-09 17:01:22 -06:00
parent 4bbd1afc98
commit 74a0272c50
4 changed files with 12 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ class CueEditor : public EditingContext, public PBD::HistoryOwner
PBD::ScopedConnection history_connection;
void add_command (PBD::Command * cmd) { HistoryOwner::add_command (cmd); }
void add_commands (std::vector<PBD::Command *> cmds) { HistoryOwner::add_commands (cmds); }
void begin_reversible_command (std::string cmd_name) { HistoryOwner::begin_reversible_command (cmd_name); }
void begin_reversible_command (GQuark gq) { HistoryOwner::begin_reversible_command (gq); }
void abort_reversible_command () { HistoryOwner::abort_reversible_command (); }

View File

@@ -174,6 +174,7 @@ class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider,
virtual PBD::HistoryOwner& history() = 0;
virtual void add_command (PBD::Command *) = 0;
virtual void add_commands (std::vector<PBD::Command *>) = 0;
virtual void begin_reversible_command (std::string cmd_name) = 0;
virtual void begin_reversible_command (GQuark) = 0;
virtual void abort_reversible_command () = 0;

View File

@@ -416,7 +416,8 @@ public:
void abort_reversible_selection_op ();
void undo_selection_op ();
void redo_selection_op ();
void add_command (PBD::Command * cmd);
void add_command (PBD::Command* cmd);
void add_commands (std::vector<PBD::Command*> cmds);
PBD::HistoryOwner& history();

View File

@@ -164,6 +164,14 @@ Editor::add_command (PBD::Command * cmd)
}
}
void
Editor::add_commands (std::vector<PBD::Command *> cmds)
{
if (_session) {
_session->add_commands (cmds);
}
}
void
Editor::begin_reversible_command (string name)
{