Use sys::path and SessionDirectory in Session::find_all_sources for portability
[ardour.git] / gtk2_ardour / plugin_selector.h
index 06c2f1d18ebcb55a4d9c9cc2bc43361ef9043034..73c3008e642bfd5e3b3b029739056b223f35a67d 100644 (file)
@@ -30,7 +30,6 @@
 namespace ARDOUR {
        class Session;
        class PluginManager;
-       class PluginInfo;
 }
 
 class PluginSelector : public ArdourDialog
@@ -51,7 +50,7 @@ class PluginSelector : public ArdourDialog
        Gtk::ScrolledWindow auscroller; // AudioUnit
        Gtk::ScrolledWindow ascroller;  // Added plugins
        
-       ARDOUR::PluginInfo::Type current_selection;
+       ARDOUR::PluginType current_selection;
 
        // page 1
        struct LadspaColumns : public Gtk::TreeModel::ColumnRecord {
@@ -111,7 +110,7 @@ class PluginSelector : public ArdourDialog
        void vst_display_selection_changed();
 #endif // VST_SUPPORT
 
-#ifdef HAVE_COREAUDIO
+#ifdef HAVE_AUDIOUNIT
        // page 3
        struct AUColumns : public Gtk::TreeModel::ColumnRecord {
                AUColumns () {
@@ -132,13 +131,7 @@ class PluginSelector : public ArdourDialog
        static void _au_refiller (void *);
        void au_refiller ();
        void au_display_selection_changed();
-#endif //HAVE_COREAUDIO
-
-       ARDOUR::PluginInfo* i_selected_plug;
-
-       // We need an integer for the output side because
-       // the name isn't promised to be unique.
-       gint o_selected_plug;
+#endif //HAVE_AUDIOUNIT
 
        ARDOUR::PluginManager *manager;
 
@@ -154,6 +147,8 @@ class PluginSelector : public ArdourDialog
        void btn_apply_clicked();
        void use_plugin (ARDOUR::PluginInfoPtr);
        void cleanup ();
+
+       void set_correct_focus();
 };
 
 #endif // __ardour_plugin_selector_h__