/* Copyright (C) 2010 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "tracks_control_panel.h" #include "waves_button.h" //#include //#include //#include //#include //#include //#include //#include //#include "pbd/error.h" //#include "pbd/xml++.h" //#include "pbd/unwind.h" //#include "pbd/failed_constructor.h" //#include //#include //#include //#include //#include "ardour/audio_backend.h" //#include "ardour/audioengine.h" //#include "ardour/mtdm.h" //#include "ardour/rc_configuration.h" //#include "ardour/types.h" //#include "pbd/convert.h" //#include "pbd/error.h" //#include "ardour_ui.h" //#include "tracks_control_panel.h" //#include "gui_thread.h" //#include "utils.h" #include "i18n.h" using namespace std; using namespace Gtk; using namespace Gtkmm2ext; using namespace PBD; using namespace Glib; TracksControlPanel::TracksControlPanel () : WavesDialog ("tracks_preferences.xml") , audio_settings_layout(get_layout ("audio_settings_layout")) , midi_settings_layout(get_layout ("midi_settings_layout")) , session_settings_layout(get_layout ("session_settings_layout")) , audio_settings_tab_button (get_waves_button ("audio_settings_tab_button")) , midi_settings_tab_button (get_waves_button ("midi_settings_tab_button")) , session_settings_tab_button (get_waves_button ("session_settings_tab_button")) , ok_button (get_waves_button ("ok_button")) , cancel_button (get_waves_button ("cancel_button")) , apply_button (get_waves_button ("apply_button")) , control_panel_button (get_waves_button ("control_panel_button")) , no_button (get_waves_button ("no_button")) , name_track_after_driver_button (get_waves_button ("name_track_after_driver_button")) , reset_track_names_button (get_waves_button ("reset_track_names_button")) , yes_button (get_waves_button ("yes_button")) , engine_combo (get_combo_box_text ("engine_combo")) , device_combo (get_combo_box_text ("device_combo")) , sample_rate_combo (get_combo_box_text ("sample_rate_combo")) , buffer_size_combo (get_combo_box_text ("buffer_size_combo")) , latency_label (get_label("latency_label")) , multi_out_button(get_waves_button ("multi_out_button")) , stereo_out_button(get_waves_button ("stereo_out_button")) , _have_control (false) , _ignore_changes (0) { init(); } TracksControlPanel::~TracksControlPanel () { _ignore_changes = true; }