2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2000 Paul Davis
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This file contains any ARDOUR_UI methods that require knowledge of
|
|
|
|
the mixer, and exists so that no compilation dependency exists
|
|
|
|
between the main ARDOUR_UI modules and the mixer classes. This
|
|
|
|
is to cut down on the nasty compile times for these classes.
|
|
|
|
*/
|
|
|
|
|
2016-02-22 14:03:55 -05:00
|
|
|
#include "gtkmm2ext/keyboard.h"
|
|
|
|
|
2013-05-04 22:02:05 -04:00
|
|
|
#include "actions.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
#include "ardour_ui.h"
|
2013-06-19 04:25:18 -04:00
|
|
|
#include "meterbridge.h"
|
2018-12-11 10:28:47 -05:00
|
|
|
#include "mixer_ui.h"
|
2013-05-04 22:02:05 -04:00
|
|
|
|
2016-07-14 14:44:52 -04:00
|
|
|
#include "pbd/i18n.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
using namespace ARDOUR;
|
2006-06-21 19:01:03 -04:00
|
|
|
using namespace PBD;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
int
|
|
|
|
ARDOUR_UI::create_mixer ()
|
|
|
|
|
|
|
|
{
|
|
|
|
try {
|
2011-11-15 14:33:09 -05:00
|
|
|
mixer = Mixer_UI::instance ();
|
2015-07-22 21:14:08 -04:00
|
|
|
mixer->StateChange.connect (sigc::mem_fun (*this, &ARDOUR_UI::tabbable_state_change));
|
2009-10-14 12:10:01 -04:00
|
|
|
}
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
catch (failed_constructor& err) {
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2016-02-22 14:42:40 -05:00
|
|
|
// mixer->signal_event().connect (sigc::bind (sigc::ptr_fun (&Gtkmm2ext::Keyboard::catch_user_event_for_pre_dialog_focus), mixer));
|
2011-06-01 13:00:29 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
return 0;
|
|
|
|
}
|
2007-03-13 12:17:29 -04:00
|
|
|
|
2013-06-19 04:25:18 -04:00
|
|
|
|
|
|
|
int
|
|
|
|
ARDOUR_UI::create_meterbridge ()
|
|
|
|
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
meterbridge = Meterbridge::instance ();
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (failed_constructor& err) {
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|