Editor/EditingContext get proxyimplementations of HistoryOwner::add_commands()
This commit is contained in:
@@ -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 (); }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user