/*
- Copyright (C) 2005 Paul Davis
+ Copyright (C) 2005 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
ActionManager::toggle_config_state ("options", "UseMMC", &Configuration::set_mmc_control, &Configuration::get_mmc_control);
}
+void
+ARDOUR_UI::toggle_use_midi_clock ()
+{
+ ActionManager::toggle_config_state ("options", "UseMIDIClock", &Configuration::set_midi_clock_control, &Configuration::get_midi_clock_control);
+}
+
void
ARDOUR_UI::toggle_use_osc ()
{
break;
default:
fatal << string_compose (_("programming error: %1"), "illegal file header format in ::set_native_file_header_format") << endmsg;
- /*NOTREACHED*/
+ /*NOTREACHED*/
}
Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
ARDOUR_UI::set_input_auto_connect (AutoConnectOption option)
{
const char* action;
-
+
switch (option) {
case AutoConnectPhysical:
action = X_("InputAutoConnectPhysical");
ARDOUR_UI::set_output_auto_connect (AutoConnectOption option)
{
const char* action;
-
+
switch (option) {
case AutoConnectPhysical:
action = X_("OutputAutoConnectPhysical");
case SoloBus:
action = X_("SoloViaBus");
break;
-
+
case InverseMute:
action = X_("SoloInPlace");
break;
case HardwareMonitoring:
action = X_("UseHardwareMonitoring");
break;
-
+
case SoftwareMonitoring:
action = X_("UseSoftwareMonitoring");
break;
case DenormalFTZ:
action = X_("DenormalFTZ");
break;
-
+
case DenormalDAZ:
action = X_("DenormalDAZ");
break;
ARDOUR_UI::unset_dual_punch ()
{
Glib::RefPtr<Action> action = ActionManager::get_action ("Transport", "TogglePunch");
-
+
if (action) {
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(action);
if (tact) {
ActionManager::toggle_config_state ("options", "DefaultNarrowMS", &Configuration::set_default_narrow_ms, &Configuration::get_default_narrow_ms);
}
+void
+ARDOUR_UI::toggle_NameNewMarkers()
+{
+ ActionManager::toggle_config_state ("options", "NameNewMarkers", &Configuration::set_name_new_markers, &Configuration::get_name_new_markers);
+}
+
void
ARDOUR_UI::toggle_rubberbanding_snaps_to_grid ()
{
ActionManager::toggle_config_state ("options", "RubberbandingSnapsToGrid", &Configuration::set_rubberbanding_snaps_to_grid, &Configuration::get_rubberbanding_snaps_to_grid);
}
+void
+ARDOUR_UI::toggle_auto_analyse_audio ()
+{
+ ActionManager::toggle_config_state ("options", "AutoAnalyseAudio", &Configuration::set_auto_analyse_audio, &Configuration::get_auto_analyse_audio);
+}
+
void
ARDOUR_UI::mtc_port_changed ()
{
bool have_mtc;
+ bool have_midi_clock;
if (session) {
if (session->mtc_port()) {
} else {
have_mtc = false;
}
+ if (session->midi_clock_port()) {
+ have_midi_clock = true;
+ } else {
+ have_midi_clock = false;
+ }
} else {
have_mtc = false;
+ have_midi_clock = false;
}
positional_sync_strings.clear ();
if (have_mtc) {
positional_sync_strings.push_back (slave_source_to_string (MTC));
}
+ if (have_midi_clock) {
+ positional_sync_strings.push_back (slave_source_to_string (MIDIClock));
+ }
positional_sync_strings.push_back (slave_source_to_string (JACK));
-
+
set_popdown_strings (sync_option_combo, positional_sync_strings);
}
break;
default:
- fatal << string_compose (_("programming error: unknown file header format passed to ARDOUR_UI::map_file_data_format: %1"),
+ fatal << string_compose (_("programming error: unknown file header format passed to ARDOUR_UI::map_file_data_format: %1"),
Config->get_native_file_header_format()) << endmsg;
/*NOTREACHED*/
}
break;
default:
- fatal << string_compose (_("programming error: unknown file data format passed to ARDOUR_UI::map_file_data_format: %1"),
+ fatal << string_compose (_("programming error: unknown file data format passed to ARDOUR_UI::map_file_data_format: %1"),
Config->get_native_file_data_format()) << endmsg;
/*NOTREACHED*/
}
Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
if (act) {
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
-
+
if (tact && !tact->get_active()) {
tact->set_active (true);
}
}
}
-void
+void
ARDOUR_UI::set_meter_hold (MeterHold val)
{
const char* action = 0;
}
Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
-
+
if (act) {
Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
if (ract && ract->get_active() && Config->get_meter_hold() != fval) {
ENSURE_GUI_THREAD (bind (mem_fun (*this, &ARDOUR_UI::parameter_changed), parameter_name));
#define PARAM_IS(x) (!strcmp (parameter_name, (x)))
-
+
if (PARAM_IS ("slave-source")) {
sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
-
+
switch (Config->get_slave_source()) {
case None:
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
} else if (PARAM_IS ("send-mtc")) {
ActionManager::map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
- cerr << "Send MMC = " << Config->get_send_mmc() << endl;
} else if (PARAM_IS ("send-mmc")) {
-
ActionManager::map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
- cerr << "Send MMC = " << Config->get_send_mmc() << endl;
} else if (PARAM_IS ("use-osc")) {
#endif
ActionManager::map_some_state ("options", "UseOSC", &Configuration::get_use_osc);
-
+
} else if (PARAM_IS ("mmc-control")) {
ActionManager::map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
- cerr << "Use MMC = " << Config->get_mmc_control() << endl;
-
+ } else if (PARAM_IS ("midi-clock-control")) {
+ ActionManager::map_some_state ("options", "UseMIDIClock", &Configuration::get_midi_clock_control);
} else if (PARAM_IS ("midi-feedback")) {
ActionManager::map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
} else if (PARAM_IS ("do-not-record-plugins")) {
}
} else if (PARAM_IS ("shuttle-units")) {
-
+
switch (Config->get_shuttle_units()) {
case Percentage:
shuttle_units_button.set_label("% ");
ActionManager::map_some_state ("options", "RubberbandingSnapsToGrid", &Configuration::get_rubberbanding_snaps_to_grid);
}
-
+
#undef PARAM_IS
}