ardour
ardour_ui_dependents.cc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2000 Paul Davis
3 
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.
8 
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.
13 
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.
17 
18 */
19 
20 #ifdef WAF_BUILD
21 #include "gtk2ardour-config.h"
22 #endif
23 
24 /* this file exists solely to break compilation dependencies that
25  would connect changes to the mixer or editor objects.
26 */
27 
28 #include <cstdio>
29 
30 #include "pbd/error.h"
31 
32 #include "ardour/session.h"
33 
34 #include "actions.h"
35 #include "ardour_ui.h"
36 #include "public_editor.h"
37 #include "mixer_ui.h"
38 #include "keyboard.h"
39 #include "splash.h"
40 #include "route_params_ui.h"
41 #include "opts.h"
42 #include "i18n.h"
43 
44 using namespace Gtk;
45 using namespace PBD;
46 
47 namespace ARDOUR {
48  class Session;
49  class Route;
50 }
51 
52 using namespace ARDOUR;
53 
54 void
56 {
57  install_actions ();
59  keyboard->setup_keybindings ();
60  editor->setup_tooltips ();
61  editor->UpdateAllTransportClocks.connect (sigc::mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
62 
63  /* all actions are defined */
64 
67 
68  editor->track_mixer_selection ();
69  mixer->track_editor_selection ();
70 }
71 
72 void
74 {
76  BootMessage (_("Setup Editor"));
77  editor->set_session (s);
78  BootMessage (_("Setup Mixer"));
79  mixer->set_session (s);
80  meterbridge->set_session (s);
81 
82  /* its safe to do this now */
83 
84  BootMessage (_("Reload Session History"));
85  s->restore_history ("");
86 }
87 
89 gint
91 {
92 #ifdef TOP_MENUBAR
93  /* just hide the window, and return - the top menu stays up */
94  editor->hide ();
95  return TRUE;
96 #else
97  /* time to get out of here */
98  finish();
99  return TRUE;
100 #endif
101 }
102 
void update_transport_clocks(framepos_t pos)
Definition: ardour_ui.cc:4431
void connect_dependents_to_session(ARDOUR::Session *)
LIBGTKMM2EXT_API void enable_accelerators()
Definition: actions.cc:241
int restore_history(std::string snapshot_name)
Definition: ardour_ui.h:130
gint exit_on_main_window_close(GdkEventAny *)
std::string menus_file
Definition: opts.cc:46
void we_have_dependents()
#define _(Text)
Definition: i18n.h:11
Definition: amp.h:29
LIBARDOUR_API PBD::Signal1< void, std::string > BootMessage
Definition: globals.cc:135
Definition: debug.h:30
void load_menus(const std::string &menus_file_name)
static void register_actions()