2 Copyright (C) 2000 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include "gtk2ardour-config.h"
24 /* this file exists solely to break compilation dependencies that
25 would connect changes to the mixer or editor objects.
30 #include "pbd/error.h"
32 #include "ardour/session.h"
35 #include "ardour_ui.h"
36 #include "public_editor.h"
37 #include "meterbridge.h"
41 #include "route_params_ui.h"
53 using namespace ARDOUR;
56 ARDOUR_UI::we_have_dependents ()
59 ProcessorBox::register_actions ();
60 keyboard->setup_keybindings ();
61 editor->setup_tooltips ();
62 editor->UpdateAllTransportClocks.connect (sigc::mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
64 /* all actions are defined */
66 ActionManager::enable_accelerators ();
67 ActionManager::load_menus (ARDOUR_COMMAND_LINE::menus_file);
69 editor->track_mixer_selection ();
70 mixer->track_editor_selection ();
74 ARDOUR_UI::connect_dependents_to_session (ARDOUR::Session *s)
77 BootMessage (_("Setup Editor"));
78 editor->set_session (s);
79 BootMessage (_("Setup Mixer"));
80 mixer->set_session (s);
81 meterbridge->set_session (s);
83 /* its safe to do this now */
85 BootMessage (_("Reload Session History"));
86 s->restore_history ("");
89 /** The main editor window has been closed */
91 ARDOUR_UI::exit_on_main_window_close (GdkEventAny * /*ev*/)
94 /* just hide the window, and return - the top menu stays up */
98 /* time to get out of here */