mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 09:27:39 +01:00
Add BasicUI::cancel_all_mute()
Towards removing the direct use of Session by surfaces.
This commit is contained in:
parent
799008e4d7
commit
b35f9ca1a0
4 changed files with 18 additions and 3 deletions
|
|
@ -762,6 +762,16 @@ BasicUI::sample_to_timecode (samplepos_t sample, Timecode::Time& timecode, bool
|
|||
_session->sample_to_timecode (sample, *((Timecode::Time*)&timecode), use_offset, use_subframes);
|
||||
}
|
||||
|
||||
std::vector<boost::weak_ptr<AutomationControl>>
|
||||
BasicUI::cancel_all_mute ()
|
||||
{
|
||||
if (_session) {
|
||||
return _session->cancel_all_mute ();
|
||||
}
|
||||
|
||||
return std::vector<boost::weak_ptr<AutomationControl>>{};
|
||||
}
|
||||
|
||||
void
|
||||
BasicUI::cancel_all_solo ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,8 +30,11 @@
|
|||
#include "pbd/signals.h"
|
||||
#include "temporal/time.h"
|
||||
|
||||
#include <boost/smart_ptr.hpp>
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace ARDOUR {
|
||||
|
||||
|
|
@ -97,6 +100,8 @@ class LIBCONTROLCP_API BasicUI {
|
|||
void toggle_monitor_dim();
|
||||
void toggle_monitor_mono();
|
||||
|
||||
std::vector<boost::weak_ptr<AutomationControl>> cancel_all_mute ();
|
||||
|
||||
void cancel_all_solo ();
|
||||
|
||||
void quick_snapshot_stay ();
|
||||
|
|
|
|||
|
|
@ -360,7 +360,7 @@ FaderPort8::button_mute_clear ()
|
|||
{
|
||||
#ifdef FP8_MUTESOLO_UNDO
|
||||
if (_session->muted ()) {
|
||||
_mute_state = _session->cancel_all_mute ();
|
||||
_mute_state = cancel_all_mute ();
|
||||
} else {
|
||||
/* restore mute */
|
||||
boost::shared_ptr<ControlList> cl (new ControlList);
|
||||
|
|
@ -377,7 +377,7 @@ FaderPort8::button_mute_clear ()
|
|||
}
|
||||
}
|
||||
#else
|
||||
_session->cancel_all_mute ();
|
||||
cancel_all_mute ();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1012,7 +1012,7 @@ LaunchControlXL::button_mute()
|
|||
void
|
||||
LaunchControlXL::button_mute_long_press()
|
||||
{
|
||||
_session->cancel_all_mute();
|
||||
cancel_all_mute();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue