mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
Adding actions on MULTI OUT and STERE OUT mode
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 462428]
This commit is contained in:
parent
1b66fc5960
commit
c5c90aaf05
4 changed files with 27 additions and 4 deletions
|
|
@ -82,6 +82,7 @@
|
|||
#include "ardour/session_utils.h"
|
||||
#include "ardour/slave.h"
|
||||
#include "ardour/system_exec.h"
|
||||
#include "dbg_msg.h"
|
||||
|
||||
#ifdef WINDOWS_VST_SUPPORT
|
||||
#include <fst.h>
|
||||
|
|
@ -2027,6 +2028,20 @@ ARDOUR_UI::toggle_session_auto_loop ()
|
|||
looploc->set_hidden (false, this);
|
||||
}
|
||||
|
||||
void ARDOUR_UI::toggle_multi_out_mode ()
|
||||
{
|
||||
dbg_msg("ARDOUR_UI::toggle_multi_out_mode ()");
|
||||
editor->get_waves_button ("mode_multi_out_button").set_active(true);
|
||||
editor->get_waves_button ("mode_stereo_out_button").set_active(false);
|
||||
}
|
||||
|
||||
void ARDOUR_UI::toggle_stereo_out_mode ()
|
||||
{
|
||||
dbg_msg("ARDOUR_UI::toggle_stereo_out_mode ()");
|
||||
editor->get_waves_button ("mode_stereo_out_button").set_active(true);
|
||||
editor->get_waves_button ("mode_multi_out_button").set_active(false);
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::transport_play_selection ()
|
||||
{
|
||||
|
|
@ -4431,7 +4446,6 @@ ARDOUR_UI::reset_route_peak_display (Route* route)
|
|||
}
|
||||
}
|
||||
|
||||
#define dbg_msg(a) MessageDialog(a, PROGRAM_NAME).run();
|
||||
int
|
||||
ARDOUR_UI::do_engine_setup (framecnt_t desired_sample_rate)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -315,6 +315,9 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
|||
void toggle_click ();
|
||||
void toggle_audio_midi_setup ();
|
||||
void toggle_session_auto_loop ();
|
||||
void toggle_multi_out_mode ();
|
||||
void toggle_stereo_out_mode ();
|
||||
|
||||
void toggle_rc_options_window ();
|
||||
void toggle_session_options_window ();
|
||||
|
||||
|
|
@ -322,14 +325,14 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
|||
Gtk::Tooltips _tooltips;
|
||||
NSM_Client *nsm;
|
||||
bool _was_dirty;
|
||||
bool _mixer_on_top;
|
||||
bool first_time_engine_run;
|
||||
bool _mixer_on_top;
|
||||
bool first_time_engine_run;
|
||||
|
||||
void goto_editor_window ();
|
||||
void goto_mixer_window ();
|
||||
void toggle_mixer_window ();
|
||||
void toggle_meterbridge ();
|
||||
void toggle_editor_mixer ();
|
||||
void toggle_editor_mixer ();
|
||||
|
||||
int setup_windows ();
|
||||
void setup_transport ();
|
||||
|
|
|
|||
|
|
@ -226,6 +226,10 @@ ARDOUR_UI::setup_transport_trx ()
|
|||
editor->get_waves_button ("transport_record_button").set_controllable (rec_controllable);
|
||||
act = ActionManager::get_action (X_("Main"), X_("LockSession"));
|
||||
editor->get_waves_button ("lock_session_button").set_related_action (act);
|
||||
act = ActionManager::get_action (X_("Main"), X_("ToggleMultiOutMode"));
|
||||
editor->get_waves_button ("mode_multi_out_button").set_related_action (act);
|
||||
act = ActionManager::get_action (X_("Main"), X_("ToggleStereoOutMode"));
|
||||
editor->get_waves_button ("mode_stereo_out_button").set_related_action (act);
|
||||
|
||||
transport_tearoff_hbox.set_border_width (3);
|
||||
transport_tearoff_hbox.set_spacing (3);
|
||||
|
|
|
|||
|
|
@ -143,6 +143,8 @@ ARDOUR_UI::install_actions ()
|
|||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
ActionManager::register_action (main_actions, X_("LockSession"), _("Lock this session"), sigc::mem_fun(*this, &ARDOUR_UI::lock_session));
|
||||
ActionManager::register_action (main_actions, X_("ToggleMultiOutMode"), "Multi Out", sigc::mem_fun(*this, &ARDOUR_UI::toggle_multi_out_mode));
|
||||
ActionManager::register_action (main_actions, X_("ToggleStereoOutMode"), "Stereo Out", sigc::mem_fun(*this, &ARDOUR_UI::toggle_stereo_out_mode));
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("Snapshot"), _("Snapshot..."), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::snapshot_session), false));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue