diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-10 11:39:39 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-10 11:39:39 -0600 |
commit | aad60e37b980e5c39d308f4dfb7c3092df95d30b (patch) | |
tree | e0df95c563707e0eaf81da7424f89944c70b8b6c /libs/ardour/transport_master.cc | |
parent | 843907654c8bb694d58e6efb1d313c735eb4ec4d (diff) |
small adjustments to TransportMaster API to better accomodate the "ignore/accept commands" concept
Diffstat (limited to 'libs/ardour/transport_master.cc')
-rw-r--r-- | libs/ardour/transport_master.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libs/ardour/transport_master.cc b/libs/ardour/transport_master.cc index 4d3aa82053..e68f52e373 100644 --- a/libs/ardour/transport_master.cc +++ b/libs/ardour/transport_master.cc @@ -482,6 +482,27 @@ TransportMaster::allow_request (TransportRequestSource src, TransportRequestType return _request_mask & type; } +std::string +TransportMaster::allowed_request_string () const +{ + std::string s; + if (_request_mask == TransportRequestType (TR_StartStop|TR_Speed|TR_Locate)) { + s = _("All"); + } else if (_request_mask == TransportRequestType (0)) { + s = _("None"); + } else if (_request_mask == TR_StartStop) { + s = _("Start/Stop"); + } else if (_request_mask == TR_Speed) { + s = _("Speed"); + } else if (_request_mask == TR_Locate) { + s = _("Locate"); + } else { + s = _("Complex"); + } + + return s; +} + void TransportMaster::set_request_mask (TransportRequestType t) { |