Fix generic plugin UI for plugins with only properties
[ardour.git] / gtk2_ardour / public_editor.cc
index 36d51d97a17f8df2ad917c3b79316ff6d0e8db08..6ac0ba358b9bc116ff020e9d90f210ca858c7f26 100644 (file)
@@ -1,10 +1,38 @@
+/*
+    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
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
 #include "public_editor.h"
-#include "editor.h"
+
+#include "pbd/i18n.h"
 
 PublicEditor* PublicEditor::_instance = 0;
 
-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"))
+       , _suspend_route_redisplay_counter (0)
 {
 }