#include "actions.h"
#include "ardour_ui.h"
#include "public_editor.h"
+#include "meterbridge.h"
#include "mixer_ui.h"
#include "keyboard.h"
#include "splash.h"
editor->setup_tooltips ();
editor->UpdateAllTransportClocks.connect (sigc::mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
+ editor->add_to_notebook (_tabs, _("Editor"), 1);
+ mixer->add_to_notebook (_tabs, _("Mixer"), 1);
+
/* all actions are defined */
ActionManager::enable_accelerators ();
void
ARDOUR_UI::connect_dependents_to_session (ARDOUR::Session *s)
{
+ DisplaySuspender ds;
BootMessage (_("Setup Editor"));
editor->set_session (s);
BootMessage (_("Setup Mixer"));
#endif
}
+GtkNotebook*
+ARDOUR_UI::tab_window_root_drop (GtkNotebook* src,
+ GtkWidget* w,
+ gint x,
+ gint y,
+ gpointer)
+{
+ using namespace std;
+ Gtk::Notebook* nb = 0;
+ Gtk::Window* win = 0;
+
+ if (w == GTK_WIDGET(mixer->contents().gobj())) {
+ /* Mixer */
+
+ cerr << "Call use own window, mixer\n";
+
+ nb = mixer->tab_root_drop ();
+ win = mixer->own_window ();
+
+ } else if (w == GTK_WIDGET(editor->contents().gobj())) {
+
+ /* Editor */
+
+ cerr << "Call use own window, editor\n";
+
+ nb = editor->tab_root_drop ();
+ win = editor->own_window ();
+
+ }
+
+ if (nb) {
+ win->move (x, y);
+ win->show_all ();
+ win->present ();
+ return nb->gobj();
+ }
+
+ return 0; /* what was that? */
+}