Remove dead code.
[ardour.git] / gtk2_ardour / vst_pluginui.cc
index 7adf702f4d38a843fbeb7a3f75188623e96ad0a5..aba100a97ce26ba69d4d108f93696701634b523d 100644 (file)
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include <fst.h>
 #include <gtk/gtksocket.h>
-#include <ardour/insert.h>
+#include <ardour/processor.h>
 #include <ardour/vst_plugin.h>
 
 #include "plugin_ui.h"
@@ -31,17 +30,17 @@ using namespace Gtk;
 using namespace ARDOUR;
 using namespace PBD;
 
-VSTPluginUI::VSTPluginUI (PluginInsert& pi, VSTPlugin& vp)
+VSTPluginUI::VSTPluginUI (boost::shared_ptr<PluginInsert> pi, boost::shared_ptr<VSTPlugin> vp)
        : PlugUIBase (pi),
          vst (vp)
 {
-       fst_run_editor (vst.fst());
+       fst_run_editor (vst->fst());
 
        preset_box.pack_end (bypass_button, false, false, 10);
        preset_box.pack_end (save_button, false, false);
-       preset_box.pack_end (combo, false, false);
+       preset_box.pack_end (preset_combo, false, false);
 
-       bypass_button.set_active (!insert.active());
+       bypass_button.set_active (!insert->active());
        
        pack_start (preset_box, false, false);
        pack_start (socket, true, true);
@@ -55,7 +54,13 @@ VSTPluginUI::~VSTPluginUI ()
 int
 VSTPluginUI::get_preferred_height ()
 {
-       return vst.fst()->height;
+       return vst->fst()->height;
+}
+
+int
+VSTPluginUI::get_preferred_width ()
+{
+       return vst->fst()->width;
 }
 
 int
@@ -69,7 +74,7 @@ VSTPluginUI::package (Gtk::Window& win)
           this assumes that the window's owner understands the XEmbed protocol.
        */
        
-       socket.add_id (fst_get_XID (vst.fst()));
+       socket.add_id (fst_get_XID (vst->fst()));
 
        return 0;
 }