summaryrefslogtreecommitdiff
path: root/libs/surfaces/control_protocol/basic_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaces/control_protocol/basic_ui.cc')
-rw-r--r--libs/surfaces/control_protocol/basic_ui.cc48
1 files changed, 24 insertions, 24 deletions
diff --git a/libs/surfaces/control_protocol/basic_ui.cc b/libs/surfaces/control_protocol/basic_ui.cc
index de50235ee9..0d13c8f264 100644
--- a/libs/surfaces/control_protocol/basic_ui.cc
+++ b/libs/surfaces/control_protocol/basic_ui.cc
@@ -44,7 +44,7 @@ BasicUI::BasicUI ()
BasicUI::~BasicUI ()
{
-
+
}
void
@@ -148,7 +148,7 @@ BasicUI::transport_play (bool from_last_start)
if (session->get_play_range ()) {
session->request_play_range (0);
}
-
+
if (from_last_start && rolling) {
session->request_locate (session->last_transport_start(), true);
@@ -186,7 +186,7 @@ void
BasicUI::prev_marker ()
{
framepos_t pos = session->locations()->first_mark_before (session->transport_frame());
-
+
if (pos >= 0) {
session->request_locate (pos, session->transport_rolling());
} else {
@@ -330,26 +330,26 @@ BasicUI::solo_press (boost::shared_ptr<Route> r, bool momentary, bool global, bo
if (momentary) {
_solo_release = new SoloMuteRelease (_route->soloed());
}
-
+
if (global) {
-
+
if (_solo_release) {
_solo_release->routes = _session->get_routes ();
}
-
+
if (Config->get_solo_control_is_listen_control()) {
_session->set_listen (_session->get_routes(), !_route->listening(), Session::rt_cleanup, true);
} else {
_session->set_solo (_session->get_routes(), !_route->soloed(), Session::rt_cleanup, true);
}
-
+
} else if (exclusive) {
-
+
if (_solo_release) {
_solo_release->exclusive = true;
-
+
boost::shared_ptr<RouteList> routes = _session->get_routes();
-
+
for (RouteList::iterator i = routes->begin(); i != routes->end(); ++i) {
if ((*i)->soloed ()) {
_solo_release->routes_on->push_back (*i);
@@ -358,51 +358,51 @@ BasicUI::solo_press (boost::shared_ptr<Route> r, bool momentary, bool global, bo
}
}
}
-
+
if (Config->get_solo_control_is_listen_control()) {
/* ??? we need a just_one_listen() method */
} else {
_session->set_just_one_solo (_route, true);
}
-
+
} else if (isolate) {
-
+
// shift-click: toggle solo isolated status
-
+
_route->set_solo_isolated (!_route->solo_isolated(), this);
delete _solo_release;
_solo_release = 0;
-
+
} else if (solo_group) {
-
+
/* Primary-button1: solo mix group.
NOTE: Primary-button2 is MIDI learn.
*/
-
+
if (_route->route_group()) {
-
+
if (_solo_release) {
_solo_release->routes = _route->route_group()->route_list();
}
-
+
if (Config->get_solo_control_is_listen_control()) {
_session->set_listen (_route->route_group()->route_list(), !_route->listening(), Session::rt_cleanup, true);
} else {
_session->set_solo (_route->route_group()->route_list(), !_route->soloed(), Session::rt_cleanup, true);
}
}
-
+
} else {
-
+
/* click: solo this route */
-
+
boost::shared_ptr<RouteList> rl (new RouteList);
rl->push_back (route());
-
+
if (_solo_release) {
_solo_release->routes = rl;
}
-
+
if (Config->get_solo_control_is_listen_control()) {
_session->set_listen (rl, !_route->listening());
} else {