13
0

add VCA::full_name() which returns "VCA %n" : VCA %n" by default and "VCA %n : user-provided-name" if the name has been set

This commit is contained in:
Paul Davis 2017-01-28 16:06:28 +01:00
parent 415c841645
commit e12e8716ba
2 changed files with 9 additions and 1 deletions

View File

@ -56,6 +56,7 @@ class LIBARDOUR_API VCA : public Stripable,
~VCA();
int32_t number () const { return _number; }
std::string full_name() const;
int init ();
XMLNode& get_state();

View File

@ -67,7 +67,7 @@ VCA::get_next_vca_number ()
return next_number;
}
VCA::VCA (Session& s, int32_t num, const string& name)
VCA::VCA (Session& s, int32_t num, const string& name)
: Stripable (s, name, PresentationInfo (num, PresentationInfo::VCA))
, Muteable (s, name)
, Automatable (s)
@ -103,6 +103,13 @@ VCA::~VCA ()
}
}
string
VCA::full_name() const
{
/* name() is never empty - default is VCA %n */
return string_compose (_("VCA %1 : %2"), _number, name());
}
XMLNode&
VCA::get_state ()
{