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:
parent
415c841645
commit
e12e8716ba
|
@ -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();
|
||||
|
|
|
@ -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 ()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user