mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
make all use of bind/mem_fun be explicitly sigc::
git-svn-id: svn://localhost/ardour2/branches/3.0@6354 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d7de23db0f
commit
64dc5427e4
123 changed files with 2178 additions and 2186 deletions
|
|
@ -170,10 +170,10 @@ AddRouteDialog::AddRouteDialog (Session & s)
|
|||
|
||||
get_vbox()->pack_start (*vbox, false, false);
|
||||
|
||||
track_bus_combo.signal_changed().connect (mem_fun (*this, &AddRouteDialog::track_type_chosen));
|
||||
channel_combo.set_row_separator_func (mem_fun (*this, &AddRouteDialog::channel_separator));
|
||||
route_group_combo.set_row_separator_func (mem_fun (*this, &AddRouteDialog::route_separator));
|
||||
route_group_combo.signal_changed ().connect (mem_fun (*this, &AddRouteDialog::group_changed));
|
||||
track_bus_combo.signal_changed().connect (sigc::mem_fun (*this, &AddRouteDialog::track_type_chosen));
|
||||
channel_combo.set_row_separator_func (sigc::mem_fun (*this, &AddRouteDialog::channel_separator));
|
||||
route_group_combo.set_row_separator_func (sigc::mem_fun (*this, &AddRouteDialog::route_separator));
|
||||
route_group_combo.signal_changed ().connect (sigc::mem_fun (*this, &AddRouteDialog::group_changed));
|
||||
|
||||
show_all_children ();
|
||||
|
||||
|
|
@ -405,7 +405,7 @@ AddRouteDialog::refill_route_groups ()
|
|||
|
||||
route_group_combo.append_text (_("No group"));
|
||||
|
||||
_session.foreach_route_group (mem_fun (*this, &AddRouteDialog::add_route_group));
|
||||
_session.foreach_route_group (sigc::mem_fun (*this, &AddRouteDialog::add_route_group));
|
||||
|
||||
route_group_combo.set_active (2);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ AnalysisWindow::AnalysisWindow() :
|
|||
|
||||
|
||||
tlmodel->signal_row_changed().connect (
|
||||
mem_fun(*this, &AnalysisWindow::track_list_row_changed) );
|
||||
sigc::mem_fun(*this, &AnalysisWindow::track_list_row_changed) );
|
||||
|
||||
fft_graph.set_analysis_window(this);
|
||||
|
||||
|
|
@ -100,11 +100,11 @@ AnalysisWindow::AnalysisWindow() :
|
|||
|
||||
// "Selected ranges" radio
|
||||
source_selection_ranges_rb.signal_toggled().connect (
|
||||
bind ( mem_fun(*this, &AnalysisWindow::source_selection_changed), &source_selection_ranges_rb));
|
||||
sigc::bind ( sigc::mem_fun(*this, &AnalysisWindow::source_selection_changed), &source_selection_ranges_rb));
|
||||
|
||||
// "Selected regions" radio
|
||||
source_selection_regions_rb.signal_toggled().connect (
|
||||
bind ( mem_fun(*this, &AnalysisWindow::source_selection_changed), &source_selection_regions_rb));
|
||||
sigc::bind ( sigc::mem_fun(*this, &AnalysisWindow::source_selection_changed), &source_selection_regions_rb));
|
||||
}
|
||||
|
||||
vbox.pack_start(hseparator1, false, false);
|
||||
|
|
@ -122,11 +122,11 @@ AnalysisWindow::AnalysisWindow() :
|
|||
|
||||
// "Composite graphs for all tracks"
|
||||
display_model_composite_separate_rb.signal_toggled().connect (
|
||||
bind ( mem_fun(*this, &AnalysisWindow::display_model_changed), &display_model_composite_separate_rb));
|
||||
sigc::bind ( sigc::mem_fun(*this, &AnalysisWindow::display_model_changed), &display_model_composite_separate_rb));
|
||||
|
||||
// "Composite graph of all tracks"
|
||||
display_model_composite_all_tracks_rb.signal_toggled().connect (
|
||||
bind ( mem_fun(*this, &AnalysisWindow::display_model_changed), &display_model_composite_all_tracks_rb));
|
||||
sigc::bind ( sigc::mem_fun(*this, &AnalysisWindow::display_model_changed), &display_model_composite_all_tracks_rb));
|
||||
}
|
||||
|
||||
// Analyze button
|
||||
|
|
@ -134,7 +134,7 @@ AnalysisWindow::AnalysisWindow() :
|
|||
refresh_button.set_name("EditorGTKButton");
|
||||
refresh_button.set_label(_("Re-analyze data"));
|
||||
|
||||
refresh_button.signal_clicked().connect ( bind ( mem_fun(*this, &AnalysisWindow::analyze_data), &refresh_button));
|
||||
refresh_button.signal_clicked().connect ( sigc::bind ( sigc::mem_fun(*this, &AnalysisWindow::analyze_data), &refresh_button));
|
||||
|
||||
vbox.pack_start(refresh_button, false, false, 10);
|
||||
|
||||
|
|
@ -142,11 +142,11 @@ AnalysisWindow::AnalysisWindow() :
|
|||
// Feature checkboxes
|
||||
|
||||
// minmax
|
||||
show_minmax_button.signal_toggled().connect( mem_fun(*this, &AnalysisWindow::show_minmax_changed));
|
||||
show_minmax_button.signal_toggled().connect( sigc::mem_fun(*this, &AnalysisWindow::show_minmax_changed));
|
||||
vbox.pack_start(show_minmax_button, false, false);
|
||||
|
||||
// normalize
|
||||
show_normalized_button.signal_toggled().connect( mem_fun(*this, &AnalysisWindow::show_normalized_changed));
|
||||
show_normalized_button.signal_toggled().connect( sigc::mem_fun(*this, &AnalysisWindow::show_normalized_changed));
|
||||
vbox.pack_start(show_normalized_button, false, false);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ ArdourDialog::init ()
|
|||
session = 0;
|
||||
set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG);
|
||||
set_border_width (10);
|
||||
CloseAllDialogs.connect (bind (mem_fun (*this, &ArdourDialog::response), RESPONSE_CANCEL));
|
||||
CloseAllDialogs.connect (sigc::bind (sigc::mem_fun (*this, &ArdourDialog::response), RESPONSE_CANCEL));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -113,16 +113,6 @@ sigc::signal<void> ARDOUR_UI::RapidScreenUpdate;
|
|||
sigc::signal<void> ARDOUR_UI::SuperRapidScreenUpdate;
|
||||
sigc::signal<void,nframes_t, bool, nframes_t> ARDOUR_UI::Clock;
|
||||
|
||||
void gui_rt_cleanup (SessionEvent* ev)
|
||||
{
|
||||
/* a little helper function that makes sure we delete queued SessionEvents in the correct thread */
|
||||
ENSURE_GUI_THREAD (bind (sigc::ptr_fun (&gui_rt_cleanup), ev));
|
||||
delete ev;
|
||||
}
|
||||
|
||||
/* wrap the above as a slot so that we can pass it to the session when queuing RT events */
|
||||
const sigc::slot<void,SessionEvent*> gui_rt_cleanup_slot (sigc::ptr_fun (&gui_rt_cleanup));
|
||||
|
||||
ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[])
|
||||
|
||||
: Gtkmm2ext::UI (X_("gui"), argcp, argvp),
|
||||
|
|
@ -246,20 +236,20 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[])
|
|||
|
||||
last_shuttle_request = last_peak_grab = 0; // get_microseconds();
|
||||
|
||||
ARDOUR::Diskstream::DiskOverrun.connect (mem_fun(*this, &ARDOUR_UI::disk_overrun_handler));
|
||||
ARDOUR::Diskstream::DiskUnderrun.connect (mem_fun(*this, &ARDOUR_UI::disk_underrun_handler));
|
||||
ARDOUR::Diskstream::DiskOverrun.connect (sigc::mem_fun(*this, &ARDOUR_UI::disk_overrun_handler));
|
||||
ARDOUR::Diskstream::DiskUnderrun.connect (sigc::mem_fun(*this, &ARDOUR_UI::disk_underrun_handler));
|
||||
|
||||
/* handle dialog requests */
|
||||
|
||||
ARDOUR::Session::Dialog.connect (mem_fun(*this, &ARDOUR_UI::session_dialog));
|
||||
ARDOUR::Session::Dialog.connect (sigc::mem_fun(*this, &ARDOUR_UI::session_dialog));
|
||||
|
||||
/* handle pending state with a dialog */
|
||||
|
||||
ARDOUR::Session::AskAboutPendingState.connect (mem_fun(*this, &ARDOUR_UI::pending_state_dialog));
|
||||
ARDOUR::Session::AskAboutPendingState.connect (sigc::mem_fun(*this, &ARDOUR_UI::pending_state_dialog));
|
||||
|
||||
/* handle sr mismatch with a dialog */
|
||||
|
||||
ARDOUR::Session::AskAboutSampleRateMismatch.connect (mem_fun(*this, &ARDOUR_UI::sr_mismatch_dialog));
|
||||
ARDOUR::Session::AskAboutSampleRateMismatch.connect (sigc::mem_fun(*this, &ARDOUR_UI::sr_mismatch_dialog));
|
||||
|
||||
/* lets get this party started */
|
||||
|
||||
|
|
@ -293,8 +283,8 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[])
|
|||
|
||||
reset_dpi();
|
||||
|
||||
starting.connect (mem_fun(*this, &ARDOUR_UI::startup));
|
||||
stopping.connect (mem_fun(*this, &ARDOUR_UI::shutdown));
|
||||
starting.connect (sigc::mem_fun(*this, &ARDOUR_UI::startup));
|
||||
stopping.connect (sigc::mem_fun(*this, &ARDOUR_UI::shutdown));
|
||||
|
||||
platform_setup ();
|
||||
}
|
||||
|
|
@ -341,10 +331,10 @@ ARDOUR_UI::create_engine ()
|
|||
return -1;
|
||||
}
|
||||
|
||||
engine->Stopped.connect (mem_fun(*this, &ARDOUR_UI::engine_stopped));
|
||||
engine->Running.connect (mem_fun(*this, &ARDOUR_UI::engine_running));
|
||||
engine->Halted.connect (mem_fun(*this, &ARDOUR_UI::engine_halted));
|
||||
engine->SampleRateChanged.connect (mem_fun(*this, &ARDOUR_UI::update_sample_rate));
|
||||
engine->Stopped.connect (sigc::mem_fun(*this, &ARDOUR_UI::engine_stopped));
|
||||
engine->Running.connect (sigc::mem_fun(*this, &ARDOUR_UI::engine_running));
|
||||
engine->Halted.connect (sigc::mem_fun(*this, &ARDOUR_UI::engine_halted));
|
||||
engine->SampleRateChanged.connect (sigc::mem_fun(*this, &ARDOUR_UI::update_sample_rate));
|
||||
|
||||
post_engine ();
|
||||
|
||||
|
|
@ -412,15 +402,15 @@ ARDOUR_UI::post_engine ()
|
|||
#ifndef GTKOSX
|
||||
/* OS X provides an always visible wallclock, so don't be stupid */
|
||||
update_wall_clock ();
|
||||
Glib::signal_timeout().connect (mem_fun(*this, &ARDOUR_UI::update_wall_clock), 60000);
|
||||
Glib::signal_timeout().connect (sigc::mem_fun(*this, &ARDOUR_UI::update_wall_clock), 60000);
|
||||
#endif
|
||||
|
||||
update_disk_space ();
|
||||
update_cpu_load ();
|
||||
update_sample_rate (engine->frame_rate());
|
||||
|
||||
Config->ParameterChanged.connect (mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
Config->map_parameters (mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
Config->ParameterChanged.connect (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
Config->map_parameters (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
|
||||
/* now start and maybe save state */
|
||||
|
||||
|
|
@ -479,7 +469,7 @@ ARDOUR_UI::configure_handler (GdkEventConfigure* /*conf*/)
|
|||
if (have_configure_timeout) {
|
||||
last_configure_time = get_microseconds();
|
||||
} else {
|
||||
Glib::signal_timeout().connect (mem_fun(*this, &ARDOUR_UI::configure_timeout), 100);
|
||||
Glib::signal_timeout().connect (sigc::mem_fun(*this, &ARDOUR_UI::configure_timeout), 100);
|
||||
have_configure_timeout = true;
|
||||
}
|
||||
|
||||
|
|
@ -602,14 +592,14 @@ ARDOUR_UI::autosave_session ()
|
|||
void
|
||||
ARDOUR_UI::update_autosave ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &ARDOUR_UI::update_autosave));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::update_autosave)
|
||||
|
||||
if (session && session->dirty()) {
|
||||
if (_autosave_connection.connected()) {
|
||||
_autosave_connection.disconnect();
|
||||
}
|
||||
|
||||
_autosave_connection = Glib::signal_timeout().connect (mem_fun (*this, &ARDOUR_UI::autosave_session),
|
||||
_autosave_connection = Glib::signal_timeout().connect (sigc::mem_fun (*this, &ARDOUR_UI::autosave_session),
|
||||
Config->get_periodic_safety_backup_interval() * 1000);
|
||||
|
||||
} else {
|
||||
|
|
@ -741,7 +731,7 @@ ARDOUR_UI::check_memory_locking ()
|
|||
HBox hbox;
|
||||
CheckButton cb (_("Do not show this window again"));
|
||||
|
||||
cb.signal_toggled().connect (mem_fun (*this, &ARDOUR_UI::no_memory_warning));
|
||||
cb.signal_toggled().connect (sigc::mem_fun (*this, &ARDOUR_UI::no_memory_warning));
|
||||
|
||||
hbox.pack_start (cb, true, false);
|
||||
vbox->pack_start (hbox);
|
||||
|
|
@ -913,7 +903,7 @@ ARDOUR_UI::update_sample_rate (nframes_t ignored)
|
|||
{
|
||||
char buf[32];
|
||||
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &ARDOUR_UI::update_sample_rate), ignored));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::update_sample_rate, ignored)
|
||||
|
||||
if (!engine->connected()) {
|
||||
|
||||
|
|
@ -1141,7 +1131,7 @@ ARDOUR_UI::build_session_selector ()
|
|||
recent_session_display.append_column (_("Recent Sessions"), recent_session_columns.visible_name);
|
||||
recent_session_display.set_headers_visible (false);
|
||||
recent_session_display.get_selection()->set_mode (SELECTION_BROWSE);
|
||||
recent_session_display.signal_row_activated().connect (mem_fun (*this, &ARDOUR_UI::recent_session_row_activated));
|
||||
recent_session_display.signal_row_activated().connect (sigc::mem_fun (*this, &ARDOUR_UI::recent_session_row_activated));
|
||||
|
||||
scroller->add (recent_session_display);
|
||||
scroller->set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
|
||||
|
|
@ -1749,7 +1739,7 @@ ARDOUR_UI::toggle_record_enable (uint32_t dstream)
|
|||
void
|
||||
ARDOUR_UI::map_transport_state ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun (*this, &ARDOUR_UI::map_transport_state));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::map_transport_state)
|
||||
|
||||
if (!session) {
|
||||
auto_loop_button.set_visual_state (0);
|
||||
|
|
@ -1806,7 +1796,7 @@ ARDOUR_UI::map_transport_state ()
|
|||
void
|
||||
ARDOUR_UI::engine_stopped ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &ARDOUR_UI::engine_stopped));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::engine_stopped)
|
||||
ActionManager::set_sensitive (ActionManager::jack_sensitive_actions, false);
|
||||
ActionManager::set_sensitive (ActionManager::jack_opposite_sensitive_actions, true);
|
||||
}
|
||||
|
|
@ -1814,7 +1804,7 @@ ARDOUR_UI::engine_stopped ()
|
|||
void
|
||||
ARDOUR_UI::engine_running ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &ARDOUR_UI::engine_running));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::engine_running)
|
||||
ActionManager::set_sensitive (ActionManager::jack_sensitive_actions, true);
|
||||
ActionManager::set_sensitive (ActionManager::jack_opposite_sensitive_actions, false);
|
||||
|
||||
|
|
@ -1865,7 +1855,7 @@ ARDOUR_UI::engine_running ()
|
|||
void
|
||||
ARDOUR_UI::engine_halted ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &ARDOUR_UI::engine_halted));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::engine_halted)
|
||||
|
||||
ActionManager::set_sensitive (ActionManager::jack_sensitive_actions, false);
|
||||
ActionManager::set_sensitive (ActionManager::jack_opposite_sensitive_actions, true);
|
||||
|
|
@ -1917,7 +1907,7 @@ ARDOUR_UI::update_clocks ()
|
|||
void
|
||||
ARDOUR_UI::start_clocking ()
|
||||
{
|
||||
clock_signal_connection = RapidScreenUpdate.connect (mem_fun(*this, &ARDOUR_UI::update_clocks));
|
||||
clock_signal_connection = RapidScreenUpdate.connect (sigc::mem_fun(*this, &ARDOUR_UI::update_clocks));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -2691,7 +2681,7 @@ ARDOUR_UI::show_about ()
|
|||
{
|
||||
if (about == 0) {
|
||||
about = new About;
|
||||
about->signal_response().connect(mem_fun (*this, &ARDOUR_UI::about_signal_response) );
|
||||
about->signal_response().connect(sigc::mem_fun (*this, &ARDOUR_UI::about_signal_response) );
|
||||
}
|
||||
|
||||
about->show_all ();
|
||||
|
|
@ -3112,7 +3102,7 @@ ARDOUR_UI::xrun_handler(nframes_t where)
|
|||
return;
|
||||
}
|
||||
|
||||
ENSURE_GUI_THREAD (bind(mem_fun(*this, &ARDOUR_UI::xrun_handler), where));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::xrun_handler, where)
|
||||
|
||||
if (session && Config->get_create_xrun_marker() && session->actively_recording()) {
|
||||
create_xrun_marker(where);
|
||||
|
|
@ -3176,7 +3166,7 @@ ARDOUR_UI::write_buffer_stats ()
|
|||
void
|
||||
ARDOUR_UI::disk_overrun_handler ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &ARDOUR_UI::disk_overrun_handler));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::disk_overrun_handler)
|
||||
|
||||
write_buffer_stats ();
|
||||
|
||||
|
|
@ -3188,7 +3178,7 @@ was not able to keep up with Ardour.\n\
|
|||
\n\
|
||||
Specifically, it failed to write data to disk\n\
|
||||
quickly enough to keep up with recording.\n"));
|
||||
msg->signal_response().connect (bind (mem_fun (*this, &ARDOUR_UI::disk_speed_dialog_gone), msg));
|
||||
msg->signal_response().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::disk_speed_dialog_gone), msg));
|
||||
msg->show ();
|
||||
}
|
||||
}
|
||||
|
|
@ -3196,7 +3186,7 @@ quickly enough to keep up with recording.\n"));
|
|||
void
|
||||
ARDOUR_UI::disk_underrun_handler ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &ARDOUR_UI::disk_underrun_handler));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::disk_underrun_handler)
|
||||
|
||||
write_buffer_stats ();
|
||||
|
||||
|
|
@ -3208,7 +3198,7 @@ was not able to keep up with Ardour.\n\
|
|||
\n\
|
||||
Specifically, it failed to read data from disk\n\
|
||||
quickly enough to keep up with playback.\n"));
|
||||
msg->signal_response().connect (bind (mem_fun (*this, &ARDOUR_UI::disk_speed_dialog_gone), msg));
|
||||
msg->signal_response().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::disk_speed_dialog_gone), msg));
|
||||
msg->show ();
|
||||
}
|
||||
}
|
||||
|
|
@ -3223,7 +3213,7 @@ ARDOUR_UI::disk_speed_dialog_gone (int /*ignored_response*/, MessageDialog* msg)
|
|||
void
|
||||
ARDOUR_UI::session_dialog (std::string msg)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &ARDOUR_UI::session_dialog), msg));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::session_dialog, msg)
|
||||
|
||||
MessageDialog* d;
|
||||
|
||||
|
|
@ -3363,7 +3353,7 @@ ARDOUR_UI::update_transport_clocks (nframes_t pos)
|
|||
void
|
||||
ARDOUR_UI::record_state_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &ARDOUR_UI::record_state_changed));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::record_state_changed)
|
||||
|
||||
if (!session || !big_clock_window) {
|
||||
/* why bother - the clock isn't visible */
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ ARDOUR_UI::setup_windows ()
|
|||
setup_transport();
|
||||
build_menu_bar ();
|
||||
|
||||
theme_manager->signal_unmap().connect (bind (sigc::ptr_fun(&ActionManager::uncheck_toggleaction), X_("<Actions>/Common/ToggleThemeManager")));
|
||||
theme_manager->signal_unmap().connect (sigc::bind (sigc::ptr_fun(&ActionManager::uncheck_toggleaction), X_("<Actions>/Common/ToggleThemeManager")));
|
||||
|
||||
#ifdef TOP_MENUBAR
|
||||
HBox* status_bar_packer = manage (new HBox);
|
||||
|
|
@ -86,7 +86,7 @@ ARDOUR_UI::setup_windows ()
|
|||
status_bar_packer->pack_start (status_bar_label, true, true, 6);
|
||||
status_bar_packer->pack_start (error_log_button, false, false);
|
||||
|
||||
error_log_button.signal_clicked().connect (mem_fun (*this, &UI::toggle_errors));
|
||||
error_log_button.signal_clicked().connect (sigc::mem_fun (*this, &UI::toggle_errors));
|
||||
|
||||
editor->get_status_bar_packer().pack_start (*status_bar_packer, true, true);
|
||||
editor->get_status_bar_packer().pack_start (menu_bar_base, false, false, 6);
|
||||
|
|
@ -147,7 +147,7 @@ ARDOUR_UI::setup_transport ()
|
|||
{
|
||||
transport_tearoff = manage (new TearOff (transport_tearoff_hbox));
|
||||
transport_tearoff->set_name ("TransportBase");
|
||||
transport_tearoff->tearoff_window().signal_key_press_event().connect (bind (sigc::ptr_fun (relay_key_press), &transport_tearoff->tearoff_window()), false);
|
||||
transport_tearoff->tearoff_window().signal_key_press_event().connect (sigc::bind (sigc::ptr_fun (relay_key_press), &transport_tearoff->tearoff_window()), false);
|
||||
|
||||
if (Profile->get_sae()) {
|
||||
transport_tearoff->set_can_be_torn_off (false);
|
||||
|
|
@ -162,13 +162,13 @@ ARDOUR_UI::setup_transport ()
|
|||
transport_frame.set_name ("BaseFrame");
|
||||
transport_frame.add (transport_base);
|
||||
|
||||
transport_tearoff->Detach.connect (bind (mem_fun(*this, &ARDOUR_UI::detach_tearoff), static_cast<Box*>(&top_packer),
|
||||
transport_tearoff->Detach.connect (sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::detach_tearoff), static_cast<Box*>(&top_packer),
|
||||
static_cast<Widget*>(&transport_frame)));
|
||||
transport_tearoff->Attach.connect (bind (mem_fun(*this, &ARDOUR_UI::reattach_tearoff), static_cast<Box*> (&top_packer),
|
||||
transport_tearoff->Attach.connect (sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::reattach_tearoff), static_cast<Box*> (&top_packer),
|
||||
static_cast<Widget*> (&transport_frame), 1));
|
||||
transport_tearoff->Hidden.connect (bind (mem_fun(*this, &ARDOUR_UI::detach_tearoff), static_cast<Box*>(&top_packer),
|
||||
transport_tearoff->Hidden.connect (sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::detach_tearoff), static_cast<Box*>(&top_packer),
|
||||
static_cast<Widget*>(&transport_frame)));
|
||||
transport_tearoff->Visible.connect (bind (mem_fun(*this, &ARDOUR_UI::reattach_tearoff), static_cast<Box*> (&top_packer),
|
||||
transport_tearoff->Visible.connect (sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::reattach_tearoff), static_cast<Box*> (&top_packer),
|
||||
static_cast<Widget*> (&transport_frame), 1));
|
||||
|
||||
shuttle_box.set_name ("TransportButton");
|
||||
|
|
@ -268,20 +268,20 @@ ARDOUR_UI::setup_transport ()
|
|||
shuttle_box.add_events (Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK|Gdk::BUTTON_RELEASE_MASK|Gdk::BUTTON_PRESS_MASK|Gdk::POINTER_MOTION_MASK|Gdk::SCROLL_MASK);
|
||||
shuttle_box.set_size_request (100, 15);
|
||||
|
||||
shuttle_box.signal_button_press_event().connect (mem_fun(*this, &ARDOUR_UI::shuttle_box_button_press));
|
||||
shuttle_box.signal_button_release_event().connect (mem_fun(*this, &ARDOUR_UI::shuttle_box_button_release));
|
||||
shuttle_box.signal_scroll_event().connect (mem_fun(*this, &ARDOUR_UI::shuttle_box_scroll));
|
||||
shuttle_box.signal_motion_notify_event().connect (mem_fun(*this, &ARDOUR_UI::shuttle_box_motion));
|
||||
shuttle_box.signal_expose_event().connect (mem_fun(*this, &ARDOUR_UI::shuttle_box_expose));
|
||||
shuttle_box.signal_button_press_event().connect (sigc::mem_fun(*this, &ARDOUR_UI::shuttle_box_button_press));
|
||||
shuttle_box.signal_button_release_event().connect (sigc::mem_fun(*this, &ARDOUR_UI::shuttle_box_button_release));
|
||||
shuttle_box.signal_scroll_event().connect (sigc::mem_fun(*this, &ARDOUR_UI::shuttle_box_scroll));
|
||||
shuttle_box.signal_motion_notify_event().connect (sigc::mem_fun(*this, &ARDOUR_UI::shuttle_box_motion));
|
||||
shuttle_box.signal_expose_event().connect (sigc::mem_fun(*this, &ARDOUR_UI::shuttle_box_expose));
|
||||
|
||||
/* clocks, etc. */
|
||||
|
||||
ARDOUR_UI::Clock.connect (bind (mem_fun (primary_clock, &AudioClock::set), 'p'));
|
||||
ARDOUR_UI::Clock.connect (bind (mem_fun (secondary_clock, &AudioClock::set), 's'));
|
||||
ARDOUR_UI::Clock.connect (sigc::bind (sigc::mem_fun (primary_clock, &AudioClock::set), 'p'));
|
||||
ARDOUR_UI::Clock.connect (sigc::bind (sigc::mem_fun (secondary_clock, &AudioClock::set), 's'));
|
||||
|
||||
primary_clock.ValueChanged.connect (mem_fun(*this, &ARDOUR_UI::primary_clock_value_changed));
|
||||
secondary_clock.ValueChanged.connect (mem_fun(*this, &ARDOUR_UI::secondary_clock_value_changed));
|
||||
big_clock.ValueChanged.connect (mem_fun(*this, &ARDOUR_UI::big_clock_value_changed));
|
||||
primary_clock.ValueChanged.connect (sigc::mem_fun(*this, &ARDOUR_UI::primary_clock_value_changed));
|
||||
secondary_clock.ValueChanged.connect (sigc::mem_fun(*this, &ARDOUR_UI::secondary_clock_value_changed));
|
||||
big_clock.ValueChanged.connect (sigc::mem_fun(*this, &ARDOUR_UI::big_clock_value_changed));
|
||||
|
||||
ARDOUR_UI::instance()->tooltips().set_tip (primary_clock, _("Primary clock"));
|
||||
ARDOUR_UI::instance()->tooltips().set_tip (secondary_clock, _("secondary clock"));
|
||||
|
|
@ -303,12 +303,12 @@ ARDOUR_UI::setup_transport ()
|
|||
|
||||
/* alerts */
|
||||
|
||||
/* CANNOT bind these to clicked or toggled, must use pressed or released */
|
||||
/* CANNOT sigc::bind these to clicked or toggled, must use pressed or released */
|
||||
|
||||
solo_alert_button.set_name ("TransportSoloAlert");
|
||||
solo_alert_button.signal_pressed().connect (mem_fun(*this,&ARDOUR_UI::solo_alert_toggle));
|
||||
solo_alert_button.signal_pressed().connect (sigc::mem_fun(*this,&ARDOUR_UI::solo_alert_toggle));
|
||||
auditioning_alert_button.set_name ("TransportAuditioningAlert");
|
||||
auditioning_alert_button.signal_pressed().connect (mem_fun(*this,&ARDOUR_UI::audition_alert_toggle));
|
||||
auditioning_alert_button.signal_pressed().connect (sigc::mem_fun(*this,&ARDOUR_UI::audition_alert_toggle));
|
||||
|
||||
tooltips().set_tip (solo_alert_button, _("When active, something is soloed.\nClick to de-solo everything"));
|
||||
tooltips().set_tip (auditioning_alert_button, _("When active, auditioning is taking place\nClick to stop the audition"));
|
||||
|
|
@ -335,7 +335,7 @@ ARDOUR_UI::setup_transport ()
|
|||
set_size_request_to_display_given_text (speed_display_label, X_("> 24.0"), 2, 2);
|
||||
|
||||
shuttle_units_button.set_name (X_("ShuttleButton"));
|
||||
shuttle_units_button.signal_clicked().connect (mem_fun(*this, &ARDOUR_UI::shuttle_unit_clicked));
|
||||
shuttle_units_button.signal_clicked().connect (sigc::mem_fun(*this, &ARDOUR_UI::shuttle_unit_clicked));
|
||||
|
||||
shuttle_style_button.set_name (X_("ShuttleStyleButton"));
|
||||
|
||||
|
|
@ -343,7 +343,7 @@ ARDOUR_UI::setup_transport ()
|
|||
shuttle_strings.push_back (_("sprung"));
|
||||
shuttle_strings.push_back (_("wheel"));
|
||||
set_popdown_strings (shuttle_style_button, shuttle_strings, true);
|
||||
shuttle_style_button.signal_changed().connect (mem_fun (*this, &ARDOUR_UI::shuttle_style_changed));
|
||||
shuttle_style_button.signal_changed().connect (sigc::mem_fun (*this, &ARDOUR_UI::shuttle_style_changed));
|
||||
|
||||
Frame* sdframe = manage (new Frame);
|
||||
|
||||
|
|
@ -424,9 +424,9 @@ ARDOUR_UI::setup_transport ()
|
|||
void
|
||||
ARDOUR_UI::manage_window (Window& win)
|
||||
{
|
||||
win.signal_delete_event().connect (bind (sigc::ptr_fun (just_hide_it), &win));
|
||||
win.signal_enter_notify_event().connect (bind (mem_fun (Keyboard::the_keyboard(), &Keyboard::enter_window), &win));
|
||||
win.signal_leave_notify_event().connect (bind (mem_fun (Keyboard::the_keyboard(), &Keyboard::leave_window), &win));
|
||||
win.signal_delete_event().connect (sigc::bind (sigc::ptr_fun (just_hide_it), &win));
|
||||
win.signal_enter_notify_event().connect (sigc::bind (sigc::mem_fun (Keyboard::the_keyboard(), &Keyboard::enter_window), &win));
|
||||
win.signal_leave_notify_event().connect (sigc::bind (sigc::mem_fun (Keyboard::the_keyboard(), &Keyboard::leave_window), &win));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -463,7 +463,7 @@ ARDOUR_UI::_auditioning_changed (bool onoff)
|
|||
void
|
||||
ARDOUR_UI::auditioning_changed (bool onoff)
|
||||
{
|
||||
UI::instance()->call_slot(bind (mem_fun(*this, &ARDOUR_UI::_auditioning_changed), onoff));
|
||||
UI::instance()->call_slot(sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::_auditioning_changed), onoff));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -556,27 +556,27 @@ ARDOUR_UI::build_shuttle_context_menu ()
|
|||
|
||||
RadioMenuItem::Group group;
|
||||
|
||||
speed_items.push_back (RadioMenuElem (group, "8", bind (mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 8.0f)));
|
||||
speed_items.push_back (RadioMenuElem (group, "8", sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 8.0f)));
|
||||
if (shuttle_max_speed == 8.0) {
|
||||
static_cast<RadioMenuItem*>(&speed_items.back())->set_active ();
|
||||
}
|
||||
speed_items.push_back (RadioMenuElem (group, "6", bind (mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 6.0f)));
|
||||
speed_items.push_back (RadioMenuElem (group, "6", sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 6.0f)));
|
||||
if (shuttle_max_speed == 6.0) {
|
||||
static_cast<RadioMenuItem*>(&speed_items.back())->set_active ();
|
||||
}
|
||||
speed_items.push_back (RadioMenuElem (group, "4", bind (mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 4.0f)));
|
||||
speed_items.push_back (RadioMenuElem (group, "4", sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 4.0f)));
|
||||
if (shuttle_max_speed == 4.0) {
|
||||
static_cast<RadioMenuItem*>(&speed_items.back())->set_active ();
|
||||
}
|
||||
speed_items.push_back (RadioMenuElem (group, "3", bind (mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 3.0f)));
|
||||
speed_items.push_back (RadioMenuElem (group, "3", sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 3.0f)));
|
||||
if (shuttle_max_speed == 3.0) {
|
||||
static_cast<RadioMenuItem*>(&speed_items.back())->set_active ();
|
||||
}
|
||||
speed_items.push_back (RadioMenuElem (group, "2", bind (mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 2.0f)));
|
||||
speed_items.push_back (RadioMenuElem (group, "2", sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 2.0f)));
|
||||
if (shuttle_max_speed == 2.0) {
|
||||
static_cast<RadioMenuItem*>(&speed_items.back())->set_active ();
|
||||
}
|
||||
speed_items.push_back (RadioMenuElem (group, "1.5", bind (mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 1.5f)));
|
||||
speed_items.push_back (RadioMenuElem (group, "1.5", sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::set_shuttle_max_speed), 1.5f)));
|
||||
if (shuttle_max_speed == 1.5) {
|
||||
static_cast<RadioMenuItem*>(&speed_items.back())->set_active ();
|
||||
}
|
||||
|
|
@ -878,7 +878,7 @@ ARDOUR_UI::set_transport_sensitivity (bool yn)
|
|||
void
|
||||
ARDOUR_UI::editor_realized ()
|
||||
{
|
||||
Config->map_parameters (mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
Config->map_parameters (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
|
||||
set_size_request_to_display_given_text (speed_display_box, _("-0.55"), 2, 2);
|
||||
reset_dpi ();
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ ARDOUR_UI::we_have_dependents ()
|
|||
install_actions ();
|
||||
ProcessorBox::register_actions ();
|
||||
keyboard->setup_keybindings ();
|
||||
editor->UpdateAllTransportClocks.connect (mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
|
||||
editor->UpdateAllTransportClocks.connect (sigc::mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -88,7 +88,7 @@ ARDOUR_UI::goto_editor_window ()
|
|||
{
|
||||
if (splash && splash->is_visible()) {
|
||||
// in 2 seconds, hide the splash screen
|
||||
Glib::signal_timeout().connect (bind (sigc::ptr_fun (_hide_splash), this), 2000);
|
||||
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 2000);
|
||||
}
|
||||
|
||||
editor->show_window ();
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ ARDOUR_UI::connect_to_session (Session *s)
|
|||
{
|
||||
session = s;
|
||||
|
||||
session->Xrun.connect (mem_fun(*this, &ARDOUR_UI::xrun_handler));
|
||||
session->RecordStateChanged.connect (mem_fun (*this, &ARDOUR_UI::record_state_changed));
|
||||
session->Xrun.connect (sigc::mem_fun(*this, &ARDOUR_UI::xrun_handler));
|
||||
session->RecordStateChanged.connect (sigc::mem_fun (*this, &ARDOUR_UI::record_state_changed));
|
||||
|
||||
/* sensitize menu bar options that are now valid */
|
||||
|
||||
|
|
@ -87,8 +87,8 @@ ARDOUR_UI::connect_to_session (Session *s)
|
|||
ActionManager::set_sensitive (ActionManager::point_selection_sensitive_actions, false);
|
||||
ActionManager::set_sensitive (ActionManager::playlist_selection_sensitive_actions, false);
|
||||
|
||||
session->locations()->added.connect (mem_fun (*this, &ARDOUR_UI::handle_locations_change));
|
||||
session->locations()->removed.connect (mem_fun (*this, &ARDOUR_UI::handle_locations_change));
|
||||
session->locations()->added.connect (sigc::mem_fun (*this, &ARDOUR_UI::handle_locations_change));
|
||||
session->locations()->removed.connect (sigc::mem_fun (*this, &ARDOUR_UI::handle_locations_change));
|
||||
|
||||
rec_button.set_sensitive (true);
|
||||
shuttle_box.set_sensitive (true);
|
||||
|
|
@ -103,27 +103,27 @@ ARDOUR_UI::connect_to_session (Session *s)
|
|||
|
||||
setup_session_options ();
|
||||
|
||||
Blink.connect (mem_fun(*this, &ARDOUR_UI::transport_rec_enable_blink));
|
||||
Blink.connect (mem_fun(*this, &ARDOUR_UI::solo_blink));
|
||||
Blink.connect (mem_fun(*this, &ARDOUR_UI::sync_blink));
|
||||
Blink.connect (mem_fun(*this, &ARDOUR_UI::audition_blink));
|
||||
Blink.connect (sigc::mem_fun(*this, &ARDOUR_UI::transport_rec_enable_blink));
|
||||
Blink.connect (sigc::mem_fun(*this, &ARDOUR_UI::solo_blink));
|
||||
Blink.connect (sigc::mem_fun(*this, &ARDOUR_UI::sync_blink));
|
||||
Blink.connect (sigc::mem_fun(*this, &ARDOUR_UI::audition_blink));
|
||||
|
||||
/* these are all need to be handled in an RT-safe and MT way, so don't
|
||||
do any GUI work, just queue it for handling by the GUI thread.
|
||||
*/
|
||||
|
||||
session->TransportStateChange.connect (mem_fun(*this, &ARDOUR_UI::map_transport_state));
|
||||
session->TransportStateChange.connect (sigc::mem_fun(*this, &ARDOUR_UI::map_transport_state));
|
||||
|
||||
/* alert the user to these things happening */
|
||||
|
||||
session->AuditionActive.connect (mem_fun(*this, &ARDOUR_UI::auditioning_changed));
|
||||
session->SoloActive.connect (mem_fun(*this, &ARDOUR_UI::soloing_changed));
|
||||
session->AuditionActive.connect (sigc::mem_fun(*this, &ARDOUR_UI::auditioning_changed));
|
||||
session->SoloActive.connect (sigc::mem_fun(*this, &ARDOUR_UI::soloing_changed));
|
||||
|
||||
solo_alert_button.set_active (session->soloing());
|
||||
|
||||
/* update autochange callback on dirty state changing */
|
||||
|
||||
session->DirtyChanged.connect (mem_fun(*this, &ARDOUR_UI::update_autosave));
|
||||
session->DirtyChanged.connect (sigc::mem_fun(*this, &ARDOUR_UI::update_autosave));
|
||||
|
||||
/* can't be auditioning here */
|
||||
|
||||
|
|
@ -143,18 +143,18 @@ ARDOUR_UI::connect_to_session (Session *s)
|
|||
back to the session XML ("Extra") state.
|
||||
*/
|
||||
|
||||
AudioClock::ModeChanged.connect (mem_fun (*this, &ARDOUR_UI::store_clock_modes));
|
||||
AudioClock::ModeChanged.connect (sigc::mem_fun (*this, &ARDOUR_UI::store_clock_modes));
|
||||
|
||||
Glib::signal_idle().connect (mem_fun (*this, &ARDOUR_UI::first_idle));
|
||||
Glib::signal_idle().connect (sigc::mem_fun (*this, &ARDOUR_UI::first_idle));
|
||||
|
||||
start_clocking ();
|
||||
start_blinking ();
|
||||
|
||||
map_transport_state ();
|
||||
|
||||
second_connection = Glib::signal_timeout().connect (mem_fun(*this, &ARDOUR_UI::every_second), 1000);
|
||||
point_one_second_connection = Glib::signal_timeout().connect (mem_fun(*this, &ARDOUR_UI::every_point_one_seconds), 100);
|
||||
point_zero_one_second_connection = Glib::signal_timeout().connect (mem_fun(*this, &ARDOUR_UI::every_point_zero_one_seconds), 40);
|
||||
second_connection = Glib::signal_timeout().connect (sigc::mem_fun(*this, &ARDOUR_UI::every_second), 1000);
|
||||
point_one_second_connection = Glib::signal_timeout().connect (sigc::mem_fun(*this, &ARDOUR_UI::every_point_one_seconds), 100);
|
||||
point_zero_one_second_connection = Glib::signal_timeout().connect (sigc::mem_fun(*this, &ARDOUR_UI::every_point_zero_one_seconds), 40);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ ARDOUR_UI::create_editor ()
|
|||
return -1;
|
||||
}
|
||||
|
||||
editor->Realized.connect (mem_fun (*this, &ARDOUR_UI::editor_realized));
|
||||
editor->signal_window_state_event().connect (sigc::bind (mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), true));
|
||||
editor->Realized.connect (sigc::mem_fun (*this, &ARDOUR_UI::editor_realized));
|
||||
editor->signal_window_state_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), true));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -107,15 +107,15 @@ ARDOUR_UI::install_actions ()
|
|||
|
||||
/* the real actions */
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("New"), _("New..."), hide_return (bind (mem_fun(*this, &ARDOUR_UI::get_session_parameters), false, true)));
|
||||
act = ActionManager::register_action (main_actions, X_("New"), _("New..."), hide_return (sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::get_session_parameters), false, true)));
|
||||
|
||||
ActionManager::register_action (main_actions, X_("Open"), _("Open..."), mem_fun(*this, &ARDOUR_UI::open_session));
|
||||
ActionManager::register_action (main_actions, X_("Recent"), _("Recent..."), mem_fun(*this, &ARDOUR_UI::open_recent_session));
|
||||
act = ActionManager::register_action (main_actions, X_("Close"), _("Close"), mem_fun(*this, &ARDOUR_UI::close_session));
|
||||
ActionManager::register_action (main_actions, X_("Open"), _("Open..."), sigc::mem_fun(*this, &ARDOUR_UI::open_session));
|
||||
ActionManager::register_action (main_actions, X_("Recent"), _("Recent..."), sigc::mem_fun(*this, &ARDOUR_UI::open_recent_session));
|
||||
act = ActionManager::register_action (main_actions, X_("Close"), _("Close"), sigc::mem_fun(*this, &ARDOUR_UI::close_session));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("AddTrackBus"), _("Add Track/Bus..."),
|
||||
bind (mem_fun(*this, &ARDOUR_UI::add_route), (Gtk::Window*) 0));
|
||||
sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::add_route), (Gtk::Window*) 0));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::write_sensitive_actions.push_back (act);
|
||||
|
||||
|
|
@ -124,39 +124,39 @@ ARDOUR_UI::install_actions ()
|
|||
sys::path anicomp_file_path;
|
||||
|
||||
if (PBD::find_file_in_search_path (Glib::getenv("PATH"), "AniComp", anicomp_file_path)) {
|
||||
act = ActionManager::register_action (main_actions, X_("aniConnect"), _("Connect"), (mem_fun (*editor, &PublicEditor::connect_to_image_compositor)));
|
||||
act = ActionManager::register_action (main_actions, X_("aniConnect"), _("Connect"), (sigc::mem_fun (*editor, &PublicEditor::connect_to_image_compositor)));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("Snapshot"), _("Snapshot..."), mem_fun(*this, &ARDOUR_UI::snapshot_session));
|
||||
act = ActionManager::register_action (main_actions, X_("Snapshot"), _("Snapshot..."), sigc::mem_fun(*this, &ARDOUR_UI::snapshot_session));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::write_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("SaveTemplate"), _("Save Template..."), mem_fun(*this, &ARDOUR_UI::save_template));
|
||||
act = ActionManager::register_action (main_actions, X_("SaveTemplate"), _("Save Template..."), sigc::mem_fun(*this, &ARDOUR_UI::save_template));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("Metadata"), _("Metadata"));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("EditMetadata"), _("Edit Metadata..."), mem_fun(*this, &ARDOUR_UI::edit_metadata));
|
||||
act = ActionManager::register_action (main_actions, X_("EditMetadata"), _("Edit Metadata..."), sigc::mem_fun(*this, &ARDOUR_UI::edit_metadata));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("ImportMetadata"), _("Import Metadata..."), mem_fun(*this, &ARDOUR_UI::import_metadata));
|
||||
act = ActionManager::register_action (main_actions, X_("ImportMetadata"), _("Import Metadata..."), sigc::mem_fun(*this, &ARDOUR_UI::import_metadata));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("ExportAudio"), _("Export To Audio File(s)..."), mem_fun (*editor, &PublicEditor::export_audio));
|
||||
act = ActionManager::register_action (main_actions, X_("ExportAudio"), _("Export To Audio File(s)..."), sigc::mem_fun (*editor, &PublicEditor::export_audio));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("Export"), _("Export"));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("CleanupUnused"), _("Cleanup Unused Sources..."), mem_fun (*(ARDOUR_UI::instance()), &ARDOUR_UI::cleanup));
|
||||
act = ActionManager::register_action (main_actions, X_("CleanupUnused"), _("Cleanup Unused Sources..."), sigc::mem_fun (*(ARDOUR_UI::instance()), &ARDOUR_UI::cleanup));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::write_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("FlushWastebasket"), _("Flush Wastebasket"), mem_fun (*(ARDOUR_UI::instance()), &ARDOUR_UI::flush_trash));
|
||||
act = ActionManager::register_action (main_actions, X_("FlushWastebasket"), _("Flush Wastebasket"), sigc::mem_fun (*(ARDOUR_UI::instance()), &ARDOUR_UI::flush_trash));
|
||||
ActionManager::write_sensitive_actions.push_back (act);
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
|
|
@ -166,74 +166,74 @@ ARDOUR_UI::install_actions ()
|
|||
ActionManager::register_action (jack_actions, X_("JACK"), _("JACK"));
|
||||
ActionManager::register_action (jack_actions, X_("Latency"), _("Latency"));
|
||||
|
||||
act = ActionManager::register_action (jack_actions, X_("JACKReconnect"), _("Reconnect"), mem_fun (*(ARDOUR_UI::instance()), &ARDOUR_UI::reconnect_to_jack));
|
||||
act = ActionManager::register_action (jack_actions, X_("JACKReconnect"), _("Reconnect"), sigc::mem_fun (*(ARDOUR_UI::instance()), &ARDOUR_UI::reconnect_to_jack));
|
||||
ActionManager::jack_opposite_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (jack_actions, X_("JACKDisconnect"), _("Disconnect"), mem_fun (*(ARDOUR_UI::instance()), &ARDOUR_UI::disconnect_from_jack));
|
||||
act = ActionManager::register_action (jack_actions, X_("JACKDisconnect"), _("Disconnect"), sigc::mem_fun (*(ARDOUR_UI::instance()), &ARDOUR_UI::disconnect_from_jack));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
|
||||
RadioAction::Group jack_latency_group;
|
||||
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency32"), X_("32"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 32));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency32"), X_("32"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 32));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency64"), X_("64"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 64));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency64"), X_("64"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 64));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency128"), X_("128"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 128));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency128"), X_("128"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 128));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency256"), X_("256"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 256));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency256"), X_("256"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 256));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency512"), X_("512"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 512));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency512"), X_("512"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 512));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency1024"), X_("1024"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 1024));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency1024"), X_("1024"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 1024));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency2048"), X_("2048"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 2048));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency2048"), X_("2048"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 2048));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency4096"), X_("4096"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 4096));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency4096"), X_("4096"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 4096));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency8192"), X_("8192"), bind (mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 8192));
|
||||
act = ActionManager::register_radio_action (jack_actions, jack_latency_group, X_("JACKLatency8192"), X_("8192"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::set_jack_buffer_size), (nframes_t) 8192));
|
||||
ActionManager::jack_sensitive_actions.push_back (act);
|
||||
|
||||
/* these actions are intended to be shared across all windows */
|
||||
|
||||
common_actions = ActionGroup::create (X_("Common"));
|
||||
ActionManager::register_action (main_actions, X_("WindowMenu"), _("Window"));
|
||||
ActionManager::register_action (common_actions, X_("Quit"), _("Quit"), (hide_return (mem_fun(*this, &ARDOUR_UI::finish))));
|
||||
ActionManager::register_action (common_actions, X_("Quit"), _("Quit"), (hide_return (sigc::mem_fun(*this, &ARDOUR_UI::finish))));
|
||||
|
||||
/* windows visibility actions */
|
||||
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleMaximalEditor"), _("Maximise Editor Space"), mem_fun (*this, &ARDOUR_UI::toggle_editing_space));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleMaximalEditor"), _("Maximise Editor Space"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_editing_space));
|
||||
|
||||
ActionManager::register_action (common_actions, X_("goto-editor"), _("Show Editor"), mem_fun(*this, &ARDOUR_UI::goto_editor_window));
|
||||
ActionManager::register_action (common_actions, X_("goto-mixer"), _("Show Mixer"), mem_fun(*this, &ARDOUR_UI::goto_mixer_window));
|
||||
ActionManager::register_action (common_actions, X_("toggle-editor-mixer-on-top"), _("Toggle Editor Mixer on Top"), mem_fun(*this, &ARDOUR_UI::toggle_editor_mixer_on_top));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleRCOptionsEditor"), _("Preferences"), mem_fun(*this, &ARDOUR_UI::toggle_rc_options_window));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleSessionOptionsEditor"), _("Preferences"), mem_fun(*this, &ARDOUR_UI::toggle_session_options_window));
|
||||
act = ActionManager::register_toggle_action (common_actions, X_("ToggleInspector"), _("Track/Bus Inspector"), mem_fun(*this, &ARDOUR_UI::toggle_route_params_window));
|
||||
ActionManager::register_action (common_actions, X_("goto-editor"), _("Show Editor"), sigc::mem_fun(*this, &ARDOUR_UI::goto_editor_window));
|
||||
ActionManager::register_action (common_actions, X_("goto-mixer"), _("Show Mixer"), sigc::mem_fun(*this, &ARDOUR_UI::goto_mixer_window));
|
||||
ActionManager::register_action (common_actions, X_("toggle-editor-mixer-on-top"), _("Toggle Editor Mixer on Top"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_editor_mixer_on_top));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleRCOptionsEditor"), _("Preferences"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_rc_options_window));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleSessionOptionsEditor"), _("Preferences"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_session_options_window));
|
||||
act = ActionManager::register_toggle_action (common_actions, X_("ToggleInspector"), _("Track/Bus Inspector"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_route_params_window));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (common_actions, X_("ToggleLocations"), _("Locations"), mem_fun(*this, &ARDOUR_UI::toggle_location_window));
|
||||
act = ActionManager::register_toggle_action (common_actions, X_("ToggleLocations"), _("Locations"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_location_window));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (common_actions, X_("ToggleBigClock"), _("Big Clock"), mem_fun(*this, &ARDOUR_UI::toggle_big_clock_window));
|
||||
act = ActionManager::register_toggle_action (common_actions, X_("ToggleBigClock"), _("Big Clock"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_big_clock_window));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::register_action (common_actions, X_("About"), _("About"), mem_fun(*this, &ARDOUR_UI::show_about));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleThemeManager"), _("Theme Manager"), mem_fun(*this, &ARDOUR_UI::toggle_theme_manager));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleKeyEditor"), _("Key Bindings"), mem_fun(*this, &ARDOUR_UI::toggle_key_editor));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleBundleManager"), _("Bundle Manager"), mem_fun(*this, &ARDOUR_UI::toggle_bundle_manager));
|
||||
ActionManager::register_action (common_actions, X_("About"), _("About"), sigc::mem_fun(*this, &ARDOUR_UI::show_about));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleThemeManager"), _("Theme Manager"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_theme_manager));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleKeyEditor"), _("Key Bindings"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_key_editor));
|
||||
ActionManager::register_toggle_action (common_actions, X_("ToggleBundleManager"), _("Bundle Manager"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_bundle_manager));
|
||||
|
||||
#if 0
|
||||
act = ActionManager::register_action (common_actions, X_("AddAudioTrack"), _("Add Audio Track"), bind (mem_fun(*this, &ARDOUR_UI::session_add_audio_track), 1, 1, ARDOUR::Normal, (ARDOUR::RouteGroup *) 0, 1));
|
||||
act = ActionManager::register_action (common_actions, X_("AddAudioTrack"), _("Add Audio Track"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::session_add_audio_track), 1, 1, ARDOUR::Normal, (ARDOUR::RouteGroup *) 0, 1));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("AddAudioBus"), _("Add Audio Bus"), bind (mem_fun(*this, &ARDOUR_UI::session_add_audio_bus), 1, 1, (ARDOUR::RouteGroup *) 0, 1));
|
||||
act = ActionManager::register_action (common_actions, X_("AddAudioBus"), _("Add Audio Bus"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::session_add_audio_bus), 1, 1, (ARDOUR::RouteGroup *) 0, 1));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("AddMIDITrack"), _("Add MIDI Track"), bind (mem_fun(*this, &ARDOUR_UI::session_add_midi_track), (ARDOUR::RouteGroup *) 0, 1));
|
||||
act = ActionManager::register_action (common_actions, X_("AddMIDITrack"), _("Add MIDI Track"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::session_add_midi_track), (ARDOUR::RouteGroup *) 0, 1));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
//act = ActionManager::register_action (common_actions, X_("AddMidiBus"), _("Add Midi Bus"), mem_fun(*this, &ARDOUR_UI::session_add_midi_bus));
|
||||
//act = ActionManager::register_action (common_actions, X_("AddMidiBus"), _("Add Midi Bus"), sigc::mem_fun(*this, &ARDOUR_UI::session_add_midi_bus));
|
||||
//ActionManager::session_sensitive_actions.push_back (act);
|
||||
#endif
|
||||
act = ActionManager::register_action (common_actions, X_("Save"), _("Save"), bind (mem_fun(*this, &ARDOUR_UI::save_state), string("")));
|
||||
act = ActionManager::register_action (common_actions, X_("Save"), _("Save"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::save_state), string("")));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::write_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("RemoveLastCapture"), _("Remove Last Capture"), mem_fun(*this, &ARDOUR_UI::remove_last_capture));
|
||||
act = ActionManager::register_action (common_actions, X_("RemoveLastCapture"), _("Remove Last Capture"), sigc::mem_fun(*this, &ARDOUR_UI::remove_last_capture));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
Glib::RefPtr<ActionGroup> transport_actions = ActionGroup::create (X_("Transport"));
|
||||
|
|
@ -246,20 +246,20 @@ ARDOUR_UI::install_actions ()
|
|||
menus and via button proxies.
|
||||
*/
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("Stop"), _("Stop"), mem_fun(*this, &ARDOUR_UI::transport_stop));
|
||||
act = ActionManager::register_action (transport_actions, X_("Stop"), _("Stop"), sigc::mem_fun(*this, &ARDOUR_UI::transport_stop));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("Roll"), _("Roll"), mem_fun(*this, &ARDOUR_UI::transport_roll));
|
||||
act = ActionManager::register_action (transport_actions, X_("Roll"), _("Roll"), sigc::mem_fun(*this, &ARDOUR_UI::transport_roll));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("ToggleRoll"), _("Start/Stop"), bind (mem_fun (*this, &ARDOUR_UI::toggle_roll), false, false));
|
||||
act = ActionManager::register_action (transport_actions, X_("ToggleRoll"), _("Start/Stop"), sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::toggle_roll), false, false));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("ToggleRollMaybe"), _("Start/Continue/Stop"), bind (mem_fun (*this, &ARDOUR_UI::toggle_roll), false, true));
|
||||
act = ActionManager::register_action (transport_actions, X_("ToggleRollMaybe"), _("Start/Continue/Stop"), sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::toggle_roll), false, true));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("ToggleRollForgetCapture"), _("Stop + Forget Capture"), bind (mem_fun(*this, &ARDOUR_UI::toggle_roll), true, false));
|
||||
act = ActionManager::register_action (transport_actions, X_("ToggleRollForgetCapture"), _("Stop + Forget Capture"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_roll), true, false));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
||||
|
|
@ -269,191 +269,191 @@ ARDOUR_UI::install_actions ()
|
|||
- otherwise do nothing
|
||||
*/
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("TransitionToRoll"), _("Transition To Roll"), bind (mem_fun (*editor, &PublicEditor::transition_to_rolling), true));
|
||||
act = ActionManager::register_action (transport_actions, X_("TransitionToRoll"), _("Transition To Roll"), sigc::bind (sigc::mem_fun (*editor, &PublicEditor::transition_to_rolling), true));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("TransitionToReverse"), _("Transition To Reverse"), bind (mem_fun (*editor, &PublicEditor::transition_to_rolling), false));
|
||||
act = ActionManager::register_action (transport_actions, X_("TransitionToReverse"), _("Transition To Reverse"), sigc::bind (sigc::mem_fun (*editor, &PublicEditor::transition_to_rolling), false));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("Loop"), _("Play Loop Range"), mem_fun(*this, &ARDOUR_UI::toggle_session_auto_loop));
|
||||
act = ActionManager::register_action (transport_actions, X_("Loop"), _("Play Loop Range"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_session_auto_loop));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("PlaySelection"), _("Play Selection"), mem_fun(*this, &ARDOUR_UI::transport_play_selection));
|
||||
act = ActionManager::register_action (transport_actions, X_("PlaySelection"), _("Play Selection"), sigc::mem_fun(*this, &ARDOUR_UI::transport_play_selection));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("Record"), _("Enable Record"), bind (mem_fun(*this, &ARDOUR_UI::transport_record), false));
|
||||
act = ActionManager::register_action (transport_actions, X_("Record"), _("Enable Record"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::transport_record), false));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::write_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("record-roll"), _("Start Recording"), bind (mem_fun(*this, &ARDOUR_UI::transport_record), true));
|
||||
act = ActionManager::register_action (transport_actions, X_("record-roll"), _("Start Recording"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::transport_record), true));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::write_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("Rewind"), _("Rewind"), bind (mem_fun(*this, &ARDOUR_UI::transport_rewind), 0));
|
||||
act = ActionManager::register_action (transport_actions, X_("Rewind"), _("Rewind"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::transport_rewind), 0));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("RewindSlow"), _("Rewind (Slow)"), bind (mem_fun(*this, &ARDOUR_UI::transport_rewind), -1));
|
||||
act = ActionManager::register_action (transport_actions, X_("RewindSlow"), _("Rewind (Slow)"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::transport_rewind), -1));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("RewindFast"), _("Rewind (Fast)"), bind (mem_fun(*this, &ARDOUR_UI::transport_rewind), 1));
|
||||
act = ActionManager::register_action (transport_actions, X_("RewindFast"), _("Rewind (Fast)"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::transport_rewind), 1));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("Forward"), _("Forward"), bind (mem_fun(*this, &ARDOUR_UI::transport_forward), 0));
|
||||
act = ActionManager::register_action (transport_actions, X_("Forward"), _("Forward"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::transport_forward), 0));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("ForwardSlow"), _("Forward (Slow)"), bind (mem_fun(*this, &ARDOUR_UI::transport_forward), -1));
|
||||
act = ActionManager::register_action (transport_actions, X_("ForwardSlow"), _("Forward (Slow)"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::transport_forward), -1));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("ForwardFast"), _("Forward (Fast)"), bind (mem_fun(*this, &ARDOUR_UI::transport_forward), 1));
|
||||
act = ActionManager::register_action (transport_actions, X_("ForwardFast"), _("Forward (Fast)"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::transport_forward), 1));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("GotoZero"), _("Goto Zero"), mem_fun(*this, &ARDOUR_UI::transport_goto_zero));
|
||||
act = ActionManager::register_action (transport_actions, X_("GotoZero"), _("Goto Zero"), sigc::mem_fun(*this, &ARDOUR_UI::transport_goto_zero));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("GotoStart"), _("Goto Start"), mem_fun(*this, &ARDOUR_UI::transport_goto_start));
|
||||
act = ActionManager::register_action (transport_actions, X_("GotoStart"), _("Goto Start"), sigc::mem_fun(*this, &ARDOUR_UI::transport_goto_start));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("GotoEnd"), _("Goto End"), mem_fun(*this, &ARDOUR_UI::transport_goto_end));
|
||||
act = ActionManager::register_action (transport_actions, X_("GotoEnd"), _("Goto End"), sigc::mem_fun(*this, &ARDOUR_UI::transport_goto_end));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("GotoWallClock"), _("Goto Wall Clock"), mem_fun(*this, &ARDOUR_UI::transport_goto_wallclock));
|
||||
act = ActionManager::register_action (transport_actions, X_("GotoWallClock"), _("Goto Wall Clock"), sigc::mem_fun(*this, &ARDOUR_UI::transport_goto_wallclock));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("focus-on-clock"), _("Focus On Clock"), mem_fun(primary_clock, &AudioClock::focus));
|
||||
act = ActionManager::register_action (transport_actions, X_("focus-on-clock"), _("Focus On Clock"), sigc::mem_fun(primary_clock, &AudioClock::focus));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("primary-clock-bbt"), _("Bars & Beats"), bind (mem_fun(primary_clock, &AudioClock::set_mode), AudioClock::BBT));
|
||||
act = ActionManager::register_action (transport_actions, X_("primary-clock-bbt"), _("Bars & Beats"), sigc::bind (sigc::mem_fun(primary_clock, &AudioClock::set_mode), AudioClock::BBT));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("primary-clock-minsec"), _("Minutes & Seconds"), bind (mem_fun(primary_clock, &AudioClock::set_mode), AudioClock::MinSec));
|
||||
act = ActionManager::register_action (transport_actions, X_("primary-clock-minsec"), _("Minutes & Seconds"), sigc::bind (sigc::mem_fun(primary_clock, &AudioClock::set_mode), AudioClock::MinSec));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("primary-clock-samples"), _("Samples"), bind (mem_fun(primary_clock, &AudioClock::set_mode), AudioClock::Frames));
|
||||
act = ActionManager::register_action (transport_actions, X_("primary-clock-samples"), _("Samples"), sigc::bind (sigc::mem_fun(primary_clock, &AudioClock::set_mode), AudioClock::Frames));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("primary-clock-off"), _("Off"), bind (mem_fun(primary_clock, &AudioClock::set_mode), AudioClock::Off));
|
||||
act = ActionManager::register_action (transport_actions, X_("primary-clock-off"), _("Off"), sigc::bind (sigc::mem_fun(primary_clock, &AudioClock::set_mode), AudioClock::Off));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("secondary-clock-bbt"), _("Bars & Beats"), bind (mem_fun(secondary_clock, &AudioClock::set_mode), AudioClock::BBT));
|
||||
act = ActionManager::register_action (transport_actions, X_("secondary-clock-bbt"), _("Bars & Beats"), sigc::bind (sigc::mem_fun(secondary_clock, &AudioClock::set_mode), AudioClock::BBT));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("secondary-clock-minsec"), _("Minutes & Seconds"), bind (mem_fun(secondary_clock, &AudioClock::set_mode), AudioClock::MinSec));
|
||||
act = ActionManager::register_action (transport_actions, X_("secondary-clock-minsec"), _("Minutes & Seconds"), sigc::bind (sigc::mem_fun(secondary_clock, &AudioClock::set_mode), AudioClock::MinSec));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("secondary-clock-samples"), _("Samples"), bind (mem_fun(secondary_clock, &AudioClock::set_mode), AudioClock::Frames));
|
||||
act = ActionManager::register_action (transport_actions, X_("secondary-clock-samples"), _("Samples"), sigc::bind (sigc::mem_fun(secondary_clock, &AudioClock::set_mode), AudioClock::Frames));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (transport_actions, X_("secondary-clock-off"), _("Off"), bind (mem_fun(secondary_clock, &AudioClock::set_mode), AudioClock::Off));
|
||||
act = ActionManager::register_action (transport_actions, X_("secondary-clock-off"), _("Off"), sigc::bind (sigc::mem_fun(secondary_clock, &AudioClock::set_mode), AudioClock::Off));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("TogglePunchIn"), _("Punch In"), mem_fun(*this, &ARDOUR_UI::toggle_punch_in));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("TogglePunchIn"), _("Punch In"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_punch_in));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("TogglePunchOut"), _("Punch Out"), mem_fun(*this, &ARDOUR_UI::toggle_punch_out));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("TogglePunchOut"), _("Punch Out"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_punch_out));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("TogglePunch"), _("Punch In/Out"), mem_fun(*this, &ARDOUR_UI::toggle_punch));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("TogglePunch"), _("Punch In/Out"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_punch));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleClick"), _("Click"), mem_fun(*this, &ARDOUR_UI::toggle_click));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleClick"), _("Click"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_click));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleAutoInput"), _("Auto Input"), mem_fun(*this, &ARDOUR_UI::toggle_auto_input));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleAutoInput"), _("Auto Input"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_auto_input));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleAutoPlay"), _("Auto Play"), mem_fun(*this, &ARDOUR_UI::toggle_auto_play));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleAutoPlay"), _("Auto Play"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_auto_play));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleAutoReturn"), _("Auto Return"), mem_fun(*this, &ARDOUR_UI::toggle_auto_return));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleAutoReturn"), _("Auto Return"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_auto_return));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleVideoSync"), _("Sync startup to video"), mem_fun(*this, &ARDOUR_UI::toggle_video_sync));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleVideoSync"), _("Sync startup to video"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_video_sync));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleTimeMaster"), _("Time Master"), mem_fun(*this, &ARDOUR_UI::toggle_time_master));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleTimeMaster"), _("Time Master"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_time_master));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleExternalSync"), _(""), mem_fun(*this, &ARDOUR_UI::toggle_external_sync));
|
||||
act = ActionManager::register_toggle_action (transport_actions, X_("ToggleExternalSync"), _(""), sigc::mem_fun(*this, &ARDOUR_UI::toggle_external_sync));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack1"), _("Toggle Record Enable Track1"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 0U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack1"), _("Toggle Record Enable Track1"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 0U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack2"), _("Toggle Record Enable Track2"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 1U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack2"), _("Toggle Record Enable Track2"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 1U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack3"), _("Toggle Record Enable Track3"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 2U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack3"), _("Toggle Record Enable Track3"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 2U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack4"), _("Toggle Record Enable Track4"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 3U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack4"), _("Toggle Record Enable Track4"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 3U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack5"), _("Toggle Record Enable Track5"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 4U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack5"), _("Toggle Record Enable Track5"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 4U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack6"), _("Toggle Record Enable Track6"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 5U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack6"), _("Toggle Record Enable Track6"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 5U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack7"), _("Toggle Record Enable Track7"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 6U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack7"), _("Toggle Record Enable Track7"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 6U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack8"), _("Toggle Record Enable Track8"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 7U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack8"), _("Toggle Record Enable Track8"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 7U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack9"), _("Toggle Record Enable Track9"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 8U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack9"), _("Toggle Record Enable Track9"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 8U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack10"), _("Toggle Record Enable Track10"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 9U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack10"), _("Toggle Record Enable Track10"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 9U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack11"), _("Toggle Record Enable Track11"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 10U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack11"), _("Toggle Record Enable Track11"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 10U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack12"), _("Toggle Record Enable Track12"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 11U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack12"), _("Toggle Record Enable Track12"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 11U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack13"), _("Toggle Record Enable Track13"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 12U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack13"), _("Toggle Record Enable Track13"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 12U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack14"), _("Toggle Record Enable Track14"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 13U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack14"), _("Toggle Record Enable Track14"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 13U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack15"), _("Toggle Record Enable Track15"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 14U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack15"), _("Toggle Record Enable Track15"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 14U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack16"), _("Toggle Record Enable Track16"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 15U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack16"), _("Toggle Record Enable Track16"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 15U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack17"), _("Toggle Record Enable Track17"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 16U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack17"), _("Toggle Record Enable Track17"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 16U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack18"), _("Toggle Record Enable Track18"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 17U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack18"), _("Toggle Record Enable Track18"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 17U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack19"), _("Toggle Record Enable Track19"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 18U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack19"), _("Toggle Record Enable Track19"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 18U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack20"), _("Toggle Record Enable Track20"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 19U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack20"), _("Toggle Record Enable Track20"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 19U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack21"), _("Toggle Record Enable Track21"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 20U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack21"), _("Toggle Record Enable Track21"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 20U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack22"), _("Toggle Record Enable Track22"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 21U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack22"), _("Toggle Record Enable Track22"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 21U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack23"), _("Toggle Record Enable Track23"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 22U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack23"), _("Toggle Record Enable Track23"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 22U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack24"), _("Toggle Record Enable Track24"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 23U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack24"), _("Toggle Record Enable Track24"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 23U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack25"), _("Toggle Record Enable Track25"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 24U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack25"), _("Toggle Record Enable Track25"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 24U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack26"), _("Toggle Record Enable Track26"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 25U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack26"), _("Toggle Record Enable Track26"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 25U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack27"), _("Toggle Record Enable Track27"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 26U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack27"), _("Toggle Record Enable Track27"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 26U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack28"), _("Toggle Record Enable Track28"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 27U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack28"), _("Toggle Record Enable Track28"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 27U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack29"), _("Toggle Record Enable Track29"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 28U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack29"), _("Toggle Record Enable Track29"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 28U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack30"), _("Toggle Record Enable Track30"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 29U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack30"), _("Toggle Record Enable Track30"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 29U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack31"), _("Toggle Record Enable Track31"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 30U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack31"), _("Toggle Record Enable Track31"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 30U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack32"), _("Toggle Record Enable Track32"), bind (mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 31U));
|
||||
act = ActionManager::register_action (common_actions, X_("ToggleRecordEnableTrack32"), _("Toggle Record Enable Track32"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::toggle_record_enable), 31U));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
Glib::RefPtr<ActionGroup> shuttle_actions = ActionGroup::create ("ShuttleActions");
|
||||
|
||||
shuttle_actions->add (Action::create (X_("SetShuttleUnitsPercentage"), _("Percentage")), hide_return (bind (mem_fun (*Config, &RCConfiguration::set_shuttle_units), Percentage)));
|
||||
shuttle_actions->add (Action::create (X_("SetShuttleUnitsSemitones"), _("Semitones")), hide_return (bind (mem_fun (*Config, &RCConfiguration::set_shuttle_units), Semitones)));
|
||||
shuttle_actions->add (Action::create (X_("SetShuttleUnitsPercentage"), _("Percentage")), hide_return (sigc::bind (sigc::mem_fun (*Config, &RCConfiguration::set_shuttle_units), Percentage)));
|
||||
shuttle_actions->add (Action::create (X_("SetShuttleUnitsSemitones"), _("Semitones")), hide_return (sigc::bind (sigc::mem_fun (*Config, &RCConfiguration::set_shuttle_units), Semitones)));
|
||||
|
||||
Glib::RefPtr<ActionGroup> option_actions = ActionGroup::create ("options");
|
||||
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("SendMTC"), _("Send MTC"), mem_fun (*this, &ARDOUR_UI::toggle_send_mtc));
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("SendMTC"), _("Send MTC"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_send_mtc));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("SendMMC"), _("Send MMC"), mem_fun (*this, &ARDOUR_UI::toggle_send_mmc));
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("SendMMC"), _("Send MMC"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_send_mmc));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("UseMMC"), _("Use MMC"), mem_fun (*this, &ARDOUR_UI::toggle_use_mmc));
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("UseMMC"), _("Use MMC"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_use_mmc));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("SendMidiClock"), _("Send MIDI Clock"), mem_fun (*this, &ARDOUR_UI::toggle_send_midi_clock));
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("SendMidiClock"), _("Send MIDI Clock"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_send_midi_clock));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("SendMIDIfeedback"), _("Send MIDI Feedback"), mem_fun (*this, &ARDOUR_UI::toggle_send_midi_feedback));
|
||||
act = ActionManager::register_toggle_action (option_actions, X_("SendMIDIfeedback"), _("Send MIDI Feedback"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_send_midi_feedback));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
ActionManager::add_action_group (shuttle_actions);
|
||||
|
|
@ -585,7 +585,7 @@ ARDOUR_UI::use_menubar_as_top_menubar ()
|
|||
void
|
||||
ARDOUR_UI::setup_clock ()
|
||||
{
|
||||
ARDOUR_UI::Clock.connect (bind (mem_fun (big_clock, &AudioClock::set), false));
|
||||
ARDOUR_UI::Clock.connect (sigc::bind (sigc::mem_fun (big_clock, &AudioClock::set), false));
|
||||
|
||||
big_clock_window = new Window (WINDOW_TOPLEVEL);
|
||||
|
||||
|
|
@ -595,9 +595,9 @@ ARDOUR_UI::setup_clock ()
|
|||
|
||||
big_clock_window->set_title (_("Big Clock"));
|
||||
big_clock_window->set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
|
||||
big_clock_window->signal_realize().connect (bind (sigc::ptr_fun (set_decoration), big_clock_window, (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)));
|
||||
big_clock_window->signal_unmap().connect (bind (sigc::ptr_fun(&ActionManager::uncheck_toggleaction), X_("<Actions>/Common/ToggleBigClock")));
|
||||
big_clock_window->signal_key_press_event().connect (bind (sigc::ptr_fun (relay_key_press), big_clock_window), false);
|
||||
big_clock_window->signal_realize().connect (sigc::bind (sigc::ptr_fun (set_decoration), big_clock_window, (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)));
|
||||
big_clock_window->signal_unmap().connect (sigc::bind (sigc::ptr_fun(&ActionManager::uncheck_toggleaction), X_("<Actions>/Common/ToggleBigClock")));
|
||||
big_clock_window->signal_key_press_event().connect (sigc::bind (sigc::ptr_fun (relay_key_press), big_clock_window), false);
|
||||
|
||||
manage_window (*big_clock_window);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ ARDOUR_UI::create_mixer ()
|
|||
return -1;
|
||||
}
|
||||
|
||||
mixer->signal_window_state_event().connect (bind (mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), false));
|
||||
mixer->signal_window_state_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), false));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,13 +50,13 @@ using namespace sigc;
|
|||
void
|
||||
ARDOUR_UI::toggle_external_sync()
|
||||
{
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleExternalSync", mem_fun (session->config, &SessionConfiguration::set_external_sync), mem_fun (session->config, &SessionConfiguration::get_external_sync));
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleExternalSync", sigc::mem_fun (session->config, &SessionConfiguration::set_external_sync), sigc::mem_fun (session->config, &SessionConfiguration::get_external_sync));
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::toggle_time_master ()
|
||||
{
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleTimeMaster", mem_fun (session->config, &SessionConfiguration::set_jack_time_master), mem_fun (session->config, &SessionConfiguration::get_jack_time_master));
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleTimeMaster", sigc::mem_fun (session->config, &SessionConfiguration::set_jack_time_master), sigc::mem_fun (session->config, &SessionConfiguration::get_jack_time_master));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -92,19 +92,19 @@ ARDOUR_UI::toggle_send_midi_feedback ()
|
|||
void
|
||||
ARDOUR_UI::toggle_auto_input ()
|
||||
{
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleAutoInput", mem_fun (session->config, &SessionConfiguration::set_auto_input), mem_fun (session->config, &SessionConfiguration::get_auto_input));
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleAutoInput", sigc::mem_fun (session->config, &SessionConfiguration::set_auto_input), sigc::mem_fun (session->config, &SessionConfiguration::get_auto_input));
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::toggle_auto_play ()
|
||||
{
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleAutoPlay", mem_fun (session->config, &SessionConfiguration::set_auto_play), mem_fun (session->config, &SessionConfiguration::get_auto_play));
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleAutoPlay", sigc::mem_fun (session->config, &SessionConfiguration::set_auto_play), sigc::mem_fun (session->config, &SessionConfiguration::get_auto_play));
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::toggle_auto_return ()
|
||||
{
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleAutoReturn", mem_fun (session->config, &SessionConfiguration::set_auto_return), mem_fun (session->config, &SessionConfiguration::get_auto_return));
|
||||
ActionManager::toggle_config_state_foo ("Transport", "ToggleAutoReturn", sigc::mem_fun (session->config, &SessionConfiguration::set_auto_return), sigc::mem_fun (session->config, &SessionConfiguration::get_auto_return));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -271,8 +271,8 @@ ARDOUR_UI::toggle_editing_space()
|
|||
void
|
||||
ARDOUR_UI::setup_session_options ()
|
||||
{
|
||||
session->config.ParameterChanged.connect (mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
session->config.map_parameters (mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
session->config.ParameterChanged.connect (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
session->config.map_parameters (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
@ -299,11 +299,11 @@ ARDOUR_UI::handle_sync_change ()
|
|||
void
|
||||
ARDOUR_UI::parameter_changed (std::string p)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &ARDOUR_UI::parameter_changed), p));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::parameter_changed, p)
|
||||
|
||||
if (p == "external-sync") {
|
||||
|
||||
ActionManager::map_some_state ("Transport", "ToggleExternalSync", mem_fun (session->config, &SessionConfiguration::get_external_sync));
|
||||
ActionManager::map_some_state ("Transport", "ToggleExternalSync", sigc::mem_fun (session->config, &SessionConfiguration::get_external_sync));
|
||||
|
||||
if (!session->config.get_external_sync()) {
|
||||
sync_button.set_label (_("Internal"));
|
||||
|
|
@ -339,27 +339,27 @@ ARDOUR_UI::parameter_changed (std::string p)
|
|||
} else if (p == "midi-feedback") {
|
||||
ActionManager::map_some_state ("options", "SendMIDIfeedback", &RCConfiguration::get_midi_feedback);
|
||||
} else if (p == "auto-play") {
|
||||
ActionManager::map_some_state ("Transport", "ToggleAutoPlay", mem_fun (session->config, &SessionConfiguration::get_auto_play));
|
||||
ActionManager::map_some_state ("Transport", "ToggleAutoPlay", sigc::mem_fun (session->config, &SessionConfiguration::get_auto_play));
|
||||
} else if (p == "auto-return") {
|
||||
ActionManager::map_some_state ("Transport", "ToggleAutoReturn", mem_fun (session->config, &SessionConfiguration::get_auto_return));
|
||||
ActionManager::map_some_state ("Transport", "ToggleAutoReturn", sigc::mem_fun (session->config, &SessionConfiguration::get_auto_return));
|
||||
} else if (p == "auto-input") {
|
||||
ActionManager::map_some_state ("Transport", "ToggleAutoInput", mem_fun (session->config, &SessionConfiguration::get_auto_input));
|
||||
ActionManager::map_some_state ("Transport", "ToggleAutoInput", sigc::mem_fun (session->config, &SessionConfiguration::get_auto_input));
|
||||
} else if (p == "punch-out") {
|
||||
ActionManager::map_some_state ("Transport", "TogglePunchOut", mem_fun (session->config, &SessionConfiguration::get_punch_out));
|
||||
ActionManager::map_some_state ("Transport", "TogglePunchOut", sigc::mem_fun (session->config, &SessionConfiguration::get_punch_out));
|
||||
if (!session->config.get_punch_out()) {
|
||||
unset_dual_punch ();
|
||||
}
|
||||
} else if (p == "punch-in") {
|
||||
ActionManager::map_some_state ("Transport", "TogglePunchIn", mem_fun (session->config, &SessionConfiguration::get_punch_in));
|
||||
ActionManager::map_some_state ("Transport", "TogglePunchIn", sigc::mem_fun (session->config, &SessionConfiguration::get_punch_in));
|
||||
if (!session->config.get_punch_in()) {
|
||||
unset_dual_punch ();
|
||||
}
|
||||
} else if (p == "clicking") {
|
||||
ActionManager::map_some_state ("Transport", "ToggleClick", &RCConfiguration::get_clicking);
|
||||
} else if (p == "jack-time-master") {
|
||||
ActionManager::map_some_state ("Transport", "ToggleTimeMaster", mem_fun (session->config, &SessionConfiguration::get_jack_time_master));
|
||||
ActionManager::map_some_state ("Transport", "ToggleTimeMaster", sigc::mem_fun (session->config, &SessionConfiguration::get_jack_time_master));
|
||||
} else if (p == "use-video-sync") {
|
||||
ActionManager::map_some_state ("Transport", "ToggleVideoSync", mem_fun (session->config, &SessionConfiguration::get_use_video_sync));
|
||||
ActionManager::map_some_state ("Transport", "ToggleVideoSync", sigc::mem_fun (session->config, &SessionConfiguration::get_use_video_sync));
|
||||
} else if (p == "shuttle-behaviour") {
|
||||
|
||||
switch (Config->get_shuttle_behaviour ()) {
|
||||
|
|
@ -399,7 +399,7 @@ ARDOUR_UI::parameter_changed (std::string p)
|
|||
void
|
||||
ARDOUR_UI::reset_main_clocks ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &ARDOUR_UI::reset_main_clocks));
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::reset_main_clocks)
|
||||
|
||||
if (session) {
|
||||
primary_clock.set (session->audible_frame(), true);
|
||||
|
|
|
|||
|
|
@ -215,9 +215,9 @@ AudioClock::AudioClock (
|
|||
*/
|
||||
|
||||
clock_base.add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK|Gdk::SCROLL_MASK);
|
||||
clock_base.signal_button_release_event().connect (bind (mem_fun (*this, &AudioClock::field_button_release_event), Timecode_Hours));
|
||||
clock_base.signal_button_release_event().connect (sigc::bind (sigc::mem_fun (*this, &AudioClock::field_button_release_event), Timecode_Hours));
|
||||
|
||||
Session::TimecodeOffsetChanged.connect (mem_fun (*this, &AudioClock::timecode_offset_changed));
|
||||
Session::TimecodeOffsetChanged.connect (sigc::mem_fun (*this, &AudioClock::timecode_offset_changed));
|
||||
|
||||
if (editable) {
|
||||
setup_events ();
|
||||
|
|
@ -300,103 +300,103 @@ AudioClock::setup_events ()
|
|||
ms_minutes_ebox.set_flags (Gtk::CAN_FOCUS);
|
||||
ms_seconds_ebox.set_flags (Gtk::CAN_FOCUS);
|
||||
|
||||
hours_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), Timecode_Hours));
|
||||
minutes_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), Timecode_Seconds));
|
||||
frames_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), AudioFrames));
|
||||
bars_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), Bars));
|
||||
beats_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), Beats));
|
||||
ticks_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), Ticks));
|
||||
ms_hours_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_motion_notify_event().connect (bind (mem_fun(*this, &AudioClock::field_motion_notify_event), MS_Seconds));
|
||||
hours_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), Timecode_Hours));
|
||||
minutes_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), Timecode_Seconds));
|
||||
frames_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), AudioFrames));
|
||||
bars_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), Bars));
|
||||
beats_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), Beats));
|
||||
ticks_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), Ticks));
|
||||
ms_hours_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_motion_notify_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_motion_notify_event), MS_Seconds));
|
||||
|
||||
hours_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), Timecode_Hours));
|
||||
minutes_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), Timecode_Seconds));
|
||||
frames_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), AudioFrames));
|
||||
bars_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), Bars));
|
||||
beats_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), Beats));
|
||||
ticks_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), Ticks));
|
||||
ms_hours_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_button_press_event().connect (bind (mem_fun(*this, &AudioClock::field_button_press_event), MS_Seconds));
|
||||
hours_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), Timecode_Hours));
|
||||
minutes_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), Timecode_Seconds));
|
||||
frames_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), AudioFrames));
|
||||
bars_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), Bars));
|
||||
beats_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), Beats));
|
||||
ticks_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), Ticks));
|
||||
ms_hours_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_button_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_press_event), MS_Seconds));
|
||||
|
||||
hours_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), Timecode_Hours));
|
||||
minutes_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), Timecode_Seconds));
|
||||
frames_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), AudioFrames));
|
||||
bars_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), Bars));
|
||||
beats_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), Beats));
|
||||
ticks_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), Ticks));
|
||||
ms_hours_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_button_release_event().connect (bind (mem_fun(*this, &AudioClock::field_button_release_event), MS_Seconds));
|
||||
hours_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), Timecode_Hours));
|
||||
minutes_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), Timecode_Seconds));
|
||||
frames_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), AudioFrames));
|
||||
bars_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), Bars));
|
||||
beats_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), Beats));
|
||||
ticks_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), Ticks));
|
||||
ms_hours_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_release_event), MS_Seconds));
|
||||
|
||||
hours_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), Timecode_Hours));
|
||||
minutes_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), Timecode_Seconds));
|
||||
frames_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), AudioFrames));
|
||||
bars_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), Bars));
|
||||
beats_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), Beats));
|
||||
ticks_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), Ticks));
|
||||
ms_hours_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_scroll_event().connect (bind (mem_fun(*this, &AudioClock::field_button_scroll_event), MS_Seconds));
|
||||
hours_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), Timecode_Hours));
|
||||
minutes_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), Timecode_Seconds));
|
||||
frames_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), AudioFrames));
|
||||
bars_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), Bars));
|
||||
beats_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), Beats));
|
||||
ticks_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), Ticks));
|
||||
ms_hours_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_scroll_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_button_scroll_event), MS_Seconds));
|
||||
|
||||
hours_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), Timecode_Hours));
|
||||
minutes_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), Timecode_Seconds));
|
||||
frames_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), AudioFrames));
|
||||
bars_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), Bars));
|
||||
beats_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), Beats));
|
||||
ticks_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), Ticks));
|
||||
ms_hours_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_key_press_event().connect (bind (mem_fun(*this, &AudioClock::field_key_press_event), MS_Seconds));
|
||||
hours_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), Timecode_Hours));
|
||||
minutes_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), Timecode_Seconds));
|
||||
frames_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), AudioFrames));
|
||||
bars_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), Bars));
|
||||
beats_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), Beats));
|
||||
ticks_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), Ticks));
|
||||
ms_hours_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_key_press_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_press_event), MS_Seconds));
|
||||
|
||||
hours_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), Timecode_Hours));
|
||||
minutes_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), Timecode_Seconds));
|
||||
frames_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), AudioFrames));
|
||||
bars_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), Bars));
|
||||
beats_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), Beats));
|
||||
ticks_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), Ticks));
|
||||
ms_hours_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_key_release_event().connect (bind (mem_fun(*this, &AudioClock::field_key_release_event), MS_Seconds));
|
||||
hours_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), Timecode_Hours));
|
||||
minutes_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), Timecode_Seconds));
|
||||
frames_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), AudioFrames));
|
||||
bars_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), Bars));
|
||||
beats_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), Beats));
|
||||
ticks_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), Ticks));
|
||||
ms_hours_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_key_release_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_key_release_event), MS_Seconds));
|
||||
|
||||
hours_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), Timecode_Hours));
|
||||
minutes_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), Timecode_Seconds));
|
||||
frames_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), AudioFrames));
|
||||
bars_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), Bars));
|
||||
beats_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), Beats));
|
||||
ticks_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), Ticks));
|
||||
ms_hours_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_focus_in_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_in_event), MS_Seconds));
|
||||
hours_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), Timecode_Hours));
|
||||
minutes_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), Timecode_Seconds));
|
||||
frames_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), AudioFrames));
|
||||
bars_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), Bars));
|
||||
beats_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), Beats));
|
||||
ticks_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), Ticks));
|
||||
ms_hours_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_focus_in_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_in_event), MS_Seconds));
|
||||
|
||||
hours_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), Timecode_Hours));
|
||||
minutes_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), Timecode_Seconds));
|
||||
frames_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), AudioFrames));
|
||||
bars_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), Bars));
|
||||
beats_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), Beats));
|
||||
ticks_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), Ticks));
|
||||
ms_hours_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_focus_out_event().connect (bind (mem_fun(*this, &AudioClock::field_focus_out_event), MS_Seconds));
|
||||
hours_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), Timecode_Hours));
|
||||
minutes_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), Timecode_Minutes));
|
||||
seconds_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), Timecode_Seconds));
|
||||
frames_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), Timecode_Frames));
|
||||
audio_frames_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), AudioFrames));
|
||||
bars_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), Bars));
|
||||
beats_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), Beats));
|
||||
ticks_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), Ticks));
|
||||
ms_hours_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), MS_Hours));
|
||||
ms_minutes_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), MS_Minutes));
|
||||
ms_seconds_ebox.signal_focus_out_event().connect (sigc::bind (sigc::mem_fun(*this, &AudioClock::field_focus_out_event), MS_Seconds));
|
||||
|
||||
clock_base.signal_focus_in_event().connect (mem_fun (*this, &AudioClock::drop_focus_handler));
|
||||
clock_base.signal_focus_in_event().connect (sigc::mem_fun (*this, &AudioClock::drop_focus_handler));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
@ -1955,17 +1955,17 @@ AudioClock::build_ops_menu ()
|
|||
ops_menu->set_name ("ArdourContextMenu");
|
||||
|
||||
if (!Profile->get_sae()) {
|
||||
ops_items.push_back (MenuElem (_("Timecode"), bind (mem_fun(*this, &AudioClock::set_mode), Timecode)));
|
||||
ops_items.push_back (MenuElem (_("Timecode"), sigc::bind (sigc::mem_fun(*this, &AudioClock::set_mode), Timecode)));
|
||||
}
|
||||
ops_items.push_back (MenuElem (_("Bars:Beats"), bind (mem_fun(*this, &AudioClock::set_mode), BBT)));
|
||||
ops_items.push_back (MenuElem (_("Minutes:Seconds"), bind (mem_fun(*this, &AudioClock::set_mode), MinSec)));
|
||||
ops_items.push_back (MenuElem (_("Samples"), bind (mem_fun(*this, &AudioClock::set_mode), Frames)));
|
||||
ops_items.push_back (MenuElem (_("Off"), bind (mem_fun(*this, &AudioClock::set_mode), Off)));
|
||||
ops_items.push_back (MenuElem (_("Bars:Beats"), sigc::bind (sigc::mem_fun(*this, &AudioClock::set_mode), BBT)));
|
||||
ops_items.push_back (MenuElem (_("Minutes:Seconds"), sigc::bind (sigc::mem_fun(*this, &AudioClock::set_mode), MinSec)));
|
||||
ops_items.push_back (MenuElem (_("Samples"), sigc::bind (sigc::mem_fun(*this, &AudioClock::set_mode), Frames)));
|
||||
ops_items.push_back (MenuElem (_("Off"), sigc::bind (sigc::mem_fun(*this, &AudioClock::set_mode), Off)));
|
||||
|
||||
if (editable && !is_duration && !_follows_playhead) {
|
||||
ops_items.push_back (SeparatorElem());
|
||||
ops_items.push_back (MenuElem (_("Set From Playhead"), mem_fun(*this, &AudioClock::set_from_playhead)));
|
||||
ops_items.push_back (MenuElem (_("Locate to this time"), mem_fun(*this, &AudioClock::locate)));
|
||||
ops_items.push_back (MenuElem (_("Set From Playhead"), sigc::mem_fun(*this, &AudioClock::set_from_playhead)));
|
||||
ops_items.push_back (MenuElem (_("Locate to this time"), sigc::mem_fun(*this, &AudioClock::locate)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ AudioRegionEditor::AudioRegionEditor (Session& s, boost::shared_ptr<AudioRegion>
|
|||
set_name ("AudioRegionEditorWindow");
|
||||
add_events (Gdk::KEY_PRESS_MASK|Gdk::KEY_RELEASE_MASK);
|
||||
|
||||
signal_delete_event().connect (bind (sigc::ptr_fun (just_hide_it), static_cast<Window *> (this)));
|
||||
signal_delete_event().connect (sigc::bind (sigc::ptr_fun (just_hide_it), static_cast<Window *> (this)));
|
||||
|
||||
set_title (string_compose (_("Region %1"), _region->name()));
|
||||
|
||||
|
|
@ -156,7 +156,7 @@ AudioRegionEditor::AudioRegionEditor (Session& s, boost::shared_ptr<AudioRegion>
|
|||
bounds_changed (Change (StartChanged|LengthChanged|PositionChanged|Region::SyncOffsetChanged));
|
||||
gain_changed ();
|
||||
|
||||
_region->StateChanged.connect (mem_fun(*this, &AudioRegionEditor::region_changed));
|
||||
_region->StateChanged.connect (sigc::mem_fun(*this, &AudioRegionEditor::region_changed));
|
||||
|
||||
spin_arrow_grab = false;
|
||||
|
||||
|
|
@ -219,17 +219,17 @@ AudioRegionEditor::breleased (GdkEventButton* /*ev*/, Gtk::SpinButton* /*but*/,
|
|||
void
|
||||
AudioRegionEditor::connect_editor_events ()
|
||||
{
|
||||
name_entry.signal_changed().connect (mem_fun(*this, &AudioRegionEditor::name_entry_changed));
|
||||
name_entry.signal_changed().connect (sigc::mem_fun(*this, &AudioRegionEditor::name_entry_changed));
|
||||
|
||||
position_clock.ValueChanged.connect (mem_fun(*this, &AudioRegionEditor::position_clock_changed));
|
||||
end_clock.ValueChanged.connect (mem_fun(*this, &AudioRegionEditor::end_clock_changed));
|
||||
length_clock.ValueChanged.connect (mem_fun(*this, &AudioRegionEditor::length_clock_changed));
|
||||
sync_offset_absolute_clock.ValueChanged.connect (mem_fun (*this, &AudioRegionEditor::sync_offset_absolute_clock_changed));
|
||||
sync_offset_relative_clock.ValueChanged.connect (mem_fun (*this, &AudioRegionEditor::sync_offset_relative_clock_changed));
|
||||
gain_adjustment.signal_value_changed().connect (mem_fun (*this, &AudioRegionEditor::gain_adjustment_changed));
|
||||
position_clock.ValueChanged.connect (sigc::mem_fun(*this, &AudioRegionEditor::position_clock_changed));
|
||||
end_clock.ValueChanged.connect (sigc::mem_fun(*this, &AudioRegionEditor::end_clock_changed));
|
||||
length_clock.ValueChanged.connect (sigc::mem_fun(*this, &AudioRegionEditor::length_clock_changed));
|
||||
sync_offset_absolute_clock.ValueChanged.connect (sigc::mem_fun (*this, &AudioRegionEditor::sync_offset_absolute_clock_changed));
|
||||
sync_offset_relative_clock.ValueChanged.connect (sigc::mem_fun (*this, &AudioRegionEditor::sync_offset_relative_clock_changed));
|
||||
gain_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &AudioRegionEditor::gain_adjustment_changed));
|
||||
|
||||
audition_button.signal_toggled().connect (mem_fun(*this, &AudioRegionEditor::audition_button_toggled));
|
||||
_session.AuditionActive.connect (mem_fun(*this, &AudioRegionEditor::audition_state_changed));
|
||||
audition_button.signal_toggled().connect (sigc::mem_fun(*this, &AudioRegionEditor::audition_button_toggled));
|
||||
_session.AuditionActive.connect (sigc::mem_fun(*this, &AudioRegionEditor::audition_state_changed));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -376,7 +376,7 @@ AudioRegionEditor::name_entry_changed ()
|
|||
void
|
||||
AudioRegionEditor::audition_state_changed (bool yn)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &AudioRegionEditor::audition_state_changed), yn));
|
||||
ENSURE_GUI_THREAD (*this, &AudioRegionEditor::audition_state_changed, yn)
|
||||
|
||||
if (!yn) {
|
||||
audition_button.set_active (false);
|
||||
|
|
|
|||
|
|
@ -233,10 +233,10 @@ AudioRegionView::init (Gdk::Color const & basic_color, bool wfd)
|
|||
|
||||
reset_width_dependent_items (_pixel_width);
|
||||
|
||||
fade_in_shape->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_fade_in_event), fade_in_shape, this));
|
||||
fade_in_handle->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_fade_in_handle_event), fade_in_handle, this));
|
||||
fade_out_shape->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_fade_out_event), fade_out_shape, this));
|
||||
fade_out_handle->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_fade_out_handle_event), fade_out_handle, this));
|
||||
fade_in_shape->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_fade_in_event), fade_in_shape, this));
|
||||
fade_in_handle->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_fade_in_handle_event), fade_in_handle, this));
|
||||
fade_out_shape->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_fade_out_event), fade_out_shape, this));
|
||||
fade_out_handle->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_fade_out_handle_event), fade_out_handle, this));
|
||||
|
||||
set_colors ();
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ AudioRegionView::audio_region() const
|
|||
void
|
||||
AudioRegionView::region_changed (Change what_changed)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &AudioRegionView::region_changed), what_changed));
|
||||
ENSURE_GUI_THREAD (*this, &AudioRegionView::region_changed, what_changed)
|
||||
//cerr << "AudioRegionView::region_changed() called" << endl;
|
||||
|
||||
RegionView::region_changed(what_changed);
|
||||
|
|
@ -348,7 +348,7 @@ AudioRegionView::fade_out_active_changed ()
|
|||
void
|
||||
AudioRegionView::region_scale_amplitude_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &AudioRegionView::region_scale_amplitude_changed));
|
||||
ENSURE_GUI_THREAD (*this, &AudioRegionView::region_scale_amplitude_changed)
|
||||
|
||||
for (uint32_t n = 0; n < waves.size(); ++n) {
|
||||
// force a reload of the cache
|
||||
|
|
@ -870,7 +870,7 @@ AudioRegionView::create_waves ()
|
|||
// cerr << "\tchannel " << n << endl;
|
||||
|
||||
if (wait_for_data) {
|
||||
if (audio_region()->audio_source(n)->peaks_ready (bind (mem_fun(*this, &AudioRegionView::peaks_ready_handler), n), data_ready_connection)) {
|
||||
if (audio_region()->audio_source(n)->peaks_ready (sigc::bind (sigc::mem_fun(*this, &AudioRegionView::peaks_ready_handler), n), data_ready_connection)) {
|
||||
// cerr << "\tData is ready\n";
|
||||
create_one_wave (n, true);
|
||||
} else {
|
||||
|
|
@ -983,7 +983,7 @@ AudioRegionView::create_one_wave (uint32_t which, bool /*direct*/)
|
|||
void
|
||||
AudioRegionView::peaks_ready_handler (uint32_t which)
|
||||
{
|
||||
Gtkmm2ext::UI::instance()->call_slot (bind (mem_fun(*this, &AudioRegionView::create_one_wave), which, false));
|
||||
Gtkmm2ext::UI::instance()->call_slot (sigc::bind (sigc::mem_fun(*this, &AudioRegionView::create_one_wave), which, false));
|
||||
// cerr << "AudioRegionView::peaks_ready_handler() called on " << which << " this: " << this << endl;
|
||||
}
|
||||
|
||||
|
|
@ -1188,7 +1188,7 @@ AudioRegionView::add_ghost (TimeAxisView& tv)
|
|||
ghost->set_colors();
|
||||
ghosts.push_back (ghost);
|
||||
|
||||
ghost->GoingAway.connect (mem_fun(*this, &AudioRegionView::remove_ghost));
|
||||
ghost->GoingAway.connect (sigc::mem_fun(*this, &AudioRegionView::remove_ghost));
|
||||
|
||||
return ghost;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -189,7 +189,8 @@ AudioStreamView::add_region_view_internal (boost::shared_ptr<Region> r, bool wai
|
|||
region_views.push_front (region_view);
|
||||
|
||||
/* catch regionview going away */
|
||||
r->GoingAway.connect (bind (mem_fun (*this, &AudioStreamView::remove_region_view), boost::weak_ptr<Region> (r)));
|
||||
cerr << this << " connected to region " << r << endl;
|
||||
r->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &AudioStreamView::remove_region_view), boost::weak_ptr<Region> (r)));
|
||||
|
||||
RegionViewAdded (region_view);
|
||||
|
||||
|
|
@ -199,7 +200,9 @@ AudioStreamView::add_region_view_internal (boost::shared_ptr<Region> r, bool wai
|
|||
void
|
||||
AudioStreamView::remove_region_view (boost::weak_ptr<Region> weak_r)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &AudioStreamView::remove_region_view), weak_r));
|
||||
cerr << this << " RRV entry\n";
|
||||
|
||||
ENSURE_GUI_THREAD (*this, &AudioStreamView::remove_region_view, weak_r)
|
||||
|
||||
boost::shared_ptr<Region> r (weak_r.lock());
|
||||
|
||||
|
|
@ -207,6 +210,8 @@ AudioStreamView::remove_region_view (boost::weak_ptr<Region> weak_r)
|
|||
return;
|
||||
}
|
||||
|
||||
cerr << this << " RRV action for " << r << endl;
|
||||
|
||||
if (!_trackview.session().deletion_in_progress()) {
|
||||
|
||||
for (CrossfadeViewList::iterator i = crossfade_views.begin(); i != crossfade_views.end();) {
|
||||
|
|
@ -253,7 +258,7 @@ void
|
|||
AudioStreamView::playlist_modified (boost::shared_ptr<Diskstream> ds)
|
||||
{
|
||||
/* we do not allow shared_ptr<T> to be bound to slots */
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &AudioStreamView::playlist_modified_weak), ds));
|
||||
ENSURE_GUI_THREAD (*this, &AudioStreamView::playlist_modified_weak, ds)
|
||||
|
||||
StreamView::playlist_modified (ds);
|
||||
|
||||
|
|
@ -276,16 +281,14 @@ AudioStreamView::playlist_changed_weak (boost::weak_ptr<Diskstream> ds)
|
|||
void
|
||||
AudioStreamView::playlist_changed (boost::shared_ptr<Diskstream> ds)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (
|
||||
mem_fun (*this, &AudioStreamView::playlist_changed_weak),
|
||||
boost::weak_ptr<Diskstream> (ds)));
|
||||
ENSURE_GUI_THREAD (*this, &AudioStreamView::playlist_changed_weak, boost::weak_ptr<Diskstream> (ds));
|
||||
|
||||
StreamView::playlist_changed(ds);
|
||||
|
||||
boost::shared_ptr<AudioPlaylist> apl = boost::dynamic_pointer_cast<AudioPlaylist>(ds->playlist());
|
||||
if (apl) {
|
||||
playlist_connections.push_back (apl->NewCrossfade.connect (
|
||||
mem_fun (*this, &AudioStreamView::add_crossfade)));
|
||||
sigc::mem_fun (*this, &AudioStreamView::add_crossfade)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -309,7 +312,7 @@ AudioStreamView::add_crossfade (boost::shared_ptr<Crossfade> crossfade)
|
|||
|
||||
/* we do not allow shared_ptr<T> to be bound to slots */
|
||||
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &AudioStreamView::add_crossfade_weak), boost::weak_ptr<Crossfade> (crossfade)));
|
||||
ENSURE_GUI_THREAD (*this, &AudioStreamView::add_crossfade_weak, boost::weak_ptr<Crossfade> (crossfade));
|
||||
|
||||
/* first see if we already have a CrossfadeView for this Crossfade */
|
||||
|
||||
|
|
@ -344,7 +347,7 @@ AudioStreamView::add_crossfade (boost::shared_ptr<Crossfade> crossfade)
|
|||
region_color,
|
||||
*lview, *rview);
|
||||
cv->set_valid (true);
|
||||
crossfade->Invalidated.connect (mem_fun (*this, &AudioStreamView::remove_crossfade));
|
||||
crossfade->Invalidated.connect (sigc::mem_fun (*this, &AudioStreamView::remove_crossfade));
|
||||
crossfade_views[cv->crossfade] = cv;
|
||||
if (!_trackview.session().config.get_xfades_visible() || !crossfades_visible) {
|
||||
cv->hide ();
|
||||
|
|
@ -356,7 +359,7 @@ AudioStreamView::add_crossfade (boost::shared_ptr<Crossfade> crossfade)
|
|||
void
|
||||
AudioStreamView::remove_crossfade (boost::shared_ptr<Region> r)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &AudioStreamView::remove_crossfade), r));
|
||||
ENSURE_GUI_THREAD (*this, &AudioStreamView::remove_crossfade, r)
|
||||
|
||||
boost::shared_ptr<Crossfade> xfade = boost::dynamic_pointer_cast<Crossfade> (r);
|
||||
|
||||
|
|
@ -485,8 +488,8 @@ AudioStreamView::setup_rec_box ()
|
|||
if (src) {
|
||||
sources.push_back (src);
|
||||
|
||||
rec_data_ready_connections.push_back (src->PeakRangeReady.connect (bind
|
||||
(mem_fun (*this, &AudioStreamView::rec_peak_range_ready),
|
||||
rec_data_ready_connections.push_back (src->PeakRangeReady.connect (sigc::bind
|
||||
(sigc::mem_fun (*this, &AudioStreamView::rec_peak_range_ready),
|
||||
boost::weak_ptr<Source>(src))));
|
||||
}
|
||||
}
|
||||
|
|
@ -554,7 +557,7 @@ AudioStreamView::setup_rec_box ()
|
|||
|
||||
screen_update_connection.disconnect();
|
||||
screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (
|
||||
mem_fun (*this, &AudioStreamView::update_rec_box));
|
||||
sigc::mem_fun (*this, &AudioStreamView::update_rec_box));
|
||||
rec_updating = true;
|
||||
rec_active = true;
|
||||
|
||||
|
|
@ -624,7 +627,7 @@ AudioStreamView::foreach_crossfadeview (void (CrossfadeView::*pmf)(void))
|
|||
void
|
||||
AudioStreamView::rec_peak_range_ready (nframes_t start, nframes_t cnt, boost::weak_ptr<Source> weak_src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun (*this, &AudioStreamView::rec_peak_range_ready), start, cnt, weak_src));
|
||||
ENSURE_GUI_THREAD (*this, &AudioStreamView::rec_peak_range_ready, start, cnt, weak_src)
|
||||
|
||||
boost::shared_ptr<Source> src (weak_src.lock());
|
||||
|
||||
|
|
|
|||
|
|
@ -108,8 +108,8 @@ AudioTimeAxisView::AudioTimeAxisView (PublicEditor& ed, Session& sess, boost::sh
|
|||
}
|
||||
|
||||
if (_route->panner()) {
|
||||
_route->panner()->Changed.connect (bind (
|
||||
mem_fun(*this, &AudioTimeAxisView::ensure_pan_views),
|
||||
_route->panner()->Changed.connect (sigc::bind (
|
||||
sigc::mem_fun(*this, &AudioTimeAxisView::ensure_pan_views),
|
||||
false));
|
||||
}
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ AudioTimeAxisView::AudioTimeAxisView (PublicEditor& ed, Session& sess, boost::sh
|
|||
if (is_audio_track()) {
|
||||
|
||||
/* ask for notifications of any new RegionViews */
|
||||
_view->RegionViewAdded.connect (mem_fun(*this, &AudioTimeAxisView::region_view_added));
|
||||
_view->RegionViewAdded.connect (sigc::mem_fun(*this, &AudioTimeAxisView::region_view_added));
|
||||
|
||||
if (!_editor.have_idled()) {
|
||||
/* first idle will do what we need */
|
||||
|
|
@ -181,8 +181,8 @@ AudioTimeAxisView::append_extra_display_menu_items ()
|
|||
|
||||
// crossfade stuff
|
||||
if (!Profile->get_sae()) {
|
||||
items.push_back (MenuElem (_("Hide all crossfades"), mem_fun(*this, &AudioTimeAxisView::hide_all_xfades)));
|
||||
items.push_back (MenuElem (_("Show all crossfades"), mem_fun(*this, &AudioTimeAxisView::show_all_xfades)));
|
||||
items.push_back (MenuElem (_("Hide all crossfades"), sigc::mem_fun(*this, &AudioTimeAxisView::hide_all_xfades)));
|
||||
items.push_back (MenuElem (_("Show all crossfades"), sigc::mem_fun(*this, &AudioTimeAxisView::show_all_xfades)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -198,15 +198,15 @@ AudioTimeAxisView::build_mode_menu()
|
|||
RadioMenuItem::Group mode_group;
|
||||
|
||||
items.push_back (RadioMenuElem (mode_group, _("Normal"),
|
||||
bind (mem_fun (*this, &AudioTimeAxisView::set_track_mode), ARDOUR::Normal)));
|
||||
sigc::bind (sigc::mem_fun (*this, &AudioTimeAxisView::set_track_mode), ARDOUR::Normal)));
|
||||
normal_track_mode_item = dynamic_cast<RadioMenuItem*>(&items.back());
|
||||
|
||||
items.push_back (RadioMenuElem (mode_group, _("Non Overlapping"),
|
||||
bind (mem_fun (*this, &AudioTimeAxisView::set_track_mode), ARDOUR::NonLayered)));
|
||||
sigc::bind (sigc::mem_fun (*this, &AudioTimeAxisView::set_track_mode), ARDOUR::NonLayered)));
|
||||
non_layered_track_mode_item = dynamic_cast<RadioMenuItem*>(&items.back());
|
||||
|
||||
items.push_back (RadioMenuElem (mode_group, _("Tape"),
|
||||
bind (mem_fun (*this, &AudioTimeAxisView::set_track_mode), ARDOUR::Destructive)));
|
||||
sigc::bind (sigc::mem_fun (*this, &AudioTimeAxisView::set_track_mode), ARDOUR::Destructive)));
|
||||
destructive_track_mode_item = dynamic_cast<RadioMenuItem*>(&items.back());
|
||||
|
||||
switch (track()->mode()) {
|
||||
|
|
|
|||
|
|
@ -45,16 +45,16 @@ AutomationController::AutomationController(boost::shared_ptr<AutomationControl>
|
|||
set_style (BarController::LeftToRight);
|
||||
set_use_parent (true);
|
||||
|
||||
StartGesture.connect (mem_fun(*this, &AutomationController::start_touch));
|
||||
StopGesture.connect (mem_fun(*this, &AutomationController::end_touch));
|
||||
StartGesture.connect (sigc::mem_fun(*this, &AutomationController::start_touch));
|
||||
StopGesture.connect (sigc::mem_fun(*this, &AutomationController::end_touch));
|
||||
|
||||
_adjustment->signal_value_changed().connect (
|
||||
mem_fun(*this, &AutomationController::value_adjusted));
|
||||
sigc::mem_fun(*this, &AutomationController::value_adjusted));
|
||||
|
||||
_screen_update_connection = ARDOUR_UI::RapidScreenUpdate.connect (
|
||||
mem_fun (*this, &AutomationController::display_effective_value));
|
||||
sigc::mem_fun (*this, &AutomationController::display_effective_value));
|
||||
|
||||
ac->Changed.connect (mem_fun(*this, &AutomationController::value_changed));
|
||||
ac->Changed.connect (sigc::mem_fun(*this, &AutomationController::value_changed));
|
||||
}
|
||||
|
||||
AutomationController::~AutomationController()
|
||||
|
|
@ -130,7 +130,7 @@ AutomationController::end_touch()
|
|||
void
|
||||
AutomationController::automation_state_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &AutomationController::automation_state_changed));
|
||||
ENSURE_GUI_THREAD (*this, &AutomationController::automation_state_changed)
|
||||
|
||||
bool x = (_controllable->automation_state() != Off);
|
||||
|
||||
|
|
@ -140,7 +140,7 @@ AutomationController::automation_state_changed ()
|
|||
|
||||
if (x) {
|
||||
_screen_update_connection = ARDOUR_UI::RapidScreenUpdate.connect (
|
||||
mem_fun (*this, &AutomationController::display_effective_value));
|
||||
sigc::mem_fun (*this, &AutomationController::display_effective_value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -148,6 +148,6 @@ void
|
|||
AutomationController::value_changed ()
|
||||
{
|
||||
Gtkmm2ext::UI::instance()->call_slot (
|
||||
mem_fun(*this, &AutomationController::display_effective_value));
|
||||
sigc::mem_fun(*this, &AutomationController::display_effective_value));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,9 +84,9 @@ AutomationLine::AutomationLine (const string& name, TimeAxisView& tv, ArdourCanv
|
|||
line->property_width_pixels() = (guint)1;
|
||||
line->set_data ("line", this);
|
||||
|
||||
line->signal_event().connect (mem_fun (*this, &AutomationLine::event_handler));
|
||||
line->signal_event().connect (sigc::mem_fun (*this, &AutomationLine::event_handler));
|
||||
|
||||
alist->StateChanged.connect (mem_fun(*this, &AutomationLine::list_changed));
|
||||
alist->StateChanged.connect (sigc::mem_fun(*this, &AutomationLine::list_changed));
|
||||
|
||||
trackview.session().register_with_memento_command_factory(alist->id(), this);
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ AutomationLine::queue_reset ()
|
|||
{
|
||||
if (!update_pending) {
|
||||
update_pending = true;
|
||||
Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &AutomationLine::reset));
|
||||
Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &AutomationLine::reset));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ AutomationRegionView::AutomationRegionView(ArdourCanvas::Group*
|
|||
create_line(list);
|
||||
}
|
||||
|
||||
group->signal_event().connect (mem_fun (this, &AutomationRegionView::canvas_event), false);
|
||||
group->signal_event().connect (sigc::mem_fun (this, &AutomationRegionView::canvas_event), false);
|
||||
group->raise_to_top();
|
||||
}
|
||||
|
||||
|
|
@ -59,7 +59,7 @@ AutomationRegionView::init (Gdk::Color const & basic_color, bool /*wfd*/)
|
|||
|
||||
set_height (trackview.current_height());
|
||||
|
||||
_region->StateChanged.connect (mem_fun(*this, &AutomationRegionView::region_changed));
|
||||
_region->StateChanged.connect (sigc::mem_fun(*this, &AutomationRegionView::region_changed));
|
||||
|
||||
set_colors ();
|
||||
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region
|
|||
display_region(region_view);
|
||||
|
||||
/* catch regionview going away */
|
||||
region->GoingAway.connect (bind (mem_fun (*this, &AutomationStreamView::remove_region_view), region));
|
||||
region->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &AutomationStreamView::remove_region_view), region));
|
||||
|
||||
RegionViewAdded (region_view);
|
||||
|
||||
|
|
@ -191,7 +191,7 @@ AutomationStreamView::rec_data_range_ready (jack_nframes_t start, jack_nframes_t
|
|||
{
|
||||
// this is called from the butler thread for now
|
||||
|
||||
ENSURE_GUI_THREAD(bind (mem_fun (*this, &AutomationStreamView::rec_data_range_ready), start, dur));
|
||||
ENSURE_GUI_THREAD (*this, &AutomationStreamView::rec_data_range_ready, start, dur)
|
||||
|
||||
this->update_rec_regions (start, dur);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,8 +101,8 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr<Ro
|
|||
|
||||
_base_rect->set_data ("trackview", this);
|
||||
|
||||
_base_rect->signal_event().connect (bind (
|
||||
mem_fun (_editor, &PublicEditor::canvas_automation_track_event),
|
||||
_base_rect->signal_event().connect (sigc::bind (
|
||||
sigc::mem_fun (_editor, &PublicEditor::canvas_automation_track_event),
|
||||
_base_rect, this));
|
||||
|
||||
if (!a) {
|
||||
|
|
@ -186,8 +186,8 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr<Ro
|
|||
|
||||
controls_table.show_all ();
|
||||
|
||||
hide_button.signal_clicked().connect (mem_fun(*this, &AutomationTimeAxisView::hide_clicked));
|
||||
auto_button.signal_clicked().connect (mem_fun(*this, &AutomationTimeAxisView::auto_clicked));
|
||||
hide_button.signal_clicked().connect (sigc::mem_fun(*this, &AutomationTimeAxisView::hide_clicked));
|
||||
auto_button.signal_clicked().connect (sigc::mem_fun(*this, &AutomationTimeAxisView::auto_clicked));
|
||||
|
||||
controls_base_selected_name = X_("AutomationTrackControlsBaseSelected");
|
||||
controls_base_unselected_name = X_("AutomationTrackControlsBase");
|
||||
|
|
@ -222,7 +222,7 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr<Ro
|
|||
/* make sure labels etc. are correct */
|
||||
|
||||
automation_state_changed ();
|
||||
ColorsChanged.connect (mem_fun (*this, &AutomationTimeAxisView::color_handler));
|
||||
ColorsChanged.connect (sigc::mem_fun (*this, &AutomationTimeAxisView::color_handler));
|
||||
}
|
||||
|
||||
AutomationTimeAxisView::~AutomationTimeAxisView ()
|
||||
|
|
@ -239,13 +239,13 @@ AutomationTimeAxisView::auto_clicked ()
|
|||
automation_menu->set_name ("ArdourContextMenu");
|
||||
MenuList& items (automation_menu->items());
|
||||
|
||||
items.push_back (MenuElem (_("Manual"), bind (mem_fun(*this,
|
||||
items.push_back (MenuElem (_("Manual"), sigc::bind (sigc::mem_fun(*this,
|
||||
&AutomationTimeAxisView::set_automation_state), (AutoState) Off)));
|
||||
items.push_back (MenuElem (_("Play"), bind (mem_fun(*this,
|
||||
items.push_back (MenuElem (_("Play"), sigc::bind (sigc::mem_fun(*this,
|
||||
&AutomationTimeAxisView::set_automation_state), (AutoState) Play)));
|
||||
items.push_back (MenuElem (_("Write"), bind (mem_fun(*this,
|
||||
items.push_back (MenuElem (_("Write"), sigc::bind (sigc::mem_fun(*this,
|
||||
&AutomationTimeAxisView::set_automation_state), (AutoState) Write)));
|
||||
items.push_back (MenuElem (_("Touch"), bind (mem_fun(*this,
|
||||
items.push_back (MenuElem (_("Touch"), sigc::bind (sigc::mem_fun(*this,
|
||||
&AutomationTimeAxisView::set_automation_state), (AutoState) Touch)));
|
||||
}
|
||||
|
||||
|
|
@ -501,9 +501,9 @@ AutomationTimeAxisView::build_display_menu ()
|
|||
|
||||
items.push_back (MenuElem (_("Height"), *size_menu));
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Hide"), mem_fun(*this, &AutomationTimeAxisView::hide_clicked)));
|
||||
items.push_back (MenuElem (_("Hide"), sigc::mem_fun(*this, &AutomationTimeAxisView::hide_clicked)));
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Clear"), mem_fun(*this, &AutomationTimeAxisView::clear_clicked)));
|
||||
items.push_back (MenuElem (_("Clear"), sigc::mem_fun(*this, &AutomationTimeAxisView::clear_clicked)));
|
||||
items.push_back (SeparatorElem());
|
||||
|
||||
/* state menu */
|
||||
|
|
@ -512,23 +512,23 @@ AutomationTimeAxisView::build_display_menu ()
|
|||
auto_state_menu->set_name ("ArdourContextMenu");
|
||||
MenuList& as_items = auto_state_menu->items();
|
||||
|
||||
as_items.push_back (CheckMenuElem (_("Manual"), bind (
|
||||
mem_fun(*this, &AutomationTimeAxisView::set_automation_state),
|
||||
as_items.push_back (CheckMenuElem (_("Manual"), sigc::bind (
|
||||
sigc::mem_fun(*this, &AutomationTimeAxisView::set_automation_state),
|
||||
(AutoState) Off)));
|
||||
auto_off_item = dynamic_cast<CheckMenuItem*>(&as_items.back());
|
||||
|
||||
as_items.push_back (CheckMenuElem (_("Play"), bind (
|
||||
mem_fun(*this, &AutomationTimeAxisView::set_automation_state),
|
||||
as_items.push_back (CheckMenuElem (_("Play"), sigc::bind (
|
||||
sigc::mem_fun(*this, &AutomationTimeAxisView::set_automation_state),
|
||||
(AutoState) Play)));
|
||||
auto_play_item = dynamic_cast<CheckMenuItem*>(&as_items.back());
|
||||
|
||||
as_items.push_back (CheckMenuElem (_("Write"), bind (
|
||||
mem_fun(*this, &AutomationTimeAxisView::set_automation_state),
|
||||
as_items.push_back (CheckMenuElem (_("Write"), sigc::bind (
|
||||
sigc::mem_fun(*this, &AutomationTimeAxisView::set_automation_state),
|
||||
(AutoState) Write)));
|
||||
auto_write_item = dynamic_cast<CheckMenuItem*>(&as_items.back());
|
||||
|
||||
as_items.push_back (CheckMenuElem (_("Touch"), bind (
|
||||
mem_fun(*this, &AutomationTimeAxisView::set_automation_state),
|
||||
as_items.push_back (CheckMenuElem (_("Touch"), sigc::bind (
|
||||
sigc::mem_fun(*this, &AutomationTimeAxisView::set_automation_state),
|
||||
(AutoState) Touch)));
|
||||
auto_touch_item = dynamic_cast<CheckMenuItem*>(&as_items.back());
|
||||
|
||||
|
|
@ -544,14 +544,14 @@ AutomationTimeAxisView::build_display_menu ()
|
|||
|
||||
RadioMenuItem::Group group;
|
||||
|
||||
am_items.push_back (RadioMenuElem (group, _("Discrete"), bind (
|
||||
mem_fun(*this, &AutomationTimeAxisView::set_interpolation),
|
||||
am_items.push_back (RadioMenuElem (group, _("Discrete"), sigc::bind (
|
||||
sigc::mem_fun(*this, &AutomationTimeAxisView::set_interpolation),
|
||||
AutomationList::Discrete)));
|
||||
mode_discrete_item = dynamic_cast<CheckMenuItem*>(&am_items.back());
|
||||
mode_discrete_item->set_active(_control->list()->interpolation() == AutomationList::Discrete);
|
||||
|
||||
am_items.push_back (RadioMenuElem (group, _("Linear"), bind (
|
||||
mem_fun(*this, &AutomationTimeAxisView::set_interpolation),
|
||||
am_items.push_back (RadioMenuElem (group, _("Linear"), sigc::bind (
|
||||
sigc::mem_fun(*this, &AutomationTimeAxisView::set_interpolation),
|
||||
AutomationList::Linear)));
|
||||
mode_line_item = dynamic_cast<CheckMenuItem*>(&am_items.back());
|
||||
|
||||
|
|
@ -834,7 +834,7 @@ AutomationTimeAxisView::add_line (boost::shared_ptr<AutomationLine> line)
|
|||
assert(line->the_list() == _control->list());
|
||||
|
||||
automation_connection = _control->alist()->automation_state_changed.connect
|
||||
(mem_fun(*this, &AutomationTimeAxisView::automation_state_changed));
|
||||
(sigc::mem_fun(*this, &AutomationTimeAxisView::automation_state_changed));
|
||||
|
||||
_line = line;
|
||||
//_controller = AutomationController::create(_session, line->the_list(), _control);
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ CairoWidget::on_expose_event (GdkEventExpose *event)
|
|||
void
|
||||
CairoWidget::set_dirty ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &CairoWidget::set_dirty));
|
||||
ENSURE_GUI_THREAD (*this, &CairoWidget::set_dirty)
|
||||
|
||||
_dirty = true;
|
||||
queue_draw ();
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ ControlPoint::ControlPoint (AutomationLine& al)
|
|||
_item->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_ControlPointOutline.get();
|
||||
_item->property_outline_pixels() = 1;
|
||||
_item->set_data ("control_point", this);
|
||||
_item->signal_event().connect (mem_fun (this, &ControlPoint::event_handler));
|
||||
_item->signal_event().connect (sigc::mem_fun (this, &ControlPoint::event_handler));
|
||||
|
||||
hide ();
|
||||
set_visible (false);
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ CrossfadeEditor::CrossfadeEditor (Session& s, boost::shared_ptr<Crossfade> xf, d
|
|||
toplevel = 0;
|
||||
|
||||
canvas = new ArdourCanvas::CanvasAA ();
|
||||
canvas->signal_size_allocate().connect (mem_fun(*this, &CrossfadeEditor::canvas_allocation));
|
||||
canvas->signal_size_allocate().connect (sigc::mem_fun(*this, &CrossfadeEditor::canvas_allocation));
|
||||
canvas->set_size_request (425, 200);
|
||||
|
||||
toplevel = new ArdourCanvas::SimpleRect (*(canvas->root()));
|
||||
|
|
@ -135,7 +135,7 @@ CrossfadeEditor::CrossfadeEditor (Session& s, boost::shared_ptr<Crossfade> xf, d
|
|||
toplevel->property_fill() = true;
|
||||
toplevel->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_CrossfadeEditorBase.get();
|
||||
toplevel->property_outline_pixels() = 0;
|
||||
toplevel->signal_event().connect (mem_fun (*this, &CrossfadeEditor::canvas_event));
|
||||
toplevel->signal_event().connect (sigc::mem_fun (*this, &CrossfadeEditor::canvas_event));
|
||||
|
||||
fade[Out].line = new ArdourCanvas::Line (*(canvas->root()));
|
||||
fade[Out].line->property_width_pixels() = 1;
|
||||
|
|
@ -151,16 +151,16 @@ CrossfadeEditor::CrossfadeEditor (Session& s, boost::shared_ptr<Crossfade> xf, d
|
|||
fade[In].shading = new ArdourCanvas::Polygon (*(canvas->root()));
|
||||
fade[In].shading->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_CrossfadeEditorLineShading.get();
|
||||
|
||||
fade[In].shading->signal_event().connect (mem_fun (*this, &CrossfadeEditor::canvas_event));
|
||||
fade[In].line->signal_event().connect (mem_fun (*this, &CrossfadeEditor::curve_event));
|
||||
fade[Out].shading->signal_event().connect (mem_fun (*this, &CrossfadeEditor::canvas_event));
|
||||
fade[Out].line->signal_event().connect (mem_fun (*this, &CrossfadeEditor::curve_event));
|
||||
fade[In].shading->signal_event().connect (sigc::mem_fun (*this, &CrossfadeEditor::canvas_event));
|
||||
fade[In].line->signal_event().connect (sigc::mem_fun (*this, &CrossfadeEditor::curve_event));
|
||||
fade[Out].shading->signal_event().connect (sigc::mem_fun (*this, &CrossfadeEditor::canvas_event));
|
||||
fade[Out].line->signal_event().connect (sigc::mem_fun (*this, &CrossfadeEditor::curve_event));
|
||||
|
||||
select_in_button.set_name (X_("CrossfadeEditCurveButton"));
|
||||
select_out_button.set_name (X_("CrossfadeEditCurveButton"));
|
||||
|
||||
select_in_button.signal_clicked().connect (bind (mem_fun (*this, &CrossfadeEditor::curve_select_clicked), In));
|
||||
select_out_button.signal_clicked().connect (bind (mem_fun (*this, &CrossfadeEditor::curve_select_clicked), Out));
|
||||
select_in_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &CrossfadeEditor::curve_select_clicked), In));
|
||||
select_out_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &CrossfadeEditor::curve_select_clicked), Out));
|
||||
|
||||
HBox* acbox = manage (new HBox);
|
||||
|
||||
|
|
@ -201,7 +201,7 @@ CrossfadeEditor::CrossfadeEditor (Session& s, boost::shared_ptr<Crossfade> xf, d
|
|||
pbutton = manage (new Button);
|
||||
pbutton->add (*pxmap);
|
||||
pbutton->set_name ("CrossfadeEditButton");
|
||||
pbutton->signal_clicked().connect (bind (mem_fun(*this, &CrossfadeEditor::apply_preset), *i));
|
||||
pbutton->signal_clicked().connect (sigc::bind (sigc::mem_fun(*this, &CrossfadeEditor::apply_preset), *i));
|
||||
ARDOUR_UI::instance()->set_tip (pbutton, (*i)->name, "");
|
||||
fade_in_table.attach (*pbutton, col, col+1, row, row+1);
|
||||
fade_in_buttons.push_back (pbutton);
|
||||
|
|
@ -223,7 +223,7 @@ CrossfadeEditor::CrossfadeEditor (Session& s, boost::shared_ptr<Crossfade> xf, d
|
|||
pbutton = manage (new Button);
|
||||
pbutton->add (*pxmap);
|
||||
pbutton->set_name ("CrossfadeEditButton");
|
||||
pbutton->signal_clicked().connect (bind (mem_fun(*this, &CrossfadeEditor::apply_preset), *i));
|
||||
pbutton->signal_clicked().connect (sigc::bind (sigc::mem_fun(*this, &CrossfadeEditor::apply_preset), *i));
|
||||
ARDOUR_UI::instance()->set_tip (pbutton, (*i)->name, "");
|
||||
fade_out_table.attach (*pbutton, col, col+1, row, row+1);
|
||||
fade_out_buttons.push_back (pbutton);
|
||||
|
|
@ -248,13 +248,13 @@ CrossfadeEditor::CrossfadeEditor (Session& s, boost::shared_ptr<Crossfade> xf, d
|
|||
audition_right_dry_button.set_name ("CrossfadeEditAuditionButton");
|
||||
audition_right_button.set_name ("CrossfadeEditAuditionButton");
|
||||
|
||||
clear_button.signal_clicked().connect (mem_fun(*this, &CrossfadeEditor::clear));
|
||||
revert_button.signal_clicked().connect (mem_fun(*this, &CrossfadeEditor::reset));
|
||||
audition_both_button.signal_toggled().connect (mem_fun(*this, &CrossfadeEditor::audition_toggled));
|
||||
audition_right_button.signal_toggled().connect (mem_fun(*this, &CrossfadeEditor::audition_right_toggled));
|
||||
audition_right_dry_button.signal_toggled().connect (mem_fun(*this, &CrossfadeEditor::audition_right_dry_toggled));
|
||||
audition_left_button.signal_toggled().connect (mem_fun(*this, &CrossfadeEditor::audition_left_toggled));
|
||||
audition_left_dry_button.signal_toggled().connect (mem_fun(*this, &CrossfadeEditor::audition_left_dry_toggled));
|
||||
clear_button.signal_clicked().connect (sigc::mem_fun(*this, &CrossfadeEditor::clear));
|
||||
revert_button.signal_clicked().connect (sigc::mem_fun(*this, &CrossfadeEditor::reset));
|
||||
audition_both_button.signal_toggled().connect (sigc::mem_fun(*this, &CrossfadeEditor::audition_toggled));
|
||||
audition_right_button.signal_toggled().connect (sigc::mem_fun(*this, &CrossfadeEditor::audition_right_toggled));
|
||||
audition_right_dry_button.signal_toggled().connect (sigc::mem_fun(*this, &CrossfadeEditor::audition_right_dry_toggled));
|
||||
audition_left_button.signal_toggled().connect (sigc::mem_fun(*this, &CrossfadeEditor::audition_left_toggled));
|
||||
audition_left_dry_button.signal_toggled().connect (sigc::mem_fun(*this, &CrossfadeEditor::audition_left_dry_toggled));
|
||||
|
||||
roll_box.pack_start (preroll_button, false, false);
|
||||
roll_box.pack_start (postroll_button, false, false);
|
||||
|
|
@ -280,7 +280,7 @@ CrossfadeEditor::CrossfadeEditor (Session& s, boost::shared_ptr<Crossfade> xf, d
|
|||
/* button to allow hackers to check the actual curve values */
|
||||
|
||||
// Button* foobut = manage (new Button ("dump"));
|
||||
// foobut-.signal_clicked().connect (mem_fun(*this, &CrossfadeEditor::dump));
|
||||
// foobut-.signal_clicked().connect (sigc::mem_fun(*this, &CrossfadeEditor::dump));
|
||||
// vpacker.pack_start (*foobut, false, false);
|
||||
|
||||
current = In;
|
||||
|
|
@ -291,9 +291,9 @@ CrossfadeEditor::CrossfadeEditor (Session& s, boost::shared_ptr<Crossfade> xf, d
|
|||
|
||||
curve_select_clicked (In);
|
||||
|
||||
xfade->StateChanged.connect (mem_fun(*this, &CrossfadeEditor::xfade_changed));
|
||||
xfade->StateChanged.connect (sigc::mem_fun(*this, &CrossfadeEditor::xfade_changed));
|
||||
|
||||
session.AuditionActive.connect (mem_fun(*this, &CrossfadeEditor::audition_state_changed));
|
||||
session.AuditionActive.connect (sigc::mem_fun(*this, &CrossfadeEditor::audition_state_changed));
|
||||
show_all_children();
|
||||
}
|
||||
|
||||
|
|
@ -321,7 +321,7 @@ CrossfadeEditor::dump ()
|
|||
void
|
||||
CrossfadeEditor::audition_state_changed (bool yn)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &CrossfadeEditor::audition_state_changed), yn));
|
||||
ENSURE_GUI_THREAD (*this, &CrossfadeEditor::audition_state_changed, yn)
|
||||
|
||||
if (!yn) {
|
||||
audition_both_button.set_active (false);
|
||||
|
|
@ -466,7 +466,7 @@ CrossfadeEditor::make_point ()
|
|||
|
||||
p->curve = fade[current].line;
|
||||
|
||||
p->box->signal_event().connect (bind (mem_fun (*this, &CrossfadeEditor::point_event), p));
|
||||
p->box->signal_event().connect (sigc::bind (sigc::mem_fun (*this, &CrossfadeEditor::point_event), p));
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
@ -1130,7 +1130,7 @@ CrossfadeEditor::make_waves (boost::shared_ptr<AudioRegion> region, WhichFade wh
|
|||
|
||||
gdouble yoff = n * ht;
|
||||
|
||||
if (region->audio_source(n)->peaks_ready (bind (mem_fun(*this, &CrossfadeEditor::peaks_ready), region, which), peaks_ready_connection)) {
|
||||
if (region->audio_source(n)->peaks_ready (sigc::bind (sigc::mem_fun(*this, &CrossfadeEditor::peaks_ready), region, which), peaks_ready_connection)) {
|
||||
WaveView* waveview = new WaveView (*(canvas->root()));
|
||||
|
||||
waveview->property_data_src() = region.get();
|
||||
|
|
|
|||
|
|
@ -80,12 +80,12 @@ CrossfadeView::CrossfadeView (ArdourCanvas::Group *parent,
|
|||
vestigial_frame->hide();
|
||||
show_vestigial = false;
|
||||
|
||||
group->signal_event().connect (bind (mem_fun (tv.editor(), &PublicEditor::canvas_crossfade_view_event), group, this));
|
||||
group->signal_event().connect (sigc::bind (sigc::mem_fun (tv.editor(), &PublicEditor::canvas_crossfade_view_event), group, this));
|
||||
|
||||
crossfade_changed (Change (~0));
|
||||
|
||||
crossfade->StateChanged.connect (mem_fun(*this, &CrossfadeView::crossfade_changed));
|
||||
ColorsChanged.connect (mem_fun (*this, &CrossfadeView::color_handler));
|
||||
crossfade->StateChanged.connect (sigc::mem_fun(*this, &CrossfadeView::crossfade_changed));
|
||||
ColorsChanged.connect (sigc::mem_fun (*this, &CrossfadeView::color_handler));
|
||||
}
|
||||
|
||||
CrossfadeView::~CrossfadeView ()
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -481,7 +481,7 @@ Editor::import_sndfiles (vector<ustring> paths, ImportMode mode, SrcQuality qual
|
|||
import_status.track = track;
|
||||
import_status.replace = replace;
|
||||
interthread_progress_connection = Glib::signal_timeout().connect
|
||||
(bind (mem_fun(*this, &Editor::import_progress_timeout), (gpointer) 0), 500);
|
||||
(sigc::bind (sigc::mem_fun(*this, &Editor::import_progress_timeout), (gpointer) 0), 500);
|
||||
|
||||
track_canvas->get_window()->set_cursor (Gdk::Cursor (Gdk::WATCH));
|
||||
gdk_flush ();
|
||||
|
|
@ -926,7 +926,7 @@ Editor::import_progress_timeout (void */*arg*/)
|
|||
|
||||
interthread_progress_connection.disconnect ();
|
||||
interthread_progress_connection = Glib::signal_timeout().connect
|
||||
(bind (mem_fun(*this, &Editor::import_progress_timeout), (gpointer) 0), 100);
|
||||
(sigc::bind (sigc::mem_fun(*this, &Editor::import_progress_timeout), (gpointer) 0), 100);
|
||||
return false;
|
||||
} else {
|
||||
return !(import_status.done || import_status.cancel);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ Editor::start_updating ()
|
|||
}
|
||||
|
||||
if (!meters_running) {
|
||||
fast_screen_update_connection = ARDOUR_UI::SuperRapidScreenUpdate.connect (mem_fun(*this, &Editor::fast_update_strips));
|
||||
fast_screen_update_connection = ARDOUR_UI::SuperRapidScreenUpdate.connect (sigc::mem_fun(*this, &Editor::fast_update_strips));
|
||||
meters_running = true;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ Editor::initialize_canvas ()
|
|||
zoom_rect->property_outline_pixels() = 1;
|
||||
zoom_rect->hide();
|
||||
|
||||
zoom_rect->signal_event().connect (bind (mem_fun (*this, &Editor::canvas_zoom_rect_event), (ArdourCanvas::Item*) 0));
|
||||
zoom_rect->signal_event().connect (sigc::bind (sigc::mem_fun (*this, &Editor::canvas_zoom_rect_event), (ArdourCanvas::Item*) 0));
|
||||
|
||||
// used as rubberband rect
|
||||
rubberband_rect = new ArdourCanvas::SimpleRect (*_trackview_group, 0.0, 0.0, 0.0, 0.0);
|
||||
|
|
@ -268,12 +268,12 @@ Editor::initialize_canvas ()
|
|||
rubberband_rect->property_outline_pixels() = 1;
|
||||
rubberband_rect->hide();
|
||||
|
||||
tempo_bar->signal_event().connect (bind (mem_fun (*this, &Editor::canvas_tempo_bar_event), tempo_bar));
|
||||
meter_bar->signal_event().connect (bind (mem_fun (*this, &Editor::canvas_meter_bar_event), meter_bar));
|
||||
marker_bar->signal_event().connect (bind (mem_fun (*this, &Editor::canvas_marker_bar_event), marker_bar));
|
||||
cd_marker_bar->signal_event().connect (bind (mem_fun (*this, &Editor::canvas_cd_marker_bar_event), cd_marker_bar));
|
||||
range_marker_bar->signal_event().connect (bind (mem_fun (*this, &Editor::canvas_range_marker_bar_event), range_marker_bar));
|
||||
transport_marker_bar->signal_event().connect (bind (mem_fun (*this, &Editor::canvas_transport_marker_bar_event), transport_marker_bar));
|
||||
tempo_bar->signal_event().connect (sigc::bind (sigc::mem_fun (*this, &Editor::canvas_tempo_bar_event), tempo_bar));
|
||||
meter_bar->signal_event().connect (sigc::bind (sigc::mem_fun (*this, &Editor::canvas_meter_bar_event), meter_bar));
|
||||
marker_bar->signal_event().connect (sigc::bind (sigc::mem_fun (*this, &Editor::canvas_marker_bar_event), marker_bar));
|
||||
cd_marker_bar->signal_event().connect (sigc::bind (sigc::mem_fun (*this, &Editor::canvas_cd_marker_bar_event), cd_marker_bar));
|
||||
range_marker_bar->signal_event().connect (sigc::bind (sigc::mem_fun (*this, &Editor::canvas_range_marker_bar_event), range_marker_bar));
|
||||
transport_marker_bar->signal_event().connect (sigc::bind (sigc::mem_fun (*this, &Editor::canvas_transport_marker_bar_event), transport_marker_bar));
|
||||
|
||||
playhead_cursor = new EditorCursor (*this, &Editor::canvas_playhead_cursor_event);
|
||||
|
||||
|
|
@ -282,16 +282,16 @@ Editor::initialize_canvas ()
|
|||
}
|
||||
/* need to handle 4 specific types of events as catch-alls */
|
||||
|
||||
track_canvas->signal_scroll_event().connect (mem_fun (*this, &Editor::track_canvas_scroll_event));
|
||||
track_canvas->signal_motion_notify_event().connect (mem_fun (*this, &Editor::track_canvas_motion_notify_event));
|
||||
track_canvas->signal_button_press_event().connect (mem_fun (*this, &Editor::track_canvas_button_press_event));
|
||||
track_canvas->signal_button_release_event().connect (mem_fun (*this, &Editor::track_canvas_button_release_event));
|
||||
track_canvas->signal_drag_motion().connect (mem_fun (*this, &Editor::track_canvas_drag_motion));
|
||||
track_canvas->signal_scroll_event().connect (sigc::mem_fun (*this, &Editor::track_canvas_scroll_event));
|
||||
track_canvas->signal_motion_notify_event().connect (sigc::mem_fun (*this, &Editor::track_canvas_motion_notify_event));
|
||||
track_canvas->signal_button_press_event().connect (sigc::mem_fun (*this, &Editor::track_canvas_button_press_event));
|
||||
track_canvas->signal_button_release_event().connect (sigc::mem_fun (*this, &Editor::track_canvas_button_release_event));
|
||||
track_canvas->signal_drag_motion().connect (sigc::mem_fun (*this, &Editor::track_canvas_drag_motion));
|
||||
|
||||
track_canvas->set_name ("EditorMainCanvas");
|
||||
track_canvas->add_events (Gdk::POINTER_MOTION_HINT_MASK|Gdk::SCROLL_MASK);
|
||||
track_canvas->signal_leave_notify_event().connect (mem_fun(*this, &Editor::left_track_canvas));
|
||||
track_canvas->signal_enter_notify_event().connect (mem_fun(*this, &Editor::entered_track_canvas));
|
||||
track_canvas->signal_leave_notify_event().connect (sigc::mem_fun(*this, &Editor::left_track_canvas));
|
||||
track_canvas->signal_enter_notify_event().connect (sigc::mem_fun(*this, &Editor::entered_track_canvas));
|
||||
track_canvas->set_flags (CAN_FOCUS);
|
||||
|
||||
/* set up drag-n-drop */
|
||||
|
|
@ -306,11 +306,11 @@ Editor::initialize_canvas ()
|
|||
target_table.push_back (TargetEntry ("application/x-rootwin-drop"));
|
||||
|
||||
track_canvas->drag_dest_set (target_table);
|
||||
track_canvas->signal_drag_data_received().connect (mem_fun(*this, &Editor::track_canvas_drag_data_received));
|
||||
track_canvas->signal_drag_data_received().connect (sigc::mem_fun(*this, &Editor::track_canvas_drag_data_received));
|
||||
|
||||
track_canvas->signal_size_allocate().connect (mem_fun(*this, &Editor::track_canvas_allocate));
|
||||
track_canvas->signal_size_allocate().connect (sigc::mem_fun(*this, &Editor::track_canvas_allocate));
|
||||
|
||||
ColorsChanged.connect (mem_fun (*this, &Editor::color_handler));
|
||||
ColorsChanged.connect (sigc::mem_fun (*this, &Editor::color_handler));
|
||||
color_handler();
|
||||
|
||||
}
|
||||
|
|
@ -425,7 +425,7 @@ Editor::controls_layout_size_request (Requisition* req)
|
|||
}
|
||||
|
||||
if (changed) {
|
||||
controls_layout_size_request_connection = controls_layout.signal_size_request().connect (mem_fun (*this, &Editor::controls_layout_size_request));
|
||||
controls_layout_size_request_connection = controls_layout.signal_size_request().connect (sigc::mem_fun (*this, &Editor::controls_layout_size_request));
|
||||
}
|
||||
//cerr << "sizes = " << req->width << " " << edit_controls_vbox.get_width() << " " << controls_layout.get_width() << " " << zoom_box.get_width() << " " << time_button_frame.get_width() << endl;//DEBUG
|
||||
}
|
||||
|
|
@ -527,7 +527,7 @@ Editor::drop_paths (const RefPtr<Gdk::DragContext>& context,
|
|||
the main event loop with GTK/Quartz. Since import/embed wants
|
||||
to push up a progress dialog, defer all this till we go idle.
|
||||
*/
|
||||
Glib::signal_idle().connect (bind (mem_fun (*this, &Editor::idle_drop_paths), paths, frame, cy));
|
||||
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun (*this, &Editor::idle_drop_paths), paths, frame, cy));
|
||||
#else
|
||||
drop_paths_part_two (paths, frame, cy);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ Editor::track_canvas_scroll (GdkEventScroll* ev)
|
|||
goto retry;
|
||||
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) {
|
||||
if (!current_stepping_trackview) {
|
||||
step_timeout = Glib::signal_timeout().connect (mem_fun(*this, &Editor::track_height_step_timeout), 500);
|
||||
step_timeout = Glib::signal_timeout().connect (sigc::mem_fun(*this, &Editor::track_height_step_timeout), 500);
|
||||
std::pair<TimeAxisView*, int> const p = trackview_by_y_position (ev->y + vertical_adjustment.get_value() - canvas_timebars_vsize);
|
||||
current_stepping_trackview = p.first;
|
||||
if (!current_stepping_trackview) {
|
||||
|
|
@ -136,7 +136,7 @@ Editor::track_canvas_scroll (GdkEventScroll* ev)
|
|||
goto retry;
|
||||
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) {
|
||||
if (!current_stepping_trackview) {
|
||||
step_timeout = Glib::signal_timeout().connect (mem_fun(*this, &Editor::track_height_step_timeout), 500);
|
||||
step_timeout = Glib::signal_timeout().connect (sigc::mem_fun(*this, &Editor::track_height_step_timeout), 500);
|
||||
std::pair<TimeAxisView*, int> const p = trackview_by_y_position (ev->y + vertical_adjustment.get_value() - canvas_timebars_vsize);
|
||||
current_stepping_trackview = p.first;
|
||||
if (!current_stepping_trackview) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ EditorComponent::connect_to_session (Session* s)
|
|||
{
|
||||
_session = s;
|
||||
|
||||
_session_connections.push_back (_session->GoingAway.connect (mem_fun (*this, &EditorComponent::session_going_away)));
|
||||
_session_connections.push_back (_session->GoingAway.connect (sigc::mem_fun (*this, &EditorComponent::session_going_away)));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ EditorCursor::EditorCursor (Editor& ed, bool (Editor::*callbck)(GdkEvent*,Ardour
|
|||
canvas_item.property_arrow_shape_c() = 9.0;
|
||||
|
||||
canvas_item.set_data ("cursor", this);
|
||||
canvas_item.signal_event().connect (bind (mem_fun (ed, callbck), &canvas_item));
|
||||
canvas_item.signal_event().connect (sigc::bind (sigc::mem_fun (ed, callbck), &canvas_item));
|
||||
current_frame = 1; /* force redraw at 0 */
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ RegionDrag::RegionDrag (Editor* e, ArdourCanvas::Item* i, RegionView* p, list<Re
|
|||
_primary (p),
|
||||
_views (v)
|
||||
{
|
||||
RegionView::RegionViewGoingAway.connect (mem_fun (*this, &RegionDrag::region_going_away));
|
||||
RegionView::RegionViewGoingAway.connect (sigc::mem_fun (*this, &RegionDrag::region_going_away));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -824,7 +824,7 @@ RegionMoveDrag::finished (GdkEvent* /*event*/, bool movement_occurred)
|
|||
|
||||
_editor->latest_regionviews.clear ();
|
||||
|
||||
sigc::connection c = dest_rtv->view()->RegionViewAdded.connect (mem_fun(*_editor, &Editor::collect_new_region_view));
|
||||
sigc::connection c = dest_rtv->view()->RegionViewAdded.connect (sigc::mem_fun(*_editor, &Editor::collect_new_region_view));
|
||||
|
||||
insert_result = modified_playlists.insert (to_playlist);
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ Editor::add_imageframe_time_axis(const string & track_name, void* src)
|
|||
}
|
||||
else
|
||||
{
|
||||
Gtkmm2ext::UI::instance()->call_slot(bind(mem_fun(*this, &Editor::handle_new_imageframe_time_axis_view),track_name, src)) ;
|
||||
Gtkmm2ext::UI::instance()->call_slot(sigc::bind(sigc::mem_fun(*this, &Editor::handle_new_imageframe_time_axis_view),track_name, src)) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -129,10 +129,10 @@ Editor::scroll_timeaxis_to_imageframe_item(const TimeAxisViewItem* item)
|
|||
void
|
||||
Editor::add_imageframe_marker_time_axis(const string & track_name, TimeAxisView* marked_track, void* src)
|
||||
{
|
||||
// Can we only bind 2 data Items?
|
||||
// @todo we really want to bind the src attribute too, for the moment tracks can only be added remotely,
|
||||
// Can we only sigc::bind 2 data Items?
|
||||
// @todo we really want to sigc::bind the src attribute too, for the moment tracks can only be added remotely,
|
||||
// so this is not too much of an issue, however will need to be looked at again
|
||||
Gtkmm2ext::UI::instance()->call_slot(sigc::bind(mem_fun(*this, &Editor::handle_new_imageframe_marker_time_axis_view),track_name, marked_track)) ;
|
||||
Gtkmm2ext::UI::instance()->call_slot(sigc::bind(sigc::mem_fun(*this, &Editor::handle_new_imageframe_marker_time_axis_view),track_name, marked_track)) ;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -1092,8 +1092,8 @@ Editor::handle_new_imageframe_time_axis_view(const string & track_name, void* sr
|
|||
row[route_display_columns.tv] = iftav;
|
||||
route_list_display.get_selection()->select (row);
|
||||
|
||||
iftav->GoingAway.connect(bind(mem_fun(*this, &Editor::remove_route), (TimeAxisView*)iftav)) ;
|
||||
iftav->gui_changed.connect(mem_fun(*this, &Editor::handle_gui_changes)) ;
|
||||
iftav->GoingAway.connect(sigc::bind(sigc::mem_fun(*this, &Editor::remove_route), (TimeAxisView*)iftav)) ;
|
||||
iftav->gui_changed.connect(sigc::mem_fun(*this, &Editor::handle_gui_changes)) ;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -1109,7 +1109,7 @@ Editor::handle_new_imageframe_marker_time_axis_view(const string & track_name, T
|
|||
row[route_display_columns.tv] = mta;
|
||||
route_list_display.get_selection()->select (row);
|
||||
|
||||
mta->GoingAway.connect(bind(mem_fun(*this, &Editor::remove_route), (TimeAxisView*)mta)) ;
|
||||
mta->GoingAway.connect(sigc::bind(sigc::mem_fun(*this, &Editor::remove_route), (TimeAxisView*)mta)) ;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -124,6 +124,6 @@ Editor::kbd_do_brush (GdkEvent *ev)
|
|||
void
|
||||
Editor::kbd_brush ()
|
||||
{
|
||||
kbd_driver (mem_fun(*this, &Editor::kbd_do_brush), true, true, false);
|
||||
kbd_driver (sigc::mem_fun(*this, &Editor::kbd_do_brush), true, true, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ Editor::clear_marker_display ()
|
|||
void
|
||||
Editor::add_new_location (Location *location)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &Editor::add_new_location), location));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::add_new_location, location)
|
||||
|
||||
LocationMarkers *lam = new LocationMarkers;
|
||||
uint32_t color;
|
||||
|
|
@ -124,11 +124,11 @@ Editor::add_new_location (Location *location)
|
|||
lam->show ();
|
||||
}
|
||||
|
||||
location->start_changed.connect (mem_fun(*this, &Editor::location_changed));
|
||||
location->end_changed.connect (mem_fun(*this, &Editor::location_changed));
|
||||
location->changed.connect (mem_fun(*this, &Editor::location_changed));
|
||||
location->name_changed.connect (mem_fun(*this, &Editor::location_changed));
|
||||
location->FlagsChanged.connect (mem_fun(*this, &Editor::location_flags_changed));
|
||||
location->start_changed.connect (sigc::mem_fun(*this, &Editor::location_changed));
|
||||
location->end_changed.connect (sigc::mem_fun(*this, &Editor::location_changed));
|
||||
location->changed.connect (sigc::mem_fun(*this, &Editor::location_changed));
|
||||
location->name_changed.connect (sigc::mem_fun(*this, &Editor::location_changed));
|
||||
location->FlagsChanged.connect (sigc::mem_fun(*this, &Editor::location_flags_changed));
|
||||
|
||||
pair<Location*,LocationMarkers*> newpair;
|
||||
|
||||
|
|
@ -146,7 +146,7 @@ Editor::add_new_location (Location *location)
|
|||
void
|
||||
Editor::location_changed (Location *location)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &Editor::location_changed), location));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::location_changed, location)
|
||||
|
||||
LocationMarkers *lam = find_location_markers (location);
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ Editor::location_changed (Location *location)
|
|||
void
|
||||
Editor::location_flags_changed (Location *location, void *src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::location_flags_changed), location, src));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::location_flags_changed, location, src)
|
||||
|
||||
LocationMarkers *lam = find_location_markers (location);
|
||||
|
||||
|
|
@ -331,7 +331,7 @@ Editor::refresh_location_display_internal (Locations::LocationList& locations)
|
|||
void
|
||||
Editor::refresh_location_display ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &Editor::refresh_location_display));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::refresh_location_display)
|
||||
|
||||
if (session) {
|
||||
session->locations()->apply (*this, &Editor::refresh_location_display_internal);
|
||||
|
|
@ -341,7 +341,7 @@ Editor::refresh_location_display ()
|
|||
void
|
||||
Editor::refresh_location_display_s (Change ignored)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::refresh_location_display_s), ignored));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::refresh_location_display_s, ignored)
|
||||
|
||||
if (session) {
|
||||
session->locations()->apply (*this, &Editor::refresh_location_display_internal);
|
||||
|
|
@ -438,7 +438,7 @@ Editor::remove_marker (ArdourCanvas::Item& item, GdkEvent*)
|
|||
Location* loc = find_location_from_marker (marker, is_start);
|
||||
|
||||
if (session && loc) {
|
||||
Glib::signal_idle().connect (bind (mem_fun(*this, &Editor::really_remove_marker), loc));
|
||||
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun(*this, &Editor::really_remove_marker), loc));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -457,7 +457,7 @@ Editor::really_remove_marker (Location* loc)
|
|||
void
|
||||
Editor::location_gone (Location *location)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::location_gone), location));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::location_gone, location)
|
||||
|
||||
LocationMarkerMap::iterator i;
|
||||
|
||||
|
|
@ -586,23 +586,23 @@ Editor::build_marker_menu (bool start_or_end)
|
|||
MenuList& items = markerMenu->items();
|
||||
markerMenu->set_name ("ArdourContextMenu");
|
||||
|
||||
items.push_back (MenuElem (_("Locate to here"), mem_fun(*this, &Editor::marker_menu_set_playhead)));
|
||||
items.push_back (MenuElem (_("Play from here"), mem_fun(*this, &Editor::marker_menu_play_from)));
|
||||
items.push_back (MenuElem (_("Move Mark to Playhead"), mem_fun(*this, &Editor::marker_menu_set_from_playhead)));
|
||||
items.push_back (MenuElem (_("Locate to here"), sigc::mem_fun(*this, &Editor::marker_menu_set_playhead)));
|
||||
items.push_back (MenuElem (_("Play from here"), sigc::mem_fun(*this, &Editor::marker_menu_play_from)));
|
||||
items.push_back (MenuElem (_("Move Mark to Playhead"), sigc::mem_fun(*this, &Editor::marker_menu_set_from_playhead)));
|
||||
|
||||
items.push_back (SeparatorElem());
|
||||
|
||||
items.push_back (MenuElem (_("Create range to next marker"), mem_fun(*this, &Editor::marker_menu_range_to_next)));
|
||||
items.push_back (MenuElem (_("Create range to next marker"), sigc::mem_fun(*this, &Editor::marker_menu_range_to_next)));
|
||||
|
||||
items.push_back (MenuElem (_("Hide"), mem_fun(*this, &Editor::marker_menu_hide)));
|
||||
items.push_back (MenuElem (_("Hide"), sigc::mem_fun(*this, &Editor::marker_menu_hide)));
|
||||
if (start_or_end) return;
|
||||
items.push_back (MenuElem (_("Rename"), mem_fun(*this, &Editor::marker_menu_rename)));
|
||||
items.push_back (MenuElem (_("Lock"), bind (mem_fun(*this, &Editor::marker_menu_lock), true)));
|
||||
items.push_back (MenuElem (_("Unlock"), bind (mem_fun(*this, &Editor::marker_menu_lock), false)));
|
||||
items.push_back (MenuElem (_("Rename"), sigc::mem_fun(*this, &Editor::marker_menu_rename)));
|
||||
items.push_back (MenuElem (_("Lock"), sigc::bind (sigc::mem_fun(*this, &Editor::marker_menu_lock), true)));
|
||||
items.push_back (MenuElem (_("Unlock"), sigc::bind (sigc::mem_fun(*this, &Editor::marker_menu_lock), false)));
|
||||
|
||||
items.push_back (SeparatorElem());
|
||||
|
||||
items.push_back (MenuElem (_("Remove"), mem_fun(*this, &Editor::marker_menu_remove)));
|
||||
items.push_back (MenuElem (_("Remove"), sigc::mem_fun(*this, &Editor::marker_menu_remove)));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -619,32 +619,32 @@ Editor::build_range_marker_menu (bool loop_or_punch)
|
|||
MenuList& items = markerMenu->items();
|
||||
markerMenu->set_name ("ArdourContextMenu");
|
||||
|
||||
items.push_back (MenuElem (_("Play Range"), mem_fun(*this, &Editor::marker_menu_play_range)));
|
||||
items.push_back (MenuElem (_("Locate to Range Mark"), mem_fun(*this, &Editor::marker_menu_set_playhead)));
|
||||
items.push_back (MenuElem (_("Play from Range Mark"), mem_fun(*this, &Editor::marker_menu_play_from)));
|
||||
items.push_back (MenuElem (_("Play Range"), sigc::mem_fun(*this, &Editor::marker_menu_play_range)));
|
||||
items.push_back (MenuElem (_("Locate to Range Mark"), sigc::mem_fun(*this, &Editor::marker_menu_set_playhead)));
|
||||
items.push_back (MenuElem (_("Play from Range Mark"), sigc::mem_fun(*this, &Editor::marker_menu_play_from)));
|
||||
if (! loop_or_punch) {
|
||||
items.push_back (MenuElem (_("Loop Range"), mem_fun(*this, &Editor::marker_menu_loop_range)));
|
||||
items.push_back (MenuElem (_("Loop Range"), sigc::mem_fun(*this, &Editor::marker_menu_loop_range)));
|
||||
}
|
||||
items.push_back (MenuElem (_("Set Range Mark from Playhead"), mem_fun(*this, &Editor::marker_menu_set_from_playhead)));
|
||||
items.push_back (MenuElem (_("Set Range Mark from Playhead"), sigc::mem_fun(*this, &Editor::marker_menu_set_from_playhead)));
|
||||
if (!Profile->get_sae()) {
|
||||
items.push_back (MenuElem (_("Set Range from Range Selection"), mem_fun(*this, &Editor::marker_menu_set_from_selection)));
|
||||
items.push_back (MenuElem (_("Set Range from Range Selection"), sigc::mem_fun(*this, &Editor::marker_menu_set_from_selection)));
|
||||
}
|
||||
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Export Range"), mem_fun(*this, &Editor::export_range)));
|
||||
items.push_back (MenuElem (_("Export Range"), sigc::mem_fun(*this, &Editor::export_range)));
|
||||
items.push_back (SeparatorElem());
|
||||
|
||||
if (!loop_or_punch) {
|
||||
items.push_back (MenuElem (_("Hide Range"), mem_fun(*this, &Editor::marker_menu_hide)));
|
||||
items.push_back (MenuElem (_("Rename Range"), mem_fun(*this, &Editor::marker_menu_rename)));
|
||||
items.push_back (MenuElem (_("Remove Range"), mem_fun(*this, &Editor::marker_menu_remove)));
|
||||
items.push_back (MenuElem (_("Hide Range"), sigc::mem_fun(*this, &Editor::marker_menu_hide)));
|
||||
items.push_back (MenuElem (_("Rename Range"), sigc::mem_fun(*this, &Editor::marker_menu_rename)));
|
||||
items.push_back (MenuElem (_("Remove Range"), sigc::mem_fun(*this, &Editor::marker_menu_remove)));
|
||||
items.push_back (SeparatorElem());
|
||||
}
|
||||
|
||||
items.push_back (MenuElem (_("Separate Regions in Range"), mem_fun(*this, &Editor::marker_menu_separate_regions_using_location)));
|
||||
items.push_back (MenuElem (_("Select All in Range"), mem_fun(*this, &Editor::marker_menu_select_all_selectables_using_range)));
|
||||
items.push_back (MenuElem (_("Separate Regions in Range"), sigc::mem_fun(*this, &Editor::marker_menu_separate_regions_using_location)));
|
||||
items.push_back (MenuElem (_("Select All in Range"), sigc::mem_fun(*this, &Editor::marker_menu_select_all_selectables_using_range)));
|
||||
if (!Profile->get_sae()) {
|
||||
items.push_back (MenuElem (_("Select Range"), mem_fun(*this, &Editor::marker_menu_select_using_range)));
|
||||
items.push_back (MenuElem (_("Select Range"), sigc::mem_fun(*this, &Editor::marker_menu_select_using_range)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -657,8 +657,8 @@ Editor::build_tm_marker_menu ()
|
|||
MenuList& items = tm_marker_menu->items();
|
||||
tm_marker_menu->set_name ("ArdourContextMenu");
|
||||
|
||||
items.push_back (MenuElem (_("Edit"), mem_fun(*this, &Editor::marker_menu_edit)));
|
||||
items.push_back (MenuElem (_("Remove"), mem_fun(*this, &Editor::marker_menu_remove)));
|
||||
items.push_back (MenuElem (_("Edit"), sigc::mem_fun(*this, &Editor::marker_menu_edit)));
|
||||
items.push_back (MenuElem (_("Remove"), sigc::mem_fun(*this, &Editor::marker_menu_remove)));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -670,10 +670,10 @@ Editor::build_new_transport_marker_menu ()
|
|||
MenuList& items = new_transport_marker_menu->items();
|
||||
new_transport_marker_menu->set_name ("ArdourContextMenu");
|
||||
|
||||
items.push_back (MenuElem (_("Set Loop Range"), mem_fun(*this, &Editor::new_transport_marker_menu_set_loop)));
|
||||
items.push_back (MenuElem (_("Set Punch Range"), mem_fun(*this, &Editor::new_transport_marker_menu_set_punch)));
|
||||
items.push_back (MenuElem (_("Set Loop Range"), sigc::mem_fun(*this, &Editor::new_transport_marker_menu_set_loop)));
|
||||
items.push_back (MenuElem (_("Set Punch Range"), sigc::mem_fun(*this, &Editor::new_transport_marker_menu_set_punch)));
|
||||
|
||||
new_transport_marker_menu->signal_unmap().connect ( mem_fun(*this, &Editor::new_transport_marker_menu_popdown));
|
||||
new_transport_marker_menu->signal_unmap().connect ( sigc::mem_fun(*this, &Editor::new_transport_marker_menu_popdown));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -167,10 +167,10 @@ Editor::create_editor_mixer ()
|
|||
current_mixer_strip = new MixerStrip (*ARDOUR_UI::instance()->the_mixer(),
|
||||
*session,
|
||||
false);
|
||||
current_mixer_strip->Hiding.connect (mem_fun(*this, &Editor::current_mixer_strip_hidden));
|
||||
current_mixer_strip->GoingAway.connect (mem_fun(*this, &Editor::current_mixer_strip_removed));
|
||||
current_mixer_strip->Hiding.connect (sigc::mem_fun(*this, &Editor::current_mixer_strip_hidden));
|
||||
current_mixer_strip->GoingAway.connect (sigc::mem_fun(*this, &Editor::current_mixer_strip_removed));
|
||||
#ifdef GTKOSX
|
||||
current_mixer_strip->WidthChanged.connect (mem_fun(*this, &Editor::ensure_all_elements_drawn));
|
||||
current_mixer_strip->WidthChanged.connect (sigc::mem_fun(*this, &Editor::ensure_all_elements_drawn));
|
||||
#endif
|
||||
current_mixer_strip->set_embedded (true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1658,7 +1658,7 @@ Editor::leave_handler (ArdourCanvas::Item* item, GdkEvent* /*event*/, ItemType i
|
|||
if (is_drawable()) {
|
||||
track_canvas->get_window()->set_cursor (*current_canvas_cursor);
|
||||
clear_entered_track = true;
|
||||
Glib::signal_idle().connect (mem_fun(*this, &Editor::left_automation_track));
|
||||
Glib::signal_idle().connect (sigc::mem_fun(*this, &Editor::left_automation_track));
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -2526,7 +2526,7 @@ Editor::start_selection_grab (ArdourCanvas::Item* /*item*/, GdkEvent* event)
|
|||
*/
|
||||
|
||||
latest_regionviews.clear();
|
||||
sigc::connection c = clicked_routeview->view()->RegionViewAdded.connect (mem_fun(*this, &Editor::collect_new_region_view));
|
||||
sigc::connection c = clicked_routeview->view()->RegionViewAdded.connect (sigc::mem_fun(*this, &Editor::collect_new_region_view));
|
||||
|
||||
/* A selection grab currently creates two undo/redo operations, one for
|
||||
creating the new region and another for moving it.
|
||||
|
|
|
|||
|
|
@ -1516,7 +1516,7 @@ Editor::scroll_tracks_up_line ()
|
|||
void
|
||||
Editor::tav_zoom_step (bool coarser)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &Editor::temporal_zoom_step), coarser));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::temporal_zoom_step, coarser)
|
||||
|
||||
_routes->suspend_redisplay ();
|
||||
|
||||
|
|
@ -1531,7 +1531,7 @@ Editor::tav_zoom_step (bool coarser)
|
|||
void
|
||||
Editor::temporal_zoom_step (bool coarser)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &Editor::temporal_zoom_step), coarser));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::temporal_zoom_step, coarser)
|
||||
|
||||
double nfpu;
|
||||
|
||||
|
|
@ -1791,7 +1791,7 @@ Editor::temporal_zoom_selection ()
|
|||
void
|
||||
Editor::temporal_zoom_session ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &Editor::temporal_zoom_session));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::temporal_zoom_session)
|
||||
|
||||
if (session) {
|
||||
temporal_zoom_by_frame (session->current_start_frame(), session->current_end_frame(), "zoom to session");
|
||||
|
|
@ -1851,8 +1851,8 @@ Editor::temporal_zoom_to_frame (bool coarser, nframes64_t frame)
|
|||
new_leftmost = 0;
|
||||
}
|
||||
// begin_reversible_command (_("zoom to frame"));
|
||||
// session->add_undo (bind (mem_fun(*this, &Editor::reposition_and_zoom), leftmost_frame, frames_per_unit));
|
||||
// session->add_redo (bind (mem_fun(*this, &Editor::reposition_and_zoom), new_leftmost, new_fpu));
|
||||
// session->add_undo (sigc::bind (sigc::mem_fun(*this, &Editor::reposition_and_zoom), leftmost_frame, frames_per_unit));
|
||||
// session->add_redo (sigc::bind (sigc::mem_fun(*this, &Editor::reposition_and_zoom), new_leftmost, new_fpu));
|
||||
// commit_reversible_command ();
|
||||
|
||||
reposition_and_zoom (new_leftmost, new_fpu);
|
||||
|
|
@ -2534,7 +2534,7 @@ Editor::rename_region()
|
|||
entry.set_text (rs.front()->region()->name());
|
||||
entry.select_region (0, -1);
|
||||
|
||||
entry.signal_activate().connect (bind (mem_fun (d, &Dialog::response), RESPONSE_OK));
|
||||
entry.signal_activate().connect (sigc::bind (sigc::mem_fun (d, &Dialog::response), RESPONSE_OK));
|
||||
|
||||
d.show_all ();
|
||||
|
||||
|
|
@ -2633,7 +2633,7 @@ Editor::build_interthread_progress_window ()
|
|||
// GTK2FIX: this button needs a modifiable label
|
||||
|
||||
Button* b = interthread_progress_window->add_button (Stock::CANCEL, RESPONSE_CANCEL);
|
||||
b->signal_clicked().connect (mem_fun(*this, &Editor::interthread_cancel_clicked));
|
||||
b->signal_clicked().connect (sigc::mem_fun(*this, &Editor::interthread_cancel_clicked));
|
||||
|
||||
interthread_cancel_button.add (interthread_cancel_label);
|
||||
|
||||
|
|
@ -2835,7 +2835,7 @@ Editor::separate_regions_between (const TimeSelection& ts)
|
|||
for (list<AudioRange>::const_iterator t = ts.begin(); t != ts.end(); ++t) {
|
||||
|
||||
sigc::connection c = rtv->view()->RegionViewAdded.connect (
|
||||
mem_fun(*this, &Editor::collect_new_region_view));
|
||||
sigc::mem_fun(*this, &Editor::collect_new_region_view));
|
||||
latest_regionviews.clear ();
|
||||
|
||||
playlist->partition ((nframes64_t)((*t).start * speed),
|
||||
|
|
@ -2847,7 +2847,7 @@ Editor::separate_regions_between (const TimeSelection& ts)
|
|||
|
||||
got_some = true;
|
||||
|
||||
rtv->view()->foreach_regionview (bind (
|
||||
rtv->view()->foreach_regionview (sigc::bind (
|
||||
sigc::ptr_fun (add_if_covered),
|
||||
&(*t), &new_selection));
|
||||
|
||||
|
|
@ -3695,7 +3695,7 @@ Editor::freeze_route ()
|
|||
current_interthread_info = &itt;
|
||||
|
||||
interthread_progress_connection =
|
||||
Glib::signal_timeout().connect (bind (mem_fun(*this, &Editor::freeze_progress_timeout), (gpointer) 0), 100);
|
||||
Glib::signal_timeout().connect (sigc::bind (sigc::mem_fun(*this, &Editor::freeze_progress_timeout), (gpointer) 0), 100);
|
||||
|
||||
itt.done = false;
|
||||
itt.cancel = false;
|
||||
|
|
@ -3854,7 +3854,7 @@ Editor::cut_copy (CutCopyOp op)
|
|||
Location* loc = find_location_from_marker (entered_marker, ignored);
|
||||
|
||||
if (session && loc) {
|
||||
Glib::signal_idle().connect (bind (mem_fun(*this, &Editor::really_remove_marker), loc));
|
||||
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun(*this, &Editor::really_remove_marker), loc));
|
||||
}
|
||||
|
||||
break_drag ();
|
||||
|
|
@ -4358,7 +4358,7 @@ Editor::duplicate_some_regions (RegionSelection& regions, float times)
|
|||
TimeAxisView& tv = (*i)->get_time_axis_view();
|
||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (&tv);
|
||||
latest_regionviews.clear ();
|
||||
sigc::connection c = rtv->view()->RegionViewAdded.connect (mem_fun(*this, &Editor::collect_new_region_view));
|
||||
sigc::connection c = rtv->view()->RegionViewAdded.connect (sigc::mem_fun(*this, &Editor::collect_new_region_view));
|
||||
|
||||
playlist = (*i)->region()->playlist();
|
||||
XMLNode &before = playlist->get_state();
|
||||
|
|
@ -6483,7 +6483,7 @@ void
|
|||
Editor::start_visual_state_op (uint32_t n)
|
||||
{
|
||||
if (visual_state_op_connection.empty()) {
|
||||
visual_state_op_connection = Glib::signal_timeout().connect (bind (mem_fun (*this, &Editor::end_visual_state_op), n), 1000);
|
||||
visual_state_op_connection = Glib::signal_timeout().connect (sigc::bind (sigc::mem_fun (*this, &Editor::end_visual_state_op), n), 1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ EditorRegions::EditorRegions (Editor* e)
|
|||
_display.set_data ("mouse-edits-require-mod1", (gpointer) 0x1);
|
||||
|
||||
_model = TreeStore::create (_columns);
|
||||
_model->set_sort_func (0, mem_fun (*this, &EditorRegions::sorter));
|
||||
_model->set_sort_func (0, sigc::mem_fun (*this, &EditorRegions::sorter));
|
||||
_model->set_sort_column (0, SORT_ASCENDING);
|
||||
|
||||
_display.set_model (_model);
|
||||
|
|
@ -91,9 +91,9 @@ EditorRegions::EditorRegions (Editor* e)
|
|||
|
||||
CellRendererText* region_name_cell = dynamic_cast<CellRendererText*>(_display.get_column_cell_renderer (0));
|
||||
region_name_cell->property_editable() = true;
|
||||
region_name_cell->signal_edited().connect (mem_fun (*this, &EditorRegions::name_edit));
|
||||
region_name_cell->signal_edited().connect (sigc::mem_fun (*this, &EditorRegions::name_edit));
|
||||
|
||||
_display.get_selection()->set_select_function (mem_fun (*this, &EditorRegions::selection_filter));
|
||||
_display.get_selection()->set_select_function (sigc::mem_fun (*this, &EditorRegions::selection_filter));
|
||||
|
||||
TreeViewColumn* tv_col = _display.get_column(0);
|
||||
CellRendererText* renderer = dynamic_cast<CellRendererText*>(_display.get_column_cell_renderer (0));
|
||||
|
|
@ -112,21 +112,21 @@ EditorRegions::EditorRegions (Editor* e)
|
|||
region_list_target_table.push_back (TargetEntry ("application/x-rootwin-drop"));
|
||||
|
||||
_display.add_drop_targets (region_list_target_table);
|
||||
_display.signal_drag_data_received().connect (mem_fun(*this, &EditorRegions::drag_data_received));
|
||||
_display.signal_drag_data_received().connect (sigc::mem_fun(*this, &EditorRegions::drag_data_received));
|
||||
|
||||
_scroller.add (_display);
|
||||
_scroller.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC);
|
||||
|
||||
_display.signal_key_press_event().connect (mem_fun(*this, &EditorRegions::key_press));
|
||||
_display.signal_key_release_event().connect (mem_fun(*this, &EditorRegions::key_release));
|
||||
_display.signal_button_press_event().connect (mem_fun(*this, &EditorRegions::button_press), false);
|
||||
_display.signal_button_release_event().connect (mem_fun(*this, &EditorRegions::button_release));
|
||||
_change_connection = _display.get_selection()->signal_changed().connect (mem_fun(*this, &EditorRegions::selection_changed));
|
||||
// _display.signal_popup_menu().connect (bind (mem_fun (*this, &Editor::show__display_context_menu), 1, 0));
|
||||
_display.signal_key_press_event().connect (sigc::mem_fun(*this, &EditorRegions::key_press));
|
||||
_display.signal_key_release_event().connect (sigc::mem_fun(*this, &EditorRegions::key_release));
|
||||
_display.signal_button_press_event().connect (sigc::mem_fun(*this, &EditorRegions::button_press), false);
|
||||
_display.signal_button_release_event().connect (sigc::mem_fun(*this, &EditorRegions::button_release));
|
||||
_change_connection = _display.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &EditorRegions::selection_changed));
|
||||
// _display.signal_popup_menu().connect (sigc::bind (sigc::mem_fun (*this, &Editor::show__display_context_menu), 1, 0));
|
||||
|
||||
//ARDOUR_UI::instance()->secondary_clock.mode_changed.connect (mem_fun(*this, &Editor::redisplay_regions));
|
||||
ARDOUR_UI::instance()->secondary_clock.mode_changed.connect (mem_fun(*this, &EditorRegions::update_all_rows));
|
||||
ARDOUR::Region::RegionPropertyChanged.connect (mem_fun(*this, &EditorRegions::update_row));
|
||||
//ARDOUR_UI::instance()->secondary_clock.mode_changed.connect (sigc::mem_fun(*this, &Editor::redisplay_regions));
|
||||
ARDOUR_UI::instance()->secondary_clock.mode_changed.connect (sigc::mem_fun(*this, &EditorRegions::update_all_rows));
|
||||
ARDOUR::Region::RegionPropertyChanged.connect (sigc::mem_fun(*this, &EditorRegions::update_row));
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -135,9 +135,9 @@ EditorRegions::connect_to_session (ARDOUR::Session* s)
|
|||
{
|
||||
EditorComponent::connect_to_session (s);
|
||||
|
||||
_session_connections.push_back (_session->RegionsAdded.connect (mem_fun(*this, &EditorRegions::handle_new_regions)));
|
||||
_session_connections.push_back (_session->RegionRemoved.connect (mem_fun(*this, &EditorRegions::handle_region_removed)));
|
||||
_session_connections.push_back (_session->RegionHiddenChange.connect (mem_fun(*this, &EditorRegions::region_hidden)));
|
||||
_session_connections.push_back (_session->RegionsAdded.connect (sigc::mem_fun(*this, &EditorRegions::handle_new_regions)));
|
||||
_session_connections.push_back (_session->RegionRemoved.connect (sigc::mem_fun(*this, &EditorRegions::handle_region_removed)));
|
||||
_session_connections.push_back (_session->RegionHiddenChange.connect (sigc::mem_fun(*this, &EditorRegions::region_hidden)));
|
||||
|
||||
redisplay ();
|
||||
}
|
||||
|
|
@ -145,7 +145,7 @@ EditorRegions::connect_to_session (ARDOUR::Session* s)
|
|||
void
|
||||
EditorRegions::handle_region_removed (boost::weak_ptr<Region> wregion)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &EditorRegions::handle_region_removed), wregion));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRegions::handle_region_removed, wregion)
|
||||
|
||||
redisplay ();
|
||||
}
|
||||
|
|
@ -153,7 +153,7 @@ EditorRegions::handle_region_removed (boost::weak_ptr<Region> wregion)
|
|||
void
|
||||
EditorRegions::handle_new_regions (vector<boost::weak_ptr<Region> >& v)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &EditorRegions::handle_new_regions), v));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRegions::handle_new_regions, v)
|
||||
add_regions (v);
|
||||
}
|
||||
|
||||
|
|
@ -170,7 +170,7 @@ EditorRegions::region_hidden_weak (boost::weak_ptr<Region> wr)
|
|||
void
|
||||
EditorRegions::region_hidden (boost::shared_ptr<Region> r)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &EditorRegions::region_hidden), r));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRegions::region_hidden, r)
|
||||
redisplay ();
|
||||
}
|
||||
|
||||
|
|
@ -345,7 +345,7 @@ EditorRegions::add_region (boost::shared_ptr<Region> region)
|
|||
void
|
||||
EditorRegions::region_changed (Change what_changed, boost::weak_ptr<Region> region)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &EditorRegions::region_changed), what_changed, region));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRegions::region_changed, what_changed, region)
|
||||
|
||||
boost::shared_ptr<Region> r = region.lock ();
|
||||
|
||||
|
|
@ -1086,7 +1086,7 @@ EditorRegions::reset_sort_type (RegionListSortType type, bool force)
|
|||
{
|
||||
if (type != _sort_type || force) {
|
||||
_sort_type = type;
|
||||
_model->set_sort_func (0, (mem_fun (*this, &EditorRegions::sorter)));
|
||||
_model->set_sort_func (0, (sigc::mem_fun (*this, &EditorRegions::sorter)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1129,7 +1129,7 @@ EditorRegions::selection_mapover (slot<void,boost::shared_ptr<Region> > sl)
|
|||
void
|
||||
EditorRegions::remove_region ()
|
||||
{
|
||||
selection_mapover (mem_fun (*_editor, &Editor::remove_a_region));
|
||||
selection_mapover (sigc::mem_fun (*_editor, &Editor::remove_a_region));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ EditorRouteGroups::EditorRouteGroups (Editor* e)
|
|||
|
||||
CellRendererText* name_cell = dynamic_cast<CellRendererText*>(_display.get_column_cell_renderer (0));
|
||||
name_cell->property_editable() = true;
|
||||
name_cell->signal_edited().connect (mem_fun (*this, &EditorRouteGroups::name_edit));
|
||||
name_cell->signal_edited().connect (sigc::mem_fun (*this, &EditorRouteGroups::name_edit));
|
||||
|
||||
/* use checkbox for the active + visible columns */
|
||||
|
||||
|
|
@ -124,7 +124,7 @@ EditorRouteGroups::EditorRouteGroups (Editor* e)
|
|||
active_cell->property_activatable() = true;
|
||||
active_cell->property_radio() = false;
|
||||
|
||||
_model->signal_row_changed().connect (mem_fun (*this, &EditorRouteGroups::row_change));
|
||||
_model->signal_row_changed().connect (sigc::mem_fun (*this, &EditorRouteGroups::row_change));
|
||||
|
||||
_display.set_name ("EditGroupList");
|
||||
_display.get_selection()->set_mode (SELECTION_SINGLE);
|
||||
|
|
@ -136,7 +136,7 @@ EditorRouteGroups::EditorRouteGroups (Editor* e)
|
|||
_scroller.add (_display);
|
||||
_scroller.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC);
|
||||
|
||||
_display.signal_button_press_event().connect (mem_fun(*this, &EditorRouteGroups::button_press_event), false);
|
||||
_display.signal_button_press_event().connect (sigc::mem_fun(*this, &EditorRouteGroups::button_press_event), false);
|
||||
|
||||
_display_packer = new VBox;
|
||||
HBox* button_box = manage (new HBox());
|
||||
|
|
@ -155,8 +155,8 @@ EditorRouteGroups::EditorRouteGroups (Editor* e)
|
|||
w->show();
|
||||
remove_button->add (*w);
|
||||
|
||||
add_button->signal_clicked().connect (hide_return (mem_fun (*this, &EditorRouteGroups::new_route_group)));
|
||||
remove_button->signal_clicked().connect (mem_fun (*this, &EditorRouteGroups::remove_selected));
|
||||
add_button->signal_clicked().connect (hide_return (sigc::mem_fun (*this, &EditorRouteGroups::new_route_group)));
|
||||
remove_button->signal_clicked().connect (sigc::mem_fun (*this, &EditorRouteGroups::remove_selected));
|
||||
|
||||
button_box->pack_start (*add_button);
|
||||
button_box->pack_start (*remove_button);
|
||||
|
|
@ -175,25 +175,25 @@ EditorRouteGroups::menu (RouteGroup* g)
|
|||
|
||||
Menu* new_from = new Menu;
|
||||
MenuList& f = new_from->items ();
|
||||
f.push_back (MenuElem (_("Selection..."), mem_fun (*this, &EditorRouteGroups::new_from_selection)));
|
||||
f.push_back (MenuElem (_("Record Enabled..."), mem_fun (*this, &EditorRouteGroups::new_from_rec_enabled)));
|
||||
f.push_back (MenuElem (_("Soloed..."), mem_fun (*this, &EditorRouteGroups::new_from_soloed)));
|
||||
f.push_back (MenuElem (_("Selection..."), sigc::mem_fun (*this, &EditorRouteGroups::new_from_selection)));
|
||||
f.push_back (MenuElem (_("Record Enabled..."), sigc::mem_fun (*this, &EditorRouteGroups::new_from_rec_enabled)));
|
||||
f.push_back (MenuElem (_("Soloed..."), sigc::mem_fun (*this, &EditorRouteGroups::new_from_soloed)));
|
||||
|
||||
_menu = new Menu;
|
||||
_menu->set_name ("ArdourContextMenu");
|
||||
MenuList& items = _menu->items();
|
||||
|
||||
items.push_back (MenuElem (_("New..."), hide_return (mem_fun(*this, &EditorRouteGroups::new_route_group))));
|
||||
items.push_back (MenuElem (_("New..."), hide_return (sigc::mem_fun(*this, &EditorRouteGroups::new_route_group))));
|
||||
items.push_back (MenuElem (_("New From"), *new_from));
|
||||
if (g) {
|
||||
items.push_back (MenuElem (_("Edit..."), bind (mem_fun (*this, &EditorRouteGroups::edit), g)));
|
||||
items.push_back (MenuElem (_("Fit to Window"), bind (mem_fun (*_editor, &Editor::fit_route_group), g)));
|
||||
items.push_back (MenuElem (_("Subgroup"), bind (mem_fun (*this, &EditorRouteGroups::subgroup), g)));
|
||||
items.push_back (MenuElem (_("Collect"), bind (mem_fun (*this, &EditorRouteGroups::collect), g)));
|
||||
items.push_back (MenuElem (_("Edit..."), sigc::bind (sigc::mem_fun (*this, &EditorRouteGroups::edit), g)));
|
||||
items.push_back (MenuElem (_("Fit to Window"), sigc::bind (sigc::mem_fun (*_editor, &Editor::fit_route_group), g)));
|
||||
items.push_back (MenuElem (_("Subgroup"), sigc::bind (sigc::mem_fun (*this, &EditorRouteGroups::subgroup), g)));
|
||||
items.push_back (MenuElem (_("Collect"), sigc::bind (sigc::mem_fun (*this, &EditorRouteGroups::collect), g)));
|
||||
}
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Activate All"), mem_fun(*this, &EditorRouteGroups::activate_all)));
|
||||
items.push_back (MenuElem (_("Disable All"), mem_fun(*this, &EditorRouteGroups::disable_all)));
|
||||
items.push_back (MenuElem (_("Activate All"), sigc::mem_fun(*this, &EditorRouteGroups::activate_all)));
|
||||
items.push_back (MenuElem (_("Disable All"), sigc::mem_fun(*this, &EditorRouteGroups::disable_all)));
|
||||
|
||||
return _menu;
|
||||
}
|
||||
|
|
@ -214,7 +214,7 @@ void
|
|||
EditorRouteGroups::activate_all ()
|
||||
{
|
||||
_session->foreach_route_group (
|
||||
bind (mem_fun (*this, &EditorRouteGroups::set_activation), true)
|
||||
sigc::bind (sigc::mem_fun (*this, &EditorRouteGroups::set_activation), true)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ void
|
|||
EditorRouteGroups::disable_all ()
|
||||
{
|
||||
_session->foreach_route_group (
|
||||
bind (mem_fun (*this, &EditorRouteGroups::set_activation), false)
|
||||
sigc::bind (sigc::mem_fun (*this, &EditorRouteGroups::set_activation), false)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -551,7 +551,7 @@ EditorRouteGroups::row_change (const Gtk::TreeModel::Path&, const Gtk::TreeModel
|
|||
void
|
||||
EditorRouteGroups::add (RouteGroup* group)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &EditorRouteGroups::add), group));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRouteGroups::add, group)
|
||||
bool focus = false;
|
||||
|
||||
TreeModel::Row row = *(_model->append());
|
||||
|
|
@ -575,7 +575,7 @@ EditorRouteGroups::add (RouteGroup* group)
|
|||
focus = true;
|
||||
}
|
||||
|
||||
group->FlagsChanged.connect (bind (mem_fun (*this, &EditorRouteGroups::flags_changed), group));
|
||||
group->FlagsChanged.connect (sigc::bind (sigc::mem_fun (*this, &EditorRouteGroups::flags_changed), group));
|
||||
|
||||
if (focus) {
|
||||
TreeViewColumn* col = _display.get_column (0);
|
||||
|
|
@ -591,7 +591,7 @@ EditorRouteGroups::add (RouteGroup* group)
|
|||
void
|
||||
EditorRouteGroups::groups_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &EditorRouteGroups::groups_changed));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRouteGroups::groups_changed)
|
||||
|
||||
/* just rebuild the while thing */
|
||||
|
||||
|
|
@ -605,13 +605,13 @@ EditorRouteGroups::groups_changed ()
|
|||
row[_columns.routegroup] = 0;
|
||||
}
|
||||
|
||||
_session->foreach_route_group (mem_fun (*this, &EditorRouteGroups::add));
|
||||
_session->foreach_route_group (sigc::mem_fun (*this, &EditorRouteGroups::add));
|
||||
}
|
||||
|
||||
void
|
||||
EditorRouteGroups::flags_changed (void* src, RouteGroup* group)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &EditorRouteGroups::flags_changed), src, group));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRouteGroups::flags_changed, src, group)
|
||||
|
||||
_in_row_change = true;
|
||||
|
||||
|
|
@ -666,8 +666,8 @@ EditorRouteGroups::connect_to_session (Session* s)
|
|||
{
|
||||
EditorComponent::connect_to_session (s);
|
||||
|
||||
_session_connections.push_back (_session->route_group_added.connect (mem_fun (*this, &EditorRouteGroups::add)));
|
||||
_session_connections.push_back (_session->route_group_removed.connect (mem_fun (*this, &EditorRouteGroups::groups_changed)));
|
||||
_session_connections.push_back (_session->route_group_added.connect (sigc::mem_fun (*this, &EditorRouteGroups::add)));
|
||||
_session_connections.push_back (_session->route_group_removed.connect (sigc::mem_fun (*this, &EditorRouteGroups::groups_changed)));
|
||||
|
||||
groups_changed ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ EditorRoutes::EditorRoutes (Editor* e)
|
|||
|
||||
rec_col_renderer->set_active_pixbuf (::get_icon("rec-enabled"));
|
||||
rec_col_renderer->set_inactive_pixbuf (::get_icon("act-disabled"));
|
||||
rec_col_renderer->signal_toggled().connect (mem_fun (*this, &EditorRoutes::on_tv_rec_enable_toggled));
|
||||
rec_col_renderer->signal_toggled().connect (sigc::mem_fun (*this, &EditorRoutes::on_tv_rec_enable_toggled));
|
||||
|
||||
TreeViewColumn* rec_state_column = manage (new TreeViewColumn("R", *rec_col_renderer));
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ EditorRoutes::EditorRoutes (Editor* e)
|
|||
|
||||
mute_col_renderer->set_pixbuf (0, ::get_icon("act-disabled"));
|
||||
mute_col_renderer->set_pixbuf (1, ::get_icon("mute-enabled"));
|
||||
mute_col_renderer->signal_changed().connect (mem_fun (*this, &EditorRoutes::on_tv_mute_enable_toggled));
|
||||
mute_col_renderer->signal_changed().connect (sigc::mem_fun (*this, &EditorRoutes::on_tv_mute_enable_toggled));
|
||||
|
||||
TreeViewColumn* mute_state_column = manage (new TreeViewColumn("M", *mute_col_renderer));
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ EditorRoutes::EditorRoutes (Editor* e)
|
|||
|
||||
solo_col_renderer->set_pixbuf (0, ::get_icon("act-disabled"));
|
||||
solo_col_renderer->set_pixbuf (1, ::get_icon("solo-enabled"));
|
||||
solo_col_renderer->signal_changed().connect (mem_fun (*this, &EditorRoutes::on_tv_solo_enable_toggled));
|
||||
solo_col_renderer->signal_changed().connect (sigc::mem_fun (*this, &EditorRoutes::on_tv_solo_enable_toggled));
|
||||
|
||||
TreeViewColumn* solo_state_column = manage (new TreeViewColumn("S", *solo_col_renderer));
|
||||
|
||||
|
|
@ -110,7 +110,7 @@ EditorRoutes::EditorRoutes (Editor* e)
|
|||
|
||||
solo_iso_renderer->set_pixbuf (0, ::get_icon("act-disabled"));
|
||||
solo_iso_renderer->set_pixbuf (1, ::get_icon("solo-isolated"));
|
||||
solo_iso_renderer->signal_changed().connect (mem_fun (*this, &EditorRoutes::on_tv_solo_isolate_toggled));
|
||||
solo_iso_renderer->signal_changed().connect (sigc::mem_fun (*this, &EditorRoutes::on_tv_solo_isolate_toggled));
|
||||
|
||||
TreeViewColumn* solo_isolate_state_column = manage (new TreeViewColumn("I", *solo_iso_renderer));
|
||||
|
||||
|
|
@ -139,19 +139,19 @@ EditorRoutes::EditorRoutes (Editor* e)
|
|||
|
||||
name_column->add_attribute (name_cell->property_editable(), _columns.name_editable);
|
||||
name_cell->property_editable() = true;
|
||||
name_cell->signal_edited().connect (mem_fun (*this, &EditorRoutes::name_edit));
|
||||
name_cell->signal_edited().connect (sigc::mem_fun (*this, &EditorRoutes::name_edit));
|
||||
|
||||
CellRendererToggle* visible_cell = dynamic_cast<CellRendererToggle*> (_display.get_column_cell_renderer (4));
|
||||
|
||||
visible_cell->property_activatable() = true;
|
||||
visible_cell->property_radio() = false;
|
||||
visible_cell->signal_toggled().connect (mem_fun (*this, &EditorRoutes::visible_changed));
|
||||
visible_cell->signal_toggled().connect (sigc::mem_fun (*this, &EditorRoutes::visible_changed));
|
||||
|
||||
_model->signal_row_deleted().connect (mem_fun (*this, &EditorRoutes::route_deleted));
|
||||
_model->signal_rows_reordered().connect (mem_fun (*this, &EditorRoutes::reordered));
|
||||
_display.signal_button_press_event().connect (mem_fun (*this, &EditorRoutes::button_press), false);
|
||||
_model->signal_row_deleted().connect (sigc::mem_fun (*this, &EditorRoutes::route_deleted));
|
||||
_model->signal_rows_reordered().connect (sigc::mem_fun (*this, &EditorRoutes::reordered));
|
||||
_display.signal_button_press_event().connect (sigc::mem_fun (*this, &EditorRoutes::button_press), false);
|
||||
|
||||
Route::SyncOrderKeys.connect (mem_fun (*this, &EditorRoutes::sync_order_keys));
|
||||
Route::SyncOrderKeys.connect (sigc::mem_fun (*this, &EditorRoutes::sync_order_keys));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -161,7 +161,7 @@ EditorRoutes::connect_to_session (Session* s)
|
|||
|
||||
initial_display ();
|
||||
|
||||
_session->SoloChanged.connect (mem_fun (*this, &EditorRoutes::solo_changed_so_update_mute));
|
||||
_session->SoloChanged.connect (sigc::mem_fun (*this, &EditorRoutes::solo_changed_so_update_mute));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -239,13 +239,13 @@ EditorRoutes::build_menu ()
|
|||
MenuList& items = _menu->items();
|
||||
_menu->set_name ("ArdourContextMenu");
|
||||
|
||||
items.push_back (MenuElem (_("Show All"), mem_fun (*this, &EditorRoutes::show_all_routes)));
|
||||
items.push_back (MenuElem (_("Hide All"), mem_fun (*this, &EditorRoutes::hide_all_routes)));
|
||||
items.push_back (MenuElem (_("Show All Audio Tracks"), mem_fun (*this, &EditorRoutes::show_all_audiotracks)));
|
||||
items.push_back (MenuElem (_("Hide All Audio Tracks"), mem_fun (*this, &EditorRoutes::hide_all_audiotracks)));
|
||||
items.push_back (MenuElem (_("Show All Audio Busses"), mem_fun (*this, &EditorRoutes::show_all_audiobus)));
|
||||
items.push_back (MenuElem (_("Hide All Audio Busses"), mem_fun (*this, &EditorRoutes::hide_all_audiobus)));
|
||||
items.push_back (MenuElem (_("Show Tracks With Regions Under Playhead"), mem_fun (*this, &EditorRoutes::show_tracks_with_regions_at_playhead)));
|
||||
items.push_back (MenuElem (_("Show All"), sigc::mem_fun (*this, &EditorRoutes::show_all_routes)));
|
||||
items.push_back (MenuElem (_("Hide All"), sigc::mem_fun (*this, &EditorRoutes::hide_all_routes)));
|
||||
items.push_back (MenuElem (_("Show All Audio Tracks"), sigc::mem_fun (*this, &EditorRoutes::show_all_audiotracks)));
|
||||
items.push_back (MenuElem (_("Hide All Audio Tracks"), sigc::mem_fun (*this, &EditorRoutes::hide_all_audiotracks)));
|
||||
items.push_back (MenuElem (_("Show All Audio Busses"), sigc::mem_fun (*this, &EditorRoutes::show_all_audiobus)));
|
||||
items.push_back (MenuElem (_("Hide All Audio Busses"), sigc::mem_fun (*this, &EditorRoutes::hide_all_audiobus)));
|
||||
items.push_back (MenuElem (_("Show Tracks With Regions Under Playhead"), sigc::mem_fun (*this, &EditorRoutes::show_tracks_with_regions_at_playhead)));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -305,7 +305,7 @@ EditorRoutes::redisplay ()
|
|||
we can't do this here, because we could mess up something that is traversing
|
||||
the track order and has caused a redisplay of the list.
|
||||
*/
|
||||
Glib::signal_idle().connect (mem_fun (*_editor, &Editor::sync_track_view_list_and_routes));
|
||||
Glib::signal_idle().connect (sigc::mem_fun (*_editor, &Editor::sync_track_view_list_and_routes));
|
||||
|
||||
_editor->full_canvas_height = position + _editor->canvas_timebars_vsize;
|
||||
_editor->vertical_adjustment.set_upper (_editor->full_canvas_height);
|
||||
|
|
@ -381,18 +381,18 @@ EditorRoutes::routes_added (list<RouteTimeAxisView*> routes)
|
|||
_ignore_reorder = false;
|
||||
|
||||
boost::weak_ptr<Route> wr ((*x)->route());
|
||||
(*x)->route()->gui_changed.connect (mem_fun (*this, &EditorRoutes::handle_gui_changes));
|
||||
(*x)->route()->NameChanged.connect (bind (mem_fun (*this, &EditorRoutes::route_name_changed), wr));
|
||||
(*x)->GoingAway.connect (bind (mem_fun (*this, &EditorRoutes::route_removed), *x));
|
||||
(*x)->route()->gui_changed.connect (sigc::mem_fun (*this, &EditorRoutes::handle_gui_changes));
|
||||
(*x)->route()->NameChanged.connect (sigc::bind (sigc::mem_fun (*this, &EditorRoutes::route_name_changed), wr));
|
||||
(*x)->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &EditorRoutes::route_removed), *x));
|
||||
|
||||
if ((*x)->is_track()) {
|
||||
boost::shared_ptr<Track> t = boost::dynamic_pointer_cast<Track> ((*x)->route());
|
||||
t->diskstream()->RecordEnableChanged.connect (mem_fun (*this, &EditorRoutes::update_rec_display));
|
||||
t->diskstream()->RecordEnableChanged.connect (sigc::mem_fun (*this, &EditorRoutes::update_rec_display));
|
||||
}
|
||||
|
||||
(*x)->route()->mute_changed.connect (mem_fun (*this, &EditorRoutes::update_mute_display));
|
||||
(*x)->route()->solo_changed.connect (mem_fun (*this, &EditorRoutes::update_solo_display));
|
||||
(*x)->route()->solo_isolated_changed.connect (mem_fun (*this, &EditorRoutes::update_solo_isolate_display));
|
||||
(*x)->route()->mute_changed.connect (sigc::mem_fun (*this, &EditorRoutes::update_mute_display));
|
||||
(*x)->route()->solo_changed.connect (sigc::mem_fun (*this, &EditorRoutes::update_solo_display));
|
||||
(*x)->route()->solo_isolated_changed.connect (sigc::mem_fun (*this, &EditorRoutes::update_solo_isolate_display));
|
||||
}
|
||||
|
||||
update_rec_display ();
|
||||
|
|
@ -403,7 +403,7 @@ EditorRoutes::routes_added (list<RouteTimeAxisView*> routes)
|
|||
void
|
||||
EditorRoutes::handle_gui_changes (string const & what, void *src)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &EditorRoutes::handle_gui_changes), what, src));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRoutes::handle_gui_changes, what, src)
|
||||
|
||||
if (what == "track_height") {
|
||||
/* Optional :make tracks change height while it happens, instead
|
||||
|
|
@ -421,7 +421,7 @@ EditorRoutes::handle_gui_changes (string const & what, void *src)
|
|||
void
|
||||
EditorRoutes::route_removed (TimeAxisView *tv)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &EditorRoutes::route_removed), tv));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRoutes::route_removed, tv)
|
||||
|
||||
TreeModel::Children rows = _model->children();
|
||||
TreeModel::Children::iterator ri;
|
||||
|
|
@ -445,7 +445,7 @@ EditorRoutes::route_removed (TimeAxisView *tv)
|
|||
void
|
||||
EditorRoutes::route_name_changed (boost::weak_ptr<Route> r)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &EditorRoutes::route_name_changed), r));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRoutes::route_name_changed, r)
|
||||
|
||||
boost::shared_ptr<Route> route = r.lock ();
|
||||
if (!route) {
|
||||
|
|
@ -973,7 +973,7 @@ EditorRoutes::name_edit (Glib::ustring const & path, Glib::ustring const & new_t
|
|||
void
|
||||
EditorRoutes::solo_changed_so_update_mute ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &EditorRoutes::solo_changed_so_update_mute));
|
||||
ENSURE_GUI_THREAD (*this, &EditorRoutes::solo_changed_so_update_mute)
|
||||
|
||||
update_mute_display (this);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,25 +142,25 @@ Editor::initialize_rulers ()
|
|||
frames_ruler->add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK|Gdk::SCROLL_MASK);
|
||||
minsec_ruler->add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK|Gdk::SCROLL_MASK);
|
||||
|
||||
timecode_ruler->signal_button_release_event().connect (mem_fun(*this, &Editor::ruler_button_release));
|
||||
bbt_ruler->signal_button_release_event().connect (mem_fun(*this, &Editor::ruler_button_release));
|
||||
frames_ruler->signal_button_release_event().connect (mem_fun(*this, &Editor::ruler_button_release));
|
||||
minsec_ruler->signal_button_release_event().connect (mem_fun(*this, &Editor::ruler_button_release));
|
||||
timecode_ruler->signal_button_release_event().connect (sigc::mem_fun(*this, &Editor::ruler_button_release));
|
||||
bbt_ruler->signal_button_release_event().connect (sigc::mem_fun(*this, &Editor::ruler_button_release));
|
||||
frames_ruler->signal_button_release_event().connect (sigc::mem_fun(*this, &Editor::ruler_button_release));
|
||||
minsec_ruler->signal_button_release_event().connect (sigc::mem_fun(*this, &Editor::ruler_button_release));
|
||||
|
||||
timecode_ruler->signal_button_press_event().connect (mem_fun(*this, &Editor::ruler_button_press));
|
||||
bbt_ruler->signal_button_press_event().connect (mem_fun(*this, &Editor::ruler_button_press));
|
||||
frames_ruler->signal_button_press_event().connect (mem_fun(*this, &Editor::ruler_button_press));
|
||||
minsec_ruler->signal_button_press_event().connect (mem_fun(*this, &Editor::ruler_button_press));
|
||||
timecode_ruler->signal_button_press_event().connect (sigc::mem_fun(*this, &Editor::ruler_button_press));
|
||||
bbt_ruler->signal_button_press_event().connect (sigc::mem_fun(*this, &Editor::ruler_button_press));
|
||||
frames_ruler->signal_button_press_event().connect (sigc::mem_fun(*this, &Editor::ruler_button_press));
|
||||
minsec_ruler->signal_button_press_event().connect (sigc::mem_fun(*this, &Editor::ruler_button_press));
|
||||
|
||||
timecode_ruler->signal_motion_notify_event().connect (mem_fun(*this, &Editor::ruler_mouse_motion));
|
||||
bbt_ruler->signal_motion_notify_event().connect (mem_fun(*this, &Editor::ruler_mouse_motion));
|
||||
frames_ruler->signal_motion_notify_event().connect (mem_fun(*this, &Editor::ruler_mouse_motion));
|
||||
minsec_ruler->signal_motion_notify_event().connect (mem_fun(*this, &Editor::ruler_mouse_motion));
|
||||
timecode_ruler->signal_motion_notify_event().connect (sigc::mem_fun(*this, &Editor::ruler_mouse_motion));
|
||||
bbt_ruler->signal_motion_notify_event().connect (sigc::mem_fun(*this, &Editor::ruler_mouse_motion));
|
||||
frames_ruler->signal_motion_notify_event().connect (sigc::mem_fun(*this, &Editor::ruler_mouse_motion));
|
||||
minsec_ruler->signal_motion_notify_event().connect (sigc::mem_fun(*this, &Editor::ruler_mouse_motion));
|
||||
|
||||
timecode_ruler->signal_scroll_event().connect (mem_fun(*this, &Editor::ruler_scroll));
|
||||
bbt_ruler->signal_scroll_event().connect (mem_fun(*this, &Editor::ruler_scroll));
|
||||
frames_ruler->signal_scroll_event().connect (mem_fun(*this, &Editor::ruler_scroll));
|
||||
minsec_ruler->signal_scroll_event().connect (mem_fun(*this, &Editor::ruler_scroll));
|
||||
timecode_ruler->signal_scroll_event().connect (sigc::mem_fun(*this, &Editor::ruler_scroll));
|
||||
bbt_ruler->signal_scroll_event().connect (sigc::mem_fun(*this, &Editor::ruler_scroll));
|
||||
frames_ruler->signal_scroll_event().connect (sigc::mem_fun(*this, &Editor::ruler_scroll));
|
||||
minsec_ruler->signal_scroll_event().connect (sigc::mem_fun(*this, &Editor::ruler_scroll));
|
||||
|
||||
visible_timebars = 0; /*this will be changed below */
|
||||
canvas_timebars_vsize = 0;
|
||||
|
|
@ -338,15 +338,15 @@ Editor::popup_ruler_menu (nframes64_t where, ItemType t)
|
|||
|
||||
switch (t) {
|
||||
case MarkerBarItem:
|
||||
ruler_items.push_back (MenuElem (_("New location marker"), bind ( mem_fun(*this, &Editor::mouse_add_new_marker), where, false, false)));
|
||||
ruler_items.push_back (MenuElem (_("Clear all locations"), mem_fun(*this, &Editor::clear_markers)));
|
||||
ruler_items.push_back (MenuElem (_("Unhide locations"), mem_fun(*this, &Editor::unhide_markers)));
|
||||
ruler_items.push_back (MenuElem (_("New location marker"), sigc::bind ( sigc::mem_fun(*this, &Editor::mouse_add_new_marker), where, false, false)));
|
||||
ruler_items.push_back (MenuElem (_("Clear all locations"), sigc::mem_fun(*this, &Editor::clear_markers)));
|
||||
ruler_items.push_back (MenuElem (_("Unhide locations"), sigc::mem_fun(*this, &Editor::unhide_markers)));
|
||||
ruler_items.push_back (SeparatorElem ());
|
||||
break;
|
||||
case RangeMarkerBarItem:
|
||||
//ruler_items.push_back (MenuElem (_("New Range")));
|
||||
ruler_items.push_back (MenuElem (_("Clear all ranges"), mem_fun(*this, &Editor::clear_ranges)));
|
||||
ruler_items.push_back (MenuElem (_("Unhide ranges"), mem_fun(*this, &Editor::unhide_ranges)));
|
||||
ruler_items.push_back (MenuElem (_("Clear all ranges"), sigc::mem_fun(*this, &Editor::clear_ranges)));
|
||||
ruler_items.push_back (MenuElem (_("Unhide ranges"), sigc::mem_fun(*this, &Editor::unhide_ranges)));
|
||||
ruler_items.push_back (SeparatorElem ());
|
||||
|
||||
break;
|
||||
|
|
@ -356,18 +356,18 @@ Editor::popup_ruler_menu (nframes64_t where, ItemType t)
|
|||
|
||||
case CdMarkerBarItem:
|
||||
// TODO
|
||||
ruler_items.push_back (MenuElem (_("New CD track marker"), bind ( mem_fun(*this, &Editor::mouse_add_new_marker), where, true, false)));
|
||||
ruler_items.push_back (MenuElem (_("New CD track marker"), sigc::bind ( sigc::mem_fun(*this, &Editor::mouse_add_new_marker), where, true, false)));
|
||||
break;
|
||||
|
||||
|
||||
case TempoBarItem:
|
||||
ruler_items.push_back (MenuElem (_("New Tempo"), bind ( mem_fun(*this, &Editor::mouse_add_new_tempo_event), where)));
|
||||
ruler_items.push_back (MenuElem (_("New Tempo"), sigc::bind ( sigc::mem_fun(*this, &Editor::mouse_add_new_tempo_event), where)));
|
||||
ruler_items.push_back (MenuElem (_("Clear tempo")));
|
||||
ruler_items.push_back (SeparatorElem ());
|
||||
break;
|
||||
|
||||
case MeterBarItem:
|
||||
ruler_items.push_back (MenuElem (_("New Meter"), bind ( mem_fun(*this, &Editor::mouse_add_new_meter_event), where)));
|
||||
ruler_items.push_back (MenuElem (_("New Meter"), sigc::bind ( sigc::mem_fun(*this, &Editor::mouse_add_new_meter_event), where)));
|
||||
ruler_items.push_back (MenuElem (_("Clear meter")));
|
||||
ruler_items.push_back (SeparatorElem ());
|
||||
break;
|
||||
|
|
@ -773,7 +773,7 @@ Editor::update_ruler_visibility ()
|
|||
void
|
||||
Editor::update_just_timecode ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &Editor::update_just_timecode));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::update_just_timecode)
|
||||
|
||||
if (session == 0) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -363,7 +363,7 @@ Editor::mapped_get_equivalent_regions (RouteTimeAxisView& tv, uint32_t, RegionVi
|
|||
void
|
||||
Editor::get_equivalent_regions (RegionView* basis, vector<RegionView*>& equivalent_regions, RouteGroup::Property prop) const
|
||||
{
|
||||
mapover_tracks (bind (mem_fun (*this, &Editor::mapped_get_equivalent_regions), basis, &equivalent_regions), &basis->get_trackview(), prop);
|
||||
mapover_tracks (sigc::bind (sigc::mem_fun (*this, &Editor::mapped_get_equivalent_regions), basis, &equivalent_regions), &basis->get_trackview(), prop);
|
||||
|
||||
/* add clicked regionview since we skipped all other regions in the same track as the one it was in */
|
||||
|
||||
|
|
@ -380,7 +380,7 @@ Editor::get_equivalent_regions (RegionSelection & basis, RouteGroup::Property pr
|
|||
vector<RegionView*> eq;
|
||||
|
||||
mapover_tracks (
|
||||
bind (mem_fun (*this, &Editor::mapped_get_equivalent_regions), *i, &eq),
|
||||
sigc::bind (sigc::mem_fun (*this, &Editor::mapped_get_equivalent_regions), *i, &eq),
|
||||
&(*i)->get_trackview(), prop
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ using namespace Gtkmm2ext;
|
|||
void
|
||||
Editor::handle_new_named_selection ()
|
||||
{
|
||||
ARDOUR_UI::instance()->call_slot (mem_fun(*this, &Editor::redisplay_named_selections));
|
||||
ARDOUR_UI::instance()->call_slot (sigc::mem_fun(*this, &Editor::redisplay_named_selections));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ EditorSnapshots::EditorSnapshots (Editor* e)
|
|||
_scroller.add (_display);
|
||||
_scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
|
||||
|
||||
_display.get_selection()->signal_changed().connect (mem_fun(*this, &EditorSnapshots::selection_changed));
|
||||
_display.signal_button_press_event().connect (mem_fun (*this, &EditorSnapshots::button_press), false);
|
||||
_display.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &EditorSnapshots::selection_changed));
|
||||
_display.signal_button_press_event().connect (sigc::mem_fun (*this, &EditorSnapshots::button_press), false);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -121,9 +121,9 @@ EditorSnapshots::popup_context_menu (int button, int32_t time, Glib::ustring sna
|
|||
|
||||
const bool modification_allowed = (_session->snap_name() != snapshot_name && _session->name() != snapshot_name);
|
||||
|
||||
add_item_with_sensitivity (items, MenuElem (_("Remove"), bind (mem_fun (*this, &EditorSnapshots::remove), snapshot_name)), modification_allowed);
|
||||
add_item_with_sensitivity (items, MenuElem (_("Remove"), sigc::bind (sigc::mem_fun (*this, &EditorSnapshots::remove), snapshot_name)), modification_allowed);
|
||||
|
||||
add_item_with_sensitivity (items, MenuElem (_("Rename"), bind (mem_fun (*this, &EditorSnapshots::rename), snapshot_name)), modification_allowed);
|
||||
add_item_with_sensitivity (items, MenuElem (_("Rename"), sigc::bind (sigc::mem_fun (*this, &EditorSnapshots::rename), snapshot_name)), modification_allowed);
|
||||
|
||||
_menu.popup (button, time);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,12 +59,12 @@ EditorSummary::connect_to_session (Session* s)
|
|||
{
|
||||
EditorComponent::connect_to_session (s);
|
||||
|
||||
Region::RegionPropertyChanged.connect (sigc::hide (mem_fun (*this, &EditorSummary::set_dirty)));
|
||||
Region::RegionPropertyChanged.connect (sigc::hide (sigc::mem_fun (*this, &EditorSummary::set_dirty)));
|
||||
|
||||
_session_connections.push_back (_session->RegionRemoved.connect (sigc::hide (mem_fun (*this, &EditorSummary::set_dirty))));
|
||||
_session_connections.push_back (_session->StartTimeChanged.connect (mem_fun (*this, &EditorSummary::set_dirty)));
|
||||
_session_connections.push_back (_session->EndTimeChanged.connect (mem_fun (*this, &EditorSummary::set_dirty)));
|
||||
_editor->playhead_cursor->PositionChanged.connect (mem_fun (*this, &EditorSummary::playhead_position_changed));
|
||||
_session_connections.push_back (_session->RegionRemoved.connect (sigc::hide (sigc::mem_fun (*this, &EditorSummary::set_dirty))));
|
||||
_session_connections.push_back (_session->StartTimeChanged.connect (sigc::mem_fun (*this, &EditorSummary::set_dirty)));
|
||||
_session_connections.push_back (_session->EndTimeChanged.connect (sigc::mem_fun (*this, &EditorSummary::set_dirty)));
|
||||
_editor->playhead_cursor->PositionChanged.connect (sigc::mem_fun (*this, &EditorSummary::playhead_position_changed));
|
||||
|
||||
set_dirty ();
|
||||
}
|
||||
|
|
@ -171,8 +171,8 @@ EditorSummary::render (cairo_t* cr)
|
|||
double const h = (*i)->effective_height () * _y_scale;
|
||||
cairo_set_line_width (cr, h);
|
||||
|
||||
s->foreach_regionview (bind (
|
||||
mem_fun (*this, &EditorSummary::render_region),
|
||||
s->foreach_regionview (sigc::bind (
|
||||
sigc::mem_fun (*this, &EditorSummary::render_region),
|
||||
cr,
|
||||
y + h / 2
|
||||
));
|
||||
|
|
@ -226,7 +226,7 @@ EditorSummary::render_region (RegionView* r, cairo_t* cr, double y) const
|
|||
void
|
||||
EditorSummary::set_overlays_dirty ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &EditorSummary::set_overlays_dirty));
|
||||
ENSURE_GUI_THREAD (*this, &EditorSummary::set_overlays_dirty)
|
||||
queue_draw ();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ Editor::tempo_map_changed (Change ignored)
|
|||
return;
|
||||
}
|
||||
|
||||
ENSURE_GUI_THREAD(bind (mem_fun (*this, &Editor::tempo_map_changed), ignored));
|
||||
ENSURE_GUI_THREAD (*this, &Editor::tempo_map_changed, ignored)
|
||||
|
||||
if (tempo_lines)
|
||||
tempo_lines->tempo_map_changed();
|
||||
|
|
@ -126,7 +126,7 @@ Editor::redisplay_tempo (bool immediate_redraw)
|
|||
#ifdef GTKOSX
|
||||
redraw_measures ();
|
||||
#else
|
||||
Glib::signal_idle().connect (mem_fun (*this, &Editor::redraw_measures));
|
||||
Glib::signal_idle().connect (sigc::mem_fun (*this, &Editor::redraw_measures));
|
||||
#endif
|
||||
}
|
||||
update_tempo_based_rulers (); // redraw rulers and measures
|
||||
|
|
@ -207,7 +207,7 @@ Editor::mouse_add_new_tempo_event (nframes64_t frame)
|
|||
|
||||
tempo_dialog.set_position (Gtk::WIN_POS_MOUSE);
|
||||
//this causes compiz to display no border.
|
||||
//tempo_dialog.signal_realize().connect (bind (sigc::ptr_fun (set_decoration), &tempo_dialog, Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)));
|
||||
//tempo_dialog.signal_realize().connect (sigc::bind (sigc::ptr_fun (set_decoration), &tempo_dialog, Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)));
|
||||
|
||||
ensure_float (tempo_dialog);
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ Editor::mouse_add_new_meter_event (nframes64_t frame)
|
|||
meter_dialog.set_position (Gtk::WIN_POS_MOUSE);
|
||||
|
||||
//this causes compiz to display no border..
|
||||
//meter_dialog.signal_realize().connect (bind (sigc::ptr_fun (set_decoration), &meter_dialog, Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)));
|
||||
//meter_dialog.signal_realize().connect (sigc::bind (sigc::ptr_fun (set_decoration), &meter_dialog, Gdk::WMDecoration (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH)));
|
||||
|
||||
ensure_float (meter_dialog);
|
||||
|
||||
|
|
@ -296,7 +296,7 @@ Editor::remove_tempo_marker (ArdourCanvas::Item* item)
|
|||
}
|
||||
|
||||
if (tempo_marker->tempo().movable()) {
|
||||
Glib::signal_idle().connect (bind (mem_fun(*this, &Editor::real_remove_tempo_marker), &tempo_marker->tempo()));
|
||||
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun(*this, &Editor::real_remove_tempo_marker), &tempo_marker->tempo()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -432,7 +432,7 @@ Editor::remove_meter_marker (ArdourCanvas::Item* item)
|
|||
}
|
||||
|
||||
if (meter_marker->meter().movable()) {
|
||||
Glib::signal_idle().connect (bind (mem_fun(*this, &Editor::real_remove_meter_marker), &meter_marker->meter()));
|
||||
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun(*this, &Editor::real_remove_meter_marker), &meter_marker->meter()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -221,9 +221,9 @@ Editor::time_fx (RegionSelection& regions, float val, bool pitching)
|
|||
current_timefx->first_delete.disconnect();
|
||||
|
||||
current_timefx->first_cancel = current_timefx->cancel_button->signal_clicked().connect
|
||||
(mem_fun (current_timefx, &TimeFXDialog::cancel_in_progress));
|
||||
(sigc::mem_fun (current_timefx, &TimeFXDialog::cancel_in_progress));
|
||||
current_timefx->first_delete = current_timefx->signal_delete_event().connect
|
||||
(mem_fun (current_timefx, &TimeFXDialog::delete_in_progress));
|
||||
(sigc::mem_fun (current_timefx, &TimeFXDialog::delete_in_progress));
|
||||
|
||||
if (pthread_create_and_store ("timefx", ¤t_timefx->request.thread, timefx_thread, current_timefx)) {
|
||||
current_timefx->hide ();
|
||||
|
|
@ -233,7 +233,7 @@ Editor::time_fx (RegionSelection& regions, float val, bool pitching)
|
|||
|
||||
pthread_detach (current_timefx->request.thread);
|
||||
|
||||
sigc::connection c = Glib::signal_timeout().connect (mem_fun (current_timefx, &TimeFXDialog::update_progress), 100);
|
||||
sigc::connection c = Glib::signal_timeout().connect (sigc::mem_fun (current_timefx, &TimeFXDialog::update_progress), 100);
|
||||
|
||||
while (!current_timefx->request.done && !current_timefx->request.cancel) {
|
||||
gtk_main_iteration ();
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ EngineControl::EngineControl ()
|
|||
set_popdown_strings (driver_combo, strings);
|
||||
driver_combo.set_active_text (strings.front());
|
||||
|
||||
driver_combo.signal_changed().connect (mem_fun (*this, &EngineControl::driver_changed));
|
||||
driver_combo.signal_changed().connect (sigc::mem_fun (*this, &EngineControl::driver_changed));
|
||||
driver_changed ();
|
||||
|
||||
strings.clear ();
|
||||
|
|
@ -133,7 +133,7 @@ EngineControl::EngineControl ()
|
|||
set_popdown_strings (audio_mode_combo, strings);
|
||||
audio_mode_combo.set_active_text (strings.front());
|
||||
|
||||
audio_mode_combo.signal_changed().connect (mem_fun (*this, &EngineControl::audio_mode_changed));
|
||||
audio_mode_combo.signal_changed().connect (sigc::mem_fun (*this, &EngineControl::audio_mode_changed));
|
||||
audio_mode_changed ();
|
||||
|
||||
row = 0;
|
||||
|
|
@ -172,9 +172,9 @@ EngineControl::EngineControl ()
|
|||
basic_packer.attach (latency_label, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0);
|
||||
row++;
|
||||
|
||||
sample_rate_combo.signal_changed().connect (mem_fun (*this, &EngineControl::redisplay_latency));
|
||||
periods_adjustment.signal_value_changed().connect (mem_fun (*this, &EngineControl::redisplay_latency));
|
||||
period_size_combo.signal_changed().connect (mem_fun (*this, &EngineControl::redisplay_latency));
|
||||
sample_rate_combo.signal_changed().connect (sigc::mem_fun (*this, &EngineControl::redisplay_latency));
|
||||
periods_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &EngineControl::redisplay_latency));
|
||||
period_size_combo.signal_changed().connect (sigc::mem_fun (*this, &EngineControl::redisplay_latency));
|
||||
redisplay_latency();
|
||||
row++;
|
||||
/* no audio mode with CoreAudio, its duplex or nuthin' */
|
||||
|
|
@ -198,8 +198,8 @@ EngineControl::EngineControl ()
|
|||
stop_button.set_sensitive (false);
|
||||
}
|
||||
|
||||
start_button.signal_clicked().connect (mem_fun (*this, &EngineControl::start_engine));
|
||||
stop_button.signal_clicked().connect (mem_fun (*this, &EngineControl::start_engine));
|
||||
start_button.signal_clicked().connect (sigc::mem_fun (*this, &EngineControl::start_engine));
|
||||
stop_button.signal_clicked().connect (sigc::mem_fun (*this, &EngineControl::start_engine));
|
||||
*/
|
||||
|
||||
button_box.pack_start (start_button, false, false);
|
||||
|
|
@ -216,7 +216,7 @@ EngineControl::EngineControl ()
|
|||
++row;
|
||||
|
||||
realtime_button.set_active (true);
|
||||
realtime_button.signal_toggled().connect (mem_fun (*this, &EngineControl::realtime_changed));
|
||||
realtime_button.signal_toggled().connect (sigc::mem_fun (*this, &EngineControl::realtime_changed));
|
||||
realtime_changed ();
|
||||
|
||||
#if PROVIDE_TOO_MANY_OPTIONS
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ PortExportChannelSelector::ChannelTreeView::ChannelTreeView (uint32_t max_channe
|
|||
column->add_attribute (text_renderer->property_text(), route_cols.name);
|
||||
|
||||
Gtk::CellRendererToggle *toggle = dynamic_cast<Gtk::CellRendererToggle *>(get_column_cell_renderer (0));
|
||||
toggle->signal_toggled().connect (mem_fun (*this, &PortExportChannelSelector::ChannelTreeView::update_toggle_selection));
|
||||
toggle->signal_toggled().connect (sigc::mem_fun (*this, &PortExportChannelSelector::ChannelTreeView::update_toggle_selection));
|
||||
|
||||
static_columns = get_columns().size();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ ExportDialog::show_progress ()
|
|||
warning_widget.hide_all();
|
||||
progress_widget.show ();
|
||||
progress_widget.show_all_children ();
|
||||
progress_connection = Glib::signal_timeout().connect (mem_fun(*this, &ExportDialog::progress_timeout), 100);
|
||||
progress_connection = Glib::signal_timeout().connect (sigc::mem_fun(*this, &ExportDialog::progress_timeout), 100);
|
||||
|
||||
gtk_main_iteration ();
|
||||
while (status->running) {
|
||||
|
|
|
|||
|
|
@ -123,11 +123,11 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
|
|||
/* Buttons */
|
||||
|
||||
revert_button = add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
|
||||
revert_button->signal_clicked().connect (mem_fun(*this, &ExportFormatDialog::revert));
|
||||
revert_button->signal_clicked().connect (sigc::mem_fun(*this, &ExportFormatDialog::revert));
|
||||
close_button = add_button (Gtk::Stock::SAVE, Gtk::RESPONSE_APPLY);
|
||||
close_button->set_sensitive (false);
|
||||
close_button->signal_clicked().connect (mem_fun (*this, &ExportFormatDialog::end_dialog));
|
||||
manager.CompleteChanged.connect (mem_fun (*close_button, &Gtk::Button::set_sensitive));
|
||||
close_button->signal_clicked().connect (sigc::mem_fun (*this, &ExportFormatDialog::end_dialog));
|
||||
manager.CompleteChanged.connect (sigc::mem_fun (*close_button, &Gtk::Button::set_sensitive));
|
||||
|
||||
/* Load state before hooking up the rest of the signals */
|
||||
|
||||
|
|
@ -135,40 +135,40 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
|
|||
|
||||
/* Name entry */
|
||||
|
||||
name_entry.signal_changed().connect (mem_fun (*this, &ExportFormatDialog::update_name));
|
||||
name_entry.signal_changed().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_name));
|
||||
|
||||
/* Normalize, silence and src_quality signals */
|
||||
|
||||
trim_start_checkbox.signal_toggled().connect (mem_fun (*this, &ExportFormatDialog::update_trim_start_selection));
|
||||
trim_end_checkbox.signal_toggled().connect (mem_fun (*this, &ExportFormatDialog::update_trim_end_selection));
|
||||
trim_start_checkbox.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_trim_start_selection));
|
||||
trim_end_checkbox.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_trim_end_selection));
|
||||
|
||||
normalize_checkbox.signal_toggled().connect (mem_fun (*this, &ExportFormatDialog::update_normalize_selection));
|
||||
normalize_spinbutton.signal_value_changed().connect (mem_fun (*this, &ExportFormatDialog::update_normalize_selection));
|
||||
normalize_checkbox.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_normalize_selection));
|
||||
normalize_spinbutton.signal_value_changed().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_normalize_selection));
|
||||
|
||||
silence_start_checkbox.signal_toggled().connect (mem_fun (*this, &ExportFormatDialog::update_silence_start_selection));
|
||||
silence_start_clock.ValueChanged.connect (mem_fun (*this, &ExportFormatDialog::update_silence_start_selection));
|
||||
silence_start_checkbox.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_silence_start_selection));
|
||||
silence_start_clock.ValueChanged.connect (sigc::mem_fun (*this, &ExportFormatDialog::update_silence_start_selection));
|
||||
|
||||
silence_end_checkbox.signal_toggled().connect (mem_fun (*this, &ExportFormatDialog::update_silence_end_selection));
|
||||
silence_end_clock.ValueChanged.connect (mem_fun (*this, &ExportFormatDialog::update_silence_end_selection));
|
||||
silence_end_checkbox.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_silence_end_selection));
|
||||
silence_end_clock.ValueChanged.connect (sigc::mem_fun (*this, &ExportFormatDialog::update_silence_end_selection));
|
||||
|
||||
src_quality_combo.signal_changed().connect (mem_fun (*this, &ExportFormatDialog::update_src_quality_selection));
|
||||
src_quality_combo.signal_changed().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_src_quality_selection));
|
||||
|
||||
/* Format table signals */
|
||||
|
||||
Gtk::CellRendererToggle *toggle = dynamic_cast<Gtk::CellRendererToggle *>(compatibility_view.get_column_cell_renderer (0));
|
||||
toggle->signal_toggled().connect (mem_fun (*this, &ExportFormatDialog::update_compatibility_selection));
|
||||
compatibility_select_connection = compatibility_view.get_selection()->signal_changed().connect (mem_fun (*this, &ExportFormatDialog::prohibit_compatibility_selection));
|
||||
toggle->signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_compatibility_selection));
|
||||
compatibility_select_connection = compatibility_view.get_selection()->signal_changed().connect (sigc::mem_fun (*this, &ExportFormatDialog::prohibit_compatibility_selection));
|
||||
|
||||
quality_view.get_selection()->signal_changed().connect (mem_fun(*this, &ExportFormatDialog::update_quality_selection));
|
||||
format_view.get_selection()->signal_changed().connect (mem_fun(*this, &ExportFormatDialog::update_format_selection));
|
||||
sample_rate_view.get_selection()->signal_changed().connect (mem_fun(*this, &ExportFormatDialog::update_sample_rate_selection));
|
||||
quality_view.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &ExportFormatDialog::update_quality_selection));
|
||||
format_view.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &ExportFormatDialog::update_format_selection));
|
||||
sample_rate_view.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &ExportFormatDialog::update_sample_rate_selection));
|
||||
|
||||
/* Encoding option signals */
|
||||
|
||||
sample_format_view.get_selection()->signal_changed().connect (mem_fun(*this, &ExportFormatDialog::update_sample_format_selection));
|
||||
dither_type_view.get_selection()->signal_changed().connect (mem_fun(*this, &ExportFormatDialog::update_dither_type_selection));
|
||||
sample_format_view.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &ExportFormatDialog::update_sample_format_selection));
|
||||
dither_type_view.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &ExportFormatDialog::update_dither_type_selection));
|
||||
|
||||
tag_checkbox.signal_toggled().connect (mem_fun (*this, &ExportFormatDialog::update_tagging_selection));
|
||||
tag_checkbox.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_tagging_selection));
|
||||
|
||||
/* Finalize */
|
||||
|
||||
|
|
|
|||
|
|
@ -110,16 +110,16 @@ GainMeterBase::GainMeterBase (Session& s,
|
|||
|
||||
level_meter = new LevelMeter(_session);
|
||||
|
||||
gain_slider->signal_button_press_event().connect (mem_fun(*this, &GainMeter::start_gain_touch));
|
||||
gain_slider->signal_button_release_event().connect (mem_fun(*this, &GainMeter::end_gain_touch));
|
||||
gain_slider->signal_button_press_event().connect (sigc::mem_fun(*this, &GainMeter::start_gain_touch));
|
||||
gain_slider->signal_button_release_event().connect (sigc::mem_fun(*this, &GainMeter::end_gain_touch));
|
||||
gain_slider->set_name ("GainFader");
|
||||
|
||||
gain_display.set_name ("MixerStripGainDisplay");
|
||||
gain_display.set_has_frame (false);
|
||||
set_size_request_to_display_given_text (gain_display, "-80.g", 2, 6); /* note the descender */
|
||||
gain_display.signal_activate().connect (mem_fun (*this, &GainMeter::gain_activated));
|
||||
gain_display.signal_focus_in_event().connect (mem_fun (*this, &GainMeter::gain_focused), false);
|
||||
gain_display.signal_focus_out_event().connect (mem_fun (*this, &GainMeter::gain_focused), false);
|
||||
gain_display.signal_activate().connect (sigc::mem_fun (*this, &GainMeter::gain_activated));
|
||||
gain_display.signal_focus_in_event().connect (sigc::mem_fun (*this, &GainMeter::gain_focused), false);
|
||||
gain_display.signal_focus_out_event().connect (sigc::mem_fun (*this, &GainMeter::gain_focused), false);
|
||||
|
||||
peak_display.set_name ("MixerStripPeakDisplay");
|
||||
// peak_display.set_has_frame (false);
|
||||
|
|
@ -147,16 +147,16 @@ GainMeterBase::GainMeterBase (Session& s,
|
|||
gain_astate_menu.set_name ("ArdourContextMenu");
|
||||
gain_astyle_menu.set_name ("ArdourContextMenu");
|
||||
|
||||
gain_adjustment.signal_value_changed().connect (mem_fun(*this, &GainMeterBase::gain_adjusted));
|
||||
peak_display.signal_button_release_event().connect (mem_fun(*this, &GainMeterBase::peak_button_release), false);
|
||||
gain_display.signal_key_press_event().connect (mem_fun(*this, &GainMeterBase::gain_key_press), false);
|
||||
gain_adjustment.signal_value_changed().connect (sigc::mem_fun(*this, &GainMeterBase::gain_adjusted));
|
||||
peak_display.signal_button_release_event().connect (sigc::mem_fun(*this, &GainMeterBase::peak_button_release), false);
|
||||
gain_display.signal_key_press_event().connect (sigc::mem_fun(*this, &GainMeterBase::gain_key_press), false);
|
||||
|
||||
ResetAllPeakDisplays.connect (mem_fun(*this, &GainMeterBase::reset_peak_display));
|
||||
ResetGroupPeakDisplays.connect (mem_fun(*this, &GainMeterBase::reset_group_peak_display));
|
||||
ResetAllPeakDisplays.connect (sigc::mem_fun(*this, &GainMeterBase::reset_peak_display));
|
||||
ResetGroupPeakDisplays.connect (sigc::mem_fun(*this, &GainMeterBase::reset_group_peak_display));
|
||||
|
||||
UI::instance()->theme_changed.connect (mem_fun(*this, &GainMeterBase::on_theme_changed));
|
||||
ColorsChanged.connect (bind(mem_fun (*this, &GainMeterBase::color_handler), false));
|
||||
DPIReset.connect (bind(mem_fun (*this, &GainMeterBase::color_handler), true));
|
||||
UI::instance()->theme_changed.connect (sigc::mem_fun(*this, &GainMeterBase::on_theme_changed));
|
||||
ColorsChanged.connect (sigc::bind(sigc::mem_fun (*this, &GainMeterBase::color_handler), false));
|
||||
DPIReset.connect (sigc::bind(sigc::mem_fun (*this, &GainMeterBase::color_handler), true));
|
||||
}
|
||||
|
||||
GainMeterBase::~GainMeterBase ()
|
||||
|
|
@ -209,30 +209,30 @@ GainMeterBase::set_controls (boost::shared_ptr<Route> r,
|
|||
gain_astate_menu.items().clear ();
|
||||
|
||||
gain_astate_menu.items().push_back (MenuElem (_("Manual"),
|
||||
bind (mem_fun (*(amp.get()), &Automatable::set_parameter_automation_state),
|
||||
sigc::bind (sigc::mem_fun (*(amp.get()), &Automatable::set_parameter_automation_state),
|
||||
Evoral::Parameter(GainAutomation), (AutoState) Off)));
|
||||
gain_astate_menu.items().push_back (MenuElem (_("Play"),
|
||||
bind (mem_fun (*(amp.get()), &Automatable::set_parameter_automation_state),
|
||||
sigc::bind (sigc::mem_fun (*(amp.get()), &Automatable::set_parameter_automation_state),
|
||||
Evoral::Parameter(GainAutomation), (AutoState) Play)));
|
||||
gain_astate_menu.items().push_back (MenuElem (_("Write"),
|
||||
bind (mem_fun (*(amp.get()), &Automatable::set_parameter_automation_state),
|
||||
sigc::bind (sigc::mem_fun (*(amp.get()), &Automatable::set_parameter_automation_state),
|
||||
Evoral::Parameter(GainAutomation), (AutoState) Write)));
|
||||
gain_astate_menu.items().push_back (MenuElem (_("Touch"),
|
||||
bind (mem_fun (*(amp.get()), &Automatable::set_parameter_automation_state),
|
||||
sigc::bind (sigc::mem_fun (*(amp.get()), &Automatable::set_parameter_automation_state),
|
||||
Evoral::Parameter(GainAutomation), (AutoState) Touch)));
|
||||
|
||||
connections.push_back (gain_automation_style_button.signal_button_press_event().connect (mem_fun(*this, &GainMeterBase::gain_automation_style_button_event), false));
|
||||
connections.push_back (gain_automation_state_button.signal_button_press_event().connect (mem_fun(*this, &GainMeterBase::gain_automation_state_button_event), false));
|
||||
connections.push_back (gain_automation_style_button.signal_button_press_event().connect (sigc::mem_fun(*this, &GainMeterBase::gain_automation_style_button_event), false));
|
||||
connections.push_back (gain_automation_state_button.signal_button_press_event().connect (sigc::mem_fun(*this, &GainMeterBase::gain_automation_state_button_event), false));
|
||||
|
||||
boost::shared_ptr<AutomationControl> gc = amp->gain_control();
|
||||
|
||||
connections.push_back (gc->alist()->automation_state_changed.connect (mem_fun(*this, &GainMeter::gain_automation_state_changed)));
|
||||
connections.push_back (gc->alist()->automation_style_changed.connect (mem_fun(*this, &GainMeter::gain_automation_style_changed)));
|
||||
connections.push_back (gc->alist()->automation_state_changed.connect (sigc::mem_fun(*this, &GainMeter::gain_automation_state_changed)));
|
||||
connections.push_back (gc->alist()->automation_style_changed.connect (sigc::mem_fun(*this, &GainMeter::gain_automation_style_changed)));
|
||||
|
||||
gain_automation_state_changed ();
|
||||
}
|
||||
|
||||
connections.push_back (amp->gain_control()->Changed.connect (mem_fun (*this, &GainMeterBase::gain_changed)));
|
||||
connections.push_back (amp->gain_control()->Changed.connect (sigc::mem_fun (*this, &GainMeterBase::gain_changed)));
|
||||
|
||||
gain_changed ();
|
||||
show_gain ();
|
||||
|
|
@ -438,7 +438,7 @@ GainMeterBase::effective_gain_display ()
|
|||
void
|
||||
GainMeterBase::gain_changed ()
|
||||
{
|
||||
Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &GainMeterBase::effective_gain_display));
|
||||
Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &GainMeterBase::effective_gain_display));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -714,7 +714,7 @@ GainMeterBase::gain_automation_style_changed ()
|
|||
void
|
||||
GainMeterBase::gain_automation_state_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &GainMeterBase::gain_automation_state_changed));
|
||||
ENSURE_GUI_THREAD (*this, &GainMeterBase::gain_automation_state_changed)
|
||||
|
||||
bool x;
|
||||
|
||||
|
|
@ -742,7 +742,7 @@ GainMeterBase::gain_automation_state_changed ()
|
|||
gain_watching.disconnect();
|
||||
|
||||
if (x) {
|
||||
gain_watching = ARDOUR_UI::RapidScreenUpdate.connect (mem_fun (*this, &GainMeterBase::effective_gain_display));
|
||||
gain_watching = ARDOUR_UI::RapidScreenUpdate.connect (sigc::mem_fun (*this, &GainMeterBase::effective_gain_display));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -825,7 +825,7 @@ GainMeter::GainMeter (Session& s, int fader_length)
|
|||
pack_start (gain_display_box, Gtk::PACK_SHRINK);
|
||||
pack_start (hbox, Gtk::PACK_SHRINK);
|
||||
|
||||
meter_metric_area.signal_expose_event().connect (mem_fun(*this, &GainMeter::meter_metrics_expose));
|
||||
meter_metric_area.signal_expose_event().connect (sigc::mem_fun(*this, &GainMeter::meter_metrics_expose));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol
|
|||
combo_label->set_use_markup (true);
|
||||
|
||||
latency_button.add (latency_label);
|
||||
latency_button.signal_clicked().connect (mem_fun (*this, &PlugUIBase::latency_button_clicked));
|
||||
latency_button.signal_clicked().connect (sigc::mem_fun (*this, &PlugUIBase::latency_button_clicked));
|
||||
set_latency_label ();
|
||||
|
||||
smaller_hbox->pack_start (latency_button, false, false, 10);
|
||||
|
|
@ -126,7 +126,7 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol
|
|||
main_contents.pack_start (hpacker, false, false);
|
||||
}
|
||||
|
||||
pi->ActiveChanged.connect (bind(mem_fun(*this, &GenericPluginUI::processor_active_changed),
|
||||
pi->ActiveChanged.connect (sigc::bind(sigc::mem_fun(*this, &GenericPluginUI::processor_active_changed),
|
||||
boost::weak_ptr<Processor>(pi)));
|
||||
|
||||
bypass_button.set_active (!pi->active());
|
||||
|
|
@ -421,8 +421,8 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
|||
control_ui->combo = new Gtk::ComboBoxText;
|
||||
//control_ui->combo->set_value_in_list(true, false);
|
||||
set_popdown_strings (*control_ui->combo, setup_scale_values(port_index, control_ui));
|
||||
control_ui->combo->signal_changed().connect (bind (mem_fun(*this, &GenericPluginUI::control_combo_changed), control_ui));
|
||||
mcontrol->Changed.connect (bind (mem_fun (*this, &GenericPluginUI::parameter_changed), control_ui));
|
||||
control_ui->combo->signal_changed().connect (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::control_combo_changed), control_ui));
|
||||
mcontrol->Changed.connect (sigc::bind (sigc::mem_fun (*this, &GenericPluginUI::parameter_changed), control_ui));
|
||||
control_ui->pack_start(control_ui->label, true, true);
|
||||
control_ui->pack_start(*control_ui->combo, false, true);
|
||||
|
||||
|
|
@ -442,8 +442,8 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
|||
control_ui->combo = new Gtk::ComboBoxText;
|
||||
//control_ui->combo->set_value_in_list(true, false);
|
||||
set_popdown_strings (*control_ui->combo, setup_scale_values(port_index, control_ui));
|
||||
control_ui->combo->signal_changed().connect (bind (mem_fun(*this, &GenericPluginUI::control_combo_changed), control_ui));
|
||||
mcontrol->Changed.connect (bind (mem_fun (*this, &GenericPluginUI::parameter_changed), control_ui));
|
||||
control_ui->combo->signal_changed().connect (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::control_combo_changed), control_ui));
|
||||
mcontrol->Changed.connect (sigc::bind (sigc::mem_fun (*this, &GenericPluginUI::parameter_changed), control_ui));
|
||||
control_ui->pack_start(control_ui->label, true, true);
|
||||
control_ui->pack_start(*control_ui->combo, false, true);
|
||||
|
||||
|
|
@ -467,8 +467,8 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
|||
control_ui->pack_start (*control_ui->button, false, true);
|
||||
// control_ui->pack_start (control_ui->automate_button, false, false);
|
||||
|
||||
control_ui->button->signal_clicked().connect (bind (mem_fun(*this, &GenericPluginUI::control_port_toggled), control_ui));
|
||||
mcontrol->Changed.connect (bind (mem_fun (*this, &GenericPluginUI::toggle_parameter_changed), control_ui));
|
||||
control_ui->button->signal_clicked().connect (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::control_port_toggled), control_ui));
|
||||
mcontrol->Changed.connect (sigc::bind (sigc::mem_fun (*this, &GenericPluginUI::toggle_parameter_changed), control_ui));
|
||||
|
||||
if (plugin->get_parameter (port_index) > 0.5){
|
||||
control_ui->button->set_active(true);
|
||||
|
|
@ -509,15 +509,15 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
|||
Gtkmm2ext::set_size_request_to_display_given_text (*control_ui->clickbox, "g9999999", 2, 2);
|
||||
control_ui->clickbox->set_print_func (integer_printer, 0);
|
||||
} else {
|
||||
//sigc::slot<void,char*,uint32_t> pslot = sigc::bind (mem_fun(*this, &GenericPluginUI::print_parameter), (uint32_t) port_index);
|
||||
//sigc::slot<void,char*,uint32_t> pslot = sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::print_parameter), (uint32_t) port_index);
|
||||
|
||||
control_ui->controller->set_size_request (200, req.height);
|
||||
control_ui->controller->set_name (X_("PluginSlider"));
|
||||
control_ui->controller->set_style (BarController::LeftToRight);
|
||||
control_ui->controller->set_use_parent (true);
|
||||
|
||||
control_ui->controller->StartGesture.connect (bind (mem_fun(*this, &GenericPluginUI::start_touch), control_ui));
|
||||
control_ui->controller->StopGesture.connect (bind (mem_fun(*this, &GenericPluginUI::stop_touch), control_ui));
|
||||
control_ui->controller->StartGesture.connect (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::start_touch), control_ui));
|
||||
control_ui->controller->StopGesture.connect (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::stop_touch), control_ui));
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -540,13 +540,13 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
|||
}
|
||||
|
||||
control_ui->pack_start (control_ui->automate_button, false, false);
|
||||
control_ui->automate_button.signal_clicked().connect (bind (mem_fun(*this, &GenericPluginUI::astate_clicked), control_ui, (uint32_t) port_index));
|
||||
control_ui->automate_button.signal_clicked().connect (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::astate_clicked), control_ui, (uint32_t) port_index));
|
||||
|
||||
automation_state_changed (control_ui);
|
||||
|
||||
mcontrol->Changed.connect (bind (mem_fun (*this, &GenericPluginUI::parameter_changed), control_ui));
|
||||
mcontrol->Changed.connect (sigc::bind (sigc::mem_fun (*this, &GenericPluginUI::parameter_changed), control_ui));
|
||||
mcontrol->alist()->automation_state_changed.connect
|
||||
(bind (mem_fun(*this, &GenericPluginUI::automation_state_changed), control_ui));
|
||||
(sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::automation_state_changed), control_ui));
|
||||
|
||||
} else if (plugin->parameter_is_output (port_index)) {
|
||||
|
||||
|
|
@ -595,7 +595,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
|||
output_controls.push_back (control_ui);
|
||||
}
|
||||
|
||||
mcontrol->Changed.connect (bind (mem_fun (*this, &GenericPluginUI::parameter_changed), control_ui));
|
||||
mcontrol->Changed.connect (sigc::bind (sigc::mem_fun (*this, &GenericPluginUI::parameter_changed), control_ui));
|
||||
|
||||
return control_ui;
|
||||
}
|
||||
|
|
@ -626,13 +626,13 @@ GenericPluginUI::astate_clicked (ControlUI* cui, uint32_t /*port*/)
|
|||
|
||||
items.clear ();
|
||||
items.push_back (MenuElem (_("Manual"),
|
||||
bind (mem_fun(*this, &GenericPluginUI::set_automation_state), (AutoState) Off, cui)));
|
||||
sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::set_automation_state), (AutoState) Off, cui)));
|
||||
items.push_back (MenuElem (_("Play"),
|
||||
bind (mem_fun(*this, &GenericPluginUI::set_automation_state), (AutoState) Play, cui)));
|
||||
sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::set_automation_state), (AutoState) Play, cui)));
|
||||
items.push_back (MenuElem (_("Write"),
|
||||
bind (mem_fun(*this, &GenericPluginUI::set_automation_state), (AutoState) Write, cui)));
|
||||
sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::set_automation_state), (AutoState) Write, cui)));
|
||||
items.push_back (MenuElem (_("Touch"),
|
||||
bind (mem_fun(*this, &GenericPluginUI::set_automation_state), (AutoState) Touch, cui)));
|
||||
sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::set_automation_state), (AutoState) Touch, cui)));
|
||||
|
||||
automation_menu->popup (1, gtk_get_current_event_time());
|
||||
}
|
||||
|
|
@ -662,7 +662,7 @@ GenericPluginUI::parameter_changed (ControlUI* cui)
|
|||
{
|
||||
if (!cui->update_pending) {
|
||||
cui->update_pending = true;
|
||||
Gtkmm2ext::UI::instance()->call_slot (bind (mem_fun(*this, &GenericPluginUI::update_control_display), cui));
|
||||
Gtkmm2ext::UI::instance()->call_slot (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::update_control_display), cui));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -731,7 +731,7 @@ GenericPluginUI::control_combo_changed (ControlUI* cui)
|
|||
void
|
||||
GenericPluginUI::processor_active_changed (boost::weak_ptr<Processor> weak_processor)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &GenericPluginUI::processor_active_changed), weak_processor));
|
||||
ENSURE_GUI_THREAD (*this, &GenericPluginUI::processor_active_changed, weak_processor)
|
||||
|
||||
boost::shared_ptr<Processor> processor = weak_processor.lock();
|
||||
|
||||
|
|
@ -744,7 +744,7 @@ GenericPluginUI::start_updating (GdkEventAny*)
|
|||
if (output_controls.size() > 0 ) {
|
||||
screen_update_connection.disconnect();
|
||||
screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect
|
||||
(mem_fun(*this, &GenericPluginUI::output_update));
|
||||
(sigc::mem_fun(*this, &GenericPluginUI::output_update));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ GroupTabs::connect_to_session (Session* s)
|
|||
{
|
||||
EditorComponent::connect_to_session (s);
|
||||
|
||||
_session_connections.push_back (_session->RouteGroupChanged.connect (mem_fun (*this, &GroupTabs::set_dirty)));
|
||||
_session_connections.push_back (_session->RouteGroupChanged.connect (sigc::mem_fun (*this, &GroupTabs::set_dirty)));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -21,10 +21,11 @@
|
|||
#define __ardour_gtk_gui_thread_h__
|
||||
|
||||
#include <gtkmm2ext/gtk_ui.h>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#define ENSURE_GUI_THREAD(slot) \
|
||||
#define ENSURE_GUI_THREAD(obj,method, ...) \
|
||||
if (!Gtkmm2ext::UI::instance()->caller_is_self()) { \
|
||||
Gtkmm2ext::UI::instance()->call_slot ((slot));\
|
||||
Gtkmm2ext::UI::instance()->call_slot (boost::bind ((method), &(obj), ## __VA_ARGS__)); \
|
||||
return;\
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ ImageFrameSocketHandler::send_imageframe_time_axis_removed(const string & track_
|
|||
void
|
||||
ImageFrameSocketHandler::send_imageframe_time_axis_renamed(const string & new_id, const string & old_id, void* src, ImageFrameTimeAxis* time_axis)
|
||||
{
|
||||
// ENSURE_GUI_THREAD(SigC::bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_time_axis_renamed), new_id, old_id, src, time_axis));
|
||||
// ENSURE_GUI_THREAD(*this, &ImageFrameSocketHandler::send_imageframe_time_axis_renamed, new_id, old_id, src, time_axis);
|
||||
|
||||
if(this == src || src == 0)
|
||||
{
|
||||
|
|
@ -409,7 +409,7 @@ ImageFrameSocketHandler::send_marker_time_axis_removed(const string & track_id,
|
|||
void
|
||||
ImageFrameSocketHandler::send_marker_time_axis_renamed(const string & new_id, const string & old_id, void* src, MarkerTimeAxis* time_axis)
|
||||
{
|
||||
// ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_marker_time_axis_renamed), new_id, old_id, src, time_axis));
|
||||
// ENSURE_GUI_THREAD (*this, &ImageFrameSocketHandler::send_marker_time_axis_renamed, new_id, old_id, src, time_axis)
|
||||
|
||||
if(this == src || src == 0)
|
||||
{
|
||||
|
|
@ -492,7 +492,7 @@ ImageFrameSocketHandler::send_imageframe_time_axis_group_removed(const string &
|
|||
void
|
||||
ImageFrameSocketHandler::send_imageframe_time_axis_group_renamed(const string & new_id, const string & old_id, void* src, ImageFrameTimeAxisGroup* group)
|
||||
{
|
||||
// ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_time_axis_group_renamed), new_id, old_id, src, group));
|
||||
// ENSURE_GUI_THREAD (*this, &ImageFrameSocketHandler::send_imageframe_time_axis_group_renamed, new_id, old_id, src, group)
|
||||
|
||||
if(this == src || src == 0)
|
||||
{
|
||||
|
|
@ -540,7 +540,7 @@ ImageFrameSocketHandler::send_imageframe_time_axis_group_renamed(const string &
|
|||
void
|
||||
ImageFrameSocketHandler::send_imageframe_view_position_change(nframes_t pos, void* src, ImageFrameView* item)
|
||||
{
|
||||
// ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_view_position_change), pos, src, item));
|
||||
// ENSURE_GUI_THREAD (*this, &ImageFrameSocketHandler::send_imageframe_view_position_change, pos, src, item)
|
||||
|
||||
if(this == src || src == 0)
|
||||
{
|
||||
|
|
@ -576,7 +576,7 @@ ImageFrameSocketHandler::send_imageframe_view_position_change(nframes_t pos, voi
|
|||
void
|
||||
ImageFrameSocketHandler::send_imageframe_view_duration_change(nframes_t dur, void* src, ImageFrameView* item)
|
||||
{
|
||||
// ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_view_duration_change), dur, src, item));
|
||||
// ENSURE_GUI_THREAD (*this, &ImageFrameSocketHandler::send_imageframe_view_duration_change, dur, src, item)
|
||||
|
||||
if(this == src || src == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ ImageFrameTimeAxis::build_display_menu()
|
|||
|
||||
MenuList& items = display_menu->items();
|
||||
|
||||
items.push_back (MenuElem (_("Rename"), mem_fun(*this, &ImageFrameTimeAxis::start_time_axis_rename)));
|
||||
items.push_back (MenuElem (_("Rename"), sigc::mem_fun(*this, &ImageFrameTimeAxis::start_time_axis_rename)));
|
||||
|
||||
image_action_menu = new Menu() ;
|
||||
image_action_menu->set_name ("ArdourContextMenu");
|
||||
|
|
@ -243,10 +243,10 @@ ImageFrameTimeAxis::build_display_menu()
|
|||
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Height"), *size_menu));
|
||||
items.push_back (MenuElem (_("Color"), mem_fun(*this, &ImageFrameTimeAxis::select_track_color)));
|
||||
items.push_back (MenuElem (_("Color"), sigc::mem_fun(*this, &ImageFrameTimeAxis::select_track_color)));
|
||||
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Remove"), bind(mem_fun(*this, &VisualTimeAxis::remove_this_time_axis), (void*)this))) ;
|
||||
items.push_back (MenuElem (_("Remove"), sigc::bind(sigc::mem_fun(*this, &VisualTimeAxis::remove_this_time_axis), (void*)this))) ;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -273,14 +273,14 @@ ImageFrameTimeAxis::create_imageframe_menu()
|
|||
|
||||
if(view)
|
||||
{
|
||||
duration_items.push_back(MenuElem (_("0.5 seconds"), bind (mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 0.5))) ;
|
||||
duration_items.push_back(MenuElem (_("1 seconds"), bind (mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 1.0))) ;
|
||||
duration_items.push_back(MenuElem (_("1.5 seconds"), bind (mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 1.5))) ;
|
||||
duration_items.push_back(MenuElem (_("2 seconds"), bind (mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 2.0))) ;
|
||||
duration_items.push_back(MenuElem (_("2.5 seconds"), bind (mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 2.5))) ;
|
||||
duration_items.push_back(MenuElem (_("3 seconds"), bind (mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 3.0))) ;
|
||||
duration_items.push_back(MenuElem (_("0.5 seconds"), sigc::bind (sigc::mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 0.5))) ;
|
||||
duration_items.push_back(MenuElem (_("1 seconds"), sigc::bind (sigc::mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 1.0))) ;
|
||||
duration_items.push_back(MenuElem (_("1.5 seconds"), sigc::bind (sigc::mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 1.5))) ;
|
||||
duration_items.push_back(MenuElem (_("2 seconds"), sigc::bind (sigc::mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 2.0))) ;
|
||||
duration_items.push_back(MenuElem (_("2.5 seconds"), sigc::bind (sigc::mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 2.5))) ;
|
||||
duration_items.push_back(MenuElem (_("3 seconds"), sigc::bind (sigc::mem_fun (view, &ImageFrameTimeAxisView::set_imageframe_duration_sec), 3.0))) ;
|
||||
//duration_items.push_back(SeparatorElem()) ;
|
||||
//duration_items.push_back(MenuElem (_("custom"), mem_fun(*this, &ImageFrameTimeAxis::set_imageframe_duration_custom))) ;
|
||||
//duration_items.push_back(MenuElem (_("custom"), sigc::mem_fun(*this, &ImageFrameTimeAxis::set_imageframe_duration_custom))) ;
|
||||
}
|
||||
|
||||
imageframe_sub_items.push_back(MenuElem(_("Duration (sec)"), *duration_menu)) ;
|
||||
|
|
@ -288,11 +288,11 @@ ImageFrameTimeAxis::create_imageframe_menu()
|
|||
imageframe_sub_items.push_back(SeparatorElem()) ;
|
||||
if(view)
|
||||
{
|
||||
imageframe_sub_items.push_back(MenuElem (_("Remove Frame"), bind(mem_fun (view, &ImageFrameTimeAxisView::remove_selected_imageframe_item), (void*)this))) ;
|
||||
imageframe_sub_items.push_back(MenuElem (_("Remove Frame"), sigc::bind(sigc::mem_fun (view, &ImageFrameTimeAxisView::remove_selected_imageframe_item), (void*)this))) ;
|
||||
}
|
||||
|
||||
items.push_back(MenuElem(_("Image Frame"), *imageframe_item_menu)) ;
|
||||
items.push_back(MenuElem (_("Rename Track"), mem_fun(*this,&ImageFrameTimeAxis::start_time_axis_rename))) ;
|
||||
items.push_back(MenuElem (_("Rename Track"), sigc::mem_fun(*this,&ImageFrameTimeAxis::start_time_axis_rename))) ;
|
||||
|
||||
imageframe_menu->show_all() ;
|
||||
}
|
||||
|
|
@ -323,7 +323,7 @@ ImageFrameTimeAxis::add_marker_time_axis(MarkerTimeAxis* marker_track, void* src
|
|||
else
|
||||
{
|
||||
marker_time_axis_list.push_back(marker_track) ;
|
||||
marker_track->GoingAway.connect(bind(mem_fun(*this, &ImageFrameTimeAxis::remove_time_axis_view), marker_track, (void*)this));
|
||||
marker_track->GoingAway.connect(sigc::bind(sigc::mem_fun(*this, &ImageFrameTimeAxis::remove_time_axis_view), marker_track, (void*)this));
|
||||
|
||||
MarkerTimeAxisAdded(marker_track, src) ; /* EMIT_SIGNAL */
|
||||
ret = true ;
|
||||
|
|
@ -393,7 +393,7 @@ ImageFrameTimeAxis::remove_named_marker_time_axis(const string & track_id, void*
|
|||
void
|
||||
ImageFrameTimeAxis::remove_time_axis_view(MarkerTimeAxis* mta, void* src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameTimeAxis::remove_time_axis_view), mta, src));
|
||||
ENSURE_GUI_THREAD (*this, &ImageFrameTimeAxis::remove_time_axis_view, mta, src)
|
||||
|
||||
MarkerTimeAxisList::iterator i;
|
||||
if((i = find (marker_time_axis_list.begin(), marker_time_axis_list.end(), mta)) != marker_time_axis_list.end())
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ ImageFrameTimeAxisGroup::add_imageframe_item(const string & frame_id, nframes_t
|
|||
|
||||
imageframe_views.push_front(ifv) ;
|
||||
|
||||
ifv->GoingAway.connect(bind(mem_fun(*this,&ImageFrameTimeAxisGroup::remove_imageframe_item), (void*)this)) ;
|
||||
ifv->GoingAway.connect(sigc::bind(sigc::mem_fun(*this,&ImageFrameTimeAxisGroup::remove_imageframe_item), (void*)this)) ;
|
||||
|
||||
ImageFrameAdded(ifv, src) ; /* EMIT_SIGNAL */
|
||||
}
|
||||
|
|
@ -330,7 +330,7 @@ ImageFrameTimeAxisGroup::remove_named_imageframe_item(const string & frame_id, v
|
|||
void
|
||||
ImageFrameTimeAxisGroup::remove_imageframe_item(ImageFrameView* ifv, void* src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameTimeAxisGroup::remove_imageframe_item), ifv, src));
|
||||
ENSURE_GUI_THREAD (*this, &ImageFrameTimeAxisGroup::remove_imageframe_item, ifv, src)
|
||||
|
||||
ImageFrameViewList::iterator i;
|
||||
if((i = find (imageframe_views.begin(), imageframe_views.end(), ifv)) != imageframe_views.end())
|
||||
|
|
@ -438,7 +438,7 @@ ImageFrameTimeAxisGroup::remove_this_group(void* src)
|
|||
defer to idle loop, otherwise we'll delete this object
|
||||
while we're still inside this function ...
|
||||
*/
|
||||
Glib::signal_idle().connect(bind(ptr_fun(&ImageFrameTimeAxisGroup::idle_remove_this_group), this, src));
|
||||
Glib::signal_idle().connect(sigc::bind(ptr_fun(&ImageFrameTimeAxisGroup::idle_remove_this_group), this, src));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -58,11 +58,11 @@ ImageFrameTimeAxisView::ImageFrameTimeAxisView (ImageFrameTimeAxis& tv)
|
|||
canvas_rect.property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_ImageTrack.get();
|
||||
canvas_rect.property_fill_color_rgba() = stream_base_color;
|
||||
|
||||
canvas_rect.signal_event().connect (bind (mem_fun (_trackview.editor, &PublicEditor::canvas_imageframe_view_event), (ArdourCanvas::Item*) &canvas_rect, &tv));
|
||||
canvas_rect.signal_event().connect (sigc::bind (sigc::mem_fun (_trackview.editor, &PublicEditor::canvas_imageframe_view_event), (ArdourCanvas::Item*) &canvas_rect, &tv));
|
||||
|
||||
_samples_per_unit = _trackview.editor.get_current_zoom() ;
|
||||
|
||||
_trackview.editor.ZoomChanged.connect (mem_fun(*this, &ImageFrameTimeAxisView::reset_samples_per_unit)) ;
|
||||
_trackview.editor.ZoomChanged.connect (sigc::mem_fun(*this, &ImageFrameTimeAxisView::reset_samples_per_unit)) ;
|
||||
|
||||
selected_imageframe_group = 0 ;
|
||||
selected_imageframe_view = 0 ;
|
||||
|
|
@ -214,7 +214,7 @@ ImageFrameTimeAxisView::add_imageframe_group(std::string group_id, void* src)
|
|||
|
||||
imageframe_groups.push_front(iftag) ;
|
||||
|
||||
iftag->GoingAway.connect(bind(mem_fun(*this,&ImageFrameTimeAxisView::remove_imageframe_group), iftag, (void*)this)) ;
|
||||
iftag->GoingAway.connect(sigc::bind(sigc::mem_fun(*this,&ImageFrameTimeAxisView::remove_imageframe_group), iftag, (void*)this)) ;
|
||||
|
||||
ImageFrameGroupAdded(iftag, src) ; /* EMIT_SIGNAL */
|
||||
}
|
||||
|
|
@ -290,7 +290,7 @@ ImageFrameTimeAxisView::remove_named_imageframe_group(std::string group_id, void
|
|||
void
|
||||
ImageFrameTimeAxisView::remove_imageframe_group(ImageFrameTimeAxisGroup* iftag, void* src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameTimeAxisView::remove_imageframe_group), iftag, src));
|
||||
ENSURE_GUI_THREAD (*this, &ImageFrameTimeAxisView::remove_imageframe_group, iftag, src)
|
||||
|
||||
ImageFrameGroupList::iterator i;
|
||||
if((i = find (imageframe_groups.begin(), imageframe_groups.end(), iftag)) != imageframe_groups.end())
|
||||
|
|
|
|||
|
|
@ -95,9 +95,9 @@ ImageFrameView::ImageFrameView(const string & item_id,
|
|||
|
||||
imageframe = new ImageFrame (*group, pbuf, 1.0, 1.0, ANCHOR_NW, im_width, (trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE));
|
||||
|
||||
frame_handle_start->signal_event().connect (bind (mem_fun (trackview.editor, &PublicEditor::canvas_imageframe_start_handle_event), frame_handle_start, this));
|
||||
frame_handle_end->signal_event().connect (bind (mem_fun (trackview.editor, &PublicEditor::canvas_imageframe_end_handle_event), frame_handle_end, this));
|
||||
group->signal_event().connect (bind (mem_fun (trackview.editor, &PublicEditor::canvas_imageframe_item_view_event), imageframe, this));
|
||||
frame_handle_start->signal_event().connect (sigc::bind (sigc::mem_fun (trackview.editor, &PublicEditor::canvas_imageframe_start_handle_event), frame_handle_start, this));
|
||||
frame_handle_end->signal_event().connect (sigc::bind (sigc::mem_fun (trackview.editor, &PublicEditor::canvas_imageframe_end_handle_event), frame_handle_end, this));
|
||||
group->signal_event().connect (sigc::bind (sigc::mem_fun (trackview.editor, &PublicEditor::canvas_imageframe_item_view_event), imageframe, this));
|
||||
|
||||
frame_handle_start->raise_to_top();
|
||||
frame_handle_end->raise_to_top();
|
||||
|
|
@ -288,7 +288,7 @@ ImageFrameView::add_marker_view_item(MarkerView* item, void* src)
|
|||
{
|
||||
marker_view_list.push_back(item) ;
|
||||
|
||||
item->GoingAway.connect(bind(mem_fun(*this, &ImageFrameView::remove_marker_view_item), (void*)this));
|
||||
item->GoingAway.connect(sigc::bind(sigc::mem_fun(*this, &ImageFrameView::remove_marker_view_item), (void*)this));
|
||||
|
||||
MarkerViewAdded(item, src) ; /* EMIT_SIGNAL */
|
||||
}
|
||||
|
|
@ -338,7 +338,7 @@ ImageFrameView::remove_named_marker_view_item(const string & markerId, void* src
|
|||
void
|
||||
ImageFrameView::remove_marker_view_item(MarkerView* mv, void* src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameView::remove_marker_view_item), mv, src));
|
||||
ENSURE_GUI_THREAD (*this, &ImageFrameView::remove_marker_view_item, mv, src)
|
||||
|
||||
MarkerViewList::iterator i ;
|
||||
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ IOSelectorWindow::IOSelectorWindow (ARDOUR::Session* session, boost::shared_ptr<
|
|||
|
||||
show_all ();
|
||||
|
||||
signal_delete_event().connect (mem_fun (*this, &IOSelectorWindow::wm_delete));
|
||||
signal_delete_event().connect (sigc::mem_fun (*this, &IOSelectorWindow::wm_delete));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
@ -200,7 +200,7 @@ IOSelectorWindow::on_show ()
|
|||
void
|
||||
IOSelectorWindow::io_name_changed (void* src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &IOSelectorWindow::io_name_changed), src));
|
||||
ENSURE_GUI_THREAD (*this, &IOSelectorWindow::io_name_changed, src)
|
||||
|
||||
string title;
|
||||
|
||||
|
|
@ -267,12 +267,12 @@ PortInsertWindow::PortInsertWindow (ARDOUR::Session* sess, boost::shared_ptr<ARD
|
|||
|
||||
get_vbox()->pack_start (_portinsertui);
|
||||
|
||||
ok_button.signal_clicked().connect (mem_fun (*this, &PortInsertWindow::accept));
|
||||
cancel_button.signal_clicked().connect (mem_fun (*this, &PortInsertWindow::cancel));
|
||||
ok_button.signal_clicked().connect (sigc::mem_fun (*this, &PortInsertWindow::accept));
|
||||
cancel_button.signal_clicked().connect (sigc::mem_fun (*this, &PortInsertWindow::cancel));
|
||||
|
||||
signal_delete_event().connect (mem_fun (*this, &PortInsertWindow::wm_delete), false);
|
||||
signal_delete_event().connect (sigc::mem_fun (*this, &PortInsertWindow::wm_delete), false);
|
||||
|
||||
going_away_connection = pi->GoingAway.connect (mem_fun (*this, &PortInsertWindow::plugin_going_away));
|
||||
going_away_connection = pi->GoingAway.connect (sigc::mem_fun (*this, &PortInsertWindow::plugin_going_away));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
@ -285,7 +285,7 @@ PortInsertWindow::wm_delete (GdkEventAny* /*event*/)
|
|||
void
|
||||
PortInsertWindow::plugin_going_away ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &PortInsertWindow::plugin_going_away));
|
||||
ENSURE_GUI_THREAD (*this, &PortInsertWindow::plugin_going_away)
|
||||
|
||||
going_away_connection.disconnect ();
|
||||
delete_when_idle (this);
|
||||
|
|
|
|||
|
|
@ -181,8 +181,8 @@ main (int argc, char* argv[])
|
|||
displayA.signal_object_drop.connect (ptr_fun (object_drop));
|
||||
|
||||
displayA.get_selection()->set_mode (SELECTION_MULTIPLE);
|
||||
displayA.get_selection()->set_select_function (bind (ptr_fun (selection_filter), &columns));
|
||||
displayA.get_selection()->signal_changed().connect (bind (ptr_fun (selection_changed), modelA, &displayA, &columns));
|
||||
displayA.get_selection()->set_select_function (sigc::bind (ptr_fun (selection_filter), &columns));
|
||||
displayA.get_selection()->signal_changed().connect (sigc::bind (ptr_fun (selection_changed), modelA, &displayA, &columns));
|
||||
|
||||
displayB.set_model (modelB);
|
||||
displayB.append_column ("Use", columns.used);
|
||||
|
|
@ -192,8 +192,8 @@ main (int argc, char* argv[])
|
|||
displayB.signal_object_drop.connect (ptr_fun (object_drop));
|
||||
|
||||
displayB.get_selection()->set_mode (SELECTION_MULTIPLE);
|
||||
displayB.get_selection()->set_select_function (bind (ptr_fun (selection_filter), &columns));
|
||||
displayB.get_selection()->signal_changed().connect (bind (ptr_fun (selection_changed), modelB, &displayB, &columns));
|
||||
displayB.get_selection()->set_select_function (sigc::bind (ptr_fun (selection_filter), &columns));
|
||||
displayB.get_selection()->signal_changed().connect (sigc::bind (ptr_fun (selection_changed), modelB, &displayB, &columns));
|
||||
|
||||
scrollerA.add (displayA);
|
||||
scrollerB.add (displayB);
|
||||
|
|
@ -208,8 +208,8 @@ main (int argc, char* argv[])
|
|||
win.set_size_request (500, 400);
|
||||
win.show_all ();
|
||||
|
||||
rescan.signal_clicked().connect (bind (ptr_fun (fill_it), modelA, &displayA, &columns));
|
||||
rescan.signal_clicked().connect (bind (ptr_fun (fill_it), modelB, &displayB, &columns));
|
||||
rescan.signal_clicked().connect (sigc::bind (ptr_fun (fill_it), modelA, &displayA, &columns));
|
||||
rescan.signal_clicked().connect (sigc::bind (ptr_fun (fill_it), modelB, &displayB, &columns));
|
||||
|
||||
fill_it (modelA, &displayA, &columns);
|
||||
fill_it (modelB, &displayB, &columns);
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ KeyEditor::KeyEditor ()
|
|||
view.set_rules_hint (true);
|
||||
view.set_name (X_("KeyEditorTree"));
|
||||
|
||||
view.get_selection()->signal_changed().connect (mem_fun (*this, &KeyEditor::action_selected));
|
||||
view.get_selection()->signal_changed().connect (sigc::mem_fun (*this, &KeyEditor::action_selected));
|
||||
|
||||
scroller.add (view);
|
||||
scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
|
||||
|
|
@ -65,7 +65,7 @@ KeyEditor::KeyEditor ()
|
|||
unbind_box.set_spacing (6);
|
||||
unbind_box.pack_start (*hint, false, true);
|
||||
unbind_box.pack_start (unbind_button, false, false);
|
||||
unbind_button.signal_clicked().connect (mem_fun (*this, &KeyEditor::unbind));
|
||||
unbind_button.signal_clicked().connect (sigc::mem_fun (*this, &KeyEditor::unbind));
|
||||
|
||||
get_vbox()->pack_start (unbind_box, false, false);
|
||||
unbind_box.show ();
|
||||
|
|
|
|||
|
|
@ -76,11 +76,11 @@ LatencyGUI::LatencyGUI (Latent& l, nframes64_t sr, nframes64_t psz)
|
|||
hbox2.pack_start (plus_button);
|
||||
hbox2.pack_start (units_combo, true, true);
|
||||
|
||||
minus_button.signal_clicked().connect (bind (mem_fun (*this, &LatencyGUI::change_latency_from_button), -1));
|
||||
plus_button.signal_clicked().connect (bind (mem_fun (*this, &LatencyGUI::change_latency_from_button), 1));
|
||||
reset_button.signal_clicked().connect (mem_fun (*this, &LatencyGUI::reset));
|
||||
minus_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &LatencyGUI::change_latency_from_button), -1));
|
||||
plus_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &LatencyGUI::change_latency_from_button), 1));
|
||||
reset_button.signal_clicked().connect (sigc::mem_fun (*this, &LatencyGUI::reset));
|
||||
|
||||
adjustment.signal_value_changed().connect (mem_fun (*this, &LatencyGUI::finish));
|
||||
adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &LatencyGUI::finish));
|
||||
|
||||
bc.set_size_request (-1, 25);
|
||||
bc.set_style (BarController::LeftToRight);
|
||||
|
|
|
|||
|
|
@ -60,9 +60,9 @@ LevelMeter::LevelMeter (Session& s)
|
|||
, meter_length (0)
|
||||
{
|
||||
set_spacing (1);
|
||||
Config->ParameterChanged.connect (mem_fun (*this, &LevelMeter::parameter_changed));
|
||||
UI::instance()->theme_changed.connect (mem_fun(*this, &LevelMeter::on_theme_changed));
|
||||
ColorsChanged.connect (mem_fun (*this, &LevelMeter::color_handler));
|
||||
Config->ParameterChanged.connect (sigc::mem_fun (*this, &LevelMeter::parameter_changed));
|
||||
UI::instance()->theme_changed.connect (sigc::mem_fun(*this, &LevelMeter::on_theme_changed));
|
||||
ColorsChanged.connect (sigc::mem_fun (*this, &LevelMeter::color_handler));
|
||||
max_peak = minus_infinity();
|
||||
}
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ LevelMeter::set_meter (PeakMeter* meter)
|
|||
_meter = meter;
|
||||
if (_meter) {
|
||||
_configuration_connection = _meter->ConfigurationChanged.connect(
|
||||
mem_fun(*this, &LevelMeter::configuration_changed));
|
||||
sigc::mem_fun(*this, &LevelMeter::configuration_changed));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ LevelMeter::update_meters ()
|
|||
void
|
||||
LevelMeter::parameter_changed (string p)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &LevelMeter::parameter_changed), p));
|
||||
ENSURE_GUI_THREAD (*this, &LevelMeter::parameter_changed, p)
|
||||
|
||||
if (p == "meter-hold") {
|
||||
|
||||
|
|
@ -204,7 +204,7 @@ LevelMeter::setup_meters (int len, int initial_width)
|
|||
meters[n].width = width;
|
||||
meters[n].length = len;
|
||||
meters[n].meter->add_events (Gdk::BUTTON_RELEASE_MASK);
|
||||
meters[n].meter->signal_button_release_event().connect (bind (mem_fun(*this, &LevelMeter::meter_button_release), n));
|
||||
meters[n].meter->signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &LevelMeter::meter_button_release), n));
|
||||
}
|
||||
|
||||
pack_end (*meters[n].meter, false, false);
|
||||
|
|
|
|||
|
|
@ -89,10 +89,10 @@ LineSet::LineSet(Group& parent, Orientation o)
|
|||
|
||||
item_construct(parent);
|
||||
|
||||
property_x1().signal_changed().connect(mem_fun(*this, &LineSet::bounds_need_update));
|
||||
property_y1().signal_changed().connect(mem_fun(*this, &LineSet::bounds_need_update));
|
||||
property_x2().signal_changed().connect(mem_fun(*this, &LineSet::bounds_need_update));
|
||||
property_y2().signal_changed().connect(mem_fun(*this, &LineSet::bounds_need_update));
|
||||
property_x1().signal_changed().connect(sigc::mem_fun(*this, &LineSet::bounds_need_update));
|
||||
property_y1().signal_changed().connect(sigc::mem_fun(*this, &LineSet::bounds_need_update));
|
||||
property_x2().signal_changed().connect(sigc::mem_fun(*this, &LineSet::bounds_need_update));
|
||||
property_y2().signal_changed().connect(sigc::mem_fun(*this, &LineSet::bounds_need_update));
|
||||
}
|
||||
|
||||
LineSet::~LineSet()
|
||||
|
|
|
|||
|
|
@ -106,11 +106,11 @@ LocationEditRow::LocationEditRow(Session * sess, Location * loc, int32_t num)
|
|||
cd_track_details_hbox.pack_start (composer_label, false, false);
|
||||
cd_track_details_hbox.pack_start (composer_entry, true, true);
|
||||
|
||||
isrc_entry.signal_changed().connect (mem_fun(*this, &LocationEditRow::isrc_entry_changed));
|
||||
performer_entry.signal_changed().connect (mem_fun(*this, &LocationEditRow::performer_entry_changed));
|
||||
composer_entry.signal_changed().connect (mem_fun(*this, &LocationEditRow::composer_entry_changed));
|
||||
scms_check_button.signal_toggled().connect(mem_fun(*this, &LocationEditRow::scms_toggled));
|
||||
preemph_check_button.signal_toggled().connect(mem_fun(*this, &LocationEditRow::preemph_toggled));
|
||||
isrc_entry.signal_changed().connect (sigc::mem_fun(*this, &LocationEditRow::isrc_entry_changed));
|
||||
performer_entry.signal_changed().connect (sigc::mem_fun(*this, &LocationEditRow::performer_entry_changed));
|
||||
composer_entry.signal_changed().connect (sigc::mem_fun(*this, &LocationEditRow::composer_entry_changed));
|
||||
scms_check_button.signal_toggled().connect(sigc::mem_fun(*this, &LocationEditRow::scms_toggled));
|
||||
preemph_check_button.signal_toggled().connect(sigc::mem_fun(*this, &LocationEditRow::preemph_toggled));
|
||||
|
||||
set_session (sess);
|
||||
|
||||
|
|
@ -121,24 +121,24 @@ LocationEditRow::LocationEditRow(Session * sess, Location * loc, int32_t num)
|
|||
|
||||
item_table.attach (start_hbox, 1, 2, 0, 1, FILL, FILL, 4, 0);
|
||||
|
||||
start_go_button.signal_clicked().connect(bind (mem_fun (*this, &LocationEditRow::go_button_pressed), LocStart));
|
||||
start_clock.ValueChanged.connect (bind (mem_fun (*this, &LocationEditRow::clock_changed), LocStart));
|
||||
start_clock.ChangeAborted.connect (bind (mem_fun (*this, &LocationEditRow::change_aborted), LocStart));
|
||||
start_go_button.signal_clicked().connect(sigc::bind (sigc::mem_fun (*this, &LocationEditRow::go_button_pressed), LocStart));
|
||||
start_clock.ValueChanged.connect (sigc::bind (sigc::mem_fun (*this, &LocationEditRow::clock_changed), LocStart));
|
||||
start_clock.ChangeAborted.connect (sigc::bind (sigc::mem_fun (*this, &LocationEditRow::change_aborted), LocStart));
|
||||
|
||||
// end_hbox.pack_start (end_go_button, false, false);
|
||||
end_hbox.pack_start (end_clock, false, false);
|
||||
|
||||
end_go_button.signal_clicked().connect(bind (mem_fun (*this, &LocationEditRow::go_button_pressed), LocEnd));
|
||||
end_clock.ValueChanged.connect (bind (mem_fun (*this, &LocationEditRow::clock_changed), LocEnd));
|
||||
end_clock.ChangeAborted.connect (bind (mem_fun (*this, &LocationEditRow::change_aborted), LocEnd));
|
||||
end_go_button.signal_clicked().connect(sigc::bind (sigc::mem_fun (*this, &LocationEditRow::go_button_pressed), LocEnd));
|
||||
end_clock.ValueChanged.connect (sigc::bind (sigc::mem_fun (*this, &LocationEditRow::clock_changed), LocEnd));
|
||||
end_clock.ChangeAborted.connect (sigc::bind (sigc::mem_fun (*this, &LocationEditRow::change_aborted), LocEnd));
|
||||
|
||||
length_clock.ValueChanged.connect (bind ( mem_fun(*this, &LocationEditRow::clock_changed), LocLength));
|
||||
length_clock.ChangeAborted.connect (bind (mem_fun (*this, &LocationEditRow::change_aborted), LocLength));
|
||||
length_clock.ValueChanged.connect (sigc::bind ( sigc::mem_fun(*this, &LocationEditRow::clock_changed), LocLength));
|
||||
length_clock.ChangeAborted.connect (sigc::bind (sigc::mem_fun (*this, &LocationEditRow::change_aborted), LocLength));
|
||||
|
||||
cd_check_button.signal_toggled().connect(mem_fun(*this, &LocationEditRow::cd_toggled));
|
||||
hide_check_button.signal_toggled().connect(mem_fun(*this, &LocationEditRow::hide_toggled));
|
||||
cd_check_button.signal_toggled().connect(sigc::mem_fun(*this, &LocationEditRow::cd_toggled));
|
||||
hide_check_button.signal_toggled().connect(sigc::mem_fun(*this, &LocationEditRow::hide_toggled));
|
||||
|
||||
remove_button.signal_clicked().connect(mem_fun(*this, &LocationEditRow::remove_button_pressed));
|
||||
remove_button.signal_clicked().connect(sigc::mem_fun(*this, &LocationEditRow::remove_button_pressed));
|
||||
|
||||
pack_start(item_table, true, true);
|
||||
|
||||
|
|
@ -217,7 +217,7 @@ LocationEditRow::set_location (Location *loc)
|
|||
name_entry.set_text (location->name());
|
||||
name_entry.set_size_request (100, -1);
|
||||
name_entry.set_editable (true);
|
||||
name_entry.signal_changed().connect (mem_fun(*this, &LocationEditRow::name_entry_changed));
|
||||
name_entry.signal_changed().connect (sigc::mem_fun(*this, &LocationEditRow::name_entry_changed));
|
||||
|
||||
if (!name_entry.get_parent()) {
|
||||
item_table.attach (name_entry, 0, 1, 0, 1, FILL | EXPAND, FILL, 4, 0);
|
||||
|
|
@ -287,17 +287,17 @@ LocationEditRow::set_location (Location *loc)
|
|||
end_clock.set_sensitive (!location->locked());
|
||||
length_clock.set_sensitive (!location->locked());
|
||||
|
||||
start_changed_connection = location->start_changed.connect (mem_fun(*this, &LocationEditRow::start_changed));
|
||||
end_changed_connection = location->end_changed.connect (mem_fun(*this, &LocationEditRow::end_changed));
|
||||
name_changed_connection = location->name_changed.connect (mem_fun(*this, &LocationEditRow::name_changed));
|
||||
changed_connection = location->changed.connect (mem_fun(*this, &LocationEditRow::location_changed));
|
||||
flags_changed_connection = location->FlagsChanged.connect (mem_fun(*this, &LocationEditRow::flags_changed));
|
||||
start_changed_connection = location->start_changed.connect (sigc::mem_fun(*this, &LocationEditRow::start_changed));
|
||||
end_changed_connection = location->end_changed.connect (sigc::mem_fun(*this, &LocationEditRow::end_changed));
|
||||
name_changed_connection = location->name_changed.connect (sigc::mem_fun(*this, &LocationEditRow::name_changed));
|
||||
changed_connection = location->changed.connect (sigc::mem_fun(*this, &LocationEditRow::location_changed));
|
||||
flags_changed_connection = location->FlagsChanged.connect (sigc::mem_fun(*this, &LocationEditRow::flags_changed));
|
||||
}
|
||||
|
||||
void
|
||||
LocationEditRow::name_entry_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &LocationEditRow::name_entry_changed));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::name_entry_changed)
|
||||
if (i_am_the_modifier || !location) return;
|
||||
|
||||
location->set_name (name_entry.get_text());
|
||||
|
|
@ -307,7 +307,7 @@ LocationEditRow::name_entry_changed ()
|
|||
void
|
||||
LocationEditRow::isrc_entry_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &LocationEditRow::isrc_entry_changed));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::isrc_entry_changed)
|
||||
|
||||
if (i_am_the_modifier || !location) return;
|
||||
|
||||
|
|
@ -323,7 +323,7 @@ LocationEditRow::isrc_entry_changed ()
|
|||
void
|
||||
LocationEditRow::performer_entry_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &LocationEditRow::performer_entry_changed));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::performer_entry_changed)
|
||||
|
||||
if (i_am_the_modifier || !location) return;
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ LocationEditRow::performer_entry_changed ()
|
|||
void
|
||||
LocationEditRow::composer_entry_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &LocationEditRow::composer_entry_changed));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::composer_entry_changed)
|
||||
|
||||
if (i_am_the_modifier || !location) return;
|
||||
|
||||
|
|
@ -493,7 +493,7 @@ LocationEditRow::preemph_toggled ()
|
|||
void
|
||||
LocationEditRow::end_changed (ARDOUR::Location *loc)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &LocationEditRow::end_changed), loc));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::end_changed, loc)
|
||||
|
||||
if (!location) return;
|
||||
|
||||
|
|
@ -509,7 +509,7 @@ LocationEditRow::end_changed (ARDOUR::Location *loc)
|
|||
void
|
||||
LocationEditRow::start_changed (ARDOUR::Location *loc)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &LocationEditRow::start_changed), loc));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::start_changed, loc)
|
||||
|
||||
if (!location) return;
|
||||
|
||||
|
|
@ -530,7 +530,7 @@ LocationEditRow::start_changed (ARDOUR::Location *loc)
|
|||
void
|
||||
LocationEditRow::name_changed (ARDOUR::Location *loc)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &LocationEditRow::name_changed), loc));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::name_changed, loc)
|
||||
|
||||
if (!location) return;
|
||||
|
||||
|
|
@ -547,7 +547,7 @@ LocationEditRow::name_changed (ARDOUR::Location *loc)
|
|||
void
|
||||
LocationEditRow::location_changed (ARDOUR::Location *loc)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &LocationEditRow::location_changed), loc));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::location_changed, loc)
|
||||
|
||||
if (!location) return;
|
||||
|
||||
|
|
@ -568,7 +568,7 @@ LocationEditRow::location_changed (ARDOUR::Location *loc)
|
|||
void
|
||||
LocationEditRow::flags_changed (ARDOUR::Location *loc, void *src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &LocationEditRow::flags_changed), loc, src));
|
||||
ENSURE_GUI_THREAD (*this, &LocationEditRow::flags_changed, loc, src)
|
||||
|
||||
if (!location) return;
|
||||
|
||||
|
|
@ -659,8 +659,8 @@ LocationUI::LocationUI ()
|
|||
|
||||
pack_start (location_vpacker, true, true);
|
||||
|
||||
add_location_button.signal_clicked().connect (mem_fun(*this, &LocationUI::add_new_location));
|
||||
add_range_button.signal_clicked().connect (mem_fun(*this, &LocationUI::add_new_range));
|
||||
add_location_button.signal_clicked().connect (sigc::mem_fun(*this, &LocationUI::add_new_location));
|
||||
add_range_button.signal_clicked().connect (sigc::mem_fun(*this, &LocationUI::add_new_range));
|
||||
|
||||
show_all ();
|
||||
}
|
||||
|
|
@ -697,7 +697,7 @@ LocationUI::location_remove_requested (ARDOUR::Location *loc)
|
|||
// must do this to prevent problems when destroying
|
||||
// the effective sender of this event
|
||||
|
||||
Glib::signal_idle().connect (bind (mem_fun(*this, &LocationUI::do_location_remove), loc));
|
||||
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun(*this, &LocationUI::do_location_remove), loc));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -711,7 +711,7 @@ LocationUI::location_redraw_ranges ()
|
|||
void
|
||||
LocationUI::location_added (Location* location)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &LocationUI::location_added), location));
|
||||
ENSURE_GUI_THREAD (*this, &LocationUI::location_added, location)
|
||||
|
||||
if (location->is_auto_punch()) {
|
||||
punch_edit_row.set_location(location);
|
||||
|
|
@ -727,7 +727,7 @@ LocationUI::location_added (Location* location)
|
|||
void
|
||||
LocationUI::location_removed (Location* location)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &LocationUI::location_removed), location));
|
||||
ENSURE_GUI_THREAD (*this, &LocationUI::location_removed, location)
|
||||
|
||||
if (location->is_auto_punch()) {
|
||||
punch_edit_row.set_location(0);
|
||||
|
|
@ -770,8 +770,8 @@ LocationUI::map_locations (Locations::LocationList& locations)
|
|||
if (location->is_mark()) {
|
||||
mark_n++;
|
||||
erow = manage (new LocationEditRow(session, location, mark_n));
|
||||
erow->remove_requested.connect (mem_fun(*this, &LocationUI::location_remove_requested));
|
||||
erow->redraw_ranges.connect (mem_fun(*this, &LocationUI::location_redraw_ranges));
|
||||
erow->remove_requested.connect (sigc::mem_fun(*this, &LocationUI::location_remove_requested));
|
||||
erow->redraw_ranges.connect (sigc::mem_fun(*this, &LocationUI::location_redraw_ranges));
|
||||
loc_children.push_back(Box_Helpers::Element(*erow, PACK_SHRINK, 1, PACK_START));
|
||||
if (location == newest_location) {
|
||||
newest_location = 0;
|
||||
|
|
@ -790,7 +790,7 @@ LocationUI::map_locations (Locations::LocationList& locations)
|
|||
}
|
||||
else {
|
||||
erow = manage (new LocationEditRow(session, location));
|
||||
erow->remove_requested.connect (mem_fun(*this, &LocationUI::location_remove_requested));
|
||||
erow->remove_requested.connect (sigc::mem_fun(*this, &LocationUI::location_remove_requested));
|
||||
range_children.push_back(Box_Helpers::Element(*erow, PACK_SHRINK, 1, PACK_START));
|
||||
}
|
||||
}
|
||||
|
|
@ -843,7 +843,7 @@ LocationUI::add_new_range()
|
|||
void
|
||||
LocationUI::refresh_location_list_s (Change ignored)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &LocationUI::refresh_location_list_s), ignored));
|
||||
ENSURE_GUI_THREAD (*this, &LocationUI::refresh_location_list_s, ignored)
|
||||
|
||||
refresh_location_list ();
|
||||
}
|
||||
|
|
@ -851,7 +851,7 @@ LocationUI::refresh_location_list_s (Change ignored)
|
|||
void
|
||||
LocationUI::refresh_location_list ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &LocationUI::refresh_location_list));
|
||||
ENSURE_GUI_THREAD (*this, &LocationUI::refresh_location_list)
|
||||
using namespace Box_Helpers;
|
||||
|
||||
// this is just too expensive to do when window is not shown
|
||||
|
|
@ -875,11 +875,11 @@ LocationUI::set_session(ARDOUR::Session* s)
|
|||
session = s;
|
||||
|
||||
if (session) {
|
||||
session->locations()->changed.connect (mem_fun(*this, &LocationUI::refresh_location_list));
|
||||
session->locations()->StateChanged.connect (mem_fun(*this, &LocationUI::refresh_location_list_s));
|
||||
session->locations()->added.connect (mem_fun(*this, &LocationUI::location_added));
|
||||
session->locations()->removed.connect (mem_fun(*this, &LocationUI::location_removed));
|
||||
session->GoingAway.connect (mem_fun(*this, &LocationUI::session_gone));
|
||||
session->locations()->changed.connect (sigc::mem_fun(*this, &LocationUI::refresh_location_list));
|
||||
session->locations()->StateChanged.connect (sigc::mem_fun(*this, &LocationUI::refresh_location_list_s));
|
||||
session->locations()->added.connect (sigc::mem_fun(*this, &LocationUI::location_added));
|
||||
session->locations()->removed.connect (sigc::mem_fun(*this, &LocationUI::location_removed));
|
||||
session->GoingAway.connect (sigc::mem_fun(*this, &LocationUI::session_gone));
|
||||
}
|
||||
refresh_location_list ();
|
||||
}
|
||||
|
|
@ -887,7 +887,7 @@ LocationUI::set_session(ARDOUR::Session* s)
|
|||
void
|
||||
LocationUI::session_gone()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &LocationUI::session_gone));
|
||||
ENSURE_GUI_THREAD (*this, &LocationUI::session_gone)
|
||||
|
||||
using namespace Box_Helpers;
|
||||
BoxList & loc_children = location_rows.children();
|
||||
|
|
@ -939,7 +939,7 @@ LocationUIWindow::set_session (Session *s)
|
|||
ArdourDialog::set_session (s);
|
||||
_ui.set_session (s);
|
||||
|
||||
s->GoingAway.connect (mem_fun (*this, &LocationUIWindow::session_gone));
|
||||
s->GoingAway.connect (sigc::mem_fun (*this, &LocationUIWindow::session_gone));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ LV2PluginUI::start_updating(GdkEventAny*)
|
|||
if (!_output_ports.empty()) {
|
||||
_screen_update_connection.disconnect();
|
||||
_screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect
|
||||
(mem_fun(*this, &LV2PluginUI::output_update));
|
||||
(sigc::mem_fun(*this, &LV2PluginUI::output_update));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -227,7 +227,7 @@ LV2PluginUI::lv2ui_instantiate(const Glib::ustring& title)
|
|||
}
|
||||
}
|
||||
|
||||
_lv2->ParameterChanged.connect(mem_fun(*this, &LV2PluginUI::parameter_changed));
|
||||
_lv2->ParameterChanged.connect(sigc::mem_fun(*this, &LV2PluginUI::parameter_changed));
|
||||
}
|
||||
|
||||
LV2PluginUI::~LV2PluginUI ()
|
||||
|
|
@ -262,9 +262,9 @@ LV2PluginUI::package (Gtk::Window& win)
|
|||
_win_ptr = &win;
|
||||
} else {
|
||||
/* forward configure events to plugin window */
|
||||
win.signal_configure_event().connect (mem_fun (*this, &LV2PluginUI::configure_handler));
|
||||
win.signal_map_event().connect (mem_fun (*this, &LV2PluginUI::start_updating));
|
||||
win.signal_unmap_event().connect (mem_fun (*this, &LV2PluginUI::stop_updating));
|
||||
win.signal_configure_event().connect (sigc::mem_fun (*this, &LV2PluginUI::configure_handler));
|
||||
win.signal_map_event().connect (sigc::mem_fun (*this, &LV2PluginUI::start_updating));
|
||||
win.signal_unmap_event().connect (sigc::mem_fun (*this, &LV2PluginUI::stop_updating));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -301,7 +301,7 @@ LV2PluginUI::on_window_show(const Glib::ustring& title)
|
|||
LV2_EXTERNAL_UI_SHOW(_external_ui_ptr);
|
||||
_screen_update_connection.disconnect();
|
||||
_screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect
|
||||
(mem_fun(*this, &LV2PluginUI::output_update));
|
||||
(sigc::mem_fun(*this, &LV2PluginUI::output_update));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -270,12 +270,12 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con
|
|||
|
||||
set_name (annotation.c_str());
|
||||
|
||||
editor.ZoomChanged.connect (mem_fun (*this, &Marker::reposition));
|
||||
editor.ZoomChanged.connect (sigc::mem_fun (*this, &Marker::reposition));
|
||||
|
||||
mark->set_data ("marker", this);
|
||||
|
||||
if (handle_events) {
|
||||
group->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_marker_event), mark, this));
|
||||
group->signal_event().connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_marker_event), mark, this));
|
||||
}
|
||||
|
||||
line = 0;
|
||||
|
|
@ -324,7 +324,7 @@ Marker::add_line (ArdourCanvas::Group* group, double y_origin, double initial_he
|
|||
line->property_x2() = unit_position + shift;
|
||||
line->property_y2() = y_origin + initial_height;
|
||||
|
||||
line->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_marker_event), mark, this));
|
||||
line->signal_event().connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_marker_event), mark, this));
|
||||
}
|
||||
|
||||
show_line ();
|
||||
|
|
@ -413,7 +413,7 @@ TempoMarker::TempoMarker (PublicEditor& editor, ArdourCanvas::Group& parent, gui
|
|||
_tempo (temp)
|
||||
{
|
||||
set_position (_tempo.frame());
|
||||
group->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_tempo_marker_event), mark, this));
|
||||
group->signal_event().connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_tempo_marker_event), mark, this));
|
||||
}
|
||||
|
||||
TempoMarker::~TempoMarker ()
|
||||
|
|
@ -428,7 +428,7 @@ MeterMarker::MeterMarker (PublicEditor& editor, ArdourCanvas::Group& parent, gui
|
|||
_meter (m)
|
||||
{
|
||||
set_position (_meter.frame());
|
||||
group->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_meter_marker_event), mark, this));
|
||||
group->signal_event().connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_meter_marker_event), mark, this));
|
||||
}
|
||||
|
||||
MeterMarker::~MeterMarker ()
|
||||
|
|
|
|||
|
|
@ -199,14 +199,14 @@ MarkerTimeAxis::build_display_menu()
|
|||
/* now fill it with our stuff */
|
||||
MenuList& items = display_menu->items();
|
||||
|
||||
items.push_back(MenuElem (_("Rename"), mem_fun(*this, &VisualTimeAxis::start_time_axis_rename)));
|
||||
items.push_back(MenuElem (_("Rename"), sigc::mem_fun(*this, &VisualTimeAxis::start_time_axis_rename)));
|
||||
|
||||
items.push_back(SeparatorElem()) ;
|
||||
items.push_back(MenuElem (_("Height"), *size_menu));
|
||||
items.push_back(MenuElem (_("Color"), mem_fun(*this, &MarkerTimeAxis::select_track_color)));
|
||||
items.push_back(MenuElem (_("Color"), sigc::mem_fun(*this, &MarkerTimeAxis::select_track_color)));
|
||||
items.push_back(SeparatorElem()) ;
|
||||
|
||||
items.push_back(MenuElem (_("Remove"), bind(mem_fun(*this, &MarkerTimeAxis::remove_this_time_axis), (void*)this)));
|
||||
items.push_back(MenuElem (_("Remove"), sigc::bind(sigc::mem_fun(*this, &MarkerTimeAxis::remove_this_time_axis), (void*)this)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -233,22 +233,22 @@ MarkerTimeAxis::build_marker_menu()
|
|||
|
||||
if(view)
|
||||
{
|
||||
duration_items.push_back(MenuElem (_("1 seconds"), bind (mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 1.0))) ;
|
||||
duration_items.push_back(MenuElem (_("1.5 seconds"), bind (mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 1.5))) ;
|
||||
duration_items.push_back(MenuElem (_("2 seconds"), bind (mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 2.0))) ;
|
||||
duration_items.push_back(MenuElem (_("2.5 seconds"), bind (mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 2.5))) ;
|
||||
duration_items.push_back(MenuElem (_("3 seconds"), bind (mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 3.0))) ;
|
||||
duration_items.push_back(MenuElem (_("1 seconds"), sigc::bind (sigc::mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 1.0))) ;
|
||||
duration_items.push_back(MenuElem (_("1.5 seconds"), sigc::bind (sigc::mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 1.5))) ;
|
||||
duration_items.push_back(MenuElem (_("2 seconds"), sigc::bind (sigc::mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 2.0))) ;
|
||||
duration_items.push_back(MenuElem (_("2.5 seconds"), sigc::bind (sigc::mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 2.5))) ;
|
||||
duration_items.push_back(MenuElem (_("3 seconds"), sigc::bind (sigc::mem_fun (view, &MarkerTimeAxisView::set_marker_duration_sec), 3.0))) ;
|
||||
}
|
||||
//duration_items.push_back(SeparatorElem()) ;
|
||||
//duration_items.push_back(MenuElem (_("custom"), mem_fun(*this, &ImageFrameTimeAxis::set_marker_duration_custom))) ;
|
||||
//duration_items.push_back(MenuElem (_("custom"), sigc::mem_fun(*this, &ImageFrameTimeAxis::set_marker_duration_custom))) ;
|
||||
|
||||
marker_sub_items.push_back(MenuElem(_("Duration (sec)"), *duration_menu)) ;
|
||||
|
||||
marker_sub_items.push_back(SeparatorElem()) ;
|
||||
marker_sub_items.push_back(MenuElem (_("Remove Marker"), bind(mem_fun(view, &MarkerTimeAxisView::remove_selected_marker_view),(void*)this))) ;
|
||||
marker_sub_items.push_back(MenuElem (_("Remove Marker"), sigc::bind(sigc::mem_fun(view, &MarkerTimeAxisView::remove_selected_marker_view),(void*)this))) ;
|
||||
|
||||
items.push_back(MenuElem(_("Marker"), *marker_item_menu)) ;
|
||||
items.push_back(MenuElem (_("Rename Track"), mem_fun(*this,&MarkerTimeAxis::start_time_axis_rename))) ;
|
||||
items.push_back(MenuElem (_("Rename Track"), sigc::mem_fun(*this,&MarkerTimeAxis::start_time_axis_rename))) ;
|
||||
|
||||
marker_menu->show_all() ;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,11 +62,11 @@ MarkerTimeAxisView::MarkerTimeAxisView(MarkerTimeAxis& tv)
|
|||
canvas_rect->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_MarkerTrack.get();
|
||||
canvas_rect->property_fill_color_rgba() = stream_base_color;
|
||||
|
||||
canvas_rect->signal_event().connect (bind (mem_fun (_trackview.editor, &PublicEditor::canvas_marker_time_axis_view_event), canvas_rect, &_trackview));
|
||||
canvas_rect->signal_event().connect (sigc::bind (sigc::mem_fun (_trackview.editor, &PublicEditor::canvas_marker_time_axis_view_event), canvas_rect, &_trackview));
|
||||
|
||||
_samples_per_unit = _trackview.editor.get_current_zoom() ;
|
||||
|
||||
_trackview.editor.ZoomChanged.connect (mem_fun(*this, &MarkerTimeAxisView::reset_samples_per_unit));
|
||||
_trackview.editor.ZoomChanged.connect (sigc::mem_fun(*this, &MarkerTimeAxisView::reset_samples_per_unit));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -211,7 +211,7 @@ MarkerTimeAxisView::add_marker_view(ImageFrameView* ifv, std::string mark_type,
|
|||
ifv->add_marker_view_item(mv, src) ;
|
||||
marker_view_list.push_front(mv) ;
|
||||
|
||||
mv->GoingAway.connect(bind (mem_fun(*this,&MarkerTimeAxisView::remove_marker_view), (void*)this)) ;
|
||||
mv->GoingAway.connect(sigc::bind (sigc::mem_fun(*this,&MarkerTimeAxisView::remove_marker_view), (void*)this)) ;
|
||||
|
||||
MarkerViewAdded(mv,src) ; /* EMIT_SIGNAL */
|
||||
|
||||
|
|
@ -313,7 +313,7 @@ MarkerTimeAxisView::remove_named_marker_view(std::string item_id, void* src)
|
|||
void
|
||||
MarkerTimeAxisView::remove_marker_view(MarkerView* mv, void* src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &MarkerTimeAxisView::remove_marker_view), mv, src));
|
||||
ENSURE_GUI_THREAD (*this, &MarkerTimeAxisView::remove_marker_view, mv, src)
|
||||
|
||||
MarkerViewList::iterator i;
|
||||
|
||||
|
|
|
|||
|
|
@ -65,9 +65,9 @@ MarkerView::MarkerView(ArdourCanvas::Group *parent,
|
|||
|
||||
// hook up our canvas events
|
||||
|
||||
frame_handle_start->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_markerview_start_handle_event), frame_handle_start, this));
|
||||
frame_handle_end->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_markerview_end_handle_event), frame_handle_end, this));
|
||||
group->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_markerview_item_view_event), group, this));
|
||||
frame_handle_start->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_markerview_start_handle_event), frame_handle_start, this));
|
||||
frame_handle_end->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_markerview_end_handle_event), frame_handle_end, this));
|
||||
group->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_markerview_item_view_event), group, this));
|
||||
|
||||
set_position(start, this) ;
|
||||
set_duration(duration, this) ;
|
||||
|
|
|
|||
|
|
@ -49,8 +49,8 @@ MidiChannelSelector::MidiChannelSelector(int n_rows, int n_columns, int start_ro
|
|||
_button_labels[row][column].set_justify(JUSTIFY_RIGHT);
|
||||
_buttons[row][column].add(_button_labels[row][column]);
|
||||
_buttons[row][column].signal_toggled().connect(
|
||||
bind(
|
||||
mem_fun(this, &MidiChannelSelector::button_toggled),
|
||||
sigc::bind(
|
||||
sigc::mem_fun(this, &MidiChannelSelector::button_toggled),
|
||||
&_buttons[row][column],
|
||||
channel_nr - 1));
|
||||
|
||||
|
|
@ -130,19 +130,19 @@ MidiMultipleChannelSelector::MidiMultipleChannelSelector(ChannelMode mode, uint1
|
|||
{
|
||||
_select_all.add(*manage(new Label(_("All"))));
|
||||
_select_all.signal_clicked().connect(
|
||||
bind(mem_fun(this, &MidiMultipleChannelSelector::select_all), true));
|
||||
sigc::bind(sigc::mem_fun(this, &MidiMultipleChannelSelector::select_all), true));
|
||||
|
||||
_select_none.add(*manage(new Label(_("None"))));
|
||||
_select_none.signal_clicked().connect(
|
||||
bind(mem_fun(this, &MidiMultipleChannelSelector::select_all), false));
|
||||
sigc::bind(sigc::mem_fun(this, &MidiMultipleChannelSelector::select_all), false));
|
||||
|
||||
_invert_selection.add(*manage(new Label(_("Invert"))));
|
||||
_invert_selection.signal_clicked().connect(
|
||||
mem_fun(this, &MidiMultipleChannelSelector::invert_selection));
|
||||
sigc::mem_fun(this, &MidiMultipleChannelSelector::invert_selection));
|
||||
|
||||
_force_channel.add(*manage(new Label(_("Force"))));
|
||||
_force_channel.signal_toggled().connect(
|
||||
mem_fun(this, &MidiMultipleChannelSelector::force_channels_button_toggled));
|
||||
sigc::mem_fun(this, &MidiMultipleChannelSelector::force_channels_button_toggled));
|
||||
|
||||
set_homogeneous(false);
|
||||
attach(*manage(new VSeparator()), 4, 5, 0, 4, SHRINK, FILL, 0, 0);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ MidiListEditor::MidiListEditor (Session& s, boost::shared_ptr<MidiRegion> r)
|
|||
for (int i = 0; i < 6; ++i) {
|
||||
CellRendererText* renderer = dynamic_cast<CellRendererText*>(view.get_column_cell_renderer (i));
|
||||
renderer->property_editable() = true;
|
||||
renderer->signal_edited().connect (mem_fun (*this, &MidiListEditor::edited));
|
||||
renderer->signal_edited().connect (sigc::mem_fun (*this, &MidiListEditor::edited));
|
||||
}
|
||||
|
||||
scroller.add (view);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ MidiPortDialog::MidiPortDialog ()
|
|||
|
||||
get_vbox()->pack_start (hpacker);
|
||||
|
||||
port_name.signal_activate().connect (mem_fun (*this, &MidiPortDialog::entry_activated));
|
||||
port_name.signal_activate().connect (sigc::mem_fun (*this, &MidiPortDialog::entry_activated));
|
||||
|
||||
add_button (Stock::CANCEL, RESPONSE_CANCEL);
|
||||
add_button (Stock::ADD, RESPONSE_ACCEPT);
|
||||
|
|
|
|||
|
|
@ -201,13 +201,13 @@ MidiRegionView::init (Gdk::Color const & basic_color, bool wfd)
|
|||
}
|
||||
|
||||
group->raise_to_top();
|
||||
group->signal_event().connect (mem_fun (this, &MidiRegionView::canvas_event), false);
|
||||
group->signal_event().connect (sigc::mem_fun (this, &MidiRegionView::canvas_event), false);
|
||||
|
||||
midi_view()->signal_channel_mode_changed().connect(
|
||||
mem_fun(this, &MidiRegionView::midi_channel_mode_changed));
|
||||
sigc::mem_fun(this, &MidiRegionView::midi_channel_mode_changed));
|
||||
|
||||
midi_view()->signal_midi_patch_settings_changed().connect(
|
||||
mem_fun(this, &MidiRegionView::midi_patch_settings_changed));
|
||||
sigc::mem_fun(this, &MidiRegionView::midi_patch_settings_changed));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
@ -1072,7 +1072,7 @@ MidiRegionView::add_ghost (TimeAxisView& tv)
|
|||
}
|
||||
}
|
||||
|
||||
ghost->GoingAway.connect (mem_fun(*this, &MidiRegionView::remove_ghost));
|
||||
ghost->GoingAway.connect (sigc::mem_fun(*this, &MidiRegionView::remove_ghost));
|
||||
|
||||
return ghost;
|
||||
}
|
||||
|
|
@ -1153,7 +1153,7 @@ MidiRegionView::play_midi_note(boost::shared_ptr<NoteType> note)
|
|||
const double note_length_beats = (note->off_event().time() - note->on_event().time());
|
||||
nframes_t note_length_ms = beats_to_frames(note_length_beats)
|
||||
* (1000 / (double)route_ui->session().nominal_frame_rate());
|
||||
Glib::signal_timeout().connect(bind(mem_fun(this, &MidiRegionView::play_midi_note_off), note),
|
||||
Glib::signal_timeout().connect(sigc::bind(sigc::mem_fun(this, &MidiRegionView::play_midi_note_off), note),
|
||||
note_length_ms, G_PRIORITY_DEFAULT);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,19 +85,19 @@ MidiStreamView::MidiStreamView (MidiTimeAxisView& tv)
|
|||
_note_lines->property_x2() = trackview().editor().frame_to_pixel (max_frames);
|
||||
_note_lines->property_y2() = 0;
|
||||
|
||||
_note_lines->signal_event().connect(bind(
|
||||
mem_fun(_trackview.editor(), &PublicEditor::canvas_stream_view_event),
|
||||
_note_lines->signal_event().connect(sigc::bind(
|
||||
sigc::mem_fun(_trackview.editor(), &PublicEditor::canvas_stream_view_event),
|
||||
_note_lines, &_trackview));
|
||||
|
||||
_note_lines->lower_to_bottom();
|
||||
|
||||
ColorsChanged.connect(mem_fun(*this, &MidiStreamView::draw_note_lines));
|
||||
ColorsChanged.connect(sigc::mem_fun(*this, &MidiStreamView::draw_note_lines));
|
||||
|
||||
note_range_adjustment.set_page_size(_highest_note - _lowest_note);
|
||||
note_range_adjustment.set_value(_lowest_note);
|
||||
|
||||
note_range_adjustment.signal_value_changed().connect(
|
||||
mem_fun(*this, &MidiStreamView::note_range_adjustment_changed));
|
||||
sigc::mem_fun(*this, &MidiStreamView::note_range_adjustment_changed));
|
||||
}
|
||||
|
||||
MidiStreamView::~MidiStreamView ()
|
||||
|
|
@ -180,7 +180,7 @@ MidiStreamView::add_region_view_internal (boost::shared_ptr<Region> r, bool wfd,
|
|||
display_region (region_view, wfd);
|
||||
|
||||
/* catch regionview going away */
|
||||
region->GoingAway.connect (bind (mem_fun (*this, &MidiStreamView::remove_region_view), region));
|
||||
region->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &MidiStreamView::remove_region_view), region));
|
||||
|
||||
RegionViewAdded (region_view);
|
||||
|
||||
|
|
@ -405,8 +405,8 @@ MidiStreamView::setup_rec_box ()
|
|||
|
||||
sources.push_back(mds->write_source());
|
||||
|
||||
rec_data_ready_connections.push_back (mds->write_source()->ViewDataRangeReady.connect (bind (
|
||||
mem_fun (*this, &MidiStreamView::rec_data_range_ready),
|
||||
rec_data_ready_connections.push_back (mds->write_source()->ViewDataRangeReady.connect (sigc::bind (
|
||||
sigc::mem_fun (*this, &MidiStreamView::rec_data_range_ready),
|
||||
boost::weak_ptr<Source>(mds->write_source()))));
|
||||
|
||||
// handle multi
|
||||
|
|
@ -462,7 +462,7 @@ MidiStreamView::setup_rec_box ()
|
|||
|
||||
screen_update_connection.disconnect();
|
||||
screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (
|
||||
mem_fun (*this, &MidiStreamView::update_rec_box));
|
||||
sigc::mem_fun (*this, &MidiStreamView::update_rec_box));
|
||||
rec_updating = true;
|
||||
rec_active = true;
|
||||
|
||||
|
|
@ -524,7 +524,7 @@ MidiStreamView::setup_rec_box ()
|
|||
void
|
||||
MidiStreamView::update_rec_regions (boost::shared_ptr<MidiModel> data, nframes_t start, nframes_t dur)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &MidiStreamView::update_rec_regions), data, start, dur));
|
||||
ENSURE_GUI_THREAD (*this, &MidiStreamView::update_rec_regions, data, start, dur)
|
||||
|
||||
if (use_rec_regions) {
|
||||
|
||||
|
|
@ -654,7 +654,7 @@ MidiStreamView::rec_data_range_ready (nframes_t start, nframes_t cnt, boost::wea
|
|||
{
|
||||
// this is called from the butler thread for now
|
||||
|
||||
ENSURE_GUI_THREAD(bind (mem_fun (*this, &MidiStreamView::rec_data_range_ready), start, cnt, weak_src));
|
||||
ENSURE_GUI_THREAD (*this, &MidiStreamView::rec_data_range_ready, start, cnt, weak_src)
|
||||
|
||||
boost::shared_ptr<SMFSource> src (boost::dynamic_pointer_cast<SMFSource>(weak_src.lock()));
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session& sess,
|
|||
|
||||
set_state (*xml_node, Stateful::loading_state_version);
|
||||
|
||||
_route->processors_changed.connect (mem_fun(*this, &MidiTimeAxisView::processors_changed));
|
||||
_route->processors_changed.connect (sigc::mem_fun(*this, &MidiTimeAxisView::processors_changed));
|
||||
|
||||
if (is_track()) {
|
||||
_piano_roll_header = new PianoRollHeader(*midi_view());
|
||||
|
|
@ -151,10 +151,10 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session& sess,
|
|||
controls_base_selected_name = "MidiTrackControlsBaseSelected";
|
||||
controls_base_unselected_name = "MidiTrackControlsBaseUnselected";
|
||||
|
||||
midi_view()->NoteRangeChanged.connect (mem_fun(*this, &MidiTimeAxisView::update_range));
|
||||
midi_view()->NoteRangeChanged.connect (sigc::mem_fun(*this, &MidiTimeAxisView::update_range));
|
||||
|
||||
/* ask for notifications of any new RegionViews */
|
||||
_view->RegionViewAdded.connect (mem_fun(*this, &MidiTimeAxisView::region_view_added));
|
||||
_view->RegionViewAdded.connect (sigc::mem_fun(*this, &MidiTimeAxisView::region_view_added));
|
||||
_view->attach ();
|
||||
}
|
||||
|
||||
|
|
@ -167,10 +167,10 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session& sess,
|
|||
_model_selector.append_text(m->c_str());
|
||||
}
|
||||
|
||||
_model_selector.signal_changed().connect(mem_fun(*this, &MidiTimeAxisView::model_changed));
|
||||
_model_selector.signal_changed().connect(sigc::mem_fun(*this, &MidiTimeAxisView::model_changed));
|
||||
|
||||
_custom_device_mode_selector.signal_changed().connect(
|
||||
mem_fun(*this, &MidiTimeAxisView::custom_device_mode_changed));
|
||||
sigc::mem_fun(*this, &MidiTimeAxisView::custom_device_mode_changed));
|
||||
|
||||
// TODO: persist the choice
|
||||
// this initializes the comboboxes and sends out the signal
|
||||
|
|
@ -192,7 +192,7 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session& sess,
|
|||
_channel_selector.set_channel_mode(diskstream->get_channel_mode(),
|
||||
diskstream->get_channel_mask());
|
||||
_channel_selector.mode_changed.connect(
|
||||
mem_fun(*midi_track()->midi_diskstream(), &MidiDiskstream::set_channel_mode));
|
||||
sigc::mem_fun(*midi_track()->midi_diskstream(), &MidiDiskstream::set_channel_mode));
|
||||
|
||||
XMLProperty *prop;
|
||||
if ((prop = xml_node->property ("color-mode")) != 0) {
|
||||
|
|
@ -302,19 +302,19 @@ MidiTimeAxisView::append_extra_display_menu_items ()
|
|||
MenuList& range_items = range_menu->items();
|
||||
range_menu->set_name ("ArdourContextMenu");
|
||||
|
||||
range_items.push_back (MenuElem (_("Show Full Range"), bind (
|
||||
mem_fun(*this, &MidiTimeAxisView::set_note_range),
|
||||
range_items.push_back (MenuElem (_("Show Full Range"), sigc::bind (
|
||||
sigc::mem_fun(*this, &MidiTimeAxisView::set_note_range),
|
||||
MidiStreamView::FullRange)));
|
||||
|
||||
range_items.push_back (MenuElem (_("Fit Contents"), bind (
|
||||
mem_fun(*this, &MidiTimeAxisView::set_note_range),
|
||||
range_items.push_back (MenuElem (_("Fit Contents"), sigc::bind (
|
||||
sigc::mem_fun(*this, &MidiTimeAxisView::set_note_range),
|
||||
MidiStreamView::ContentsRange)));
|
||||
|
||||
items.push_back (MenuElem (_("Note range"), *range_menu));
|
||||
items.push_back (MenuElem (_("Note mode"), *build_note_mode_menu()));
|
||||
items.push_back (MenuElem (_("Default Channel"), *build_def_channel_menu()));
|
||||
|
||||
items.push_back (CheckMenuElem (_("MIDI Thru"), mem_fun(*this, &MidiTimeAxisView::toggle_midi_thru)));
|
||||
items.push_back (CheckMenuElem (_("MIDI Thru"), sigc::mem_fun(*this, &MidiTimeAxisView::toggle_midi_thru)));
|
||||
_midi_thru_item = dynamic_cast<CheckMenuItem*>(&items.back());
|
||||
}
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ MidiTimeAxisView::build_def_channel_menu ()
|
|||
snprintf (buf, sizeof (buf), "%d", i+1);
|
||||
|
||||
def_channel_items.push_back (RadioMenuElem (dc_group, buf,
|
||||
bind (mem_fun (*this, &MidiTimeAxisView::set_default_channel), i)));
|
||||
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::set_default_channel), i)));
|
||||
item = dynamic_cast<RadioMenuItem*>(&def_channel_items.back());
|
||||
item->set_active ((i == defchn));
|
||||
}
|
||||
|
|
@ -375,15 +375,15 @@ MidiTimeAxisView::build_automation_action_menu ()
|
|||
|
||||
automation_items.push_back (SeparatorElem());
|
||||
automation_items.push_back (MenuElem (_("Controller..."),
|
||||
mem_fun(*this, &MidiTimeAxisView::add_cc_track)));
|
||||
sigc::mem_fun(*this, &MidiTimeAxisView::add_cc_track)));
|
||||
automation_items.push_back (MenuElem (_("Program Change"),
|
||||
sigc::bind(mem_fun(*this, &MidiTimeAxisView::add_parameter_track),
|
||||
sigc::bind(sigc::mem_fun(*this, &MidiTimeAxisView::add_parameter_track),
|
||||
Evoral::Parameter(MidiPgmChangeAutomation))));
|
||||
automation_items.push_back (MenuElem (_("Bender"),
|
||||
sigc::bind(mem_fun(*this, &MidiTimeAxisView::add_parameter_track),
|
||||
sigc::bind(sigc::mem_fun(*this, &MidiTimeAxisView::add_parameter_track),
|
||||
Evoral::Parameter(MidiPitchBenderAutomation))));
|
||||
automation_items.push_back (MenuElem (_("Pressure"),
|
||||
sigc::bind(mem_fun(*this, &MidiTimeAxisView::add_parameter_track),
|
||||
sigc::bind(sigc::mem_fun(*this, &MidiTimeAxisView::add_parameter_track),
|
||||
Evoral::Parameter(MidiChannelPressureAutomation))));
|
||||
}
|
||||
|
||||
|
|
@ -398,12 +398,12 @@ MidiTimeAxisView::build_note_mode_menu()
|
|||
|
||||
RadioMenuItem::Group mode_group;
|
||||
items.push_back (RadioMenuElem (mode_group, _("Sustained"),
|
||||
bind (mem_fun (*this, &MidiTimeAxisView::set_note_mode), Sustained)));
|
||||
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::set_note_mode), Sustained)));
|
||||
_note_mode_item = dynamic_cast<RadioMenuItem*>(&items.back());
|
||||
_note_mode_item->set_active(_note_mode == Sustained);
|
||||
|
||||
items.push_back (RadioMenuElem (mode_group, _("Percussive"),
|
||||
bind (mem_fun (*this, &MidiTimeAxisView::set_note_mode), Percussive)));
|
||||
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::set_note_mode), Percussive)));
|
||||
_percussion_mode_item = dynamic_cast<RadioMenuItem*>(&items.back());
|
||||
_percussion_mode_item->set_active(_note_mode == Percussive);
|
||||
|
||||
|
|
@ -421,17 +421,17 @@ MidiTimeAxisView::build_color_mode_menu()
|
|||
|
||||
RadioMenuItem::Group mode_group;
|
||||
items.push_back (RadioMenuElem (mode_group, _("Meter Colors"),
|
||||
bind (mem_fun (*this, &MidiTimeAxisView::set_color_mode), MeterColors)));
|
||||
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::set_color_mode), MeterColors)));
|
||||
_meter_color_mode_item = dynamic_cast<RadioMenuItem*>(&items.back());
|
||||
_meter_color_mode_item->set_active(_color_mode == MeterColors);
|
||||
|
||||
items.push_back (RadioMenuElem (mode_group, _("Channel Colors"),
|
||||
bind (mem_fun (*this, &MidiTimeAxisView::set_color_mode), ChannelColors)));
|
||||
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::set_color_mode), ChannelColors)));
|
||||
_channel_color_mode_item = dynamic_cast<RadioMenuItem*>(&items.back());
|
||||
_channel_color_mode_item->set_active(_color_mode == ChannelColors);
|
||||
|
||||
items.push_back (RadioMenuElem (mode_group, _("Track Color"),
|
||||
bind (mem_fun (*this, &MidiTimeAxisView::set_color_mode), TrackColor)));
|
||||
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::set_color_mode), TrackColor)));
|
||||
_channel_color_mode_item = dynamic_cast<RadioMenuItem*>(&items.back());
|
||||
_channel_color_mode_item->set_active(_color_mode == TrackColor);
|
||||
|
||||
|
|
|
|||
|
|
@ -164,10 +164,10 @@ MixerGroupTabs::get_menu (RouteGroup* g)
|
|||
_menu = new Menu;
|
||||
|
||||
MenuList& items = _menu->items ();
|
||||
items.push_back (MenuElem (_("Edit..."), bind (mem_fun (*this, &MixerGroupTabs::edit_group), g)));
|
||||
items.push_back (MenuElem (_("Subgroup"), bind (mem_fun (*this, &MixerGroupTabs::make_subgroup), g)));
|
||||
items.push_back (MenuElem (_("Edit..."), sigc::bind (sigc::mem_fun (*this, &MixerGroupTabs::edit_group), g)));
|
||||
items.push_back (MenuElem (_("Subgroup"), sigc::bind (sigc::mem_fun (*this, &MixerGroupTabs::make_subgroup), g)));
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Remove"), bind (mem_fun (*this, &MixerGroupTabs::remove_group), g)));
|
||||
items.push_back (MenuElem (_("Remove"), sigc::bind (sigc::mem_fun (*this, &MixerGroupTabs::remove_group), g)));
|
||||
|
||||
return _menu;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,8 +176,8 @@ MixerStrip::init ()
|
|||
|
||||
bottom_button_table.attach (meter_point_button, 1, 2, 0, 1);
|
||||
|
||||
meter_point_button.signal_button_press_event().connect (mem_fun (gpm, &GainMeter::meter_press), false);
|
||||
meter_point_button.signal_button_release_event().connect (mem_fun (gpm, &GainMeter::meter_release), false);
|
||||
meter_point_button.signal_button_press_event().connect (sigc::mem_fun (gpm, &GainMeter::meter_press), false);
|
||||
meter_point_button.signal_button_release_event().connect (sigc::mem_fun (gpm, &GainMeter::meter_release), false);
|
||||
|
||||
hide_button.set_events (hide_button.get_events() & ~(Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK));
|
||||
|
||||
|
|
@ -211,7 +211,7 @@ MixerStrip::init ()
|
|||
|
||||
comment_button.set_name ("MixerCommentButton");
|
||||
|
||||
comment_button.signal_clicked().connect (mem_fun(*this, &MixerStrip::comment_button_clicked));
|
||||
comment_button.signal_clicked().connect (sigc::mem_fun(*this, &MixerStrip::comment_button_clicked));
|
||||
|
||||
global_vpacker.set_border_width (0);
|
||||
global_vpacker.set_spacing (0);
|
||||
|
|
@ -220,8 +220,8 @@ MixerStrip::init ()
|
|||
hide_button.set_name ("MixerHideButton");
|
||||
top_event_box.set_name ("MixerTopEventBox");
|
||||
|
||||
width_button.signal_clicked().connect (mem_fun(*this, &MixerStrip::width_clicked));
|
||||
hide_button.signal_clicked().connect (mem_fun(*this, &MixerStrip::hide_clicked));
|
||||
width_button.signal_clicked().connect (sigc::mem_fun(*this, &MixerStrip::width_clicked));
|
||||
hide_button.signal_clicked().connect (sigc::mem_fun(*this, &MixerStrip::hide_clicked));
|
||||
|
||||
width_hide_box.pack_start (width_button, false, true);
|
||||
width_hide_box.pack_start (top_event_box, true, true);
|
||||
|
|
@ -258,32 +258,32 @@ MixerStrip::init ()
|
|||
_packed = false;
|
||||
_embedded = false;
|
||||
|
||||
_session.engine().Stopped.connect (mem_fun(*this, &MixerStrip::engine_stopped));
|
||||
_session.engine().Running.connect (mem_fun(*this, &MixerStrip::engine_running));
|
||||
_session.engine().Stopped.connect (sigc::mem_fun(*this, &MixerStrip::engine_stopped));
|
||||
_session.engine().Running.connect (sigc::mem_fun(*this, &MixerStrip::engine_running));
|
||||
|
||||
input_button.signal_button_press_event().connect (mem_fun(*this, &MixerStrip::input_press), false);
|
||||
output_button.signal_button_press_event().connect (mem_fun(*this, &MixerStrip::output_press), false);
|
||||
input_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::input_press), false);
|
||||
output_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::output_press), false);
|
||||
|
||||
solo_button->signal_button_press_event().connect (mem_fun(*this, &RouteUI::solo_press), false);
|
||||
solo_button->signal_button_release_event().connect (mem_fun(*this, &RouteUI::solo_release), false);
|
||||
mute_button->signal_button_press_event().connect (mem_fun(*this, &RouteUI::mute_press), false);
|
||||
mute_button->signal_button_release_event().connect (mem_fun(*this, &RouteUI::mute_release), false);
|
||||
solo_button->signal_button_press_event().connect (sigc::mem_fun(*this, &RouteUI::solo_press), false);
|
||||
solo_button->signal_button_release_event().connect (sigc::mem_fun(*this, &RouteUI::solo_release), false);
|
||||
mute_button->signal_button_press_event().connect (sigc::mem_fun(*this, &RouteUI::mute_press), false);
|
||||
mute_button->signal_button_release_event().connect (sigc::mem_fun(*this, &RouteUI::mute_release), false);
|
||||
|
||||
/* we don't need this if its not an audio track, but we don't know that yet and it doesn't
|
||||
hurt (much).
|
||||
*/
|
||||
|
||||
rec_enable_button->set_name ("MixerRecordEnableButton");
|
||||
rec_enable_button->signal_button_press_event().connect (mem_fun(*this, &RouteUI::rec_enable_press), false);
|
||||
rec_enable_button->signal_button_release_event().connect (mem_fun(*this, &RouteUI::rec_enable_release));
|
||||
rec_enable_button->signal_button_press_event().connect (sigc::mem_fun(*this, &RouteUI::rec_enable_press), false);
|
||||
rec_enable_button->signal_button_release_event().connect (sigc::mem_fun(*this, &RouteUI::rec_enable_release));
|
||||
|
||||
/* ditto for this button and busses */
|
||||
|
||||
show_sends_button->signal_button_press_event().connect (mem_fun(*this, &RouteUI::show_sends_press), false);
|
||||
show_sends_button->signal_button_release_event().connect (mem_fun(*this, &RouteUI::show_sends_release));
|
||||
show_sends_button->signal_button_press_event().connect (sigc::mem_fun(*this, &RouteUI::show_sends_press), false);
|
||||
show_sends_button->signal_button_release_event().connect (sigc::mem_fun(*this, &RouteUI::show_sends_release));
|
||||
|
||||
name_button.signal_button_press_event().connect (mem_fun(*this, &MixerStrip::name_button_button_press), false);
|
||||
group_button.signal_button_press_event().connect (mem_fun(*this, &MixerStrip::select_route_group), false);
|
||||
name_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::name_button_button_press), false);
|
||||
group_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::select_route_group), false);
|
||||
|
||||
_width = (Width) -1;
|
||||
|
||||
|
|
@ -308,7 +308,7 @@ MixerStrip::init ()
|
|||
|
||||
set_flags (get_flags() | Gtk::CAN_FOCUS);
|
||||
|
||||
SwitchIO.connect (mem_fun (*this, &MixerStrip::switch_io));
|
||||
SwitchIO.connect (sigc::mem_fun (*this, &MixerStrip::switch_io));
|
||||
}
|
||||
|
||||
MixerStrip::~MixerStrip ()
|
||||
|
|
@ -364,7 +364,7 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
|||
|
||||
boost::shared_ptr<AudioTrack> at = audio_track();
|
||||
|
||||
connections.push_back (at->FreezeChange.connect (mem_fun(*this, &MixerStrip::map_frozen)));
|
||||
connections.push_back (at->FreezeChange.connect (sigc::mem_fun(*this, &MixerStrip::map_frozen)));
|
||||
|
||||
button_table.attach (*rec_enable_button, 0, 2, 2, 3);
|
||||
rec_enable_button->set_sensitive (_session.writable());
|
||||
|
|
@ -386,7 +386,7 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
|||
}
|
||||
|
||||
_mono_button.set_name ("MixerMonoButton");
|
||||
_mono_button.signal_clicked().connect (mem_fun (*this, &MixerStrip::mono_button_clicked));
|
||||
_mono_button.signal_clicked().connect (sigc::mem_fun (*this, &MixerStrip::mono_button_clicked));
|
||||
|
||||
switch (_route->meter_point()) {
|
||||
case MeterInput:
|
||||
|
|
@ -414,30 +414,30 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
|||
_route->comment());
|
||||
|
||||
connections.push_back (_route->meter_change.connect (
|
||||
mem_fun(*this, &MixerStrip::meter_changed)));
|
||||
sigc::mem_fun(*this, &MixerStrip::meter_changed)));
|
||||
connections.push_back (_route->input()->changed.connect (
|
||||
mem_fun(*this, &MixerStrip::input_changed)));
|
||||
sigc::mem_fun(*this, &MixerStrip::input_changed)));
|
||||
connections.push_back (_route->output()->changed.connect (
|
||||
mem_fun(*this, &MixerStrip::output_changed)));
|
||||
sigc::mem_fun(*this, &MixerStrip::output_changed)));
|
||||
connections.push_back (_route->route_group_changed.connect (
|
||||
mem_fun(*this, &MixerStrip::route_group_changed)));
|
||||
sigc::mem_fun(*this, &MixerStrip::route_group_changed)));
|
||||
|
||||
if (_route->panner()) {
|
||||
connections.push_back (_route->panner()->Changed.connect (
|
||||
mem_fun(*this, &MixerStrip::connect_to_pan)));
|
||||
sigc::mem_fun(*this, &MixerStrip::connect_to_pan)));
|
||||
}
|
||||
|
||||
if (is_audio_track()) {
|
||||
connections.push_back (audio_track()->DiskstreamChanged.connect (
|
||||
mem_fun(*this, &MixerStrip::diskstream_changed)));
|
||||
sigc::mem_fun(*this, &MixerStrip::diskstream_changed)));
|
||||
}
|
||||
|
||||
connections.push_back (_route->NameChanged.connect (
|
||||
mem_fun(*this, &RouteUI::name_changed)));
|
||||
sigc::mem_fun(*this, &RouteUI::name_changed)));
|
||||
connections.push_back (_route->comment_changed.connect (
|
||||
mem_fun(*this, &MixerStrip::comment_changed)));
|
||||
sigc::mem_fun(*this, &MixerStrip::comment_changed)));
|
||||
connections.push_back (_route->gui_changed.connect (
|
||||
mem_fun(*this, &MixerStrip::route_gui_changed)));
|
||||
sigc::mem_fun(*this, &MixerStrip::route_gui_changed)));
|
||||
|
||||
set_stuff_from_route ();
|
||||
|
||||
|
|
@ -651,7 +651,7 @@ MixerStrip::output_press (GdkEventButton *ev)
|
|||
citems.clear ();
|
||||
output_menu_bundles.clear ();
|
||||
|
||||
citems.push_back (MenuElem (_("Disconnect"), mem_fun (*(static_cast<RouteUI*>(this)), &RouteUI::disconnect_output)));
|
||||
citems.push_back (MenuElem (_("Disconnect"), sigc::mem_fun (*(static_cast<RouteUI*>(this)), &RouteUI::disconnect_output)));
|
||||
citems.push_back (SeparatorElem());
|
||||
|
||||
ARDOUR::BundleList current = _route->output()->bundles_connected ();
|
||||
|
|
@ -757,7 +757,7 @@ MixerStrip::input_press (GdkEventButton *ev)
|
|||
|
||||
case 3:
|
||||
{
|
||||
citems.push_back (MenuElem (_("Disconnect"), mem_fun (*(static_cast<RouteUI*>(this)), &RouteUI::disconnect_input)));
|
||||
citems.push_back (MenuElem (_("Disconnect"), sigc::mem_fun (*(static_cast<RouteUI*>(this)), &RouteUI::disconnect_input)));
|
||||
citems.push_back (SeparatorElem());
|
||||
input_menu_bundles.clear ();
|
||||
|
||||
|
|
@ -858,7 +858,7 @@ MixerStrip::maybe_add_bundle_to_input_menu (boost::shared_ptr<Bundle> b, ARDOUR:
|
|||
std::string n = b->name ();
|
||||
replace_all (n, "_", " ");
|
||||
|
||||
citems.push_back (CheckMenuElem (n, bind (mem_fun(*this, &MixerStrip::bundle_input_toggled), b)));
|
||||
citems.push_back (CheckMenuElem (n, sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_input_toggled), b)));
|
||||
|
||||
if (std::find (current.begin(), current.end(), b) != current.end()) {
|
||||
ignore_toggle = true;
|
||||
|
|
@ -895,7 +895,7 @@ MixerStrip::maybe_add_bundle_to_output_menu (boost::shared_ptr<Bundle> b, ARDOUR
|
|||
std::string n = b->name ();
|
||||
replace_all (n, "_", " ");
|
||||
|
||||
citems.push_back (CheckMenuElem (n, bind (mem_fun(*this, &MixerStrip::bundle_output_toggled), b)));
|
||||
citems.push_back (CheckMenuElem (n, sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_output_toggled), b)));
|
||||
|
||||
if (std::find (current.begin(), current.end(), b) != current.end()) {
|
||||
ignore_toggle = true;
|
||||
|
|
@ -924,7 +924,7 @@ MixerStrip::update_diskstream_display ()
|
|||
void
|
||||
MixerStrip::connect_to_pan ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &MixerStrip::connect_to_pan));
|
||||
ENSURE_GUI_THREAD (*this, &MixerStrip::connect_to_pan)
|
||||
|
||||
panstate_connection.disconnect ();
|
||||
panstyle_connection.disconnect ();
|
||||
|
|
@ -938,8 +938,8 @@ MixerStrip::connect_to_pan ()
|
|||
_route->panner()->data().control(Evoral::Parameter(PanAutomation)));
|
||||
|
||||
if (pan_control) {
|
||||
panstate_connection = pan_control->alist()->automation_state_changed.connect (mem_fun(panners, &PannerUI::pan_automation_state_changed));
|
||||
panstyle_connection = pan_control->alist()->automation_style_changed.connect (mem_fun(panners, &PannerUI::pan_automation_style_changed));
|
||||
panstate_connection = pan_control->alist()->automation_state_changed.connect (sigc::mem_fun(panners, &PannerUI::pan_automation_state_changed));
|
||||
panstyle_connection = pan_control->alist()->automation_style_changed.connect (sigc::mem_fun(panners, &PannerUI::pan_automation_style_changed));
|
||||
}
|
||||
|
||||
panners.pan_changed (this);
|
||||
|
|
@ -1182,20 +1182,20 @@ MixerStrip::fast_update ()
|
|||
void
|
||||
MixerStrip::diskstream_changed ()
|
||||
{
|
||||
Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &MixerStrip::update_diskstream_display));
|
||||
Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &MixerStrip::update_diskstream_display));
|
||||
}
|
||||
|
||||
void
|
||||
MixerStrip::input_changed (IOChange /*change*/, void */*src*/)
|
||||
{
|
||||
Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &MixerStrip::update_input_display));
|
||||
Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &MixerStrip::update_input_display));
|
||||
set_width_enum (_width, this);
|
||||
}
|
||||
|
||||
void
|
||||
MixerStrip::output_changed (IOChange /*change*/, void */*src*/)
|
||||
{
|
||||
Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &MixerStrip::update_output_display));
|
||||
Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &MixerStrip::update_output_display));
|
||||
set_width_enum (_width, this);
|
||||
}
|
||||
|
||||
|
|
@ -1272,7 +1272,7 @@ MixerStrip::setup_comment_editor ()
|
|||
comment_window = new ArdourDialog (title, false);
|
||||
comment_window->set_position (Gtk::WIN_POS_MOUSE);
|
||||
comment_window->set_skip_taskbar_hint (true);
|
||||
comment_window->signal_hide().connect (mem_fun(*this, &MixerStrip::comment_editor_done_editing));
|
||||
comment_window->signal_hide().connect (sigc::mem_fun(*this, &MixerStrip::comment_editor_done_editing));
|
||||
|
||||
comment_area = manage (new TextView());
|
||||
comment_area->set_name ("MixerTrackCommentArea");
|
||||
|
|
@ -1289,7 +1289,7 @@ MixerStrip::setup_comment_editor ()
|
|||
void
|
||||
MixerStrip::comment_changed (void *src)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &MixerStrip::comment_changed), src));
|
||||
ENSURE_GUI_THREAD (*this, &MixerStrip::comment_changed, src)
|
||||
|
||||
if (src != this) {
|
||||
ignore_comment_edit = true;
|
||||
|
|
@ -1320,7 +1320,7 @@ MixerStrip::select_route_group (GdkEventButton *ev)
|
|||
(RouteGroup::Property) (RouteGroup::Gain | RouteGroup::Mute | RouteGroup::Solo)
|
||||
);
|
||||
|
||||
group_menu->GroupSelected.connect (mem_fun (*this, &MixerStrip::set_route_group));
|
||||
group_menu->GroupSelected.connect (sigc::mem_fun (*this, &MixerStrip::set_route_group));
|
||||
}
|
||||
|
||||
group_menu->popup (1, ev->time);
|
||||
|
|
@ -1332,7 +1332,7 @@ MixerStrip::select_route_group (GdkEventButton *ev)
|
|||
void
|
||||
MixerStrip::route_group_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &MixerStrip::route_group_changed));
|
||||
ENSURE_GUI_THREAD (*this, &MixerStrip::route_group_changed)
|
||||
|
||||
RouteGroup *rg = _route->route_group();
|
||||
|
||||
|
|
@ -1359,7 +1359,7 @@ MixerStrip::route_group_changed ()
|
|||
void
|
||||
MixerStrip::route_gui_changed (string what_changed, void* ignored)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &MixerStrip::route_gui_changed), what_changed, ignored));
|
||||
ENSURE_GUI_THREAD (*this, &MixerStrip::route_gui_changed, what_changed, ignored)
|
||||
|
||||
if (what_changed == "color") {
|
||||
if (set_color_from_route () == 0) {
|
||||
|
|
@ -1391,33 +1391,33 @@ MixerStrip::build_route_ops_menu ()
|
|||
|
||||
MenuList& items = route_ops_menu->items();
|
||||
|
||||
items.push_back (MenuElem (_("Save As Template"), mem_fun(*this, &RouteUI::save_as_template)));
|
||||
items.push_back (MenuElem (_("Rename"), mem_fun(*this, &RouteUI::route_rename)));
|
||||
items.push_back (MenuElem (_("Save As Template"), sigc::mem_fun(*this, &RouteUI::save_as_template)));
|
||||
items.push_back (MenuElem (_("Rename"), sigc::mem_fun(*this, &RouteUI::route_rename)));
|
||||
rename_menu_item = &items.back();
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (CheckMenuElem (_("Active"), mem_fun (*this, &RouteUI::toggle_route_active)));
|
||||
items.push_back (CheckMenuElem (_("Active"), sigc::mem_fun (*this, &RouteUI::toggle_route_active)));
|
||||
route_active_menu_item = dynamic_cast<CheckMenuItem *> (&items.back());
|
||||
route_active_menu_item->set_active (_route->active());
|
||||
|
||||
items.push_back (SeparatorElem());
|
||||
|
||||
items.push_back (MenuElem (_("Adjust latency"), mem_fun (*this, &RouteUI::adjust_latency)));
|
||||
items.push_back (MenuElem (_("Adjust latency"), sigc::mem_fun (*this, &RouteUI::adjust_latency)));
|
||||
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (CheckMenuElem (_("Invert Polarity"), mem_fun (*this, &RouteUI::toggle_polarity)));
|
||||
items.push_back (CheckMenuElem (_("Invert Polarity"), sigc::mem_fun (*this, &RouteUI::toggle_polarity)));
|
||||
polarity_menu_item = dynamic_cast<CheckMenuItem *> (&items.back());
|
||||
polarity_menu_item->set_active (_route->phase_invert());
|
||||
items.push_back (CheckMenuElem (_("Protect against denormals"), mem_fun (*this, &RouteUI::toggle_denormal_protection)));
|
||||
items.push_back (CheckMenuElem (_("Protect against denormals"), sigc::mem_fun (*this, &RouteUI::toggle_denormal_protection)));
|
||||
denormal_menu_item = dynamic_cast<CheckMenuItem *> (&items.back());
|
||||
denormal_menu_item->set_active (_route->denormal_protection());
|
||||
|
||||
if (!Profile->get_sae()) {
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Remote Control ID..."), mem_fun (*this, &RouteUI::open_remote_control_id_dialog)));
|
||||
items.push_back (MenuElem (_("Remote Control ID..."), sigc::mem_fun (*this, &RouteUI::open_remote_control_id_dialog)));
|
||||
}
|
||||
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Remove"), mem_fun(*this, &RouteUI::remove_this_route)));
|
||||
items.push_back (MenuElem (_("Remove"), sigc::mem_fun(*this, &RouteUI::remove_this_route)));
|
||||
}
|
||||
|
||||
gint
|
||||
|
|
@ -1509,7 +1509,7 @@ MixerStrip::set_embedded (bool yn)
|
|||
void
|
||||
MixerStrip::map_frozen ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &MixerStrip::map_frozen));
|
||||
ENSURE_GUI_THREAD (*this, &MixerStrip::map_frozen)
|
||||
|
||||
boost::shared_ptr<AudioTrack> at = audio_track();
|
||||
|
||||
|
|
@ -1531,7 +1531,7 @@ MixerStrip::map_frozen ()
|
|||
void
|
||||
MixerStrip::hide_redirect_editors ()
|
||||
{
|
||||
_route->foreach_processor (mem_fun (*this, &MixerStrip::hide_processor_editor));
|
||||
_route->foreach_processor (sigc::mem_fun (*this, &MixerStrip::hide_processor_editor));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -1618,7 +1618,7 @@ MixerStrip::engine_running ()
|
|||
void
|
||||
MixerStrip::meter_changed (void *src)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &MixerStrip::meter_changed), src));
|
||||
ENSURE_GUI_THREAD (*this, &MixerStrip::meter_changed, src)
|
||||
|
||||
switch (_route->meter_point()) {
|
||||
case MeterInput:
|
||||
|
|
@ -1703,7 +1703,7 @@ MixerStrip::show_send (boost::shared_ptr<Send> send)
|
|||
_current_delivery = send;
|
||||
|
||||
send->set_metering (true);
|
||||
send_gone_connection = _current_delivery->GoingAway.connect (mem_fun (*this, &MixerStrip::revert_to_default_display));
|
||||
send_gone_connection = _current_delivery->GoingAway.connect (sigc::mem_fun (*this, &MixerStrip::revert_to_default_display));
|
||||
|
||||
gain_meter().set_controls (_route, send->meter(), send->amp());
|
||||
gain_meter().setup_meters ();
|
||||
|
|
|
|||
|
|
@ -76,11 +76,11 @@ Mixer_UI::Mixer_UI ()
|
|||
strip_redisplay_does_not_sync_order_keys = false;
|
||||
ignore_sync = false;
|
||||
|
||||
Route::SyncOrderKeys.connect (mem_fun (*this, &Mixer_UI::sync_order_keys));
|
||||
Route::SyncOrderKeys.connect (sigc::mem_fun (*this, &Mixer_UI::sync_order_keys));
|
||||
|
||||
scroller_base.add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK);
|
||||
scroller_base.set_name ("MixerWindow");
|
||||
scroller_base.signal_button_release_event().connect (mem_fun(*this, &Mixer_UI::strip_scroller_button_release));
|
||||
scroller_base.signal_button_release_event().connect (sigc::mem_fun(*this, &Mixer_UI::strip_scroller_button_release));
|
||||
// add as last item of strip packer
|
||||
strip_packer.pack_end (scroller_base, true, true);
|
||||
|
||||
|
|
@ -106,15 +106,15 @@ Mixer_UI::Mixer_UI ()
|
|||
track_display.set_reorderable (true);
|
||||
track_display.set_headers_visible (true);
|
||||
|
||||
track_model->signal_row_deleted().connect (mem_fun (*this, &Mixer_UI::track_list_delete));
|
||||
track_model->signal_row_changed().connect (mem_fun (*this, &Mixer_UI::track_list_change));
|
||||
track_model->signal_rows_reordered().connect (mem_fun (*this, &Mixer_UI::track_list_reorder));
|
||||
track_model->signal_row_deleted().connect (sigc::mem_fun (*this, &Mixer_UI::track_list_delete));
|
||||
track_model->signal_row_changed().connect (sigc::mem_fun (*this, &Mixer_UI::track_list_change));
|
||||
track_model->signal_rows_reordered().connect (sigc::mem_fun (*this, &Mixer_UI::track_list_reorder));
|
||||
|
||||
CellRendererToggle* track_list_visible_cell = dynamic_cast<CellRendererToggle*>(track_display.get_column_cell_renderer (1));
|
||||
track_list_visible_cell->property_activatable() = true;
|
||||
track_list_visible_cell->property_radio() = false;
|
||||
|
||||
track_display.signal_button_press_event().connect (mem_fun (*this, &Mixer_UI::track_display_button_press), false);
|
||||
track_display.signal_button_press_event().connect (sigc::mem_fun (*this, &Mixer_UI::track_display_button_press), false);
|
||||
|
||||
track_display_scroller.add (track_display);
|
||||
track_display_scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
|
||||
|
|
@ -137,7 +137,7 @@ Mixer_UI::Mixer_UI ()
|
|||
|
||||
CellRendererText* name_cell = dynamic_cast<CellRendererText*>(group_display.get_column_cell_renderer (0));
|
||||
name_cell->property_editable() = true;
|
||||
name_cell->signal_edited().connect (mem_fun (*this, &Mixer_UI::route_group_name_edit));
|
||||
name_cell->signal_edited().connect (sigc::mem_fun (*this, &Mixer_UI::route_group_name_edit));
|
||||
|
||||
/* use checkbox for the active column */
|
||||
|
||||
|
|
@ -145,9 +145,9 @@ Mixer_UI::Mixer_UI ()
|
|||
active_cell->property_activatable() = true;
|
||||
active_cell->property_radio() = false;
|
||||
|
||||
group_model->signal_row_changed().connect (mem_fun (*this, &Mixer_UI::route_group_row_change));
|
||||
group_model->signal_row_changed().connect (sigc::mem_fun (*this, &Mixer_UI::route_group_row_change));
|
||||
|
||||
group_display.signal_button_press_event().connect (mem_fun (*this, &Mixer_UI::group_display_button_press), false);
|
||||
group_display.signal_button_press_event().connect (sigc::mem_fun (*this, &Mixer_UI::group_display_button_press), false);
|
||||
|
||||
group_display_scroller.add (group_display);
|
||||
group_display_scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
|
||||
|
|
@ -169,8 +169,8 @@ Mixer_UI::Mixer_UI ()
|
|||
|
||||
route_group_display_button_box->set_homogeneous (true);
|
||||
|
||||
route_group_add_button->signal_clicked().connect (mem_fun (*this, &Mixer_UI::new_route_group));
|
||||
route_group_remove_button->signal_clicked().connect (mem_fun (*this, &Mixer_UI::remove_selected_route_group));
|
||||
route_group_add_button->signal_clicked().connect (sigc::mem_fun (*this, &Mixer_UI::new_route_group));
|
||||
route_group_remove_button->signal_clicked().connect (sigc::mem_fun (*this, &Mixer_UI::remove_selected_route_group));
|
||||
|
||||
route_group_display_button_box->add (*route_group_remove_button);
|
||||
route_group_display_button_box->add (*route_group_add_button);
|
||||
|
|
@ -201,9 +201,9 @@ Mixer_UI::Mixer_UI ()
|
|||
list_hpane.add1(list_vpacker);
|
||||
list_hpane.add2(global_hpacker);
|
||||
|
||||
rhs_pane1.signal_size_allocate().connect (bind (mem_fun(*this, &Mixer_UI::pane_allocation_handler),
|
||||
rhs_pane1.signal_size_allocate().connect (sigc::bind (sigc::mem_fun(*this, &Mixer_UI::pane_allocation_handler),
|
||||
static_cast<Gtk::Paned*> (&rhs_pane1)));
|
||||
list_hpane.signal_size_allocate().connect (bind (mem_fun(*this, &Mixer_UI::pane_allocation_handler),
|
||||
list_hpane.signal_size_allocate().connect (sigc::bind (sigc::mem_fun(*this, &Mixer_UI::pane_allocation_handler),
|
||||
static_cast<Gtk::Paned*> (&list_hpane)));
|
||||
|
||||
global_vpacker.pack_start (list_hpane, true, true);
|
||||
|
|
@ -219,12 +219,12 @@ Mixer_UI::Mixer_UI ()
|
|||
|
||||
add_accel_group (ActionManager::ui_manager->get_accel_group());
|
||||
|
||||
signal_delete_event().connect (mem_fun (*this, &Mixer_UI::hide_window));
|
||||
signal_delete_event().connect (sigc::mem_fun (*this, &Mixer_UI::hide_window));
|
||||
add_events (Gdk::KEY_PRESS_MASK|Gdk::KEY_RELEASE_MASK);
|
||||
|
||||
signal_configure_event().connect (mem_fun (*ARDOUR_UI::instance(), &ARDOUR_UI::configure_handler));
|
||||
signal_configure_event().connect (sigc::mem_fun (*ARDOUR_UI::instance(), &ARDOUR_UI::configure_handler));
|
||||
|
||||
_selection.RoutesChanged.connect (mem_fun(*this, &Mixer_UI::follow_strip_selection));
|
||||
_selection.RoutesChanged.connect (sigc::mem_fun(*this, &Mixer_UI::follow_strip_selection));
|
||||
|
||||
route_group_display_button_box->show();
|
||||
route_group_add_button->show();
|
||||
|
|
@ -300,7 +300,7 @@ Mixer_UI::hide_window (GdkEventAny *ev)
|
|||
void
|
||||
Mixer_UI::add_strip (RouteList& routes)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Mixer_UI::add_strip), routes));
|
||||
ENSURE_GUI_THREAD (*this, &Mixer_UI::add_strip, routes)
|
||||
|
||||
MixerStrip* strip;
|
||||
|
||||
|
|
@ -335,11 +335,11 @@ Mixer_UI::add_strip (RouteList& routes)
|
|||
route->set_order_key (N_("signal"), track_model->children().size()-1);
|
||||
}
|
||||
|
||||
route->NameChanged.connect (bind (mem_fun(*this, &Mixer_UI::strip_name_changed), strip));
|
||||
route->NameChanged.connect (sigc::bind (sigc::mem_fun(*this, &Mixer_UI::strip_name_changed), strip));
|
||||
|
||||
strip->GoingAway.connect (bind (mem_fun(*this, &Mixer_UI::remove_strip), strip));
|
||||
strip->WidthChanged.connect (mem_fun(*this, &Mixer_UI::strip_width_changed));
|
||||
strip->signal_button_release_event().connect (bind (mem_fun(*this, &Mixer_UI::strip_button_release_event), strip));
|
||||
strip->GoingAway.connect (sigc::bind (sigc::mem_fun(*this, &Mixer_UI::remove_strip), strip));
|
||||
strip->WidthChanged.connect (sigc::mem_fun(*this, &Mixer_UI::strip_width_changed));
|
||||
strip->signal_button_release_event().connect (sigc::bind (sigc::mem_fun(*this, &Mixer_UI::strip_button_release_event), strip));
|
||||
}
|
||||
|
||||
no_track_list_redisplay = false;
|
||||
|
|
@ -352,7 +352,7 @@ Mixer_UI::add_strip (RouteList& routes)
|
|||
void
|
||||
Mixer_UI::remove_strip (MixerStrip* strip)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Mixer_UI::remove_strip), strip));
|
||||
ENSURE_GUI_THREAD (*this, &Mixer_UI::remove_strip, strip)
|
||||
|
||||
TreeModel::Children rows = track_model->children();
|
||||
TreeModel::Children::iterator ri;
|
||||
|
|
@ -468,11 +468,11 @@ Mixer_UI::connect_to_session (Session* sess)
|
|||
|
||||
initial_track_display ();
|
||||
|
||||
session->GoingAway.connect (mem_fun(*this, &Mixer_UI::disconnect_from_session));
|
||||
session->RouteAdded.connect (mem_fun(*this, &Mixer_UI::add_strip));
|
||||
session->route_group_added.connect (mem_fun(*this, &Mixer_UI::add_route_group));
|
||||
session->route_group_removed.connect (mem_fun(*this, &Mixer_UI::route_groups_changed));
|
||||
session->config.ParameterChanged.connect (mem_fun (*this, &Mixer_UI::parameter_changed));
|
||||
session->GoingAway.connect (sigc::mem_fun(*this, &Mixer_UI::disconnect_from_session));
|
||||
session->RouteAdded.connect (sigc::mem_fun(*this, &Mixer_UI::add_strip));
|
||||
session->route_group_added.connect (sigc::mem_fun(*this, &Mixer_UI::add_route_group));
|
||||
session->route_group_removed.connect (sigc::mem_fun(*this, &Mixer_UI::route_groups_changed));
|
||||
session->config.ParameterChanged.connect (sigc::mem_fun (*this, &Mixer_UI::parameter_changed));
|
||||
|
||||
route_groups_changed ();
|
||||
|
||||
|
|
@ -491,7 +491,7 @@ Mixer_UI::connect_to_session (Session* sess)
|
|||
void
|
||||
Mixer_UI::disconnect_from_session ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &Mixer_UI::disconnect_from_session));
|
||||
ENSURE_GUI_THREAD (*this, &Mixer_UI::disconnect_from_session)
|
||||
|
||||
group_model->clear ();
|
||||
_selection.clear ();
|
||||
|
|
@ -538,7 +538,7 @@ Mixer_UI::hide_strip (MixerStrip* ms)
|
|||
gint
|
||||
Mixer_UI::start_updating ()
|
||||
{
|
||||
fast_screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (mem_fun(*this, &Mixer_UI::fast_update_strips));
|
||||
fast_screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (sigc::mem_fun(*this, &Mixer_UI::fast_update_strips));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -761,7 +761,7 @@ Mixer_UI::redisplay_track_list ()
|
|||
session->sync_order_keys (N_("signal"));
|
||||
}
|
||||
|
||||
// Rebind all of the midi controls automatically
|
||||
// Resigc::bind all of the midi controls automatically
|
||||
|
||||
if (auto_rebinding)
|
||||
auto_rebind_midi_controls ();
|
||||
|
|
@ -973,19 +973,19 @@ Mixer_UI::build_track_menu ()
|
|||
track_menu->set_name ("ArdourContextMenu");
|
||||
MenuList& items = track_menu->items();
|
||||
|
||||
items.push_back (MenuElem (_("Show All"), mem_fun(*this, &Mixer_UI::show_all_routes)));
|
||||
items.push_back (MenuElem (_("Hide All"), mem_fun(*this, &Mixer_UI::hide_all_routes)));
|
||||
items.push_back (MenuElem (_("Show All Audio Tracks"), mem_fun(*this, &Mixer_UI::show_all_audiotracks)));
|
||||
items.push_back (MenuElem (_("Hide All Audio Tracks"), mem_fun(*this, &Mixer_UI::hide_all_audiotracks)));
|
||||
items.push_back (MenuElem (_("Show All Audio Busses"), mem_fun(*this, &Mixer_UI::show_all_audiobus)));
|
||||
items.push_back (MenuElem (_("Hide All Audio Busses"), mem_fun(*this, &Mixer_UI::hide_all_audiobus)));
|
||||
items.push_back (MenuElem (_("Show All"), sigc::mem_fun(*this, &Mixer_UI::show_all_routes)));
|
||||
items.push_back (MenuElem (_("Hide All"), sigc::mem_fun(*this, &Mixer_UI::hide_all_routes)));
|
||||
items.push_back (MenuElem (_("Show All Audio Tracks"), sigc::mem_fun(*this, &Mixer_UI::show_all_audiotracks)));
|
||||
items.push_back (MenuElem (_("Hide All Audio Tracks"), sigc::mem_fun(*this, &Mixer_UI::hide_all_audiotracks)));
|
||||
items.push_back (MenuElem (_("Show All Audio Busses"), sigc::mem_fun(*this, &Mixer_UI::show_all_audiobus)));
|
||||
items.push_back (MenuElem (_("Hide All Audio Busses"), sigc::mem_fun(*this, &Mixer_UI::hide_all_audiobus)));
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
Mixer_UI::strip_name_changed (MixerStrip* mx)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Mixer_UI::strip_name_changed), mx));
|
||||
ENSURE_GUI_THREAD (*this, &Mixer_UI::strip_name_changed, mx)
|
||||
|
||||
TreeModel::Children rows = track_model->children();
|
||||
TreeModel::Children::iterator i;
|
||||
|
|
@ -1010,10 +1010,10 @@ Mixer_UI::build_route_group_context_menu ()
|
|||
route_group_context_menu->set_name ("ArdourContextMenu");
|
||||
MenuList& items = route_group_context_menu->items();
|
||||
|
||||
items.push_back (MenuElem (_("Activate All"), mem_fun(*this, &Mixer_UI::activate_all_route_groups)));
|
||||
items.push_back (MenuElem (_("Disable All"), mem_fun(*this, &Mixer_UI::disable_all_route_groups)));
|
||||
items.push_back (MenuElem (_("Activate All"), sigc::mem_fun(*this, &Mixer_UI::activate_all_route_groups)));
|
||||
items.push_back (MenuElem (_("Disable All"), sigc::mem_fun(*this, &Mixer_UI::disable_all_route_groups)));
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Add group"), mem_fun(*this, &Mixer_UI::new_route_group)));
|
||||
items.push_back (MenuElem (_("Add group"), sigc::mem_fun(*this, &Mixer_UI::new_route_group)));
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1077,19 +1077,19 @@ Mixer_UI::group_display_button_press (GdkEventButton* ev)
|
|||
void
|
||||
Mixer_UI::activate_all_route_groups ()
|
||||
{
|
||||
session->foreach_route_group (bind (mem_fun (*this, &Mixer_UI::set_route_group_activation), true));
|
||||
session->foreach_route_group (sigc::bind (sigc::mem_fun (*this, &Mixer_UI::set_route_group_activation), true));
|
||||
}
|
||||
|
||||
void
|
||||
Mixer_UI::disable_all_route_groups ()
|
||||
{
|
||||
session->foreach_route_group (bind (mem_fun (*this, &Mixer_UI::set_route_group_activation), false));
|
||||
session->foreach_route_group (sigc::bind (sigc::mem_fun (*this, &Mixer_UI::set_route_group_activation), false));
|
||||
}
|
||||
|
||||
void
|
||||
Mixer_UI::route_groups_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &Mixer_UI::route_groups_changed));
|
||||
ENSURE_GUI_THREAD (*this, &Mixer_UI::route_groups_changed)
|
||||
|
||||
/* just rebuild the while thing */
|
||||
|
||||
|
|
@ -1103,7 +1103,7 @@ Mixer_UI::route_groups_changed ()
|
|||
row[group_columns.group] = 0;
|
||||
}
|
||||
|
||||
session->foreach_route_group (mem_fun (*this, &Mixer_UI::add_route_group));
|
||||
session->foreach_route_group (sigc::mem_fun (*this, &Mixer_UI::add_route_group));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -1144,7 +1144,7 @@ Mixer_UI::group_flags_changed (void* src, RouteGroup* group)
|
|||
return;
|
||||
}
|
||||
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Mixer_UI::group_flags_changed), src, group));
|
||||
ENSURE_GUI_THREAD (*this, &Mixer_UI::group_flags_changed, src, group)
|
||||
|
||||
/* force an update of any mixer strips that are using this group,
|
||||
otherwise mix group names don't change in mixer strips
|
||||
|
|
@ -1231,7 +1231,7 @@ Mixer_UI::route_group_row_change (const Gtk::TreeModel::Path&, const Gtk::TreeMo
|
|||
void
|
||||
Mixer_UI::add_route_group (RouteGroup* group)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &Mixer_UI::add_route_group), group));
|
||||
ENSURE_GUI_THREAD (*this, &Mixer_UI::add_route_group, group)
|
||||
bool focus = false;
|
||||
|
||||
in_group_row_change = true;
|
||||
|
|
@ -1246,7 +1246,7 @@ Mixer_UI::add_route_group (RouteGroup* group)
|
|||
focus = true;
|
||||
}
|
||||
|
||||
group->FlagsChanged.connect (bind (mem_fun(*this, &Mixer_UI::group_flags_changed), group));
|
||||
group->FlagsChanged.connect (sigc::bind (sigc::mem_fun(*this, &Mixer_UI::group_flags_changed), group));
|
||||
|
||||
if (focus) {
|
||||
TreeViewColumn* col = group_display.get_column (0);
|
||||
|
|
|
|||
|
|
@ -135,13 +135,13 @@ main (int argc, char* argv[])
|
|||
RefPtr<AccelGroup> accels = hidden.get_accel_group();
|
||||
|
||||
make_action (actions, "TopMenu", "top");
|
||||
make_action (actions, "Foo", "foo", accels, bind (sigc::ptr_fun (printit), "foo"), GDK_p, Gdk::ModifierType (0));
|
||||
make_action (actions, "Foo", "foo", accels, sigc::bind (sigc::ptr_fun (printit), "foo"), GDK_p, Gdk::ModifierType (0));
|
||||
|
||||
make_action (other_actions, "OTopMenu", "otop");
|
||||
make_action (other_actions, "OFoo", "foo", accels, bind (sigc::ptr_fun (printit), "o-foo"), GDK_p, Gdk::ModifierType (0));
|
||||
make_action (other_actions, "OFoo", "foo", accels, sigc::bind (sigc::ptr_fun (printit), "o-foo"), GDK_p, Gdk::ModifierType (0));
|
||||
|
||||
make_action (shared_actions, "Bar", "bar", accels, bind (sigc::ptr_fun (printit), "barshared"), GDK_p, Gdk::CONTROL_MASK);
|
||||
RefPtr<Action> act = make_action (shared_actions, "Baz", "baz", accels, bind (sigc::ptr_fun (printit), "baz-shared"), GDK_p, Gdk::SHIFT_MASK);
|
||||
make_action (shared_actions, "Bar", "bar", accels, sigc::bind (sigc::ptr_fun (printit), "barshared"), GDK_p, Gdk::CONTROL_MASK);
|
||||
RefPtr<Action> act = make_action (shared_actions, "Baz", "baz", accels, sigc::bind (sigc::ptr_fun (printit), "baz-shared"), GDK_p, Gdk::SHIFT_MASK);
|
||||
|
||||
act->connect_proxy (button);
|
||||
act->connect_proxy (other_button);
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ BoolOption::BoolOption (string const & i, string const & n, slot<bool> g, slot<b
|
|||
{
|
||||
_button = manage (new CheckButton (n));
|
||||
_button->set_active (_get ());
|
||||
_button->signal_toggled().connect (mem_fun (*this, &BoolOption::toggled));
|
||||
_button->signal_toggled().connect (sigc::mem_fun (*this, &BoolOption::toggled));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -107,7 +107,7 @@ EntryOption::EntryOption (string const & i, string const & n, slot<string> g, sl
|
|||
_label = manage (new Label (n + ":"));
|
||||
_label->set_alignment (1, 0.5);
|
||||
_entry = manage (new Entry);
|
||||
_entry->signal_activate().connect (mem_fun (*this, &EntryOption::activated));
|
||||
_entry->signal_activate().connect (sigc::mem_fun (*this, &EntryOption::activated));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -165,7 +165,7 @@ OptionEditor::OptionEditor (Configuration* c, std::string const & t)
|
|||
show_all_children();
|
||||
|
||||
/* Watch out for changes to parameters */
|
||||
_config->ParameterChanged.connect (mem_fun (*this, &OptionEditor::parameter_changed));
|
||||
_config->ParameterChanged.connect (sigc::mem_fun (*this, &OptionEditor::parameter_changed));
|
||||
}
|
||||
|
||||
OptionEditor::~OptionEditor ()
|
||||
|
|
@ -184,7 +184,7 @@ OptionEditor::~OptionEditor ()
|
|||
void
|
||||
OptionEditor::parameter_changed (std::string const & p)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &OptionEditor::parameter_changed), p));
|
||||
ENSURE_GUI_THREAD (*this, &OptionEditor::parameter_changed, p)
|
||||
|
||||
for (std::map<std::string, OptionEditorPage*>::iterator i = _pages.begin(); i != _pages.end(); ++i) {
|
||||
for (std::list<OptionEditorComponent*>::iterator j = i->second->components.begin(); j != i->second->components.end(); ++j) {
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@ Panner2d::Panner2d (boost::shared_ptr<Panner> p, int32_t h)
|
|||
allow_y = false;
|
||||
allow_target = false;
|
||||
|
||||
panner->StateChanged.connect (mem_fun(*this, &Panner2d::handle_state_change));
|
||||
panner->Changed.connect (mem_fun(*this, &Panner2d::handle_position_change));
|
||||
panner->StateChanged.connect (sigc::mem_fun(*this, &Panner2d::handle_state_change));
|
||||
panner->Changed.connect (sigc::mem_fun(*this, &Panner2d::handle_position_change));
|
||||
|
||||
drag_target = 0;
|
||||
set_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK|Gdk::POINTER_MOTION_MASK);
|
||||
|
|
@ -263,7 +263,7 @@ Panner2d::remove_target (int which)
|
|||
void
|
||||
Panner2d::handle_state_change ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &Panner2d::handle_state_change));
|
||||
ENSURE_GUI_THREAD (*this, &Panner2d::handle_state_change)
|
||||
|
||||
queue_draw ();
|
||||
}
|
||||
|
|
@ -272,7 +272,7 @@ void
|
|||
Panner2d::handle_position_change ()
|
||||
{
|
||||
uint32_t n;
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &Panner2d::handle_position_change));
|
||||
ENSURE_GUI_THREAD (*this, &Panner2d::handle_position_change)
|
||||
|
||||
for (n = 0; n < pucks.size(); ++n) {
|
||||
float x, y;
|
||||
|
|
|
|||
|
|
@ -87,8 +87,8 @@ PannerUI::PannerUI (Session& s)
|
|||
pan_automation_style_button.unset_flags (Gtk::CAN_FOCUS);
|
||||
pan_automation_state_button.unset_flags (Gtk::CAN_FOCUS);
|
||||
|
||||
pan_automation_style_button.signal_button_press_event().connect (mem_fun(*this, &PannerUI::pan_automation_style_button_event), false);
|
||||
pan_automation_state_button.signal_button_press_event().connect (mem_fun(*this, &PannerUI::pan_automation_state_button_event), false);
|
||||
pan_automation_style_button.signal_button_press_event().connect (sigc::mem_fun(*this, &PannerUI::pan_automation_style_button_event), false);
|
||||
pan_automation_state_button.signal_button_press_event().connect (sigc::mem_fun(*this, &PannerUI::pan_automation_state_button_event), false);
|
||||
|
||||
panning_link_button.set_name (X_("PanningLinkButton"));
|
||||
panning_link_direction_button.set_name (X_("PanningLinkDirectionButton"));
|
||||
|
|
@ -103,12 +103,12 @@ PannerUI::PannerUI (Session& s)
|
|||
panning_link_direction_button.add (*(manage (new Image (get_xpm("forwardblarrow.xpm")))));
|
||||
|
||||
panning_link_direction_button.signal_clicked().connect
|
||||
(mem_fun(*this, &PannerUI::panning_link_direction_clicked));
|
||||
(sigc::mem_fun(*this, &PannerUI::panning_link_direction_clicked));
|
||||
|
||||
panning_link_button.signal_button_press_event().connect
|
||||
(mem_fun(*this, &PannerUI::panning_link_button_press), false);
|
||||
(sigc::mem_fun(*this, &PannerUI::panning_link_button_press), false);
|
||||
panning_link_button.signal_button_release_event().connect
|
||||
(mem_fun(*this, &PannerUI::panning_link_button_release), false);
|
||||
(sigc::mem_fun(*this, &PannerUI::panning_link_button_release), false);
|
||||
|
||||
panning_up.set_border_width (3);
|
||||
panning_down.set_border_width (3);
|
||||
|
|
@ -151,9 +151,9 @@ PannerUI::set_panner (boost::shared_ptr<Panner> p)
|
|||
return;
|
||||
}
|
||||
|
||||
connections.push_back (_panner->Changed.connect (mem_fun(*this, &PannerUI::panner_changed)));
|
||||
connections.push_back (_panner->LinkStateChanged.connect (mem_fun(*this, &PannerUI::update_pan_linkage)));
|
||||
connections.push_back (_panner->StateChanged.connect (mem_fun(*this, &PannerUI::update_pan_state)));
|
||||
connections.push_back (_panner->Changed.connect (sigc::mem_fun(*this, &PannerUI::panner_changed)));
|
||||
connections.push_back (_panner->LinkStateChanged.connect (sigc::mem_fun(*this, &PannerUI::update_pan_linkage)));
|
||||
connections.push_back (_panner->StateChanged.connect (sigc::mem_fun(*this, &PannerUI::update_pan_state)));
|
||||
|
||||
setup_pan ();
|
||||
|
||||
|
|
@ -191,17 +191,17 @@ PannerUI::build_astate_menu ()
|
|||
pan_astate_menu->items().clear ();
|
||||
}
|
||||
|
||||
pan_astate_menu->items().push_back (MenuElem (_("Manual"), bind (
|
||||
mem_fun (_panner.get(), &Panner::set_automation_state),
|
||||
pan_astate_menu->items().push_back (MenuElem (_("Manual"), sigc::bind (
|
||||
sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
|
||||
(AutoState) Off)));
|
||||
pan_astate_menu->items().push_back (MenuElem (_("Play"), bind (
|
||||
mem_fun (_panner.get(), &Panner::set_automation_state),
|
||||
pan_astate_menu->items().push_back (MenuElem (_("Play"), sigc::bind (
|
||||
sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
|
||||
(AutoState) Play)));
|
||||
pan_astate_menu->items().push_back (MenuElem (_("Write"), bind (
|
||||
mem_fun (_panner.get(), &Panner::set_automation_state),
|
||||
pan_astate_menu->items().push_back (MenuElem (_("Write"), sigc::bind (
|
||||
sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
|
||||
(AutoState) Write)));
|
||||
pan_astate_menu->items().push_back (MenuElem (_("Touch"), bind (
|
||||
mem_fun (_panner.get(), &Panner::set_automation_state),
|
||||
pan_astate_menu->items().push_back (MenuElem (_("Touch"), sigc::bind (
|
||||
sigc::mem_fun (_panner.get(), &Panner::set_automation_state),
|
||||
(AutoState) Touch)));
|
||||
|
||||
}
|
||||
|
|
@ -259,7 +259,7 @@ PannerUI::panning_link_direction_clicked()
|
|||
void
|
||||
PannerUI::update_pan_linkage ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &PannerUI::update_pan_linkage));
|
||||
ENSURE_GUI_THREAD (*this, &PannerUI::update_pan_linkage)
|
||||
|
||||
bool x = _panner->linked();
|
||||
bool bx = panning_link_button.get_active();
|
||||
|
|
@ -320,7 +320,7 @@ PannerUI::~PannerUI ()
|
|||
void
|
||||
PannerUI::panner_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &PannerUI::panner_changed));
|
||||
ENSURE_GUI_THREAD (*this, &PannerUI::panner_changed)
|
||||
setup_pan ();
|
||||
pan_changed (0);
|
||||
}
|
||||
|
|
@ -329,7 +329,7 @@ void
|
|||
PannerUI::update_pan_state ()
|
||||
{
|
||||
/* currently nothing to do */
|
||||
// ENSURE_GUI_THREAD (mem_fun(*this, &PannerUI::update_panner_state));
|
||||
// ENSURE_GUI_THREAD (*this, &PannerUI::update_panner_state)
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -402,9 +402,9 @@ PannerUI::setup_pan ()
|
|||
|
||||
/* now set adjustment with current value of panner, then connect the signals */
|
||||
pan_adjustments.back()->set_value(rx);
|
||||
pan_adjustments.back()->signal_value_changed().connect (bind (mem_fun(*this, &PannerUI::pan_adjustment_changed), (uint32_t) asz));
|
||||
pan_adjustments.back()->signal_value_changed().connect (sigc::bind (sigc::mem_fun(*this, &PannerUI::pan_adjustment_changed), (uint32_t) asz));
|
||||
|
||||
_panner->pan_control( asz )->Changed.connect (bind (mem_fun(*this, &PannerUI::pan_value_changed), (uint32_t) asz));
|
||||
_panner->pan_control( asz )->Changed.connect (sigc::bind (sigc::mem_fun(*this, &PannerUI::pan_value_changed), (uint32_t) asz));
|
||||
|
||||
|
||||
bc->set_name ("PanSlider");
|
||||
|
|
@ -413,8 +413,8 @@ PannerUI::setup_pan ()
|
|||
boost::shared_ptr<AutomationControl> ac = _panner->pan_control (asz);
|
||||
|
||||
if (asz) {
|
||||
bc->StartGesture.connect (mem_fun (*ac, &AutomationControl::start_touch));
|
||||
bc->StopGesture.connect (mem_fun (*ac, &AutomationControl::stop_touch));
|
||||
bc->StartGesture.connect (sigc::mem_fun (*ac, &AutomationControl::start_touch));
|
||||
bc->StopGesture.connect (sigc::mem_fun (*ac, &AutomationControl::stop_touch));
|
||||
}
|
||||
|
||||
char buf[64];
|
||||
|
|
@ -422,7 +422,7 @@ PannerUI::setup_pan ()
|
|||
ARDOUR_UI::instance()->tooltips().set_tip (bc->event_widget(), buf);
|
||||
|
||||
bc->event_widget().signal_button_release_event().connect
|
||||
(bind (mem_fun(*this, &PannerUI::pan_button_event), (uint32_t) asz));
|
||||
(sigc::bind (sigc::mem_fun(*this, &PannerUI::pan_button_event), (uint32_t) asz));
|
||||
|
||||
bc->set_size_request (-1, pan_bar_height);
|
||||
|
||||
|
|
@ -449,7 +449,7 @@ PannerUI::setup_pan ()
|
|||
panner->show ();
|
||||
|
||||
panner->signal_button_press_event().connect
|
||||
(bind (mem_fun(*this, &PannerUI::pan_button_event), (uint32_t) 0), false);
|
||||
(sigc::bind (sigc::mem_fun(*this, &PannerUI::pan_button_event), (uint32_t) 0), false);
|
||||
}
|
||||
|
||||
update_pan_sensitive ();
|
||||
|
|
@ -511,19 +511,19 @@ PannerUI::build_pan_menu (uint32_t which)
|
|||
|
||||
(dynamic_cast<CheckMenuItem*> (&items.back()))->set_active (_panner->streampanner(which).muted());
|
||||
(dynamic_cast<CheckMenuItem*> (&items.back()))->signal_toggled().connect
|
||||
(bind (mem_fun(*this, &PannerUI::pan_mute), which));
|
||||
(sigc::bind (sigc::mem_fun(*this, &PannerUI::pan_mute), which));
|
||||
|
||||
items.push_back (CheckMenuElem (_("Bypass"), mem_fun(*this, &PannerUI::pan_bypass_toggle)));
|
||||
items.push_back (CheckMenuElem (_("Bypass"), sigc::mem_fun(*this, &PannerUI::pan_bypass_toggle)));
|
||||
bypass_menu_item = static_cast<CheckMenuItem*> (&items.back());
|
||||
|
||||
/* set state first, connect second */
|
||||
|
||||
bypass_menu_item->set_active (_panner->bypassed());
|
||||
bypass_menu_item->signal_toggled().connect (mem_fun(*this, &PannerUI::pan_bypass_toggle));
|
||||
bypass_menu_item->signal_toggled().connect (sigc::mem_fun(*this, &PannerUI::pan_bypass_toggle));
|
||||
|
||||
items.push_back (MenuElem (_("Reset"), bind (mem_fun (*this, &PannerUI::pan_reset), which)));
|
||||
items.push_back (MenuElem (_("Reset"), sigc::bind (sigc::mem_fun (*this, &PannerUI::pan_reset), which)));
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Reset all"), mem_fun (*this, &PannerUI::pan_reset_all)));
|
||||
items.push_back (MenuElem (_("Reset all"), sigc::mem_fun (*this, &PannerUI::pan_reset_all)));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -653,7 +653,7 @@ PannerUI::pan_adjustment_changed (uint32_t which)
|
|||
void
|
||||
PannerUI::pan_value_changed (uint32_t which)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &PannerUI::pan_value_changed), which));
|
||||
ENSURE_GUI_THREAD (*this, &PannerUI::pan_value_changed, which)
|
||||
|
||||
if (_panner->npanners() > 1 && which < _panner->npanners()) {
|
||||
float xpos;
|
||||
|
|
@ -774,7 +774,7 @@ PannerUI::pan_automation_style_button_event (GdkEventButton *ev)
|
|||
void
|
||||
PannerUI::pan_automation_style_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &PannerUI::pan_automation_style_changed));
|
||||
ENSURE_GUI_THREAD (*this, &PannerUI::pan_automation_style_changed)
|
||||
|
||||
switch (_width) {
|
||||
case Wide:
|
||||
|
|
@ -789,7 +789,7 @@ PannerUI::pan_automation_style_changed ()
|
|||
void
|
||||
PannerUI::pan_automation_state_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &PannerUI::pan_automation_state_changed));
|
||||
ENSURE_GUI_THREAD (*this, &PannerUI::pan_automation_state_changed)
|
||||
|
||||
bool x;
|
||||
|
||||
|
|
@ -826,7 +826,7 @@ PannerUI::pan_automation_state_changed ()
|
|||
pan_watching.disconnect();
|
||||
|
||||
if (x) {
|
||||
pan_watching = ARDOUR_UI::RapidScreenUpdate.connect (mem_fun (*this, &PannerUI::effective_pan_display));
|
||||
pan_watching = ARDOUR_UI::RapidScreenUpdate.connect (sigc::mem_fun (*this, &PannerUI::effective_pan_display));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ PianoRollHeader::PianoRollHeader(MidiStreamView& v)
|
|||
_active_notes[i] = false;
|
||||
}
|
||||
|
||||
_view.NoteRangeChanged.connect (mem_fun (*this, &PianoRollHeader::note_range_changed));
|
||||
_view.NoteRangeChanged.connect (sigc::mem_fun (*this, &PianoRollHeader::note_range_changed));
|
||||
}
|
||||
|
||||
inline void
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ PlaylistSelector::PlaylistSelector ()
|
|||
get_vbox()->pack_start (scroller);
|
||||
|
||||
Button* b = add_button (_("close"), RESPONSE_CANCEL);
|
||||
b->signal_clicked().connect (mem_fun(*this, &PlaylistSelector::close_button_click));
|
||||
b->signal_clicked().connect (sigc::mem_fun(*this, &PlaylistSelector::close_button_click));
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -208,7 +208,7 @@ PlaylistSelector::show_for (RouteUI* ruix)
|
|||
}
|
||||
|
||||
show_all ();
|
||||
select_connection = tree.get_selection()->signal_changed().connect (mem_fun(*this, &PlaylistSelector::selection_changed));
|
||||
select_connection = tree.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &PlaylistSelector::selection_changed));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -239,12 +239,12 @@ PlaylistSelector::add_playlist_to_map (boost::shared_ptr<Playlist> pl)
|
|||
void
|
||||
PlaylistSelector::set_session (Session* s)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &PlaylistSelector::set_session), s));
|
||||
ENSURE_GUI_THREAD (*this, &PlaylistSelector::set_session, s)
|
||||
|
||||
session = s;
|
||||
|
||||
if (session) {
|
||||
session->GoingAway.connect (bind (mem_fun(*this, &PlaylistSelector::set_session), static_cast<Session*> (0)));
|
||||
session->GoingAway.connect (sigc::bind (sigc::mem_fun(*this, &PlaylistSelector::set_session), static_cast<Session*> (0)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ PluginEqGui::timeout_callback()
|
|||
void
|
||||
PluginEqGui::signal_collect_callback(ARDOUR::BufferSet *in, ARDOUR::BufferSet *out)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun (*this, &PluginEqGui::signal_collect_callback), in, out));
|
||||
ENSURE_GUI_THREAD (*this, &PluginEqGui::signal_collect_callback, in, out)
|
||||
|
||||
_signal_input_fft ->reset();
|
||||
_signal_output_fft->reset();
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ PluginSelector::PluginSelector (PluginManager *mgr)
|
|||
session = 0;
|
||||
in_row_change = false;
|
||||
|
||||
manager->PluginListChanged.connect (mem_fun (*this, &PluginSelector::build_plugin_menu));
|
||||
manager->PluginListChanged.connect (sigc::mem_fun (*this, &PluginSelector::build_plugin_menu));
|
||||
build_plugin_menu ();
|
||||
|
||||
plugin_model = Gtk::ListStore::create (plugin_columns);
|
||||
|
|
@ -102,12 +102,12 @@ PluginSelector::PluginSelector (PluginManager *mgr)
|
|||
CellRendererToggle* fav_cell = dynamic_cast<CellRendererToggle*>(plugin_display.get_column_cell_renderer (0));
|
||||
fav_cell->property_activatable() = true;
|
||||
fav_cell->property_radio() = true;
|
||||
fav_cell->signal_toggled().connect (mem_fun (*this, &PluginSelector::favorite_changed));
|
||||
fav_cell->signal_toggled().connect (sigc::mem_fun (*this, &PluginSelector::favorite_changed));
|
||||
|
||||
CellRendererToggle* hidden_cell = dynamic_cast<CellRendererToggle*>(plugin_display.get_column_cell_renderer (1));
|
||||
hidden_cell->property_activatable() = true;
|
||||
hidden_cell->property_radio() = true;
|
||||
hidden_cell->signal_toggled().connect (mem_fun (*this, &PluginSelector::hidden_changed));
|
||||
hidden_cell->signal_toggled().connect (sigc::mem_fun (*this, &PluginSelector::hidden_changed));
|
||||
|
||||
scroller.set_border_width(10);
|
||||
scroller.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
|
||||
|
|
@ -153,9 +153,9 @@ PluginSelector::PluginSelector (PluginManager *mgr)
|
|||
filter_box->pack_start (filter_entry, true, true);
|
||||
filter_box->pack_start (filter_button, false, false);
|
||||
|
||||
filter_entry.signal_changed().connect (mem_fun (*this, &PluginSelector::filter_entry_changed));
|
||||
filter_button.signal_clicked().connect (mem_fun (*this, &PluginSelector::filter_button_clicked));
|
||||
filter_mode.signal_changed().connect (mem_fun (*this, &PluginSelector::filter_mode_changed));
|
||||
filter_entry.signal_changed().connect (sigc::mem_fun (*this, &PluginSelector::filter_entry_changed));
|
||||
filter_button.signal_clicked().connect (sigc::mem_fun (*this, &PluginSelector::filter_button_clicked));
|
||||
filter_mode.signal_changed().connect (sigc::mem_fun (*this, &PluginSelector::filter_mode_changed));
|
||||
|
||||
filter_box->show ();
|
||||
filter_mode.show ();
|
||||
|
|
@ -181,14 +181,14 @@ PluginSelector::PluginSelector (PluginManager *mgr)
|
|||
//plugin_display.set_name("PluginSelectorList");
|
||||
added_list.set_name("PluginSelectorList");
|
||||
|
||||
plugin_display.signal_button_press_event().connect_notify (mem_fun(*this, &PluginSelector::row_clicked));
|
||||
plugin_display.get_selection()->signal_changed().connect (mem_fun(*this, &PluginSelector::display_selection_changed));
|
||||
plugin_display.signal_button_press_event().connect_notify (sigc::mem_fun(*this, &PluginSelector::row_clicked));
|
||||
plugin_display.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &PluginSelector::display_selection_changed));
|
||||
plugin_display.grab_focus();
|
||||
|
||||
btn_update->signal_clicked().connect (mem_fun(*this, &PluginSelector::btn_update_clicked));
|
||||
btn_add->signal_clicked().connect(mem_fun(*this, &PluginSelector::btn_add_clicked));
|
||||
btn_remove->signal_clicked().connect(mem_fun(*this, &PluginSelector::btn_remove_clicked));
|
||||
added_list.get_selection()->signal_changed().connect (mem_fun(*this, &PluginSelector::added_list_selection_changed));
|
||||
btn_update->signal_clicked().connect (sigc::mem_fun(*this, &PluginSelector::btn_update_clicked));
|
||||
btn_add->signal_clicked().connect(sigc::mem_fun(*this, &PluginSelector::btn_add_clicked));
|
||||
btn_remove->signal_clicked().connect(sigc::mem_fun(*this, &PluginSelector::btn_remove_clicked));
|
||||
added_list.get_selection()->signal_changed().connect (sigc::mem_fun(*this, &PluginSelector::added_list_selection_changed));
|
||||
|
||||
refill ();
|
||||
}
|
||||
|
|
@ -208,12 +208,12 @@ PluginSelector::row_clicked(GdkEventButton* event)
|
|||
void
|
||||
PluginSelector::set_session (Session* s)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &PluginSelector::set_session), s));
|
||||
ENSURE_GUI_THREAD (*this, &PluginSelector::set_session, s)
|
||||
|
||||
session = s;
|
||||
|
||||
if (session) {
|
||||
session->GoingAway.connect (bind (mem_fun(*this, &PluginSelector::set_session), static_cast<Session*> (0)));
|
||||
session->GoingAway.connect (sigc::bind (sigc::mem_fun(*this, &PluginSelector::set_session), static_cast<Session*> (0)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -607,7 +607,7 @@ PluginSelector::build_plugin_menu ()
|
|||
Gtk::Menu* favs = create_favs_menu(all_plugs);
|
||||
items.push_back (MenuElem (_("Favorites"), *manage (favs)));
|
||||
|
||||
items.push_back (MenuElem (_("Plugin Manager"), mem_fun (*this, &PluginSelector::show_manager)));
|
||||
items.push_back (MenuElem (_("Plugin Manager"), sigc::mem_fun (*this, &PluginSelector::show_manager)));
|
||||
items.push_back (SeparatorElem ());
|
||||
|
||||
Menu* by_creator = create_by_creator_menu(all_plugs);
|
||||
|
|
@ -630,7 +630,7 @@ PluginSelector::create_favs_menu (PluginInfoList& all_plugs)
|
|||
|
||||
for (PluginInfoList::const_iterator i = all_plugs.begin(); i != all_plugs.end(); ++i) {
|
||||
if (manager->get_status (*i) == PluginManager::Favorite) {
|
||||
favs->items().push_back (MenuElem ((*i)->name, (bind (mem_fun (*this, &PluginSelector::plugin_chosen_from_menu), *i))));
|
||||
favs->items().push_back (MenuElem ((*i)->name, (sigc::bind (sigc::mem_fun (*this, &PluginSelector::plugin_chosen_from_menu), *i))));
|
||||
}
|
||||
}
|
||||
return favs;
|
||||
|
|
@ -672,7 +672,7 @@ PluginSelector::create_by_creator_menu (ARDOUR::PluginInfoList& all_plugs)
|
|||
creator_submenu_map.insert (pair<Glib::ustring,Menu*> (creator, submenu));
|
||||
submenu->set_name("ArdourContextMenu");
|
||||
}
|
||||
submenu->items().push_back (MenuElem ((*i)->name, (bind (mem_fun (*this, &PluginSelector::plugin_chosen_from_menu), *i))));
|
||||
submenu->items().push_back (MenuElem ((*i)->name, (sigc::bind (sigc::mem_fun (*this, &PluginSelector::plugin_chosen_from_menu), *i))));
|
||||
}
|
||||
return by_creator;
|
||||
}
|
||||
|
|
@ -708,7 +708,7 @@ PluginSelector::create_by_category_menu (ARDOUR::PluginInfoList& all_plugs)
|
|||
category_submenu_map.insert (pair<Glib::ustring,Menu*> (category, submenu));
|
||||
submenu->set_name("ArdourContextMenu");
|
||||
}
|
||||
submenu->items().push_back (MenuElem ((*i)->name, (bind (mem_fun (*this, &PluginSelector::plugin_chosen_from_menu), *i))));
|
||||
submenu->items().push_back (MenuElem ((*i)->name, (sigc::bind (sigc::mem_fun (*this, &PluginSelector::plugin_chosen_from_menu), *i))));
|
||||
}
|
||||
return by_category;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -134,16 +134,16 @@ PluginUIWindow::PluginUIWindow (Gtk::Window* win, boost::shared_ptr<PluginInsert
|
|||
|
||||
set_wmclass (X_("ardour_plugin_editor"), "Ardour");
|
||||
|
||||
signal_map_event().connect (mem_fun (*pu, &GenericPluginUI::start_updating));
|
||||
signal_unmap_event().connect (mem_fun (*pu, &GenericPluginUI::stop_updating));
|
||||
signal_map_event().connect (sigc::mem_fun (*pu, &GenericPluginUI::start_updating));
|
||||
signal_unmap_event().connect (sigc::mem_fun (*pu, &GenericPluginUI::stop_updating));
|
||||
}
|
||||
|
||||
// set_position (Gtk::WIN_POS_MOUSE);
|
||||
set_name ("PluginEditor");
|
||||
add_events (Gdk::KEY_PRESS_MASK|Gdk::KEY_RELEASE_MASK|Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK);
|
||||
|
||||
signal_delete_event().connect (bind (sigc::ptr_fun (just_hide_it), reinterpret_cast<Window*> (this)), false);
|
||||
death_connection = insert->GoingAway.connect (mem_fun(*this, &PluginUIWindow::plugin_going_away));
|
||||
signal_delete_event().connect (sigc::bind (sigc::ptr_fun (just_hide_it), reinterpret_cast<Window*> (this)), false);
|
||||
death_connection = insert->GoingAway.connect (sigc::mem_fun(*this, &PluginUIWindow::plugin_going_away));
|
||||
|
||||
gint h = _pluginui->get_preferred_height ();
|
||||
gint w = _pluginui->get_preferred_width ();
|
||||
|
|
@ -292,7 +292,7 @@ PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert>)
|
|||
non_gtk_gui = true;
|
||||
|
||||
extern sigc::signal<void,bool> ApplicationActivationChanged;
|
||||
ApplicationActivationChanged.connect (mem_fun (*this, &PluginUIWindow::app_activated));
|
||||
ApplicationActivationChanged.connect (sigc::mem_fun (*this, &PluginUIWindow::app_activated));
|
||||
|
||||
return true;
|
||||
#endif
|
||||
|
|
@ -362,7 +362,7 @@ PluginUIWindow::on_key_release_event (GdkEventKey *)
|
|||
void
|
||||
PluginUIWindow::plugin_going_away ()
|
||||
{
|
||||
ENSURE_GUI_THREAD(mem_fun(*this, &PluginUIWindow::plugin_going_away));
|
||||
ENSURE_GUI_THREAD (*this, &PluginUIWindow::plugin_going_away)
|
||||
|
||||
if (_pluginui) {
|
||||
_pluginui->stop_updating(0);
|
||||
|
|
@ -385,23 +385,23 @@ PlugUIBase::PlugUIBase (boost::shared_ptr<PluginInsert> pi)
|
|||
update_presets();
|
||||
preset_combo.set_size_request (100, -1);
|
||||
preset_combo.set_active_text ("");
|
||||
preset_combo.signal_changed().connect(mem_fun(*this, &PlugUIBase::setting_selected));
|
||||
preset_combo.signal_changed().connect(sigc::mem_fun(*this, &PlugUIBase::setting_selected));
|
||||
no_load_preset = false;
|
||||
|
||||
save_button.set_name ("PluginSaveButton");
|
||||
save_button.signal_clicked().connect(mem_fun(*this, &PlugUIBase::save_plugin_setting));
|
||||
save_button.signal_clicked().connect(sigc::mem_fun(*this, &PlugUIBase::save_plugin_setting));
|
||||
|
||||
insert->ActiveChanged.connect (bind(
|
||||
mem_fun(*this, &PlugUIBase::processor_active_changed),
|
||||
insert->ActiveChanged.connect (sigc::bind(
|
||||
sigc::mem_fun(*this, &PlugUIBase::processor_active_changed),
|
||||
boost::weak_ptr<Processor>(insert)));
|
||||
|
||||
bypass_button.set_active (!pi->active());
|
||||
|
||||
bypass_button.set_name ("PluginBypassButton");
|
||||
bypass_button.signal_toggled().connect (mem_fun(*this, &PlugUIBase::bypass_toggled));
|
||||
bypass_button.signal_toggled().connect (sigc::mem_fun(*this, &PlugUIBase::bypass_toggled));
|
||||
focus_button.add_events (Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK);
|
||||
|
||||
focus_button.signal_button_release_event().connect (mem_fun(*this, &PlugUIBase::focus_toggled));
|
||||
focus_button.signal_button_release_event().connect (sigc::mem_fun(*this, &PlugUIBase::focus_toggled));
|
||||
focus_button.add_events (Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK);
|
||||
|
||||
/* these images are not managed, so that we can remove them at will */
|
||||
|
|
@ -414,10 +414,10 @@ PlugUIBase::PlugUIBase (boost::shared_ptr<PluginInsert> pi)
|
|||
ARDOUR_UI::instance()->set_tip (&focus_button, _("Click to allow the plugin to receive keyboard events that Ardour would normally use as a shortcut"), "");
|
||||
ARDOUR_UI::instance()->set_tip (&bypass_button, _("Click to enable/disable this plugin"), "");
|
||||
|
||||
plugin_analysis_expander.property_expanded().signal_changed().connect( mem_fun(*this, &PlugUIBase::toggle_plugin_analysis));
|
||||
plugin_analysis_expander.property_expanded().signal_changed().connect( sigc::mem_fun(*this, &PlugUIBase::toggle_plugin_analysis));
|
||||
plugin_analysis_expander.set_expanded(false);
|
||||
|
||||
insert->GoingAway.connect (mem_fun (*this, &PlugUIBase::plugin_going_away));
|
||||
insert->GoingAway.connect (sigc::mem_fun (*this, &PlugUIBase::plugin_going_away));
|
||||
}
|
||||
|
||||
PlugUIBase::~PlugUIBase()
|
||||
|
|
@ -456,7 +456,7 @@ PlugUIBase::latency_button_clicked ()
|
|||
latency_gui = new LatencyGUI (*(insert.get()), insert->session().frame_rate(), insert->session().get_block_size());
|
||||
latency_dialog = new ArdourDialog ("Edit Latency", false, false);
|
||||
latency_dialog->get_vbox()->pack_start (*latency_gui);
|
||||
latency_dialog->signal_hide().connect (mem_fun (*this, &PlugUIBase::set_latency_label));
|
||||
latency_dialog->signal_hide().connect (sigc::mem_fun (*this, &PlugUIBase::set_latency_label));
|
||||
}
|
||||
|
||||
latency_dialog->show_all ();
|
||||
|
|
@ -465,7 +465,7 @@ PlugUIBase::latency_button_clicked ()
|
|||
void
|
||||
PlugUIBase::processor_active_changed (boost::weak_ptr<Processor> weak_p)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun(*this, &PlugUIBase::processor_active_changed), weak_p));
|
||||
ENSURE_GUI_THREAD (*this, &PlugUIBase::processor_active_changed, weak_p)
|
||||
boost::shared_ptr<Processor> p (weak_p);
|
||||
if (p) {
|
||||
bypass_button.set_active (!p->active());
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ PortGroupList::gather (ARDOUR::Session* session, bool inputs, bool allow_dups)
|
|||
|
||||
route_bundles.push_back (io->bundle ());
|
||||
|
||||
(*i)->foreach_processor (bind (mem_fun (*this, &PortGroupList::maybe_add_processor_to_list), &route_bundles, inputs, used_io));
|
||||
(*i)->foreach_processor (sigc::bind (sigc::mem_fun (*this, &PortGroupList::maybe_add_processor_to_list), &route_bundles, inputs, used_io));
|
||||
|
||||
/* Work out which group to put these bundles in */
|
||||
boost::shared_ptr<PortGroup> g;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ PortMatrix::PortMatrix (Window* parent, Session* session, DataType type)
|
|||
_ignore_notebook_page_selected (false)
|
||||
{
|
||||
_body = new PortMatrixBody (this);
|
||||
_body->DimensionsChanged.connect (mem_fun (*this, &PortMatrix::body_dimensions_changed));
|
||||
_body->DimensionsChanged.connect (sigc::mem_fun (*this, &PortMatrix::body_dimensions_changed));
|
||||
|
||||
_vbox.pack_start (_vspacer, false, false);
|
||||
_vbox.pack_start (_vnotebook, false, false);
|
||||
|
|
@ -69,10 +69,10 @@ PortMatrix::PortMatrix (Window* parent, Session* session, DataType type)
|
|||
_hbox.pack_start (_hnotebook, false, false);
|
||||
_hbox.pack_start (_hlabel, true, true);
|
||||
|
||||
_vnotebook.signal_switch_page().connect (mem_fun (*this, &PortMatrix::notebook_page_selected));
|
||||
_vnotebook.signal_switch_page().connect (sigc::mem_fun (*this, &PortMatrix::notebook_page_selected));
|
||||
_vnotebook.property_tab_border() = 4;
|
||||
_vnotebook.set_name (X_("PortMatrixLabel"));
|
||||
_hnotebook.signal_switch_page().connect (mem_fun (*this, &PortMatrix::notebook_page_selected));
|
||||
_hnotebook.signal_switch_page().connect (sigc::mem_fun (*this, &PortMatrix::notebook_page_selected));
|
||||
_hnotebook.property_tab_border() = 4;
|
||||
_hnotebook.set_name (X_("PortMatrixLabel"));
|
||||
|
||||
|
|
@ -133,29 +133,29 @@ PortMatrix::init ()
|
|||
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
/* watch for the content of _ports[] changing */
|
||||
_ports[i].Changed.connect (mem_fun (*this, &PortMatrix::setup));
|
||||
_ports[i].Changed.connect (sigc::mem_fun (*this, &PortMatrix::setup));
|
||||
|
||||
/* and for bundles in _ports[] changing */
|
||||
_ports[i].BundleChanged.connect (sigc::hide (mem_fun (*this, &PortMatrix::setup)));
|
||||
_ports[i].BundleChanged.connect (sigc::hide (sigc::mem_fun (*this, &PortMatrix::setup)));
|
||||
}
|
||||
|
||||
/* scrolling stuff */
|
||||
_hscroll.signal_value_changed().connect (mem_fun (*this, &PortMatrix::hscroll_changed));
|
||||
_vscroll.signal_value_changed().connect (mem_fun (*this, &PortMatrix::vscroll_changed));
|
||||
_hscroll.signal_value_changed().connect (sigc::mem_fun (*this, &PortMatrix::hscroll_changed));
|
||||
_vscroll.signal_value_changed().connect (sigc::mem_fun (*this, &PortMatrix::vscroll_changed));
|
||||
|
||||
|
||||
/* Part 2: notice when things have changed that require our subclass to clear and refill _ports[] */
|
||||
|
||||
/* watch for routes being added or removed */
|
||||
_session->RouteAdded.connect (sigc::hide (mem_fun (*this, &PortMatrix::routes_changed)));
|
||||
_session->RouteAdded.connect (sigc::hide (sigc::mem_fun (*this, &PortMatrix::routes_changed)));
|
||||
|
||||
/* and also bundles */
|
||||
_session->BundleAdded.connect (sigc::hide (mem_fun (*this, &PortMatrix::setup_global_ports)));
|
||||
_session->BundleAdded.connect (sigc::hide (sigc::mem_fun (*this, &PortMatrix::setup_global_ports)));
|
||||
|
||||
/* and also ports */
|
||||
_session->engine().PortRegisteredOrUnregistered.connect (mem_fun (*this, &PortMatrix::setup_global_ports));
|
||||
_session->engine().PortRegisteredOrUnregistered.connect (sigc::mem_fun (*this, &PortMatrix::setup_global_ports));
|
||||
|
||||
_session->GoingAway.connect (mem_fun (*this, &PortMatrix::session_going_away));
|
||||
_session->GoingAway.connect (sigc::mem_fun (*this, &PortMatrix::session_going_away));
|
||||
|
||||
reconnect_to_routes ();
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ PortMatrix::reconnect_to_routes ()
|
|||
boost::shared_ptr<RouteList> routes = _session->get_routes ();
|
||||
for (RouteList::iterator i = routes->begin(); i != routes->end(); ++i) {
|
||||
_route_connections.push_back (
|
||||
(*i)->processors_changed.connect (mem_fun (*this, &PortMatrix::route_processors_changed))
|
||||
(*i)->processors_changed.connect (sigc::mem_fun (*this, &PortMatrix::route_processors_changed))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -392,7 +392,7 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
|
|||
|
||||
if (can_add_channel (bc[dim].bundle)) {
|
||||
snprintf (buf, sizeof (buf), _("Add %s"), channel_noun().c_str());
|
||||
sub.push_back (MenuElem (buf, bind (mem_fun (*this, &PortMatrix::add_channel_proxy), w)));
|
||||
sub.push_back (MenuElem (buf, sigc::bind (sigc::mem_fun (*this, &PortMatrix::add_channel_proxy), w)));
|
||||
can_add_or_rename = true;
|
||||
}
|
||||
|
||||
|
|
@ -402,7 +402,7 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
|
|||
sub.push_back (
|
||||
MenuElem (
|
||||
buf,
|
||||
bind (mem_fun (*this, &PortMatrix::rename_channel_proxy), w, bc[dim].channel)
|
||||
sigc::bind (sigc::mem_fun (*this, &PortMatrix::rename_channel_proxy), w, bc[dim].channel)
|
||||
)
|
||||
);
|
||||
can_add_or_rename = true;
|
||||
|
|
@ -417,7 +417,7 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
|
|||
sub.push_back (
|
||||
MenuElem (
|
||||
buf,
|
||||
bind (mem_fun (*this, &PortMatrix::remove_channel_proxy), w, bc[dim].channel)
|
||||
sigc::bind (sigc::mem_fun (*this, &PortMatrix::remove_channel_proxy), w, bc[dim].channel)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -433,7 +433,7 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
|
|||
}
|
||||
|
||||
sub.push_back (
|
||||
MenuElem (buf, bind (mem_fun (*this, &PortMatrix::disassociate_all_on_channel), w, bc[dim].channel, dim))
|
||||
MenuElem (buf, sigc::bind (sigc::mem_fun (*this, &PortMatrix::disassociate_all_on_channel), w, bc[dim].channel, dim))
|
||||
);
|
||||
|
||||
items.push_back (MenuElem (bc[dim].bundle->name().c_str(), *m));
|
||||
|
|
@ -446,8 +446,8 @@ PortMatrix::popup_menu (BundleChannel column, BundleChannel row, uint32_t t)
|
|||
items.push_back (SeparatorElem ());
|
||||
}
|
||||
|
||||
items.push_back (MenuElem (_("Rescan"), mem_fun (*this, &PortMatrix::setup_all_ports)));
|
||||
items.push_back (CheckMenuElem (_("Show individual ports"), mem_fun (*this, &PortMatrix::toggle_show_only_bundles)));
|
||||
items.push_back (MenuElem (_("Rescan"), sigc::mem_fun (*this, &PortMatrix::setup_all_ports)));
|
||||
items.push_back (CheckMenuElem (_("Show individual ports"), sigc::mem_fun (*this, &PortMatrix::toggle_show_only_bundles)));
|
||||
CheckMenuItem* i = dynamic_cast<CheckMenuItem*> (&items.back());
|
||||
_inhibit_toggle_show_only_bundles = true;
|
||||
i->set_active (!_show_only_bundles);
|
||||
|
|
@ -508,7 +508,7 @@ PortMatrix::disassociate_all_on_channel (boost::weak_ptr<Bundle> bundle, uint32_
|
|||
void
|
||||
PortMatrix::setup_global_ports ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &PortMatrix::setup_global_ports));
|
||||
ENSURE_GUI_THREAD (*this, &PortMatrix::setup_global_ports)
|
||||
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
if (list_is_global (i)) {
|
||||
|
|
@ -524,7 +524,7 @@ PortMatrix::setup_all_ports ()
|
|||
return;
|
||||
}
|
||||
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &PortMatrix::setup_all_ports));
|
||||
ENSURE_GUI_THREAD (*this, &PortMatrix::setup_all_ports)
|
||||
|
||||
setup_ports (0);
|
||||
setup_ports (1);
|
||||
|
|
|
|||
|
|
@ -105,10 +105,10 @@ ProcessorEntry::ProcessorEntry (boost::shared_ptr<Processor> p, Width w)
|
|||
_name.set_padding (2, 2);
|
||||
|
||||
_active.set_active (_processor->active ());
|
||||
_active.signal_toggled().connect (mem_fun (*this, &ProcessorEntry::active_toggled));
|
||||
_active.signal_toggled().connect (sigc::mem_fun (*this, &ProcessorEntry::active_toggled));
|
||||
|
||||
_processor->ActiveChanged.connect (mem_fun (*this, &ProcessorEntry::processor_active_changed));
|
||||
_processor->NameChanged.connect (mem_fun (*this, &ProcessorEntry::processor_name_changed));
|
||||
_processor->ActiveChanged.connect (sigc::mem_fun (*this, &ProcessorEntry::processor_active_changed));
|
||||
_processor->NameChanged.connect (sigc::mem_fun (*this, &ProcessorEntry::processor_name_changed));
|
||||
}
|
||||
|
||||
EventBox&
|
||||
|
|
@ -229,8 +229,8 @@ SendProcessorEntry::SendProcessorEntry (boost::shared_ptr<Send> s, Width w)
|
|||
_fader.set_controllable (_send->amp()->gain_control ());
|
||||
_vbox.pack_start (_fader);
|
||||
|
||||
_adjustment.signal_value_changed().connect (mem_fun (*this, &SendProcessorEntry::gain_adjusted));
|
||||
_send->amp()->gain_control()->Changed.connect (mem_fun (*this, &SendProcessorEntry::show_gain));
|
||||
_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &SendProcessorEntry::gain_adjusted));
|
||||
_send->amp()->gain_control()->Changed.connect (sigc::mem_fun (*this, &SendProcessorEntry::show_gain));
|
||||
show_gain ();
|
||||
}
|
||||
|
||||
|
|
@ -244,7 +244,7 @@ SendProcessorEntry::setup_slider_pix ()
|
|||
void
|
||||
SendProcessorEntry::show_gain ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &SendProcessorEntry::show_gain));
|
||||
ENSURE_GUI_THREAD (*this, &SendProcessorEntry::show_gain)
|
||||
|
||||
float const value = gain_to_slider_position (_send->amp()->gain ());
|
||||
|
||||
|
|
@ -295,18 +295,18 @@ ProcessorBox::ProcessorBox (ARDOUR::Session& sess, sigc::slot<PluginSelector*> g
|
|||
processor_display.set_size_request (48, -1);
|
||||
processor_display.set_data ("processorbox", this);
|
||||
|
||||
processor_display.signal_enter_notify_event().connect (mem_fun(*this, &ProcessorBox::enter_notify), false);
|
||||
processor_display.signal_leave_notify_event().connect (mem_fun(*this, &ProcessorBox::leave_notify), false);
|
||||
processor_display.signal_enter_notify_event().connect (sigc::mem_fun(*this, &ProcessorBox::enter_notify), false);
|
||||
processor_display.signal_leave_notify_event().connect (sigc::mem_fun(*this, &ProcessorBox::leave_notify), false);
|
||||
|
||||
processor_display.signal_key_press_event().connect (mem_fun(*this, &ProcessorBox::processor_key_press_event));
|
||||
processor_display.signal_key_release_event().connect (mem_fun(*this, &ProcessorBox::processor_key_release_event));
|
||||
processor_display.signal_key_press_event().connect (sigc::mem_fun(*this, &ProcessorBox::processor_key_press_event));
|
||||
processor_display.signal_key_release_event().connect (sigc::mem_fun(*this, &ProcessorBox::processor_key_release_event));
|
||||
|
||||
processor_display.ButtonPress.connect (mem_fun (*this, &ProcessorBox::processor_button_press_event));
|
||||
processor_display.ButtonRelease.connect (mem_fun (*this, &ProcessorBox::processor_button_release_event));
|
||||
processor_display.ButtonPress.connect (sigc::mem_fun (*this, &ProcessorBox::processor_button_press_event));
|
||||
processor_display.ButtonRelease.connect (sigc::mem_fun (*this, &ProcessorBox::processor_button_release_event));
|
||||
|
||||
processor_display.Reordered.connect (mem_fun (*this, &ProcessorBox::reordered));
|
||||
processor_display.DropFromAnotherBox.connect (mem_fun (*this, &ProcessorBox::object_drop));
|
||||
processor_display.SelectionChanged.connect (mem_fun (*this, &ProcessorBox::selection_changed));
|
||||
processor_display.Reordered.connect (sigc::mem_fun (*this, &ProcessorBox::reordered));
|
||||
processor_display.DropFromAnotherBox.connect (sigc::mem_fun (*this, &ProcessorBox::object_drop));
|
||||
processor_display.SelectionChanged.connect (sigc::mem_fun (*this, &ProcessorBox::selection_changed));
|
||||
}
|
||||
|
||||
ProcessorBox::~ProcessorBox ()
|
||||
|
|
@ -326,11 +326,11 @@ ProcessorBox::set_route (boost::shared_ptr<Route> r)
|
|||
no_processor_redisplay = false;
|
||||
_route = r;
|
||||
|
||||
connections.push_back (_route->processors_changed.connect (mem_fun (*this, &ProcessorBox::route_processors_changed)));
|
||||
connections.push_back (_route->processors_changed.connect (sigc::mem_fun (*this, &ProcessorBox::route_processors_changed)));
|
||||
connections.push_back (_route->GoingAway.connect (
|
||||
mem_fun (*this, &ProcessorBox::route_going_away)));
|
||||
sigc::mem_fun (*this, &ProcessorBox::route_going_away)));
|
||||
connections.push_back (_route->NameChanged.connect (
|
||||
mem_fun(*this, &ProcessorBox::route_name_changed)));
|
||||
sigc::mem_fun(*this, &ProcessorBox::route_name_changed)));
|
||||
|
||||
redisplay_processors ();
|
||||
}
|
||||
|
|
@ -431,8 +431,8 @@ ProcessorBox::build_send_action_menu ()
|
|||
send_action_menu->set_name ("ArdourContextMenu");
|
||||
MenuList& items = send_action_menu->items();
|
||||
|
||||
items.push_back (MenuElem (_("New send"), mem_fun(*this, &ProcessorBox::new_send)));
|
||||
items.push_back (MenuElem (_("Show send controls"), mem_fun(*this, &ProcessorBox::show_send_controls)));
|
||||
items.push_back (MenuElem (_("New send"), sigc::mem_fun(*this, &ProcessorBox::new_send)));
|
||||
items.push_back (MenuElem (_("Show send controls"), sigc::mem_fun(*this, &ProcessorBox::show_send_controls)));
|
||||
}
|
||||
|
||||
Gtk::Menu*
|
||||
|
|
@ -450,7 +450,7 @@ ProcessorBox::build_possible_aux_menu ()
|
|||
|
||||
for (RouteList::iterator r = rl->begin(); r != rl->end(); ++r) {
|
||||
if (!_route->internal_send_for (*r) && *r != _route) {
|
||||
items.push_back (MenuElem ((*r)->name(), bind (sigc::ptr_fun (ProcessorBox::rb_choose_aux), boost::weak_ptr<Route>(*r))));
|
||||
items.push_back (MenuElem ((*r)->name(), sigc::bind (sigc::ptr_fun (ProcessorBox::rb_choose_aux), boost::weak_ptr<Route>(*r))));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -663,8 +663,8 @@ ProcessorBox::processor_button_release_event (GdkEventButton *ev, ProcessorEntry
|
|||
|
||||
if (processor && Keyboard::is_delete_event (ev)) {
|
||||
|
||||
Glib::signal_idle().connect (bind (
|
||||
mem_fun(*this, &ProcessorBox::idle_delete_processor),
|
||||
Glib::signal_idle().connect (sigc::bind (
|
||||
sigc::mem_fun(*this, &ProcessorBox::idle_delete_processor),
|
||||
boost::weak_ptr<Processor>(processor)));
|
||||
ret = true;
|
||||
|
||||
|
|
@ -850,8 +850,8 @@ ProcessorBox::choose_send ()
|
|||
*/
|
||||
_processor_being_created = send;
|
||||
|
||||
ios->selector().Finished.connect (bind (
|
||||
mem_fun(*this, &ProcessorBox::send_io_finished),
|
||||
ios->selector().Finished.connect (sigc::bind (
|
||||
sigc::mem_fun(*this, &ProcessorBox::send_io_finished),
|
||||
boost::weak_ptr<Processor>(send), ios));
|
||||
|
||||
}
|
||||
|
|
@ -945,7 +945,7 @@ ProcessorBox::route_processors_changed (RouteProcessorChange c)
|
|||
void
|
||||
ProcessorBox::redisplay_processors ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun(*this, &ProcessorBox::redisplay_processors));
|
||||
ENSURE_GUI_THREAD (*this, &ProcessorBox::redisplay_processors)
|
||||
|
||||
if (no_processor_redisplay) {
|
||||
return;
|
||||
|
|
@ -953,7 +953,7 @@ ProcessorBox::redisplay_processors ()
|
|||
|
||||
processor_display.clear ();
|
||||
|
||||
_route->foreach_processor (mem_fun (*this, &ProcessorBox::add_processor_to_display));
|
||||
_route->foreach_processor (sigc::mem_fun (*this, &ProcessorBox::add_processor_to_display));
|
||||
|
||||
build_processor_tooltip (processor_eventbox, _("Inserts, sends & plugins:"));
|
||||
}
|
||||
|
|
@ -1767,7 +1767,7 @@ ProcessorBox::rb_edit ()
|
|||
void
|
||||
ProcessorBox::route_name_changed ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &ProcessorBox::route_name_changed));
|
||||
ENSURE_GUI_THREAD (*this, &ProcessorBox::route_name_changed)
|
||||
|
||||
boost::shared_ptr<Processor> processor;
|
||||
boost::shared_ptr<PluginInsert> plugin_insert;
|
||||
|
|
|
|||
|
|
@ -54,9 +54,9 @@ public:
|
|||
|
||||
ports_changed ();
|
||||
|
||||
_store->signal_row_changed().connect (mem_fun (*this, &MIDIPorts::model_changed));
|
||||
_store->signal_row_changed().connect (sigc::mem_fun (*this, &MIDIPorts::model_changed));
|
||||
|
||||
_add_port_button.signal_clicked().connect (mem_fun (*this, &MIDIPorts::add_port_clicked));
|
||||
_add_port_button.signal_clicked().connect (sigc::mem_fun (*this, &MIDIPorts::add_port_clicked));
|
||||
}
|
||||
|
||||
void parameter_changed (string const &) {}
|
||||
|
|
@ -117,7 +117,7 @@ private:
|
|||
|
||||
if ((*i)->input()) {
|
||||
r[_model.online] = !(*i)->input()->offline();
|
||||
(*i)->input()->OfflineStatusChanged.connect (bind (mem_fun (*this, &MIDIPorts::port_offline_changed), (*i)));
|
||||
(*i)->input()->OfflineStatusChanged.connect (sigc::bind (sigc::mem_fun (*this, &MIDIPorts::port_offline_changed), (*i)));
|
||||
r[_model.trace_input] = (*i)->input()->tracing();
|
||||
}
|
||||
|
||||
|
|
@ -235,7 +235,7 @@ public:
|
|||
t->attach (*l, 0, 1, 0, 1, FILL);
|
||||
t->attach (_click_path_entry, 1, 2, 0, 1, FILL);
|
||||
Button* b = manage (new Button (_("Browse...")));
|
||||
b->signal_clicked().connect (mem_fun (*this, &ClickOptions::click_browse_clicked));
|
||||
b->signal_clicked().connect (sigc::mem_fun (*this, &ClickOptions::click_browse_clicked));
|
||||
t->attach (*b, 2, 3, 0, 1, FILL);
|
||||
|
||||
l = manage (new Label (_("Click emphasis audio file:")));
|
||||
|
|
@ -243,7 +243,7 @@ public:
|
|||
t->attach (*l, 0, 1, 1, 2, FILL);
|
||||
t->attach (_click_emphasis_path_entry, 1, 2, 1, 2, FILL);
|
||||
b = manage (new Button (_("Browse...")));
|
||||
b->signal_clicked().connect (mem_fun (*this, &ClickOptions::click_emphasis_browse_clicked));
|
||||
b->signal_clicked().connect (sigc::mem_fun (*this, &ClickOptions::click_emphasis_browse_clicked));
|
||||
t->attach (*b, 2, 3, 1, 2, FILL);
|
||||
|
||||
_box->pack_start (*t, false, false);
|
||||
|
|
@ -337,10 +337,10 @@ public:
|
|||
|
||||
_box->pack_start (*t);
|
||||
|
||||
_limit_undo_button.signal_toggled().connect (mem_fun (*this, &UndoOptions::limit_undo_toggled));
|
||||
_limit_undo_spin.signal_value_changed().connect (mem_fun (*this, &UndoOptions::limit_undo_changed));
|
||||
_save_undo_button.signal_toggled().connect (mem_fun (*this, &UndoOptions::save_undo_toggled));
|
||||
_save_undo_spin.signal_value_changed().connect (mem_fun (*this, &UndoOptions::save_undo_changed));
|
||||
_limit_undo_button.signal_toggled().connect (sigc::mem_fun (*this, &UndoOptions::limit_undo_toggled));
|
||||
_limit_undo_spin.signal_value_changed().connect (sigc::mem_fun (*this, &UndoOptions::limit_undo_changed));
|
||||
_save_undo_button.signal_toggled().connect (sigc::mem_fun (*this, &UndoOptions::save_undo_toggled));
|
||||
_save_undo_spin.signal_value_changed().connect (sigc::mem_fun (*this, &UndoOptions::save_undo_changed));
|
||||
}
|
||||
|
||||
void parameter_changed (string const & p)
|
||||
|
|
@ -457,7 +457,7 @@ public:
|
|||
}
|
||||
|
||||
set_popdown_strings (_edit_modifier_combo, dumb);
|
||||
_edit_modifier_combo.signal_changed().connect (mem_fun(*this, &KeyboardOptions::edit_modifier_chosen));
|
||||
_edit_modifier_combo.signal_changed().connect (sigc::mem_fun(*this, &KeyboardOptions::edit_modifier_chosen));
|
||||
|
||||
for (int x = 0; modifiers[x].name; ++x) {
|
||||
if (modifiers[x].modifier == Keyboard::edit_modifier ()) {
|
||||
|
|
@ -484,10 +484,10 @@ public:
|
|||
|
||||
_edit_button_spin.set_name ("OptionsEntry");
|
||||
_edit_button_adjustment.set_value (Keyboard::edit_button());
|
||||
_edit_button_adjustment.signal_value_changed().connect (mem_fun(*this, &KeyboardOptions::edit_button_changed));
|
||||
_edit_button_adjustment.signal_value_changed().connect (sigc::mem_fun(*this, &KeyboardOptions::edit_button_changed));
|
||||
|
||||
set_popdown_strings (_delete_modifier_combo, dumb);
|
||||
_delete_modifier_combo.signal_changed().connect (mem_fun(*this, &KeyboardOptions::delete_modifier_chosen));
|
||||
_delete_modifier_combo.signal_changed().connect (sigc::mem_fun(*this, &KeyboardOptions::delete_modifier_chosen));
|
||||
|
||||
for (int x = 0; modifiers[x].name; ++x) {
|
||||
if (modifiers[x].modifier == Keyboard::delete_modifier ()) {
|
||||
|
|
@ -511,10 +511,10 @@ public:
|
|||
|
||||
_delete_button_spin.set_name ("OptionsEntry");
|
||||
_delete_button_adjustment.set_value (Keyboard::delete_button());
|
||||
_delete_button_adjustment.signal_value_changed().connect (mem_fun(*this, &KeyboardOptions::delete_button_changed));
|
||||
_delete_button_adjustment.signal_value_changed().connect (sigc::mem_fun(*this, &KeyboardOptions::delete_button_changed));
|
||||
|
||||
set_popdown_strings (_snap_modifier_combo, dumb);
|
||||
_snap_modifier_combo.signal_changed().connect (mem_fun(*this, &KeyboardOptions::snap_modifier_chosen));
|
||||
_snap_modifier_combo.signal_changed().connect (sigc::mem_fun(*this, &KeyboardOptions::snap_modifier_chosen));
|
||||
|
||||
for (int x = 0; modifiers[x].name; ++x) {
|
||||
if (modifiers[x].modifier == (guint) Keyboard::snap_modifier ()) {
|
||||
|
|
@ -538,7 +538,7 @@ public:
|
|||
|
||||
set_popdown_strings (_keyboard_layout_selector, strs);
|
||||
_keyboard_layout_selector.set_active_text (Keyboard::current_binding_name());
|
||||
_keyboard_layout_selector.signal_changed().connect (mem_fun (*this, &KeyboardOptions::bindings_changed));
|
||||
_keyboard_layout_selector.signal_changed().connect (sigc::mem_fun (*this, &KeyboardOptions::bindings_changed));
|
||||
|
||||
l = manage (new Label (_("Keyboard layout:")));
|
||||
l->set_name ("OptionsLabel");
|
||||
|
|
@ -654,7 +654,7 @@ public:
|
|||
|
||||
_box->pack_start (*h, false, false);
|
||||
|
||||
_dpi_adjustment.signal_value_changed().connect (mem_fun (*this, &FontScalingOptions::dpi_changed));
|
||||
_dpi_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &FontScalingOptions::dpi_changed));
|
||||
}
|
||||
|
||||
void parameter_changed (string const & p)
|
||||
|
|
@ -717,7 +717,7 @@ public:
|
|||
|
||||
_box->pack_start (*h, false, false);
|
||||
|
||||
_db_adjustment.signal_value_changed().connect (mem_fun (*this, &SoloMuteOptions::db_changed));
|
||||
_db_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &SoloMuteOptions::db_changed));
|
||||
}
|
||||
|
||||
void parameter_changed (string const & p)
|
||||
|
|
@ -774,7 +774,7 @@ public:
|
|||
|
||||
_box->pack_start (_view, false, false);
|
||||
|
||||
_store->signal_row_changed().connect (mem_fun (*this, &ControlSurfacesOptions::model_changed));
|
||||
_store->signal_row_changed().connect (sigc::mem_fun (*this, &ControlSurfacesOptions::model_changed));
|
||||
}
|
||||
|
||||
void parameter_changed (std::string const &)
|
||||
|
|
@ -864,8 +864,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
ComboOption<float>* mht = new ComboOption<float> (
|
||||
"meter-hold",
|
||||
_("Meter hold time"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_meter_hold),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_meter_hold)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_meter_hold),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_meter_hold)
|
||||
);
|
||||
|
||||
mht->add (MeterHoldOff, _("off"));
|
||||
|
|
@ -878,8 +878,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
ComboOption<float>* mfo = new ComboOption<float> (
|
||||
"meter-falloff",
|
||||
_("Meter fall-off"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_meter_falloff),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_meter_falloff)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_meter_falloff),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_meter_falloff)
|
||||
);
|
||||
|
||||
mfo->add (METER_FALLOFF_OFF, _("off"));
|
||||
|
|
@ -907,48 +907,48 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"verify-remove-last-capture",
|
||||
_("Verify removal of last capture"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_verify_remove_last_capture),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_verify_remove_last_capture)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_verify_remove_last_capture),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_verify_remove_last_capture)
|
||||
));
|
||||
|
||||
add_option (_("Misc"),
|
||||
new BoolOption (
|
||||
"periodic-safety-backups",
|
||||
_("Make periodic backups of the session file"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_periodic_safety_backups),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_periodic_safety_backups)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_periodic_safety_backups),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_periodic_safety_backups)
|
||||
));
|
||||
|
||||
add_option (_("Misc"),
|
||||
new BoolOption (
|
||||
"sync-all-route-ordering",
|
||||
_("Syncronise editor and mixer track order"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_sync_all_route_ordering),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_sync_all_route_ordering)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_sync_all_route_ordering),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_sync_all_route_ordering)
|
||||
));
|
||||
|
||||
add_option (_("Misc"),
|
||||
new BoolOption (
|
||||
"only-copy-imported-files",
|
||||
_("Always copy imported files"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_only_copy_imported_files),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_only_copy_imported_files)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_only_copy_imported_files),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_only_copy_imported_files)
|
||||
));
|
||||
|
||||
add_option (_("Misc"),
|
||||
new BoolOption (
|
||||
"default-narrow_ms",
|
||||
_("Use narrow mixer strips"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_default_narrow_ms),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_default_narrow_ms)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_default_narrow_ms),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_default_narrow_ms)
|
||||
));
|
||||
|
||||
add_option (_("Misc"),
|
||||
new BoolOption (
|
||||
"name-new-markers",
|
||||
_("Name new markers"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_name_new_markers),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_name_new_markers)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_name_new_markers),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_name_new_markers)
|
||||
));
|
||||
|
||||
/* TRANSPORT */
|
||||
|
|
@ -957,56 +957,56 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"latched-record-enable",
|
||||
_("Keep record-enable engaged on stop"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_latched_record_enable),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_latched_record_enable)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_latched_record_enable),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_latched_record_enable)
|
||||
));
|
||||
|
||||
add_option (_("Transport"),
|
||||
new BoolOption (
|
||||
"stop-recording-on-xrun",
|
||||
_("Stop recording when an xrun occurs"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_stop_recording_on_xrun),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_stop_recording_on_xrun)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_stop_recording_on_xrun),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_stop_recording_on_xrun)
|
||||
));
|
||||
|
||||
add_option (_("Transport"),
|
||||
new BoolOption (
|
||||
"create-xrun-marker",
|
||||
_("Create markers where xruns occur"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_create_xrun_marker),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_create_xrun_marker)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_create_xrun_marker),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_create_xrun_marker)
|
||||
));
|
||||
|
||||
add_option (_("Transport"),
|
||||
new BoolOption (
|
||||
"stop-at-session-end",
|
||||
_("Stop at the end of the session"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_stop_at_session_end),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_stop_at_session_end)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_stop_at_session_end),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_stop_at_session_end)
|
||||
));
|
||||
|
||||
add_option (_("Transport"),
|
||||
new BoolOption (
|
||||
"primary-clock-delta-edit-cursor",
|
||||
_("Primary clock delta to edit cursor"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_primary_clock_delta_edit_cursor),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_primary_clock_delta_edit_cursor)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_primary_clock_delta_edit_cursor),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_primary_clock_delta_edit_cursor)
|
||||
));
|
||||
|
||||
add_option (_("Transport"),
|
||||
new BoolOption (
|
||||
"secondary-clock-delta-edit-cursor",
|
||||
_("Secondary clock delta to edit cursor"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_secondary_clock_delta_edit_cursor),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_secondary_clock_delta_edit_cursor)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_secondary_clock_delta_edit_cursor),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_secondary_clock_delta_edit_cursor)
|
||||
));
|
||||
|
||||
add_option (_("Transport"),
|
||||
new BoolOption (
|
||||
"disable-disarm-during-roll",
|
||||
_("Disable per-track record disarm while rolling"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_disable_disarm_during_roll),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_disable_disarm_during_roll)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_disable_disarm_during_roll),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_disable_disarm_during_roll)
|
||||
));
|
||||
|
||||
/* EDITOR */
|
||||
|
|
@ -1015,55 +1015,55 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"link-region-and-track-selection",
|
||||
_("Link selection of regions and tracks"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_link_region_and_track_selection),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_link_region_and_track_selection)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_link_region_and_track_selection),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_link_region_and_track_selection)
|
||||
));
|
||||
|
||||
add_option (_("Editor"),
|
||||
new BoolOption (
|
||||
"automation-follows-regions",
|
||||
_("Move relevant automation when regions are moved"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_automation_follows_regions),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_automation_follows_regions)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_automation_follows_regions),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_automation_follows_regions)
|
||||
));
|
||||
|
||||
add_option (_("Editor"),
|
||||
new BoolOption (
|
||||
"show-track-meters",
|
||||
_("Show meters on tracks in the editor"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_show_track_meters),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_show_track_meters)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_show_track_meters),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_show_track_meters)
|
||||
));
|
||||
|
||||
add_option (_("Editor"),
|
||||
new BoolOption (
|
||||
"use-overlap-equivalency",
|
||||
_("Use overlap equivalency for regions"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_use_overlap_equivalency),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_use_overlap_equivalency)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_use_overlap_equivalency),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_use_overlap_equivalency)
|
||||
));
|
||||
|
||||
add_option (_("Editor"),
|
||||
new BoolOption (
|
||||
"rubberbanding-snaps-to-grid",
|
||||
_("Make rubberband selection rectangle snap to the grid"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_rubberbanding_snaps_to_grid),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_rubberbanding_snaps_to_grid)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_rubberbanding_snaps_to_grid),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_rubberbanding_snaps_to_grid)
|
||||
));
|
||||
|
||||
add_option (_("Editor"),
|
||||
new BoolOption (
|
||||
"show-waveforms",
|
||||
_("Show waveforms in regions"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_show_waveforms),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_show_waveforms)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_show_waveforms),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_show_waveforms)
|
||||
));
|
||||
|
||||
ComboOption<WaveformScale>* wfs = new ComboOption<WaveformScale> (
|
||||
"waveform-scale",
|
||||
_("Waveform scale"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_waveform_scale),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_waveform_scale)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_waveform_scale),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_waveform_scale)
|
||||
);
|
||||
|
||||
wfs->add (Linear, _("linear"));
|
||||
|
|
@ -1074,8 +1074,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
ComboOption<WaveformShape>* wfsh = new ComboOption<WaveformShape> (
|
||||
"waveform-shape",
|
||||
_("Waveform shape"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_waveform_shape),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_waveform_shape)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_waveform_shape),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_waveform_shape)
|
||||
);
|
||||
|
||||
wfsh->add (Traditional, _("traditional"));
|
||||
|
|
@ -1092,15 +1092,15 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"solo-control-is-listen-control",
|
||||
_("Solo controls are Listen controls"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_solo_control_is_listen_control),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_solo_control_is_listen_control)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_solo_control_is_listen_control),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_solo_control_is_listen_control)
|
||||
));
|
||||
|
||||
ComboOption<ListenPosition>* lp = new ComboOption<ListenPosition> (
|
||||
"listen-position",
|
||||
_("Listen Position"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_listen_position),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_listen_position)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_listen_position),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_listen_position)
|
||||
);
|
||||
|
||||
lp->add (AfterFaderListen, _("after-fader listen"));
|
||||
|
|
@ -1113,24 +1113,24 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"solo-latched",
|
||||
_("Latched solo"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_solo_latched),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_solo_latched)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_solo_latched),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_solo_latched)
|
||||
));
|
||||
|
||||
add_option (_("Audio"),
|
||||
new BoolOption (
|
||||
"show-solo-mutes",
|
||||
_("Show solo muting"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_show_solo_mutes),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_show_solo_mutes)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_show_solo_mutes),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_show_solo_mutes)
|
||||
));
|
||||
|
||||
add_option (_("Audio"),
|
||||
new BoolOption (
|
||||
"solo-mute-override",
|
||||
_("Override muting"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_solo_mute_override),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_solo_mute_override)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_solo_mute_override),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_solo_mute_override)
|
||||
));
|
||||
|
||||
add_option (_("Audio"), new OptionEditorHeading (_("Monitoring")));
|
||||
|
|
@ -1138,8 +1138,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
ComboOption<MonitorModel>* mm = new ComboOption<MonitorModel> (
|
||||
"monitoring-model",
|
||||
_("Monitoring handled by"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_monitoring_model),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_monitoring_model)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_monitoring_model),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_monitoring_model)
|
||||
);
|
||||
|
||||
mm->add (HardwareMonitoring, _("JACK"));
|
||||
|
|
@ -1152,8 +1152,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"tape-machine-mode",
|
||||
_("Tape machine mode"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_tape_machine_mode),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_tape_machine_mode)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_tape_machine_mode),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_tape_machine_mode)
|
||||
));
|
||||
|
||||
add_option (_("Audio"), new OptionEditorHeading (_("Connection of tracks and busses")));
|
||||
|
|
@ -1162,15 +1162,15 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"auto-connect-standard-busses",
|
||||
_("Auto-connect master/monitor busses"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_auto_connect_standard_busses),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_auto_connect_standard_busses)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_auto_connect_standard_busses),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_auto_connect_standard_busses)
|
||||
));
|
||||
|
||||
ComboOption<AutoConnectOption>* iac = new ComboOption<AutoConnectOption> (
|
||||
"input-auto-connect",
|
||||
_("Connect track and bus inputs"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_input_auto_connect),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_input_auto_connect)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_input_auto_connect),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_input_auto_connect)
|
||||
);
|
||||
|
||||
iac->add (AutoConnectPhysical, _("automatically to physical inputs"));
|
||||
|
|
@ -1181,8 +1181,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
ComboOption<AutoConnectOption>* oac = new ComboOption<AutoConnectOption> (
|
||||
"output-auto-connect",
|
||||
_("Connect track and bus outputs"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_output_auto_connect),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_output_auto_connect)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_output_auto_connect),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_output_auto_connect)
|
||||
);
|
||||
|
||||
oac->add (AutoConnectPhysical, _("automatically to physical outputs"));
|
||||
|
|
@ -1197,15 +1197,15 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"denormal-protection",
|
||||
_("Use DC bias to protect against denormals"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_denormal_protection),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_denormal_protection)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_denormal_protection),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_denormal_protection)
|
||||
));
|
||||
|
||||
ComboOption<DenormalModel>* dm = new ComboOption<DenormalModel> (
|
||||
"denormal-model",
|
||||
_("Processor handling"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_denormal_model),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_denormal_model)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_denormal_model),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_denormal_model)
|
||||
);
|
||||
|
||||
dm->add (DenormalNone, _("no processor handling"));
|
||||
|
|
@ -1232,32 +1232,32 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"plugins-stop-with-transport",
|
||||
_("Stop plugins when the transport is stopped"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_plugins_stop_with_transport),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_plugins_stop_with_transport)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_plugins_stop_with_transport),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_plugins_stop_with_transport)
|
||||
));
|
||||
|
||||
add_option (_("Audio"),
|
||||
new BoolOption (
|
||||
"do-not-record-plugins",
|
||||
_("Disable plugins during recording"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_do_not_record_plugins),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_do_not_record_plugins)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_do_not_record_plugins),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_do_not_record_plugins)
|
||||
));
|
||||
|
||||
add_option (_("Audio"),
|
||||
new BoolOption (
|
||||
"new-plugins-active",
|
||||
_("Make new plugins active"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_new_plugins_active),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_new_plugins_active)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_new_plugins_active),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_new_plugins_active)
|
||||
));
|
||||
|
||||
add_option (_("Audio"),
|
||||
new BoolOption (
|
||||
"auto-analyse-audio",
|
||||
_("Enable automatic analysis of audio"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_auto_analyse_audio),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_auto_analyse_audio)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_auto_analyse_audio),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_auto_analyse_audio)
|
||||
));
|
||||
|
||||
/* MIDI CONTROL */
|
||||
|
|
@ -1267,29 +1267,29 @@ RCOptionEditor::RCOptionEditor ()
|
|||
midi_combos.push_back (new ComboOption<string> (
|
||||
"mtc-port-name",
|
||||
_("Send/Receive MTC via"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_mtc_port_name),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_mtc_port_name)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_mtc_port_name),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_mtc_port_name)
|
||||
));
|
||||
|
||||
midi_combos.push_back (new ComboOption<string> (
|
||||
"midi-clock-port-name",
|
||||
_("Send/Receive MIDI clock via"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_midi_clock_port_name),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_midi_clock_port_name)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_midi_clock_port_name),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_midi_clock_port_name)
|
||||
));
|
||||
|
||||
midi_combos.push_back (new ComboOption<string> (
|
||||
"mmc-port-name",
|
||||
_("Send/Receive MMC via"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_mmc_port_name),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_mmc_port_name)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_mmc_port_name),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_mmc_port_name)
|
||||
));
|
||||
|
||||
midi_combos.push_back (new ComboOption<string> (
|
||||
"midi-port-name",
|
||||
_("Send/Receive MIDI parameter control via"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_midi_port_name),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_midi_port_name)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_midi_port_name),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_midi_port_name)
|
||||
));
|
||||
|
||||
add_option (_("MIDI control"), new MIDIPorts (_rc_config, midi_combos));
|
||||
|
|
@ -1302,8 +1302,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"mmc-control",
|
||||
_("Obey MIDI Machine Control commands"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_mmc_control),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_mmc_control)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_mmc_control),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_mmc_control)
|
||||
));
|
||||
|
||||
|
||||
|
|
@ -1311,24 +1311,24 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new BoolOption (
|
||||
"send-mmc",
|
||||
_("Send MIDI Machine Control commands"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_send_mmc),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_send_mmc)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_send_mmc),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_send_mmc)
|
||||
));
|
||||
|
||||
add_option (_("MIDI control"),
|
||||
new BoolOption (
|
||||
"midi-feedback",
|
||||
_("Send MIDI control feedback"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_midi_feedback),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_midi_feedback)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_midi_feedback),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_midi_feedback)
|
||||
));
|
||||
|
||||
add_option (_("MIDI control"),
|
||||
new SpinOption<uint8_t> (
|
||||
"mmc-receive-device-id",
|
||||
_("Inbound MMC device ID"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_mmc_receive_device_id),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_mmc_receive_device_id),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_mmc_receive_device_id),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_mmc_receive_device_id),
|
||||
0, 128, 1, 10
|
||||
));
|
||||
|
||||
|
|
@ -1336,8 +1336,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new SpinOption<uint8_t> (
|
||||
"mmc-send-device-id",
|
||||
_("Outbound MMC device ID"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_mmc_send_device_id),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_mmc_send_device_id),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_mmc_send_device_id),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_mmc_send_device_id),
|
||||
0, 128, 1, 10
|
||||
));
|
||||
|
||||
|
|
@ -1345,8 +1345,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
new SpinOption<int32_t> (
|
||||
"initial-program-change",
|
||||
_("Initial program change"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_initial_program_change),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_initial_program_change),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_initial_program_change),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_initial_program_change),
|
||||
-1, 65536, 1, 10
|
||||
));
|
||||
|
||||
|
|
@ -1357,8 +1357,8 @@ RCOptionEditor::RCOptionEditor ()
|
|||
ComboOption<RemoteModel>* rm = new ComboOption<RemoteModel> (
|
||||
"remote-model",
|
||||
_("Control surface remote ID"),
|
||||
mem_fun (*_rc_config, &RCConfiguration::get_remote_model),
|
||||
mem_fun (*_rc_config, &RCConfiguration::set_remote_model)
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_remote_model),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_remote_model)
|
||||
);
|
||||
|
||||
rm->add (UserOrdered, _("assigned by user"));
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ using namespace sigc;
|
|||
*/
|
||||
RegionSelection::RegionSelection ()
|
||||
{
|
||||
RegionView::RegionViewGoingAway.connect (mem_fun(*this, &RegionSelection::remove_it));
|
||||
RegionView::RegionViewGoingAway.connect (sigc::mem_fun(*this, &RegionSelection::remove_it));
|
||||
|
||||
_current_start = 0;
|
||||
_current_end = 0;
|
||||
|
|
@ -46,7 +46,7 @@ RegionSelection::RegionSelection (const RegionSelection& other)
|
|||
: std::list<RegionView*>()
|
||||
, sigc::trackable(other)
|
||||
{
|
||||
RegionView::RegionViewGoingAway.connect (mem_fun(*this, &RegionSelection::remove_it));
|
||||
RegionView::RegionViewGoingAway.connect (sigc::mem_fun(*this, &RegionSelection::remove_it));
|
||||
|
||||
_current_start = other._current_start;
|
||||
_current_end = other._current_end;
|
||||
|
|
|
|||
|
|
@ -154,13 +154,13 @@ RegionView::init (Gdk::Color const & basic_color, bool wfd)
|
|||
|
||||
if (name_highlight) {
|
||||
name_highlight->set_data ("regionview", this);
|
||||
name_highlight->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_region_view_name_highlight_event), name_highlight, this));
|
||||
name_highlight->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_region_view_name_highlight_event), name_highlight, this));
|
||||
|
||||
frame_handle_start->set_data ("regionview", this);
|
||||
frame_handle_start->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_frame_handle_event), frame_handle_start, this));
|
||||
frame_handle_start->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_frame_handle_event), frame_handle_start, this));
|
||||
|
||||
frame_handle_end->set_data ("regionview", this);
|
||||
frame_handle_end->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_frame_handle_event), frame_handle_end, this));
|
||||
frame_handle_end->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_frame_handle_event), frame_handle_end, this));
|
||||
|
||||
frame_handle_start->raise_to_top();
|
||||
frame_handle_end->raise_to_top();
|
||||
|
|
@ -175,13 +175,13 @@ RegionView::init (Gdk::Color const & basic_color, bool wfd)
|
|||
|
||||
set_height (trackview.current_height());
|
||||
|
||||
_region->StateChanged.connect (mem_fun(*this, &RegionView::region_changed));
|
||||
_region->StateChanged.connect (sigc::mem_fun(*this, &RegionView::region_changed));
|
||||
|
||||
group->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_region_view_event), group, this));
|
||||
group->signal_event().connect (sigc::bind (sigc::mem_fun (PublicEditor::instance(), &PublicEditor::canvas_region_view_event), group, this));
|
||||
|
||||
set_colors ();
|
||||
|
||||
ColorsChanged.connect (mem_fun (*this, &RegionView::color_handler));
|
||||
ColorsChanged.connect (sigc::mem_fun (*this, &RegionView::color_handler));
|
||||
|
||||
/* XXX sync mark drag? */
|
||||
}
|
||||
|
|
@ -224,7 +224,7 @@ RegionView::lock_toggle ()
|
|||
void
|
||||
RegionView::region_changed (Change what_changed)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun(*this, &RegionView::region_changed), what_changed));
|
||||
ENSURE_GUI_THREAD (*this, &RegionView::region_changed, what_changed)
|
||||
|
||||
if (what_changed & BoundsChanged) {
|
||||
region_resized (what_changed);
|
||||
|
|
|
|||
|
|
@ -58,13 +58,13 @@ ReturnUI::ReturnUI (Gtk::Window* parent, boost::shared_ptr<Return> r, Session& s
|
|||
show_all ();
|
||||
|
||||
_return->set_metering (true);
|
||||
_return->input()->changed.connect (mem_fun (*this, &ReturnUI::ins_changed));
|
||||
_return->input()->changed.connect (sigc::mem_fun (*this, &ReturnUI::ins_changed));
|
||||
|
||||
_gpm.setup_meters ();
|
||||
_gpm.set_fader_name ("ReturnUIFrame");
|
||||
|
||||
// screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect (mem_fun (*this, &ReturnUI::update));
|
||||
fast_screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (mem_fun (*this, &ReturnUI::fast_update));
|
||||
// screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect (sigc::mem_fun (*this, &ReturnUI::update));
|
||||
fast_screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (sigc::mem_fun (*this, &ReturnUI::fast_update));
|
||||
}
|
||||
|
||||
ReturnUI::~ReturnUI ()
|
||||
|
|
@ -80,7 +80,7 @@ ReturnUI::~ReturnUI ()
|
|||
void
|
||||
ReturnUI::ins_changed (IOChange change, void* ignored)
|
||||
{
|
||||
ENSURE_GUI_THREAD(bind (mem_fun (*this, &ReturnUI::ins_changed), change, ignored));
|
||||
ENSURE_GUI_THREAD (*this, &ReturnUI::ins_changed, change, ignored)
|
||||
if (change & ConfigurationChanged) {
|
||||
_gpm.setup_meters ();
|
||||
}
|
||||
|
|
@ -111,8 +111,8 @@ ReturnUIWindow::ReturnUIWindow (boost::shared_ptr<Return> s, Session& ss)
|
|||
|
||||
set_name ("ReturnUIWindow");
|
||||
|
||||
going_away_connection = s->GoingAway.connect (mem_fun (*this, &ReturnUIWindow::return_going_away));
|
||||
signal_delete_event().connect (bind (sigc::ptr_fun (just_hide_it), reinterpret_cast<Window *> (this)));
|
||||
going_away_connection = s->GoingAway.connect (sigc::mem_fun (*this, &ReturnUIWindow::return_going_away));
|
||||
signal_delete_event().connect (sigc::bind (sigc::ptr_fun (just_hide_it), reinterpret_cast<Window *> (this)));
|
||||
}
|
||||
|
||||
ReturnUIWindow::~ReturnUIWindow ()
|
||||
|
|
@ -123,7 +123,7 @@ ReturnUIWindow::~ReturnUIWindow ()
|
|||
void
|
||||
ReturnUIWindow::return_going_away ()
|
||||
{
|
||||
ENSURE_GUI_THREAD (mem_fun (*this, &ReturnUIWindow::return_going_away));
|
||||
ENSURE_GUI_THREAD (*this, &ReturnUIWindow::return_going_away)
|
||||
delete_when_idle (this);
|
||||
going_away_connection.disconnect ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ RhythmFerret::RhythmFerret (PublicEditor& e)
|
|||
analysis_mode_strings = I18N (_analysis_mode_strings);
|
||||
Gtkmm2ext::set_popdown_strings (analysis_mode_selector, analysis_mode_strings);
|
||||
analysis_mode_selector.set_active_text (analysis_mode_strings.front());
|
||||
analysis_mode_selector.signal_changed().connect (mem_fun (*this, &RhythmFerret::analysis_mode_changed));
|
||||
analysis_mode_selector.signal_changed().connect (sigc::mem_fun (*this, &RhythmFerret::analysis_mode_changed));
|
||||
|
||||
onset_function_strings = I18N (_onset_function_strings);
|
||||
Gtkmm2ext::set_popdown_strings (onset_detection_function_selector, onset_function_strings);
|
||||
|
|
@ -123,7 +123,7 @@ RhythmFerret::RhythmFerret (PublicEditor& e)
|
|||
|
||||
ferret_packer.pack_start (analyze_button, false, false);
|
||||
|
||||
analyze_button.signal_clicked().connect (mem_fun (*this, &RhythmFerret::run_analysis));
|
||||
analyze_button.signal_clicked().connect (sigc::mem_fun (*this, &RhythmFerret::run_analysis));
|
||||
|
||||
box = manage (new HBox);
|
||||
box->set_spacing (6);
|
||||
|
|
@ -170,7 +170,7 @@ RhythmFerret::RhythmFerret (PublicEditor& e)
|
|||
lower_hpacker.set_border_width (6);
|
||||
lower_hpacker.set_spacing (6);
|
||||
|
||||
action_button.signal_clicked().connect (mem_fun (*this, &RhythmFerret::do_action));
|
||||
action_button.signal_clicked().connect (sigc::mem_fun (*this, &RhythmFerret::do_action));
|
||||
|
||||
get_vbox()->set_border_width (6);
|
||||
get_vbox()->set_spacing (6);
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue