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 <gtkmm/accelmap.h>
28 #include <pbd/error.h>
30 #include "ardour_ui.h"
31 #include "public_editor.h"
34 #include "route_params_ui.h"
47 ARDOUR_UI::shutdown ()
50 /* we're exiting cleanly, so remove any auto-save data */
51 session->remove_pending_capture_state ();
58 ARDOUR_UI::we_have_dependents ()
61 editor->UpdateAllTransportClocks.connect (mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
65 accel_map_changed (GtkAccelMap* map,
71 static_cast<ARDOUR_UI*>(arg)->save_keybindings ();
75 ARDOUR_UI::setup_keybindings ()
78 ProcessorBox::register_actions ();
80 cerr << "loading bindings from " << keybindings_path << endl;
83 AccelMap::load (keybindings_path);
85 error << string_compose (_("Ardour key bindings file not found at \"%1\" or contains errors."), keybindings_path)
91 GtkAccelMap* accelmap = gtk_accel_map_get();
92 g_signal_connect (accelmap, "changed", (GCallback) accel_map_changed, this);
99 ARDOUR_UI::connect_dependents_to_session (ARDOUR::Session *s)
101 editor->connect_to_session (s);
102 mixer->connect_to_session (s);
104 /* its safe to do this now */
106 s->restore_history ("");
110 ARDOUR_UI::goto_editor_window ()
112 editor->show_window ();
116 ARDOUR_UI::goto_mixer_window ()
118 mixer->show_window ();
123 ARDOUR_UI::exit_on_main_window_close (GdkEventAny *ev)