Prefer testing the session instead of using a global variable
[ardour.git] / gtk2_ardour / public_editor.cc
index 6797119a1f2e0eafa416a8258baf7c8212566aac..7d9f89354fdd257b49543fecde8990288e6ca405 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis 
+    Copyright (C) 2000-2007 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 */
 
 #include "public_editor.h"
-#include "editor.h"
+
+#include "pbd/i18n.h"
 
 PublicEditor* PublicEditor::_instance = 0;
 
-/** PublicEditor constructor */
-PublicEditor::PublicEditor ()
-       : Window (Gtk::WINDOW_TOPLEVEL)
+const int PublicEditor::window_border_width = 12;
+const int PublicEditor::container_border_width = 12;
+const int PublicEditor::vertical_spacing = 6;
+const int PublicEditor::horizontal_spacing = 6;
+
+sigc::signal<void> PublicEditor::DropDownKeys;
+
+PublicEditor::PublicEditor (Gtk::Widget& content)
+       : Tabbable (content, _("Editor"))
+       , ActionMapOwner (X_("editor"))
+       , _suspend_route_redisplay_counter (0)
 {
 }
 
-/** PublicEditor destructor */
 PublicEditor::~PublicEditor()
 {
 }