mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
global rec button should indicate recording status
This commit is contained in:
parent
48170820e8
commit
17b28d6e92
3 changed files with 37 additions and 2 deletions
|
|
@ -648,7 +648,9 @@ Editor::Editor ()
|
|||
setup_toolbar ();
|
||||
|
||||
ARDOUR_UI::Blink.connect (sigc::mem_fun(*this, &Editor::solo_blink));
|
||||
ARDOUR_UI::Blink.connect (sigc::mem_fun(*this, &Editor::record_status_blink));
|
||||
global_solo_button.signal_clicked.connect (sigc::mem_fun(*this,&Editor::global_solo_clicked));
|
||||
global_rec_button.signal_clicked.connect (sigc::mem_fun(*this,&Editor::global_rec_clicked));
|
||||
|
||||
set_zoom_focus (zoom_focus);
|
||||
set_visible_track_count (_visible_track_count);
|
||||
|
|
@ -5691,3 +5693,34 @@ Editor::global_solo_clicked (WavesButton*)
|
|||
_session->set_listen (_session->get_routes(), false);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::record_status_blink (bool onoff)
|
||||
{
|
||||
if (!_session) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_session->have_rec_enabled_track()) {
|
||||
switch (_session->record_status()) {
|
||||
case Session::Disabled:
|
||||
case Session::Enabled:
|
||||
global_rec_button.set_active (onoff);
|
||||
break;
|
||||
|
||||
case Session::Recording:
|
||||
global_rec_button.set_active (true);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
global_rec_button.set_active (false);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::global_rec_clicked (WavesButton*)
|
||||
{
|
||||
DisplaySuspender ds;
|
||||
_session->set_record_enabled (_session->get_routes(), !_session->have_rec_enabled_track());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1625,8 +1625,10 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
WavesButton& add_marker_button;
|
||||
WavesButton& global_solo_button;
|
||||
void solo_blink (bool);
|
||||
WavesButton& global_rec_button;
|
||||
void global_solo_clicked (WavesButton*);
|
||||
WavesButton& global_rec_button;
|
||||
void global_rec_clicked (WavesButton*);
|
||||
void record_status_blink (bool);
|
||||
|
||||
Gtkmm2ext::TearOff* _mouse_mode_tearoff;
|
||||
WavesButton& _tool_marker_button;
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@
|
|||
height="24"
|
||||
width="42"
|
||||
normalicon="global_rec_button"
|
||||
activeicon="global_rec_button"/>
|
||||
activeicon="global_rec_button_active"/>
|
||||
<iconbutton id="global_solo_button"
|
||||
height="24"
|
||||
width="42"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue