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.
20 /* this file exists solely to break compilation dependencies that
21 would connect changes to the mixer or editor objects.
26 #include "pbd/error.h"
28 #include "ardour/session.h"
30 #include "ardour_ui.h"
31 #include "public_editor.h"
35 #include "route_params_ui.h"
47 using namespace ARDOUR;
50 ARDOUR_UI::shutdown ()
52 ui_config->save_state();
56 ARDOUR_UI::we_have_dependents ()
59 ProcessorBox::register_actions ();
60 keyboard->setup_keybindings ();
61 editor->UpdateAllTransportClocks.connect (sigc::mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
65 ARDOUR_UI::connect_dependents_to_session (ARDOUR::Session *s)
67 BootMessage (_("Setup Editor"));
68 editor->set_session (s);
69 BootMessage (_("Setup Mixer"));
70 mixer->set_session (s);
72 /* its safe to do this now */
74 BootMessage (_("Reload Session History"));
75 s->restore_history ("");
79 _hide_splash (gpointer arg)
81 ((ARDOUR_UI*)arg)->hide_splash();
86 ARDOUR_UI::goto_editor_window ()
88 if (splash && splash->is_visible()) {
89 // in 2 seconds, hide the splash screen
90 Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 2000);
93 editor->show_window ();
95 _mixer_on_top = false;
100 ARDOUR_UI::goto_mixer_window ()
102 mixer->show_window ();
104 _mixer_on_top = true;
109 ARDOUR_UI::toggle_editor_mixer_on_top ()
112 goto_editor_window ();
114 goto_mixer_window ();
118 /** The main editor window has been closed */
120 ARDOUR_UI::exit_on_main_window_close (GdkEventAny * /*ev*/)
123 /* just hide the window, and return - the top menu stays up */
127 /* time to get out of here */