mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
meterbridge update solo-button label (AFL,PFL, locked)
This commit is contained in:
parent
146fca3674
commit
c27f4ed7eb
1 changed files with 24 additions and 1 deletions
|
|
@ -270,9 +270,32 @@ void
|
||||||
MeterStrip::set_button_names()
|
MeterStrip::set_button_names()
|
||||||
{
|
{
|
||||||
mute_button->set_text (_("M"));
|
mute_button->set_text (_("M"));
|
||||||
solo_button->set_text (_("S"));
|
|
||||||
rec_enable_button->set_text ("");
|
rec_enable_button->set_text ("");
|
||||||
rec_enable_button->set_image (::get_icon (X_("record_normal_red")));
|
rec_enable_button->set_image (::get_icon (X_("record_normal_red")));
|
||||||
|
|
||||||
|
if (_route && _route->solo_safe()) {
|
||||||
|
solo_button->remove ();
|
||||||
|
if (solo_safe_pixbuf == 0) {
|
||||||
|
solo_safe_pixbuf =::get_icon("solo-safe-icon");
|
||||||
|
}
|
||||||
|
solo_button->set_image (solo_safe_pixbuf);
|
||||||
|
solo_button->set_text (string());
|
||||||
|
} else {
|
||||||
|
solo_button->set_image (Glib::RefPtr<Gdk::Pixbuf>());
|
||||||
|
if (!Config->get_solo_control_is_listen_control()) {
|
||||||
|
solo_button->set_text (_("S"));
|
||||||
|
} else {
|
||||||
|
switch (Config->get_listen_position()) {
|
||||||
|
case AfterFaderListen:
|
||||||
|
solo_button->set_text (_("A"));
|
||||||
|
break;
|
||||||
|
case PreFaderListen:
|
||||||
|
solo_button->set_text (_("P"));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue