mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Mackie Control: Added hidden tracks view mode.
This commit is contained in:
parent
3f76b4ec17
commit
92dba5bfa3
4 changed files with 31 additions and 13 deletions
|
|
@ -304,15 +304,18 @@ MackieControlProtocol::get_sorted_routes()
|
|||
}
|
||||
break;
|
||||
case AudioTracks:
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
if (is_audio_track(route) && !is_hidden(route)) {
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
sorted.push_back (route);
|
||||
remote_ids.insert (route->remote_control_id());
|
||||
}
|
||||
break;
|
||||
case Busses:
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
if (Profile->get_mixbus()) {
|
||||
#ifdef MIXBUS
|
||||
if (route->mixbus()) {
|
||||
|
|
@ -322,19 +325,16 @@ MackieControlProtocol::get_sorted_routes()
|
|||
#endif
|
||||
} else {
|
||||
if (!is_track(route) && !is_hidden(route)) {
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
sorted.push_back (route);
|
||||
remote_ids.insert (route->remote_control_id());
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MidiTracks:
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
if (is_midi_track(route) && !is_hidden(route)) {
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
sorted.push_back (route);
|
||||
remote_ids.insert (route->remote_control_id());
|
||||
}
|
||||
|
|
@ -342,10 +342,20 @@ MackieControlProtocol::get_sorted_routes()
|
|||
case Plugins:
|
||||
break;
|
||||
case Auxes: // in ardour, for now aux and buss are same. for mixbus, see "Busses" case above
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
if (!is_track(route) && !is_hidden(route)) {
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
sorted.push_back (route);
|
||||
remote_ids.insert (route->remote_control_id());
|
||||
}
|
||||
break;
|
||||
case Hidden: // Show all the tracks we have hidden
|
||||
if (route->route_group()) {
|
||||
route->route_group()->set_active (true, this);
|
||||
}
|
||||
if (is_hidden(route)) {
|
||||
// maybe separate groups
|
||||
sorted.push_back (route);
|
||||
remote_ids.insert (route->remote_control_id());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ class MackieControlProtocol
|
|||
Busses,
|
||||
Auxes,
|
||||
Selected,
|
||||
Hidden,
|
||||
Plugins,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -960,6 +960,7 @@ MackieControlProtocol::outputs_press (Mackie::Button&)
|
|||
Mackie::LedState
|
||||
MackieControlProtocol::outputs_release (Mackie::Button&)
|
||||
{
|
||||
set_view_mode (Hidden);
|
||||
return none;
|
||||
}
|
||||
Mackie::LedState
|
||||
|
|
|
|||
|
|
@ -1094,10 +1094,15 @@ Surface::update_view_mode_display ()
|
|||
id = Button::Aux;
|
||||
text = _("Auxes");
|
||||
break;
|
||||
case MackieControlProtocol::Hidden:
|
||||
show_two_char_display ("HI");
|
||||
id = Button::Outputs;
|
||||
text = _("Hidden Tracks");
|
||||
break;
|
||||
case MackieControlProtocol::Selected:
|
||||
show_two_char_display ("SE");
|
||||
id = Button::User;
|
||||
text = _("Selected Routes");
|
||||
text = _("Selected Tracks");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
@ -1110,6 +1115,7 @@ Surface::update_view_mode_display ()
|
|||
view_mode_buttons.push_back (Button::AudioTracks);
|
||||
view_mode_buttons.push_back (Button::MidiTracks);
|
||||
view_mode_buttons.push_back (Button::Aux);
|
||||
view_mode_buttons.push_back (Button::Outputs);
|
||||
view_mode_buttons.push_back (Button::User);
|
||||
|
||||
if (id >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue