Name New VCAs from Selection
This commit is contained in:
parent
c7237a606a
commit
d7aa102ce5
@ -489,19 +489,21 @@ GroupTabs::unassign_group_to_master (uint32_t which, RouteGroup* group) const
|
||||
}
|
||||
|
||||
void
|
||||
GroupTabs::assign_some_to_master (uint32_t which, RouteList rl)
|
||||
GroupTabs::assign_some_to_master (uint32_t which, RouteList rl, std::string vcaname)
|
||||
{
|
||||
if (!_session) {
|
||||
return;
|
||||
}
|
||||
|
||||
boost::shared_ptr<VCA> master;
|
||||
bool set_name = false;
|
||||
|
||||
if (which == 0) {
|
||||
if (_session->vca_manager().create_vca (1)) {
|
||||
/* error */
|
||||
return;
|
||||
}
|
||||
set_name = true;
|
||||
|
||||
/* Get most recently created VCA... */
|
||||
which = _session->vca_manager().vcas().back()->number();
|
||||
@ -525,6 +527,9 @@ GroupTabs::assign_some_to_master (uint32_t which, RouteList rl)
|
||||
for (RouteList::iterator r = rl.begin(); r != rl.end(); ++r) {
|
||||
(*r)->assign (master);
|
||||
}
|
||||
if (set_name && !vcaname.empty()) {
|
||||
master->set_name (vcaname);
|
||||
}
|
||||
}
|
||||
|
||||
RouteList
|
||||
@ -568,7 +573,7 @@ GroupTabs::get_soloed ()
|
||||
void
|
||||
GroupTabs::assign_selection_to_master (uint32_t which)
|
||||
{
|
||||
assign_some_to_master (which, selected_routes ());
|
||||
assign_some_to_master (which, selected_routes (), _("Selection"));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -132,7 +132,7 @@ private:
|
||||
void assign_selection_to_master (uint32_t which);
|
||||
void assign_recenabled_to_master (uint32_t which);
|
||||
void assign_soloed_to_master (uint32_t which);
|
||||
void assign_some_to_master (uint32_t which, ARDOUR::RouteList);
|
||||
void assign_some_to_master (uint32_t which, ARDOUR::RouteList, std::string vcaname = "");
|
||||
|
||||
ARDOUR::RouteList get_soloed ();
|
||||
ARDOUR::RouteList get_rec_enabled ();
|
||||
|
Loading…
Reference in New Issue
Block a user