mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
rough-in global Cue functions (rec-enable and play-enable i.e. cue-ffwd)
This commit is contained in:
parent
bb67041938
commit
54d794e242
4 changed files with 49 additions and 0 deletions
|
|
@ -171,6 +171,27 @@ bool drag_failed (const Glib::RefPtr<Gdk::DragContext>& context, DragResult resu
|
|||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::cue_rec_state_clicked ()
|
||||
{
|
||||
TriggerBox::set_cue_recording(!TriggerBox::cue_recording());
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::cue_ffwd_state_clicked ()
|
||||
{
|
||||
if (editor) {
|
||||
editor->toggle_cue_behavior ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::cue_rec_state_changed ()
|
||||
{
|
||||
_cue_rec_enable.set_active_state( TriggerBox::cue_recording() ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
|
||||
//Config->get_cue_behavior()
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::repack_transport_hbox ()
|
||||
{
|
||||
|
|
@ -346,6 +367,12 @@ ARDOUR_UI::setup_transport ()
|
|||
recorder_visibility_button.signal_drag_failed().connect (sigc::bind (sigc::ptr_fun (drag_failed), recorder));
|
||||
trigger_page_visibility_button.signal_drag_failed().connect (sigc::bind (sigc::ptr_fun (drag_failed), trigger_page));
|
||||
|
||||
_cue_rec_enable.set_name ("record enable button");
|
||||
_cue_rec_enable.signal_clicked.connect(sigc::mem_fun(*this, &ARDOUR_UI::cue_rec_state_clicked));
|
||||
|
||||
_cue_play_enable.set_name ("record enable button");
|
||||
_cue_play_enable.signal_clicked.connect(sigc::mem_fun(*this, &ARDOUR_UI::cue_ffwd_state_clicked));
|
||||
|
||||
/* catch context clicks so that we can show a menu on these buttons */
|
||||
|
||||
editor_visibility_button.signal_button_press_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::tabbable_visibility_button_press), X_("editor")), false);
|
||||
|
|
@ -622,6 +649,10 @@ ARDOUR_UI::setup_transport ()
|
|||
transport_table.attach (*monitor_box, TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
|
||||
++col;
|
||||
|
||||
transport_table.attach (_cue_rec_enable, TCOL, 0, 1 , FILL, FILL, 3, 0);
|
||||
transport_table.attach (_cue_play_enable, TCOL, 1, 2 , FILL, FILL, 3, 0);
|
||||
++col;
|
||||
|
||||
/* editor-meter, mini-timeline and selection clock are options in the transport_hbox */
|
||||
transport_hbox.set_spacing (3);
|
||||
transport_table.attach (transport_hbox, TCOL, 0, 2, EXPAND|FILL, EXPAND|FILL, hpadding, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue